Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysioboot::boot Class Reference

#include <sysio.boot.hpp>

Inheritance diagram for sysioboot::boot:
Collaboration diagram for sysioboot::boot:

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)
 

Detailed Description

Definition at line 87 of file sysio.boot.hpp.

Member Typedef Documentation

◆ activate_action

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

Definition at line 256 of file sysio.boot.hpp.

◆ canceldelay_action

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

Definition at line 253 of file sysio.boot.hpp.

◆ deleteauth_action

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

Definition at line 250 of file sysio.boot.hpp.

◆ linkauth_action

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

Definition at line 251 of file sysio.boot.hpp.

◆ newaccount_action

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

Definition at line 248 of file sysio.boot.hpp.

◆ reqactivated_action

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

Definition at line 257 of file sysio.boot.hpp.

◆ setabi_action

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

Definition at line 255 of file sysio.boot.hpp.

◆ setcode_action

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

Definition at line 254 of file sysio.boot.hpp.

◆ unlinkauth_action

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

Definition at line 252 of file sysio.boot.hpp.

◆ updateauth_action

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

Definition at line 249 of file sysio.boot.hpp.

Member Function Documentation

◆ activate()

void sysioboot::boot::activate ( const sysio::checksum256 & feature_digest)

Activates a protocol feature.

Activates a protocol feature

Parameters
feature_digest- hash of the protocol feature to activate.

Definition at line 10 of file sysio.boot.cpp.

10 {
11 require_auth( get_self() );
12 sysio::preactivate_feature( feature_digest );
13}

◆ canceldelay()

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

Cancel delay action.

Cancels a deferred transaction.

Parameters
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.

187{}

◆ deleteauth()

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

Delete authorization action.

Deletes the authorization for an account's permision.

Parameters
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.

139 {}

◆ linkauth()

void sysioboot::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 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.

Parameters
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.

162 {}

◆ newaccount()

void sysioboot::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.

Parameters
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.

112 {}

◆ onerror()

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.

Parameters
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.

6 {
7 check( false, "the onerror action cannot be called directly" );
8}

◆ reqactivated()

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

Parameters
feature_digest- hash of the protocol feature to check for activation.

Definition at line 15 of file sysio.boot.cpp.

15 {
16 check( sysio::is_feature_activated( feature_digest ), "protocol feature is not activated" );
17}

◆ setabi()

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

Set abi for contract.

Set the abi for contract identified by account name.

Parameters
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.

211{}

◆ setcode()

void sysioboot::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.

Parameters
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.

200{}

◆ unlinkauth()

void sysioboot::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.

Parameters
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.

176 {}

◆ updateauth()

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

Update authorization action.

Updates pemission for an account.

Parameters
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.

127 {}

The documentation for this class was generated from the following files: