Skip to content

Latest commit

 

History

History
230 lines (99 loc) · 6.63 KB

core_addresses.md

File metadata and controls

230 lines (99 loc) · 6.63 KB

Module 0x3::core_addresses

Constants

The address/account did not correspond to the association address

The address is not framework reserved address

The address/account did not correspond to the genesis address

const ErrorNotGenesisAddress: u64 = 1;

The address/account did not correspond to the core framework address

The operation can only be performed by the VM

const ErrorNotVM: u64 = 3;

Function assert_rooch_genesis

Function assert_rooch_genesis_address

public fun assert_rooch_genesis_address(addr: address)

Function is_rooch_genesis_address

public fun is_rooch_genesis_address(addr: address): bool

Function assert_rooch_framework

Function assert_framework_reserved_address

Function assert_framework_reserved

public fun assert_framework_reserved(addr: address)

Function is_framework_reserved_address

Return true if addr is 0x0 or under the on chain governance's control.

public fun is_framework_reserved_address(addr: address): bool

Function is_rooch_framework_address

Return true if addr is 0x3.

public fun is_rooch_framework_address(addr: address): bool

Function assert_vm

Assert that the signer has the VM reserved address.

public fun assert_vm(account: &signer)

Function is_vm

Return true if addr is a reserved address for the VM to call system modules.

public fun is_vm(account: &signer): bool

Function is_vm_address

Return true if addr is a reserved address for the VM to call system modules.

public fun is_vm_address(addr: address): bool

Function is_reserved_address

Return true if addr is either the VM address or an Rooch Framework address.

public fun is_reserved_address(addr: address): bool

Function genesis_address

The address of the genesis

public fun genesis_address(): address