pub trait Config: 'static {
    const DEFAULT_LOCAL_MIN_GAS_PRICE: Lazy<BTreeMap<Denomination, u128>> = _;
    const DEFAULT_LOCAL_ESTIMATE_GAS_SEARCH_MAX_ITERS: u64 = 0u64;
    const ESTIMATE_GAS_EXTRA_FAIL: Lazy<BTreeMap<&'static str, u64>> = _;
    const MIN_GAS_PRICE_EXEMPT_METHODS: Lazy<BTreeSet<&'static str>> = _;
    const EMIT_GAS_USED_EVENTS: bool = true;
    const ALLOW_INTERACTIVE_READ_ONLY_TRANSACTIONS: bool = false;
}
Expand description

Module configuration.

Provided Associated Constants§

source

const DEFAULT_LOCAL_MIN_GAS_PRICE: Lazy<BTreeMap<Denomination, u128>> = _

Default local minimum gas price configuration that is used in case no overrides are set in local per-node configuration.

source

const DEFAULT_LOCAL_ESTIMATE_GAS_SEARCH_MAX_ITERS: u64 = 0u64

Default local estimate gas max search iterations configuration that is used in case no overrides are set in the local per-node configuration.

source

const ESTIMATE_GAS_EXTRA_FAIL: Lazy<BTreeMap<&'static str, u64>> = _

Estimated gas amount to be added to failed transaction simulations for selected methods.

source

const MIN_GAS_PRICE_EXEMPT_METHODS: Lazy<BTreeSet<&'static str>> = _

Methods which are exempt from minimum gas price requirements.

source

const EMIT_GAS_USED_EVENTS: bool = true

Whether gas used events should be emitted for every transaction.

Confidential runtimes may want to disable this as it is a possible side channel.

source

const ALLOW_INTERACTIVE_READ_ONLY_TRANSACTIONS: bool = false

Whether to allow submission of read-only transactions in an interactive way.

Note that execution of such transactions is allowed to access confidential state.

Object Safety§

This trait is not object safe.

Implementors§