COOPENOMICS  v1
Кооперативная Экономика
Класс eosioboot::boot

#include <eosio.boot.hpp>

Граф наследования:eosioboot::boot:

Открытые типы

using newaccount_action = action_wrapper<"newaccount"_n, &boot::newaccount >
 
using updateauth_action = action_wrapper<"updateauth"_n, &boot::updateauth >
 
using deleteauth_action = action_wrapper<"deleteauth"_n, &boot::deleteauth >
 
using linkauth_action = action_wrapper<"linkauth"_n, &boot::linkauth >
 
using unlinkauth_action = action_wrapper<"unlinkauth"_n, &boot::unlinkauth >
 
using canceldelay_action = action_wrapper<"canceldelay"_n, &boot::canceldelay >
 
using setcode_action = action_wrapper<"setcode"_n, &boot::setcode >
 
using setabi_action = action_wrapper<"setabi"_n, &boot::setabi >
 
using activate_action = action_wrapper<"activate"_n, &boot::activate >
 
using reqactivated_action = action_wrapper<"reqactivated"_n, &boot::reqactivated >
 

Открытые члены

void onerror (ignore< uint128_t > sender_id, ignore< std::vector< char > > sent_trx)
 
void activate (const eosio::checksum256 &feature_digest)
 Активирует протокольную функцию. Подробнее...
 
void reqactivated (const eosio::checksum256 &feature_digest)
 Проверяет активацию протокольной функции. Утверждает, что протокольная функция была активирована. Подробнее...
 
void newaccount (name creator, name name, ignore< authority > owner, ignore< authority > active)
 
void updateauth (ignore< name > account, ignore< name > permission, ignore< name > parent, ignore< authority > auth)
 
void deleteauth (ignore< name > account, ignore< name > permission)
 
void linkauth (ignore< name > account, ignore< name > code, ignore< name > type, ignore< name > requirement)
 
void unlinkauth (ignore< name > account, ignore< name > code, ignore< name > type)
 
void canceldelay (ignore< permission_level > canceling_auth, ignore< checksum256 > trx_id)
 
void setcode (name account, uint8_t vmtype, uint8_t vmversion, const std::vector< char > &code)
 
void setabi (name account, const std::vector< char > &abi)
 

Подробное описание

eosio.boot is a extremely minimalistic system contract that only supports the native actions and an activate action that allows activating desired protocol features prior to deploying a system contract with more features such as eosio.bios or eosio.system.

Определения типов

◆ activate_action

using eosioboot::boot::activate_action = action_wrapper<"activate"_n, &boot::activate>

◆ canceldelay_action

using eosioboot::boot::canceldelay_action = action_wrapper<"canceldelay"_n, &boot::canceldelay>

◆ deleteauth_action

using eosioboot::boot::deleteauth_action = action_wrapper<"deleteauth"_n, &boot::deleteauth>

◆ linkauth_action

using eosioboot::boot::linkauth_action = action_wrapper<"linkauth"_n, &boot::linkauth>

◆ newaccount_action

using eosioboot::boot::newaccount_action = action_wrapper<"newaccount"_n, &boot::newaccount>

◆ reqactivated_action

using eosioboot::boot::reqactivated_action = action_wrapper<"reqactivated"_n, &boot::reqactivated>

◆ setabi_action

using eosioboot::boot::setabi_action = action_wrapper<"setabi"_n, &boot::setabi>

◆ setcode_action

using eosioboot::boot::setcode_action = action_wrapper<"setcode"_n, &boot::setcode>

◆ unlinkauth_action

using eosioboot::boot::unlinkauth_action = action_wrapper<"unlinkauth"_n, &boot::unlinkauth>

◆ updateauth_action

using eosioboot::boot::updateauth_action = action_wrapper<"updateauth"_n, &boot::updateauth>

Методы

◆ activate()

void eosioboot::boot::activate ( const eosio::checksum256 &  feature_digest)

Активирует протокольную функцию.

Activates a protocol feature.

Activates a protocol feature

Аргументы
feature_digest- hash of the protocol feature to activate.
feature_digestХеш протокольной функции для активации
Заметки
Авторизация требуется от аккаунта: eosio.boot

◆ canceldelay()

void eosioboot::boot::canceldelay ( ignore< permission_level canceling_auth,
ignore< checksum256 >  trx_id 
)
inline

