Class: Libra::AccountConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/libra/account_config.rb

Constant Summary collapse

COIN_MODULE_NAME =

LibraCoin

"LibraCoin"
COIN_STRUCT_NAME =
"T"
ACCOUNT_MODULE_NAME =

Account

"LibraAccount"
ACCOUNT_STRUCT_NAME =
"T"
HASH_MODULE_NAME =

Hash

"Hash"
ACCOUNT_RESOURCE_PATH =

/// Return the path to the Account resource. It can be used to create an AccessPath for an /// Account resource. pub fn account_resource_path() -> Vec<u8> {

AccessPath::resource_access_vec(
    &StructTag {
        address: core_code_address(),
        module: ACCOUNT_MODULE_NAME.to_string(),
        name: ACCOUNT_STRUCT_NAME.to_string(),
        type_params: vec![],
    },
    &Accesses::empty(),
)

}

[1, 33, 125, 166, 198, 179, 225, 159, 24, 37, 207, 178, 103, 109, 174, 204, 227, 191, 61, 224, 60, 242, 102, 71, 199, 141, 240, 11, 55, 27, 37, 204, 151]

Class Method Summary collapse

Class Method Details

.account_received_event_pathObject



47
48
49
50
# File 'lib/libra/account_config.rb', line 47

def self.
	path = ACCOUNT_RESOURCE_PATH + "/received_events_count/".bytes
	path.pack('C*')
end

.account_sent_event_pathObject



42
43
44
45
# File 'lib/libra/account_config.rb', line 42

def self.
	path = ACCOUNT_RESOURCE_PATH + "/sent_events_count/".bytes
	path.pack('C*')
end

.association_addressObject



52
53
54
# File 'lib/libra/account_config.rb', line 52

def self.association_address
	AccountAddress.new("000000000000000000000000000000000000000000000000000000000a550c18")
end