Trait Config

Source
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§

Source

const GAS_COST_CALL_CREATE: u64 = 100_000u64

Gas cost of rofl.Create call.

Source

const GAS_COST_CALL_UPDATE: u64 = 100_000u64

Gas cost of rofl.Update call.

Source

const GAS_COST_CALL_REMOVE: u64 = 10_000u64

Gas cost of rofl.Remove call.

Source

const GAS_COST_CALL_REGISTER: u64 = 100_000u64

Gas cost of rofl.Register call.

Source

const GAS_COST_CALL_IS_AUTHORIZED_ORIGIN: u64 = 1_000u64

Gas cost of rofl.IsAuthorizedOrigin call.

Source

const GAS_COST_CALL_AUTHORIZED_ORIGIN_NODE: u64 = 2_000u64

Gas cost of rofl.AuthorizedOriginNode call.

Source

const GAS_COST_CALL_AUTHORIZED_ORIGIN_ENTITY: u64 = 2_000u64

Gas cost of rofl.AuthorizedOriginEntity call.

Source

const GAS_COST_CALL_STAKE_THRESHOLDS: u64 = 10u64

Gas cost of rofl.StakeThresholds call.

Source

const GAS_COST_CALL_DERIVE_KEY: u64 = 10_000u64

Gas cost of rofl.DeriveKey call.

Source

const MAX_METADATA_PAIRS: usize = 64usize

Maximum number of metadata key-value pairs.

Source

const MAX_METADATA_KEY_SIZE: usize = 1_024usize

Maximum metadata key size.

Source

const MAX_METADATA_VALUE_SIZE: usize = 16_384usize

Maximum metadata value size.

Source

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.

Source

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.

Implementors§