Wire Sysio Wire Sysion 1.0.0
|
#include <sysio.boot.hpp>
Public Types | |
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> |
Public Member Functions | |
void | onerror (ignore< uint128_t > sender_id, ignore< std::vector< char > > sent_trx) |
void | activate (const sysio::checksum256 &feature_digest) |
void | reqactivated (const sysio::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) |
Definition at line 87 of file sysio.boot.hpp.
using sysioboot::boot::activate_action = action_wrapper<"activate"_n, &boot::activate> |
Definition at line 256 of file sysio.boot.hpp.
using sysioboot::boot::canceldelay_action = action_wrapper<"canceldelay"_n, &boot::canceldelay> |
Definition at line 253 of file sysio.boot.hpp.
using sysioboot::boot::deleteauth_action = action_wrapper<"deleteauth"_n, &boot::deleteauth> |
Definition at line 250 of file sysio.boot.hpp.
using sysioboot::boot::linkauth_action = action_wrapper<"linkauth"_n, &boot::linkauth> |
Definition at line 251 of file sysio.boot.hpp.
using sysioboot::boot::newaccount_action = action_wrapper<"newaccount"_n, &boot::newaccount> |
Definition at line 248 of file sysio.boot.hpp.
using sysioboot::boot::reqactivated_action = action_wrapper<"reqactivated"_n, &boot::reqactivated> |
Definition at line 257 of file sysio.boot.hpp.
using sysioboot::boot::setabi_action = action_wrapper<"setabi"_n, &boot::setabi> |
Definition at line 255 of file sysio.boot.hpp.
using sysioboot::boot::setcode_action = action_wrapper<"setcode"_n, &boot::setcode> |
Definition at line 254 of file sysio.boot.hpp.
using sysioboot::boot::unlinkauth_action = action_wrapper<"unlinkauth"_n, &boot::unlinkauth> |
Definition at line 252 of file sysio.boot.hpp.
using sysioboot::boot::updateauth_action = action_wrapper<"updateauth"_n, &boot::updateauth> |
Definition at line 249 of file sysio.boot.hpp.
void sysioboot::boot::activate | ( | const sysio::checksum256 & | feature_digest | ) |
Activates a protocol feature.
Activates a protocol feature
feature_digest | - hash of the protocol feature to activate. |
Definition at line 10 of file sysio.boot.cpp.
|
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. |
Definition at line 187 of file sysio.boot.hpp.
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. |
Definition at line 138 of file sysio.boot.hpp.
|
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 sysio.any
. sysio.any
is an implicit permission which exists on every account; you can link actions to sysio.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. |
Definition at line 159 of file sysio.boot.hpp.
|
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 |
Definition at line 109 of file sysio.boot.hpp.
void sysioboot::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. |
Definition at line 6 of file sysio.boot.cpp.
void sysioboot::boot::reqactivated | ( | const sysio::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. |
Definition at line 15 of file sysio.boot.cpp.
|
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 |
Definition at line 211 of file sysio.boot.hpp.
|
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.. |
Definition at line 200 of file sysio.boot.hpp.
|
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. |
Definition at line 174 of file sysio.boot.hpp.
|
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. |
Definition at line 124 of file sysio.boot.hpp.