file action.hpp

Go to the source code of this file.

Classes

Type Name
struct eosio::permission_level
struct eosio::action
struct eosio::action_wrapper
struct eosio::variant_action_wrapper
struct eosio::inline_dispatcher
struct eosio::inline_dispatcher< void(T::*)(Args...), Name >
Type Name
INLINE_ACTION_SENDER3
INLINE_ACTION_SENDER2
INLINE_ACTION_SENDER
SEND_INLINE_ACTION
A macro to simplify calling inline actions.

Detailed Description

Copyright

defined in eos/LICENSE

Defines Documentation

define INLINE_ACTION_SENDER3

define INLINE_ACTION_SENDER3;

define INLINE_ACTION_SENDER2

define INLINE_ACTION_SENDER2;

define INLINE_ACTION_SENDER

define INLINE_ACTION_SENDER;

define SEND_INLINE_ACTION

define SEND_INLINE_ACTION;

A macro to simplify calling inline actions.

Send an inline-action from inside a contract. The send inline action macro is intended to simplify the process of calling inline actions. When calling new actions from existing actions EOSIO supports two communication models, inline and deferred. Inline actions are executed as part of the current transaction. This macro creates an Action using the supplied parameters and automatically calls action.send() on this newly created action. Example:

SEND_INLINE_ACTION( *this, transfer, {st.issuer,N(active)}, {st.issuer, to, quantity, memo} );

The example above is taken from eosio.token. This example: uses the passed in, dereferenced this pointer, to call this.get_self() i.e. the eosio.token contract; calls the eosio.token::transfer() action; uses the active permission of the "issuer" account; uses parameters st.issuer, to, quantity and memo. This macro creates an action struct used to 'send()' (call) transfer(account_name from, account_name to, asset quantity, string memo)

Parameters:

  • CONTRACT - The contract to call, which contains the action being sent, maps to the account
  • NAME - The name of the action to be called, maps to a Name
  • ... - The authorising permission, maps to an authorization , followed by the parameters of the action, maps to a data.

The documentation for this class was generated from the following file: in/eosio.cdt/libraries/eosiolib/contracts/eosio/action.hpp

results matching ""

    No results matching ""