[][src]Module solana_libra_types::account_config

Structs

AccountEvent

Generic struct that represents an Account event. Both SentPaymentEvent and ReceivedPaymentEvent are representable with this struct. They have an AccountAddress for the sender or receiver and the amount transferred.

AccountResource

A Rust representation of an Account resource. This is not how the Account is represented in the VM but it's a convenient representation.

Constants

ACCOUNT_MODULE_NAME
ACCOUNT_STRUCT_NAME
COIN_MODULE_NAME

An account object. This is the top-level entry in global storage. We'll never need to create an Account struct, but if we did, it would look something like pub struct Account { // Address holding this account address: Address, // Struct types defined by this account code: HashMap<Name, Code>, // Resurces owned by this account resoruces: HashMap<ObjectName, StructInstance>, }

COIN_STRUCT_NAME
HASH_MODULE_NAME

Functions

account_received_event_path

Return the path to the received event counter for an Account resource. It can be used to query the event DB for the given event.

account_resource_path

Return the path to the Account resource. It can be used to create an AccessPath for an Account resource.

account_sent_event_path

Return the path to the sent event counter for an Account resource. It can be used to query the event DB for the given event.

account_struct_tag
association_address
coin_struct_tag
core_code_address
get_account_resource_or_default