Trait oasis_runtime_sdk::modules::rofl::Config
source · pub trait Config: 'static {
const GAS_COST_CALL_CREATE: u64 = 100_000u64;
const GAS_COST_CALL_UPDATE: u64 = 100_000u64;
const GAS_COST_CALL_REMOVE: u64 = 10_000u64;
const GAS_COST_CALL_REGISTER: u64 = 100_000u64;
const GAS_COST_CALL_IS_AUTHORIZED_ORIGIN: u64 = 1_000u64;
const GAS_COST_CALL_AUTHORIZED_ORIGIN_NODE: u64 = 2_000u64;
const GAS_COST_CALL_AUTHORIZED_ORIGIN_ENTITY: u64 = 2_000u64;
const GAS_COST_CALL_STAKE_THRESHOLDS: u64 = 10u64;
const GAS_COST_CALL_DERIVE_KEY: u64 = 10_000u64;
const STAKE_APP_CREATE: BaseUnits = _;
const DERIVE_KEY_MAX_KEY_ID_LENGTH: usize = 128usize;
}
Expand description
Module configuration.
Provided Associated Constants§
sourceconst GAS_COST_CALL_CREATE: u64 = 100_000u64
const GAS_COST_CALL_CREATE: u64 = 100_000u64
Gas cost of rofl.Create call.
sourceconst GAS_COST_CALL_UPDATE: u64 = 100_000u64
const GAS_COST_CALL_UPDATE: u64 = 100_000u64
Gas cost of rofl.Update call.
sourceconst GAS_COST_CALL_REMOVE: u64 = 10_000u64
const GAS_COST_CALL_REMOVE: u64 = 10_000u64
Gas cost of rofl.Remove call.
sourceconst GAS_COST_CALL_REGISTER: u64 = 100_000u64
const GAS_COST_CALL_REGISTER: u64 = 100_000u64
Gas cost of rofl.Register call.
sourceconst GAS_COST_CALL_IS_AUTHORIZED_ORIGIN: u64 = 1_000u64
const GAS_COST_CALL_IS_AUTHORIZED_ORIGIN: u64 = 1_000u64
Gas cost of rofl.IsAuthorizedOrigin call.
sourceconst GAS_COST_CALL_AUTHORIZED_ORIGIN_NODE: u64 = 2_000u64
const GAS_COST_CALL_AUTHORIZED_ORIGIN_NODE: u64 = 2_000u64
Gas cost of rofl.AuthorizedOriginNode call.
sourceconst GAS_COST_CALL_AUTHORIZED_ORIGIN_ENTITY: u64 = 2_000u64
const GAS_COST_CALL_AUTHORIZED_ORIGIN_ENTITY: u64 = 2_000u64
Gas cost of rofl.AuthorizedOriginEntity call.
sourceconst GAS_COST_CALL_STAKE_THRESHOLDS: u64 = 10u64
const GAS_COST_CALL_STAKE_THRESHOLDS: u64 = 10u64
Gas cost of rofl.StakeThresholds call.
sourceconst GAS_COST_CALL_DERIVE_KEY: u64 = 10_000u64
const GAS_COST_CALL_DERIVE_KEY: u64 = 10_000u64
Gas cost of rofl.DeriveKey call.
sourceconst STAKE_APP_CREATE: BaseUnits = _
const STAKE_APP_CREATE: BaseUnits = _
Amount of stake required for maintaining an application.
The stake is held in escrow and is returned to the administrator when the application is removed.
sourceconst DERIVE_KEY_MAX_KEY_ID_LENGTH: usize = 128usize
const DERIVE_KEY_MAX_KEY_ID_LENGTH: usize = 128usize
Maximum key identifier length for rofl.DeriveKey call.
Object Safety§
This trait is not object safe.