- Resource
OnchainConfig
- Resource
ConfigUpdateCap
- Constants
- Function
genesis_init
- Function
admin
- Function
ensure_admin
- Function
sequencer
- Function
rooch_dao
- Function
update_framework_version
- Function
framework_version
- Function
onchain_config
- Function
add_to_publishing_allowlist
- Function
remove_from_publishing_allowlist
- Function
change_feature_flags
use 0x2::features;
use 0x2::module_store;
use 0x2::object;
use 0x2::signer;
use 0x3::chain_id;
OnchainConfig is framework configurations stored on chain.
struct OnchainConfig has key
ConfigUpdateCap is the capability for admin operations, such as update onchain configurations.
struct ConfigUpdateCap has store, key
const ErrorNotAdmin: u64 = 1;
public(friend) fun genesis_init(genesis_account: &signer, sequencer: address, rooch_dao: address)
public fun admin(): address
public fun ensure_admin(account: &signer)
public fun sequencer(): address
public fun rooch_dao(): address
public(friend) fun update_framework_version()
public fun framework_version(): u64
public fun onchain_config(): &onchain_config::OnchainConfig
When module_publishing_allowlist_feature is enabled, only packed_id in allowlist can be published.
Add package_id
to publishing allowlist.
public entry fun add_to_publishing_allowlist(account: &signer, package_id: address)
Remove package_id
from publishing allowlist.
public entry fun remove_from_publishing_allowlist(account: &signer, package_id: address)
Enable or disable features. You can find all feature flags in moveos_std::features.
public entry fun change_feature_flags(account: &signer, enable: vector<u64>, disable: vector<u64>)