Defines type-safe C++ wrappers for querying action and sending action. More...

Classes

Type

Name

struct

arisen:permission_level

struct

arisen::action

Functions

Detailed Description

There are some methods from the Action that can be used directly from C++

Functions Documentation

function unpack_action_data

template<typename T>
T arisen::unpack_action_data()

Returns:

Unpacked action data casted as T.

Example:

struct dummy_action {
  char a; //1
  unsigned long long b; //8
  int  c; //4

  EOSLIB_SERIALIZE( dummy_action, (a)(b)(c) )
};
dummy_action msg = unpack_action_data<dummy_action>();

function require_recipient

void arisen::require_recipient(
    name notify_account
)

Add the specified account to set of accounts to be notified.

Add the specified account to set of accounts to be notified

Parameters:

function require_recipient

template<typename... accounts>
void arisen::require_recipient(
    name notify_account,
    accounts... remaining_accounts
)

All of the listed accounts will be added to the set of accounts to be notified This helper method enables you to add multiple accounts to accounts to be notified list with a single call rather than having to call the similar C API multiple times.

Parameters:

notify_account account to be notified
remaining_accounts accounts to be notified

function require_auth

void arisen::require_auth(
    name n
)

Verifies that Name exists in the set of provided auths on a action. Fails if not found.

Parameters:

  • name - name of the account to be verified

function publication_time

time_point arisen:publication_time()

Returns the time in microseconds from 1970 of the publication_time

Returns:

the time in microseconds from 1970 of the publication_time

Parameters:

msg - a pointer where up to length bytes of the current action data will be copied
len - len of the current action data to be copied, 0 to report required size

Returns:
the number of bytes copied to msg, or number of bytes that can be copied if len==0 passed

function require_auth

void arisen
::require_auth(
    const permission_level & level
)

function has_auth

bool arisen::has_auth(
    name n
)

function is_account

bool arisen::is_account(
    name n
)