Skip to content

Latest commit

 

History

History
139 lines (61 loc) · 3.95 KB

core_addresses.md

File metadata and controls

139 lines (61 loc) · 3.95 KB

Module 0x2::core_addresses

Constants

The address is not rooch reserved address

The operation can only be performed by the VM

const ErrorNotVM: u64 = 1;

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 assert_system_reserved

Function assert_system_reserved_address

public fun assert_system_reserved_address(addr: address)

Function is_system_reserved_address

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

public fun is_system_reserved_address(addr: address): bool

Function is_reserved_address

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

public fun is_reserved_address(addr: address): bool

Function list_system_reserved_addresses

List all the on chain governance's reserved addresses.

public fun list_system_reserved_addresses(): vector<address>