[][src]Struct near_runtime_fees::ExtCostsConfig

pub struct ExtCostsConfig {
    pub input_base: Gas,
    pub input_per_byte: Gas,
    pub storage_read_base: Gas,
    pub storage_read_key_byte: Gas,
    pub storage_read_value_byte: Gas,
    pub storage_write_base: Gas,
    pub storage_write_key_byte: Gas,
    pub storage_write_value_byte: Gas,
    pub storage_has_key_base: Gas,
    pub storage_has_key_byte: Gas,
    pub storage_remove_base: Gas,
    pub storage_remove_key_byte: Gas,
    pub storage_remove_ret_value_byte: Gas,
    pub storage_iter_create_prefix_base: Gas,
    pub storage_iter_create_range_base: Gas,
    pub storage_iter_create_key_byte: Gas,
    pub storage_iter_next_base: Gas,
    pub storage_iter_next_key_byte: Gas,
    pub storage_iter_next_value_byte: Gas,
    pub read_register_base: Gas,
    pub read_register_byte: Gas,
    pub write_register_base: Gas,
    pub write_register_byte: Gas,
    pub read_memory_base: Gas,
    pub read_memory_byte: Gas,
    pub write_memory_base: Gas,
    pub write_memory_byte: Gas,
    pub account_balance: Gas,
    pub prepaid_gas: Gas,
    pub used_gas: Gas,
    pub random_seed_base: Gas,
    pub random_seed_per_byte: Gas,
    pub sha256: Gas,
    pub sha256_byte: Gas,
    pub attached_deposit: Gas,
    pub storage_usage: Gas,
    pub block_index: Gas,
    pub block_timestamp: Gas,
    pub current_account_id: Gas,
    pub current_account_id_byte: Gas,
    pub signer_account_id: Gas,
    pub signer_account_id_byte: Gas,
    pub signer_account_pk: Gas,
    pub signer_account_pk_byte: Gas,
    pub predecessor_account_id: Gas,
    pub predecessor_account_id_byte: Gas,
    pub promise_and_base: Gas,
    pub promise_and_per_promise: Gas,
    pub promise_result_base: Gas,
    pub promise_result_byte: Gas,
    pub promise_results_count: Gas,
    pub promise_return: Gas,
    pub log_base: Gas,
    pub log_per_byte: Gas,
}

Fields

input_base: Gas

Pay for reading contract input base

input_per_byte: Gas

Pay for reading contract input per byte

storage_read_base: Gas

Storage trie read key base cost

storage_read_key_byte: Gas

Storage trie read key per byte cost

storage_read_value_byte: Gas

Storage trie read value cost per byte cost

storage_write_base: Gas

Storage trie write key base cost

storage_write_key_byte: Gas

Storage trie write key per byte cost

storage_write_value_byte: Gas

Storage trie write value per byte cost

storage_has_key_base: Gas

Storage trie check for key existence cost base

storage_has_key_byte: Gas

Storage trie check for key existence per key byte

storage_remove_base: Gas

Remove key from trie base cost

storage_remove_key_byte: Gas

Remove key from trie per byte cost

storage_remove_ret_value_byte: Gas

Remove key from trie ret value byte cost

storage_iter_create_prefix_base: Gas

Create trie prefix iterator cost base

storage_iter_create_range_base: Gas

Create trie range iterator cost base

storage_iter_create_key_byte: Gas

Create trie iterator per key byte cost

storage_iter_next_base: Gas

Trie iterator per key base cost

storage_iter_next_key_byte: Gas

Trie iterator next key byte cost

storage_iter_next_value_byte: Gas

Trie iterator next key byte cost

read_register_base: Gas

Base cost for reading from register

read_register_byte: Gas

Cost for reading byte from register

write_register_base: Gas

Base cost for writing into register

write_register_byte: Gas

Cost for writing byte into register

read_memory_base: Gas

Base cost for guest memory read

read_memory_byte: Gas

Cost for guest memory read

write_memory_base: Gas

Base cost for guest memory write

write_memory_byte: Gas

Cost for guest memory write per byte

account_balance: Gas

Get account balance cost

prepaid_gas: Gas

Get prepaid gas cost

used_gas: Gas

Get used gas cost

random_seed_base: Gas

Cost of getting random seed

random_seed_per_byte: Gas

Cost of getting random seed per byte

sha256: Gas

Cost of getting sha256 base

sha256_byte: Gas

Cost of getting sha256 per byte

attached_deposit: Gas

Get account attached_deposit base cost

storage_usage: Gas

Get storage usage cost

block_index: Gas

Get a current block height base cost

block_timestamp: Gas

Get a current timestamp base cost

current_account_id: Gas

Cost for getting a current account base

current_account_id_byte: Gas

Cost for getting a current account per byte

signer_account_id: Gas

Cost for getting a signer account id base

signer_account_id_byte: Gas

Cost for getting a signer account per byte

signer_account_pk: Gas

Cost for getting a signer public key

signer_account_pk_byte: Gas

Cost for getting a signer public key per byte

predecessor_account_id: Gas

Cost for getting a predecessor account

predecessor_account_id_byte: Gas

Cost for getting a predecessor account per byte

promise_and_base: Gas

Cost for calling promise_and

promise_and_per_promise: Gas

Cost for calling promise_and for each promise

promise_result_base: Gas

Cost for calling promise_result

promise_result_byte: Gas

Cost for calling promise_result per result byte

promise_results_count: Gas

Cost for calling promise_results_count

promise_return: Gas

Cost for calling promise_return

log_base: Gas

Cost for calling logging

log_per_byte: Gas

Cost for logging per byte

Trait Implementations

impl Clone for ExtCostsConfig[src]

impl Eq for ExtCostsConfig[src]

impl PartialEq<ExtCostsConfig> for ExtCostsConfig[src]

impl Debug for ExtCostsConfig[src]

impl Hash for ExtCostsConfig[src]

impl Serialize for ExtCostsConfig[src]

impl<'de> Deserialize<'de> for ExtCostsConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]