struct arisen::action

Public Attributes

Type

Name

name

account

name

name

std::vector< permission_level >

authorization

std::vector< char >

data

Public Functions

Type

Name

action () = default

action (const permission_level & auth, struct name a, struct name n, T && value)

action (std::vector< permission_level > auths, struct name a, struct name n, T && value)

void

send () const

void

send_context_free () const

T

data_as ()

Detailed Description

This is the packed representation of an action along with meta-data about the authorization levels.

Public Attributes Documentation

variable account

name arisen::action::account;

variable name

name arisen::action::name;

variable authorization

std::vector<permission_level> arisen::action::authorization;

variable data

std::vector<char> arisen::action::data;

Public Functions Documentation

function action (1/3)

arisen::action::action() = default

function action (2/3)

template<typename T>
arisen::action::action(
    const permission_level & auth,
    struct name a,
    struct name n,
    T && value
)

Construct a new action object with the given permission, action receiver, action name, action struct

Template parameters:

T - Type of action struct, must be serializable by pack(...)
Parameters:

auth - The permissions that authorizes this action
a - The name of the account this action is intended for (action receiver)
n - The name of the action
value - The action struct that will be serialized via pack into data

function action (3/3)

template<typename T>
arisen::action::action(
    std::vector< permission_level > auths,
    struct name a,
    struct name n,
    T && value
)

Construct a new action object with the given list of permissions, action receiver, action name, action struct

Template parameters:

T - Type of action struct, must be serializable by pack(...)
Parameters:

auths - The list of permissions that authorize this action
a - The name of the account this action is intended for (action receiver)
n - The name of the action
value - The action struct that will be serialized via pack into data

function send

void arisen::action::send() const

function send_context_free

void arisen:action::send_context_free() const

Precondition:

This action should not contain any authorizations

function data_as

template<typename T>
T arisen::action::data_as()

Retrieve the unpacked data as T

Template parameters:

T expected type of data
Returns:

the action data

The documentation for this class was generated from the following file: libraries/arisenlib/contracts/aisen/action.hpp