- Struct
TxMeta
- Struct
FunctionCallMeta
- Constants
- Function
move_action_script_type
- Function
move_action_function_type
- Function
move_action_module_bundle_type
- Function
action_type
- Function
is_script_call
- Function
is_function_call
- Function
is_module_publish
- Function
function_meta
- Function
function_meta_module_address
- Function
function_meta_module_name
- Function
function_meta_function_name
use 0x1::option;
use 0x1::string;
The transaction Meta data We can not define MoveAction in Move, so we define a simple meta data struct to represent it
struct TxMeta has copy, drop, store
The FunctionCall Meta data
struct FunctionCallMeta has copy, drop, store
const MoveActionFunctionType: u8 = 1;
const MoveActionModuleBundleType: u8 = 2;
const MoveActionScriptType: u8 = 0;
public fun move_action_script_type(): u8
public fun move_action_function_type(): u8
public fun move_action_module_bundle_type(): u8
public fun action_type(self: &tx_meta::TxMeta): u8
public fun is_script_call(self: &tx_meta::TxMeta): bool
public fun is_function_call(self: &tx_meta::TxMeta): bool
public fun is_module_publish(self: &tx_meta::TxMeta): bool
public fun function_meta(self: &tx_meta::TxMeta): option::Option<tx_meta::FunctionCallMeta>
public fun function_meta_module_address(function_meta: &tx_meta::FunctionCallMeta): &address
public fun function_meta_module_name(function_meta: &tx_meta::FunctionCallMeta): &string::String
public fun function_meta_function_name(function_meta: &tx_meta::FunctionCallMeta): &string::String