Cancel delay action.

Cancels a deferred transaction.

Аргументы
canceling_auth- the permission that authorizes this action,
trx_id- the deferred transaction id to be cancelled.

◆ deleteauth()

void eosioboot::boot::deleteauth ( ignore< name >  account,
ignore< name >  permission 
)
inline

Delete authorization action.

Deletes the authorization for an account's permision.

Аргументы
account- the account for which the permission authorization is deleted,
permission- the permission name been deleted.

◆ linkauth()

void eosioboot::boot::linkauth ( ignore< name >  account,
ignore< name >  code,
ignore< name >  type,
ignore< name >  requirement 
)
inline

Link authorization action.

Assigns a specific action from a contract to a permission you have created. Five system actions can not be linked updateauth, deleteauth, linkauth, unlinkauth, and canceldelay. This is useful because when doing authorization checks, the EOSIO based blockchain starts with the action needed to be authorized (and the contract belonging to), and looks up which permission is needed to pass authorization validation. If a link is set, that permission is used for authoraization validation otherwise then active is the default, with the exception of eosio.any. eosio.any is an implicit permission which exists on every account; you can link actions to eosio.any and that will make it so linked actions are accessible to any permissions defined for the account.

Аргументы
account- the permission's owner to be linked and the payer of the RAM needed to store this link,
code- the owner of the action to be linked,
type- the action to be linked,
requirement- the permission to be linked.

◆ newaccount()

void eosioboot::boot::newaccount ( name  creator,
name  name,
ignore< authority owner,
ignore< authority active 
)
inline

These actions map one-on-one with the ones defined in Native Action Handlers section. They are present here so they can show up in the abi file and thus user can send them to this contract, but they have no specific implementation at this contract level, they will execute the implementation at the core level and nothing else. New account action

Creates a new account.

Аргументы
creator- the creator of the account
name- the name of the new account
owner- the authority for the owner permission of the new account
active- the authority for the active permission of the new account

◆ onerror()

void eosioboot::boot::onerror ( ignore< uint128_t >  sender_id,
ignore< std::vector< char > >  sent_trx 
)

On error action.

Notification of this action is delivered to the sender of a deferred transaction when an objective error occurs while executing the deferred transaction. This action is not meant to be called directly.

Аргументы
sender_id- the id for the deferred transaction chosen by the sender,
sent_trx- the deferred transaction that failed.

◆ reqactivated()

void eosioboot::boot::reqactivated ( const eosio::checksum256 &  feature_digest)

Проверяет активацию протокольной функции. Утверждает, что протокольная функция была активирована.

Asserts that a protocol feature has been activated.

Asserts that a protocol feature has been activated

Аргументы
feature_digest- hash of the protocol feature to check for activation.
feature_digestХеш протокольной функции для проверки активации

◆ setabi()

void eosioboot::boot::setabi ( name  account,
const std::vector< char > &  abi 
)
inline

Set abi for contract.

Set the abi for contract identified by account name.

Аргументы
account- the name of the account to set the abi for
abi- the abi hash represented as a vector of characters

◆ setcode()

void eosioboot::boot::setcode ( name  account,
uint8_t  vmtype,
uint8_t  vmversion,
const std::vector< char > &  code 
)
inline

Set code action.

Sets the contract code for an account.

Аргументы
account- the account for which to set the contract code.
vmtype- reserved, set it to zero.
vmversion- reserved, set it to zero.
code- the code content to be set, in the form of a blob binary..

◆ unlinkauth()

void eosioboot::boot::unlinkauth ( ignore< name >  account,
ignore< name >  code,
ignore< name >  type 
)
inline

Unlink authorization action.

It's doing the reverse of linkauth action, by unlinking the given action.

Аргументы
account- the owner of the permission to be unlinked and the receiver of the freed RAM,
code- the owner of the action to be unlinked,
type- the action to be unlinked.

◆ updateauth()

void eosioboot::boot::updateauth ( ignore< name >  account,
ignore< name >  permission,
ignore< name >  parent,
ignore< authority auth 
)
inline

Update authorization action.

Updates pemission for an account.

Аргументы
account- the account for which the permission is updated,
pemission- the permission name which is updated,
parem- the parent of the permission which is updated,
aut- the json describing the permission authorization.

Объявления и описания членов классов находятся в файлах: