Enum near_vm_logic::ExtCosts
source · pub enum ExtCosts {
Show 61 variants
base,
contract_loading_base,
contract_loading_bytes,
read_memory_base,
read_memory_byte,
write_memory_base,
write_memory_byte,
read_register_base,
read_register_byte,
write_register_base,
write_register_byte,
utf8_decoding_base,
utf8_decoding_byte,
utf16_decoding_base,
utf16_decoding_byte,
sha256_base,
sha256_byte,
keccak256_base,
keccak256_byte,
keccak512_base,
keccak512_byte,
ripemd160_base,
ripemd160_block,
ecrecover_base,
log_base,
log_byte,
storage_write_base,
storage_write_key_byte,
storage_write_value_byte,
storage_write_evicted_byte,
storage_read_base,
storage_read_key_byte,
storage_read_value_byte,
storage_remove_base,
storage_remove_key_byte,
storage_remove_ret_value_byte,
storage_has_key_base,
storage_has_key_byte,
storage_iter_create_prefix_base,
storage_iter_create_prefix_byte,
storage_iter_create_range_base,
storage_iter_create_from_byte,
storage_iter_create_to_byte,
storage_iter_next_base,
storage_iter_next_key_byte,
storage_iter_next_value_byte,
touching_trie_node,
read_cached_trie_node,
promise_and_base,
promise_and_per_promise,
promise_return,
validator_stake_base,
validator_total_stake_base,
alt_bn128_g1_multiexp_base,
alt_bn128_g1_multiexp_element,
alt_bn128_pairing_check_base,
alt_bn128_pairing_check_element,
alt_bn128_g1_sum_base,
alt_bn128_g1_sum_element,
ed25519_verify_base,
ed25519_verify_byte,
}
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
contract_loading_base
contract_loading_bytes
read_memory_base
read_memory_byte
write_memory_base
write_memory_byte
read_register_base
read_register_byte
write_register_base
write_register_byte
utf8_decoding_base
utf8_decoding_byte
utf16_decoding_base
utf16_decoding_byte
sha256_base
sha256_byte
keccak256_base
keccak256_byte
keccak512_base
keccak512_byte
ripemd160_base
ripemd160_block
ecrecover_base
log_base
log_byte
storage_write_base
storage_write_key_byte
storage_write_value_byte
storage_write_evicted_byte
storage_read_base
storage_read_key_byte
storage_read_value_byte
storage_remove_base
storage_remove_key_byte
storage_remove_ret_value_byte
storage_has_key_base
storage_has_key_byte
storage_iter_create_prefix_base
storage_iter_create_prefix_byte
storage_iter_create_range_base
storage_iter_create_from_byte
storage_iter_create_to_byte
storage_iter_next_base
storage_iter_next_key_byte
storage_iter_next_value_byte
touching_trie_node
read_cached_trie_node
promise_and_base
promise_and_per_promise
promise_return
validator_stake_base
validator_total_stake_base
alt_bn128_g1_multiexp_base
alt_bn128_g1_multiexp_element
alt_bn128_pairing_check_base
alt_bn128_pairing_check_element
alt_bn128_g1_sum_base
alt_bn128_g1_sum_element
ed25519_verify_base
ed25519_verify_byte
Implementations§
Trait Implementations§
source§impl Index<ExtCosts> for ProfileDataV2
impl Index<ExtCosts> for ProfileDataV2
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<ExtCosts> for ExtCosts
impl PartialEq<ExtCosts> for ExtCosts
source§impl PartialOrd<ExtCosts> for ExtCosts
impl PartialOrd<ExtCosts> 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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request