COOPENOMICS
v1
Кооперативная Экономика
|
#include <eosio.boot.hpp>
Открытые типы | |
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.
using eosioboot::boot::activate_action = action_wrapper<"activate"_n, &boot::activate> |
using eosioboot::boot::canceldelay_action = action_wrapper<"canceldelay"_n, &boot::canceldelay> |
using eosioboot::boot::deleteauth_action = action_wrapper<"deleteauth"_n, &boot::deleteauth> |
using eosioboot::boot::linkauth_action = action_wrapper<"linkauth"_n, &boot::linkauth> |
using eosioboot::boot::newaccount_action = action_wrapper<"newaccount"_n, &boot::newaccount> |
using eosioboot::boot::reqactivated_action = action_wrapper<"reqactivated"_n, &boot::reqactivated> |
using eosioboot::boot::setabi_action = action_wrapper<"setabi"_n, &boot::setabi> |
using eosioboot::boot::setcode_action = action_wrapper<"setcode"_n, &boot::setcode> |
using eosioboot::boot::unlinkauth_action = action_wrapper<"unlinkauth"_n, &boot::unlinkauth> |
using eosioboot::boot::updateauth_action = action_wrapper<"updateauth"_n, &boot::updateauth> |
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
|
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. |
|
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. |
|
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. |
|
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 |
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. |
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 | Хеш протокольной функции для проверки активации |
|
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 |
|
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.. |
|
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. |
|
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. |