Struct unc_parameters::view::ExtCostsConfigView
source · pub struct ExtCostsConfigView {Show 65 fields
pub base: Gas,
pub contract_loading_base: Gas,
pub contract_loading_bytes: Gas,
pub read_memory_base: Gas,
pub read_memory_byte: Gas,
pub write_memory_base: Gas,
pub write_memory_byte: Gas,
pub read_register_base: Gas,
pub read_register_byte: Gas,
pub write_register_base: Gas,
pub write_register_byte: Gas,
pub utf8_decoding_base: Gas,
pub utf8_decoding_byte: Gas,
pub utf16_decoding_base: Gas,
pub utf16_decoding_byte: Gas,
pub sha256_base: Gas,
pub sha256_byte: Gas,
pub keccak256_base: Gas,
pub keccak256_byte: Gas,
pub keccak512_base: Gas,
pub keccak512_byte: Gas,
pub ripemd160_base: Gas,
pub ripemd160_block: Gas,
pub ed25519_verify_base: Gas,
pub ed25519_verify_byte: Gas,
pub ecrecover_base: Gas,
pub log_base: Gas,
pub log_byte: Gas,
pub storage_write_base: Gas,
pub storage_write_key_byte: Gas,
pub storage_write_value_byte: Gas,
pub storage_write_evicted_byte: Gas,
pub storage_read_base: Gas,
pub storage_read_key_byte: Gas,
pub storage_read_value_byte: Gas,
pub storage_remove_base: Gas,
pub storage_remove_key_byte: Gas,
pub storage_remove_ret_value_byte: Gas,
pub storage_has_key_base: Gas,
pub storage_has_key_byte: Gas,
pub storage_iter_create_prefix_base: Gas,
pub storage_iter_create_prefix_byte: Gas,
pub storage_iter_create_range_base: Gas,
pub storage_iter_create_from_byte: Gas,
pub storage_iter_create_to_byte: Gas,
pub storage_iter_next_base: Gas,
pub storage_iter_next_key_byte: Gas,
pub storage_iter_next_value_byte: Gas,
pub touching_trie_node: Gas,
pub read_cached_trie_node: Gas,
pub promise_and_base: Gas,
pub promise_and_per_promise: Gas,
pub promise_return: Gas,
pub validator_pledge_base: Gas,
pub validator_power_base: Gas,
pub validator_total_pledge_base: Gas,
pub validator_total_power_base: Gas,
pub contract_compile_base: Gas,
pub contract_compile_bytes: Gas,
pub alt_bn128_g1_multiexp_base: Gas,
pub alt_bn128_g1_multiexp_element: Gas,
pub alt_bn128_g1_sum_base: Gas,
pub alt_bn128_g1_sum_element: Gas,
pub alt_bn128_pairing_check_base: Gas,
pub alt_bn128_pairing_check_element: Gas,
}Expand description
Typed view of ExtCostsConfig to preserve JSON output field names in protocol config RPC output.
Fields§
§base: GasBase cost for calling a host function.
contract_loading_base: GasBase cost of loading a pre-compiled contract
contract_loading_bytes: GasCost per byte of loading a pre-compiled contract
read_memory_base: GasBase cost for guest memory read
read_memory_byte: GasCost for guest memory read
write_memory_base: GasBase cost for guest memory write
write_memory_byte: GasCost for guest memory write per byte
read_register_base: GasBase cost for reading from register
read_register_byte: GasCost for reading byte from register
write_register_base: GasBase cost for writing into register
write_register_byte: GasCost for writing byte into register
utf8_decoding_base: GasBase cost of decoding utf8. It’s used for log_utf8 and panic_utf8.
utf8_decoding_byte: GasCost per byte of decoding utf8. It’s used for log_utf8 and panic_utf8.
utf16_decoding_base: GasBase cost of decoding utf16. It’s used for log_utf16.
utf16_decoding_byte: GasCost per byte of decoding utf16. It’s used for log_utf16.
sha256_base: GasCost of getting sha256 base
sha256_byte: GasCost of getting sha256 per byte
keccak256_base: GasCost of getting sha256 base
keccak256_byte: GasCost of getting sha256 per byte
keccak512_base: GasCost of getting sha256 base
keccak512_byte: GasCost of getting sha256 per byte
ripemd160_base: GasCost of getting ripemd160 base
ripemd160_block: GasCost of getting ripemd160 per message block
ed25519_verify_base: GasCost of getting ed25519 base
ed25519_verify_byte: GasCost of getting ed25519 per byte
ecrecover_base: GasCost of calling ecrecover
log_base: GasCost for calling logging.
log_byte: GasCost for logging per byte
storage_write_base: GasStorage trie write key base cost
storage_write_key_byte: GasStorage trie write key per byte cost
storage_write_value_byte: GasStorage trie write value per byte cost
storage_write_evicted_byte: GasStorage trie write cost per byte of evicted value.
storage_read_base: GasStorage trie read key base cost
storage_read_key_byte: GasStorage trie read key per byte cost
storage_read_value_byte: GasStorage trie read value cost per byte cost
storage_remove_base: GasRemove key from trie base cost
storage_remove_key_byte: GasRemove key from trie per byte cost
storage_remove_ret_value_byte: GasRemove key from trie ret value byte cost
storage_has_key_base: GasStorage trie check for key existence cost base
storage_has_key_byte: GasStorage trie check for key existence per key byte
storage_iter_create_prefix_base: GasCreate trie prefix iterator cost base
storage_iter_create_prefix_byte: GasCreate trie prefix iterator cost per byte.
storage_iter_create_range_base: GasCreate trie range iterator cost base
storage_iter_create_from_byte: GasCreate trie range iterator cost per byte of from key.
storage_iter_create_to_byte: GasCreate trie range iterator cost per byte of to key.
storage_iter_next_base: GasTrie iterator per key base cost
storage_iter_next_key_byte: GasTrie iterator next key byte cost
storage_iter_next_value_byte: GasTrie iterator next key byte cost
touching_trie_node: GasCost per reading trie node from DB
read_cached_trie_node: GasCost for reading trie node from memory
promise_and_base: GasCost for calling promise_and
promise_and_per_promise: GasCost for calling promise_and for each promise
promise_return: GasCost for calling promise_return
validator_pledge_base: GasCost of calling validator_stake.
validator_power_base: Gas§validator_total_pledge_base: GasCost of calling validator_total_stake.
validator_total_power_base: Gas§contract_compile_base: Gas§contract_compile_bytes: Gas§alt_bn128_g1_multiexp_base: GasBase cost for multiexp
alt_bn128_g1_multiexp_element: GasPer element cost for multiexp
alt_bn128_g1_sum_base: GasBase cost for sum
alt_bn128_g1_sum_element: GasPer element cost for sum
alt_bn128_pairing_check_base: GasBase cost for pairing check
alt_bn128_pairing_check_element: GasPer element cost for pairing check
Trait Implementations§
source§impl Clone for ExtCostsConfigView
impl Clone for ExtCostsConfigView
source§fn clone(&self) -> ExtCostsConfigView
fn clone(&self) -> ExtCostsConfigView
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ExtCostsConfigView
impl Debug for ExtCostsConfigView
source§impl<'de> Deserialize<'de> for ExtCostsConfigView
impl<'de> Deserialize<'de> for ExtCostsConfigView
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl From<ExtCostsConfig> for ExtCostsConfigView
impl From<ExtCostsConfig> for ExtCostsConfigView
source§fn from(config: ExtCostsConfig) -> Self
fn from(config: ExtCostsConfig) -> Self
source§impl From<ExtCostsConfigView> for ExtCostsConfig
impl From<ExtCostsConfigView> for ExtCostsConfig
source§fn from(view: ExtCostsConfigView) -> Self
fn from(view: ExtCostsConfigView) -> Self
source§impl Hash for ExtCostsConfigView
impl Hash for ExtCostsConfigView
source§impl PartialEq for ExtCostsConfigView
impl PartialEq for ExtCostsConfigView
source§fn eq(&self, other: &ExtCostsConfigView) -> bool
fn eq(&self, other: &ExtCostsConfigView) -> bool
self and other values to be equal, and is used
by ==.source§impl Serialize for ExtCostsConfigView
impl Serialize for ExtCostsConfigView
impl Eq for ExtCostsConfigView
impl StructuralPartialEq for ExtCostsConfigView
Auto Trait Implementations§
impl Freeze for ExtCostsConfigView
impl RefUnwindSafe for ExtCostsConfigView
impl Send for ExtCostsConfigView
impl Sync for ExtCostsConfigView
impl Unpin for ExtCostsConfigView
impl UnwindSafe for ExtCostsConfigView
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.