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§

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 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.

Object Safety§

This trait is not object safe.

Implementors§