- Constants
- Function
assert_vm
- Function
is_vm
- Function
is_vm_address
- Function
assert_system_reserved
- Function
assert_system_reserved_address
- Function
is_system_reserved_address
- Function
is_reserved_address
- Function
list_system_reserved_addresses
use 0x1::signer;
The address is not rooch reserved address
const ErrorNotSystemReservedAddress: u64 = 2;
The operation can only be performed by the VM
const ErrorNotVM: u64 = 1;
Assert that the signer has the VM reserved address.
Return true if addr
is a reserved address for the VM to call system modules.
Return true if addr
is a reserved address for the VM to call system modules.
public fun is_vm_address(addr: address): bool
public fun assert_system_reserved(account: &signer)
public fun assert_system_reserved_address(addr: address)
Return true if addr
is 0x0 or under the on chain governance's control.
public fun is_system_reserved_address(addr: address): bool
Return true if addr
is either the VM address or an Rooch system address.
public fun is_reserved_address(addr: address): bool
List all the on chain governance's reserved addresses.
public fun list_system_reserved_addresses(): vector<address>