Enum near_parameters::cost::ExtCosts
source · pub enum ExtCosts {
Show 61 variants
base = 0,
contract_loading_base = 1,
contract_loading_bytes = 2,
read_memory_base = 3,
read_memory_byte = 4,
write_memory_base = 5,
write_memory_byte = 6,
read_register_base = 7,
read_register_byte = 8,
write_register_base = 9,
write_register_byte = 10,
utf8_decoding_base = 11,
utf8_decoding_byte = 12,
utf16_decoding_base = 13,
utf16_decoding_byte = 14,
sha256_base = 15,
sha256_byte = 16,
keccak256_base = 17,
keccak256_byte = 18,
keccak512_base = 19,
keccak512_byte = 20,
ripemd160_base = 21,
ripemd160_block = 22,
ecrecover_base = 23,
log_base = 24,
log_byte = 25,
storage_write_base = 26,
storage_write_key_byte = 27,
storage_write_value_byte = 28,
storage_write_evicted_byte = 29,
storage_read_base = 30,
storage_read_key_byte = 31,
storage_read_value_byte = 32,
storage_remove_base = 33,
storage_remove_key_byte = 34,
storage_remove_ret_value_byte = 35,
storage_has_key_base = 36,
storage_has_key_byte = 37,
storage_iter_create_prefix_base = 38,
storage_iter_create_prefix_byte = 39,
storage_iter_create_range_base = 40,
storage_iter_create_from_byte = 41,
storage_iter_create_to_byte = 42,
storage_iter_next_base = 43,
storage_iter_next_key_byte = 44,
storage_iter_next_value_byte = 45,
touching_trie_node = 46,
read_cached_trie_node = 47,
promise_and_base = 48,
promise_and_per_promise = 49,
promise_return = 50,
validator_stake_base = 51,
validator_total_stake_base = 52,
alt_bn128_g1_multiexp_base = 53,
alt_bn128_g1_multiexp_element = 54,
alt_bn128_pairing_check_base = 55,
alt_bn128_pairing_check_element = 56,
alt_bn128_g1_sum_base = 57,
alt_bn128_g1_sum_element = 58,
ed25519_verify_base = 59,
ed25519_verify_byte = 60,
}
Expand description
Strongly-typed representation of the fees for counting.
Do not change the enum discriminants here, they are used for borsh (de-)serialization.
Variants§
base = 0
contract_loading_base = 1
contract_loading_bytes = 2
read_memory_base = 3
read_memory_byte = 4
write_memory_base = 5
write_memory_byte = 6
read_register_base = 7
read_register_byte = 8
write_register_base = 9
write_register_byte = 10
utf8_decoding_base = 11
utf8_decoding_byte = 12
utf16_decoding_base = 13
utf16_decoding_byte = 14
sha256_base = 15
sha256_byte = 16
keccak256_base = 17
keccak256_byte = 18
keccak512_base = 19
keccak512_byte = 20
ripemd160_base = 21
ripemd160_block = 22
ecrecover_base = 23
log_base = 24
log_byte = 25
storage_write_base = 26
storage_write_key_byte = 27
storage_write_value_byte = 28
storage_write_evicted_byte = 29
storage_read_base = 30
storage_read_key_byte = 31
storage_read_value_byte = 32
storage_remove_base = 33
storage_remove_key_byte = 34
storage_remove_ret_value_byte = 35
storage_has_key_base = 36
storage_has_key_byte = 37
storage_iter_create_prefix_base = 38
storage_iter_create_prefix_byte = 39
storage_iter_create_range_base = 40
storage_iter_create_from_byte = 41
storage_iter_create_to_byte = 42
storage_iter_next_base = 43
storage_iter_next_key_byte = 44
storage_iter_next_value_byte = 45
touching_trie_node = 46
read_cached_trie_node = 47
promise_and_base = 48
promise_and_per_promise = 49
promise_return = 50
validator_stake_base = 51
validator_total_stake_base = 52
alt_bn128_g1_multiexp_base = 53
alt_bn128_g1_multiexp_element = 54
alt_bn128_pairing_check_base = 55
alt_bn128_pairing_check_element = 56
alt_bn128_g1_sum_base = 57
alt_bn128_g1_sum_element = 58
ed25519_verify_base = 59
ed25519_verify_byte = 60
Implementations§
Trait Implementations§
source§impl IntoEnumIterator for ExtCosts
impl IntoEnumIterator for ExtCosts
type Iterator = ExtCostsIter
fn iter() -> ExtCostsIter ⓘ
source§impl Ord for ExtCosts
impl Ord for ExtCosts
source§impl PartialEq for ExtCosts
impl PartialEq for ExtCosts
source§impl PartialOrd for ExtCosts
impl PartialOrd for ExtCosts
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ExtCosts
impl Eq for ExtCosts
impl StructuralEq for ExtCosts
impl StructuralPartialEq for ExtCosts
Auto Trait Implementations§
impl RefUnwindSafe for ExtCosts
impl Send for ExtCosts
impl Sync for ExtCosts
impl Unpin for ExtCosts
impl UnwindSafe for ExtCosts
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
Mutably borrows from an owned value. Read more
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.