Skip to content

Latest commit

 

History

History
204 lines (85 loc) · 5.48 KB

tx_meta.md

File metadata and controls

204 lines (85 loc) · 5.48 KB

Module 0x2::tx_meta

Struct TxMeta

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

Struct FunctionCallMeta

The FunctionCall Meta data

struct FunctionCallMeta has copy, drop, store

Constants

const MoveActionFunctionType: u8 = 1;

const MoveActionScriptType: u8 = 0;

Function move_action_script_type

public fun move_action_script_type(): u8

Function move_action_function_type

public fun move_action_function_type(): u8

Function move_action_module_bundle_type

Function action_type

public fun action_type(self: &tx_meta::TxMeta): u8

Function is_script_call

public fun is_script_call(self: &tx_meta::TxMeta): bool

Function is_function_call

public fun is_function_call(self: &tx_meta::TxMeta): bool

Function is_module_publish

public fun is_module_publish(self: &tx_meta::TxMeta): bool

Function function_meta

Function function_meta_module_address

public fun function_meta_module_address(function_meta: &tx_meta::FunctionCallMeta): &address

Function function_meta_module_name

Function function_meta_function_name