Struct oasis_runtime_sdk_contracts::GasCosts
source · pub struct GasCosts {Show 27 fields
pub tx_upload: u64,
pub tx_upload_per_byte: u64,
pub tx_instantiate: u64,
pub tx_call: u64,
pub tx_upgrade: u64,
pub tx_change_upgrade_policy: u64,
pub subcall_dispatch: u64,
pub wasm_public_storage_get_base: u64,
pub wasm_public_storage_insert_base: u64,
pub wasm_public_storage_remove_base: u64,
pub wasm_public_storage_key_byte: u64,
pub wasm_public_storage_value_byte: u64,
pub wasm_confidential_storage_get_base: u64,
pub wasm_confidential_storage_insert_base: u64,
pub wasm_confidential_storage_remove_base: u64,
pub wasm_confidential_storage_key_byte: u64,
pub wasm_confidential_storage_value_byte: u64,
pub wasm_env_query_base: u64,
pub wasm_crypto_ecdsa_recover: u64,
pub wasm_crypto_signature_verify_ed25519: u64,
pub wasm_crypto_signature_verify_secp256k1: u64,
pub wasm_crypto_signature_verify_sr25519: u64,
pub wasm_crypto_x25519_derive_symmetric: u64,
pub wasm_crypto_deoxysii_base: u64,
pub wasm_crypto_deoxysii_byte: u64,
pub wasm_crypto_random_bytes_base: u64,
pub wasm_crypto_random_bytes_byte: u64,
}
Expand description
Gas costs.
Fields§
§tx_upload: u64
§tx_upload_per_byte: u64
§tx_instantiate: u64
§tx_call: u64
§tx_upgrade: u64
§tx_change_upgrade_policy: u64
§subcall_dispatch: u64
§wasm_public_storage_get_base: u64
§wasm_public_storage_insert_base: u64
§wasm_public_storage_remove_base: u64
§wasm_public_storage_key_byte: u64
§wasm_public_storage_value_byte: u64
§wasm_confidential_storage_get_base: u64
§wasm_confidential_storage_insert_base: u64
§wasm_confidential_storage_remove_base: u64
§wasm_confidential_storage_key_byte: u64
§wasm_confidential_storage_value_byte: u64
§wasm_env_query_base: u64
§wasm_crypto_ecdsa_recover: u64
§wasm_crypto_signature_verify_ed25519: u64
§wasm_crypto_signature_verify_secp256k1: u64
§wasm_crypto_signature_verify_sr25519: u64
§wasm_crypto_x25519_derive_symmetric: u64
§wasm_crypto_deoxysii_base: u64
§wasm_crypto_deoxysii_byte: u64
§wasm_crypto_random_bytes_base: u64
§wasm_crypto_random_bytes_byte: u64
Trait Implementations§
source§impl Decode for GasCosts
impl Decode for GasCosts
source§fn try_default() -> Result<Self, DecodeError>
fn try_default() -> Result<Self, DecodeError>
Try to decode from a missing/null/undefined value.
source§fn try_from_cbor_value(value: Value) -> Result<Self, DecodeError>
fn try_from_cbor_value(value: Value) -> Result<Self, DecodeError>
Try to decode from a given CBOR value.
§fn try_from_cbor_value_default(value: Value) -> Result<Self, DecodeError>where
Self: Sized,
fn try_from_cbor_value_default(value: Value) -> Result<Self, DecodeError>where
Self: Sized,
Try to decode from a given CBOR value, calling
try_default
in case the value is null or
undefined.source§impl EncodeAsMap for GasCosts
impl EncodeAsMap for GasCosts
§fn into_cbor_value_map(self) -> Valuewhere
Self: Sized,
fn into_cbor_value_map(self) -> Valuewhere
Self: Sized,
Encode the type into a CBOR Map.
§fn into_cbor_map(self) -> Vec<(Value, Value)>where
Self: Sized,
fn into_cbor_map(self) -> Vec<(Value, Value)>where
Self: Sized,
Encode the type into a CBOR Map, returning the map items.
Auto Trait Implementations§
impl Freeze for GasCosts
impl RefUnwindSafe for GasCosts
impl Send for GasCosts
impl Sync for GasCosts
impl Unpin for GasCosts
impl UnwindSafe for GasCosts
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)