Packed representation of an action.
This is the packed representation of an action along with meta-data about the authorization levels.
Summary
Members | Descriptions |
---|---|
public account_name account | Name of the account the action is intended for. |
public action_name name | Name of the action. |
public vector< permission_level > authorization | List of permissions that authorize this action. |
public bytes data | Payload data. |
public action () = default | Construct a new action object. |
public template<> inline action (vector< permission_level > && auth,const Action & value) | Construct a new action object with the given permission and action struct. |
public template<> inline action (const permission_level & auth,const Action & value) | Construct a new action object with the given list of permissions and action struct. |
public template<> inline action (const Action & value) | Construct a new action object with the given action struct. |
public template<> inline action (const permission_level & auth, account_name a, action_name n,T && value) | Construct a new action object with the given permission, action receiver, action name, action struct. |
public template<> inline action (vector< permission_level > auths, account_name a, action_name n,T && value) | Construct a new action object with the given list of permissions, action receiver, action name, action struct. |
public inline EOSLIB_SERIALIZE ( action ,( `account)(name)(authorization)(data`)) const | Send the action as inline action. |
public inline void send_context_free () const | Send the action as inline context free action. |
public template<> inline T data_as () | Retrieve the unpacked data as T. |
Members
Name of the account the action is intended for.
Name of the account the action is intended for
Name of the action.
Name of the action
List of permissions that authorize this action.
List of permissions that authorize this action
Payload data.
Payload data
Construct a new action object.
Default Constructor
Construct a new action object with the given permission and action struct.
Construct a new action object with the given permission and action struct
Parameters
Action
- Type of action struct
Parameters
-
auth
- The permission that authorizes this action -
value
- The action struct that will be serialized via pack into data
Construct a new action object with the given list of permissions and action struct.
Construct a new action object with the given list of permissions and action struct
Parameters
Action
- Type of action struct
Parameters
-
auth
- The list of permissions that authorizes this action -
value
- The action struct that will be serialized via pack into data
Construct a new action object with the given action struct.
Construct a new action object with the given action struct
Parameters
Action
- Type of action struct
Parameters
value
- The action struct that will be serialized via pack into data
public template<>
inline
action
(const
permission_level
& auth,
account_name
a,
action_name
n,T && value)
public template<>
inline
action
(const
permission_level
& auth,
account_name
a,
action_name
n,T && value)
Construct a new action object with the given permission, action receiver, action name, action struct.
Construct a new action object with the given action struct
Parameters
T
- Type of action struct
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
public template<>
inline
action
(vector<
permission_level
> auths,
account_name
a,
action_name
n,T && value)
public template<>
inline
action
(vector<
permission_level
> auths,
account_name
a,
action_name
n,T && value)
Construct a new action object with the given list of permissions, action receiver, action name, action struct.
Construct a new action object with the given action struct
Parameters
T
- Type of action struct
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
Send the action as inline action.
Send the action as inline action
Send the action as inline context free action.
Send the action as inline context free action
Precondition
This action should not contain any authorizations
Retrieve the unpacked data as T.
Retrieve the unpacked data as T
Parameters
T
expected type of data
Returns
the action data
Base class to derive a new defined action from.
Base class to derive a new defined action from so it can take advantage of the dispatcher
Parameters
-
Account
- The account this action is intended for -
Name
- The name of the action