pub trait Config: 'static {
Show 14 associated constants and 0 method
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 MAX_METADATA_PAIRS: usize = 64usize;
const MAX_METADATA_KEY_SIZE: usize = 1_024usize;
const MAX_METADATA_VALUE_SIZE: usize = 16_384usize;
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 MAX_METADATA_PAIRS: usize = 64usize
const MAX_METADATA_PAIRS: usize = 64usize
Maximum number of metadata key-value pairs.
Sourceconst MAX_METADATA_KEY_SIZE: usize = 1_024usize
const MAX_METADATA_KEY_SIZE: usize = 1_024usize
Maximum metadata key size.
Sourceconst MAX_METADATA_VALUE_SIZE: usize = 16_384usize
const MAX_METADATA_VALUE_SIZE: usize = 16_384usize
Maximum metadata value size.
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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.