- Constants
- Function
assert_rooch_genesis
- Function
assert_rooch_genesis_address
- Function
is_rooch_genesis_address
- Function
assert_rooch_framework
- Function
assert_framework_reserved_address
- Function
assert_framework_reserved
- Function
is_framework_reserved_address
- Function
is_rooch_framework_address
- Function
assert_vm
- Function
is_vm
- Function
is_vm_address
- Function
is_reserved_address
- Function
genesis_address
use 0x1::signer;
The address/account did not correspond to the association address
const ErrorNotAssociationAddress: u64 = 2;
The address is not framework reserved address
const ErrorNotFrameworkReservedAddress: u64 = 5;
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
const ErrorNotRoochFrameworkAddress: u64 = 4;
The operation can only be performed by the VM
const ErrorNotVM: u64 = 3;
public fun assert_rooch_genesis(account: &signer)
public fun assert_rooch_genesis_address(addr: address)
public fun is_rooch_genesis_address(addr: address): bool
public fun assert_rooch_framework(account: &signer)
public fun assert_framework_reserved_address(account: &signer)
public fun assert_framework_reserved(addr: address)
Return true if addr
is 0x0 or under the on chain governance's control.
public fun is_framework_reserved_address(addr: address): bool
Return true if addr
is 0x3.
public fun is_rooch_framework_address(addr: address): bool
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
Return true if addr
is either the VM address or an Rooch Framework address.
public fun is_reserved_address(addr: address): bool
The address of the genesis
public fun genesis_address(): address