Struct noble_contracts::HostFnWeights[][src]

pub struct HostFnWeights<T: Config> {
    pub caller: Weight,
    pub address: Weight,
    pub gas_left: Weight,
    pub balance: Weight,
    pub value_transferred: Weight,
    pub minimum_balance: Weight,
    pub tombstone_deposit: Weight,
    pub rent_allowance: Weight,
    pub block_number: Weight,
    pub now: Weight,
    pub weight_to_fee: Weight,
    pub gas: Weight,
    pub input: Weight,
    pub input_per_byte: Weight,
    pub return: Weight,
    pub return_per_byte: Weight,
    pub terminate: Weight,
    pub restore_to: Weight,
    pub restore_to_per_delta: Weight,
    pub random: Weight,
    pub deposit_event: Weight,
    pub deposit_event_per_topic: Weight,
    pub deposit_event_per_byte: Weight,
    pub set_rent_allowance: Weight,
    pub set_storage: Weight,
    pub set_storage_per_byte: Weight,
    pub clear_storage: Weight,
    pub get_storage: Weight,
    pub get_storage_per_byte: Weight,
    pub transfer: Weight,
    pub call: Weight,
    pub call_transfer_surcharge: Weight,
    pub call_per_input_byte: Weight,
    pub call_per_output_byte: Weight,
    pub instantiate: Weight,
    pub instantiate_per_input_byte: Weight,
    pub instantiate_per_output_byte: Weight,
    pub instantiate_per_salt_byte: Weight,
    pub hash_sha2_256: Weight,
    pub hash_sha2_256_per_byte: Weight,
    pub hash_keccak_256: Weight,
    pub hash_keccak_256_per_byte: Weight,
    pub hash_blake2_256: Weight,
    pub hash_blake2_256_per_byte: Weight,
    pub hash_blake2_128: Weight,
    pub hash_blake2_128_per_byte: Weight,
    pub _phantom: PhantomData<T>,
}

Describes the weight for each imported function that a contract is allowed to call.

Fields

caller: Weight

Weight of calling seal_caller.

address: Weight

Weight of calling seal_address.

gas_left: Weight

Weight of calling seal_gas_left.

balance: Weight

Weight of calling seal_balance.

value_transferred: Weight

Weight of calling seal_value_transferred.

minimum_balance: Weight

Weight of calling seal_minimum_balance.

tombstone_deposit: Weight

Weight of calling seal_tombstone_deposit.

rent_allowance: Weight

Weight of calling seal_rent_allowance.

block_number: Weight

Weight of calling seal_block_number.

now: Weight

Weight of calling seal_now.

weight_to_fee: Weight

Weight of calling seal_weight_to_fee.

gas: Weight

Weight of calling gas.

input: Weight

Weight of calling seal_input.

input_per_byte: Weight

Weight per input byte copied to contract memory by seal_input.

return: Weight

Weight of calling seal_return.

return_per_byte: Weight

Weight per byte returned through seal_return.

terminate: Weight

Weight of calling seal_terminate.

restore_to: Weight

Weight of calling seal_restore_to.

restore_to_per_delta: Weight

Weight per delta key supplied to seal_restore_to.

random: Weight

Weight of calling seal_random.

deposit_event: Weight

Weight of calling seal_reposit_event.

deposit_event_per_topic: Weight

Weight per topic supplied to seal_deposit_event.

deposit_event_per_byte: Weight

Weight per byte of an event deposited through seal_deposit_event.

set_rent_allowance: Weight

Weight of calling seal_set_rent_allowance.

set_storage: Weight

Weight of calling seal_set_storage.

set_storage_per_byte: Weight

Weight per byte of an item stored with seal_set_storage.

clear_storage: Weight

Weight of calling seal_clear_storage.

get_storage: Weight

Weight of calling seal_get_storage.

get_storage_per_byte: Weight

Weight per byte of an item received via seal_get_storage.

transfer: Weight

Weight of calling seal_transfer.

call: Weight

Weight of calling seal_call.

call_transfer_surcharge: Weight

Weight surcharge that is claimed if seal_call does a balance transfer.

call_per_input_byte: Weight

Weight per input byte supplied to seal_call.

call_per_output_byte: Weight

Weight per output byte received through seal_call.

instantiate: Weight

Weight of calling seal_instantiate.

instantiate_per_input_byte: Weight

Weight per input byte supplied to seal_instantiate.

instantiate_per_output_byte: Weight

Weight per output byte received through seal_instantiate.

instantiate_per_salt_byte: Weight

Weight per salt byte supplied to seal_instantiate.

hash_sha2_256: Weight

Weight of calling seal_hash_sha_256.

hash_sha2_256_per_byte: Weight

Weight per byte hashed by seal_hash_sha_256.

hash_keccak_256: Weight

Weight of calling seal_hash_keccak_256.

hash_keccak_256_per_byte: Weight

Weight per byte hashed by seal_hash_keccak_256.

hash_blake2_256: Weight

Weight of calling seal_hash_blake2_256.

hash_blake2_256_per_byte: Weight

Weight per byte hashed by seal_hash_blake2_256.

hash_blake2_128: Weight

Weight of calling seal_hash_blake2_128.

hash_blake2_128_per_byte: Weight

Weight per byte hashed by seal_hash_blake2_128.

_phantom: PhantomData<T>

The type parameter is used in the default implementation.

Trait Implementations

impl<T: Clone + Config> Clone for HostFnWeights<T>[src]

impl<T: Config> Debug for HostFnWeights<T>[src]

impl<T: Config> Decode for HostFnWeights<T> where
    PhantomData<T>: Decode,
    PhantomData<T>: Decode
[src]

impl<T: Config> Default for HostFnWeights<T>[src]

impl<'de, T: Config> Deserialize<'de> for HostFnWeights<T>[src]

impl<T: Config> Encode for HostFnWeights<T> where
    PhantomData<T>: Encode,
    PhantomData<T>: Encode
[src]

impl<T: Config> EncodeLike<HostFnWeights<T>> for HostFnWeights<T> where
    PhantomData<T>: Encode,
    PhantomData<T>: Encode
[src]

impl<T: Eq + Config> Eq for HostFnWeights<T>[src]

impl<T: PartialEq + Config> PartialEq<HostFnWeights<T>> for HostFnWeights<T>[src]

impl<T: Config> Serialize for HostFnWeights<T>[src]

impl<T: Config> StructuralEq for HostFnWeights<T>[src]

impl<T: Config> StructuralPartialEq for HostFnWeights<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for HostFnWeights<T> where
    T: RefUnwindSafe

impl<T> Send for HostFnWeights<T> where
    T: Send

impl<T> Sync for HostFnWeights<T> where
    T: Sync

impl<T> Unpin for HostFnWeights<T> where
    T: Unpin

impl<T> UnwindSafe for HostFnWeights<T> where
    T: UnwindSafe

Blanket Implementations

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

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

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

impl<T> CheckedConversion for T[src]

impl<T> Clear for T where
    T: Default + Eq + PartialEq<T>, 
[src]

impl<S> Codec for S where
    S: Decode + Encode
[src]

impl<T> DecodeAll for T where
    T: Decode
[src]

impl<T> DecodeLimit for T where
    T: Decode
[src]

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

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

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

impl<'_, '_, T> EncodeLike<&'_ &'_ T> for T where
    T: Encode
[src]

impl<'_, T> EncodeLike<&'_ T> for T where
    T: Encode
[src]

impl<'_, T> EncodeLike<&'_ mut T> for T where
    T: Encode
[src]

impl<T> EncodeLike<Arc<T>> for T where
    T: Encode
[src]

impl<T> EncodeLike<Box<T, Global>> for T where
    T: Encode
[src]

impl<'a, T> EncodeLike<Cow<'a, T>> for T where
    T: ToOwned + Encode
[src]

impl<T> EncodeLike<Rc<T>> for T where
    T: Encode
[src]

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

impl<S> FullCodec for S where
    S: Decode + FullEncode
[src]

impl<S> FullEncode for S where
    S: Encode + EncodeLike<S>, 
[src]

impl<T> Hashable for T where
    T: Codec
[src]

impl<T> Instrument for T[src]

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

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

impl<T, Outer> IsWrappedBy<Outer> for T where
    T: From<Outer>,
    Outer: AsRef<T> + AsMut<T> + From<T>, 
[src]

pub fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

pub fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> KeyedVec for T where
    T: Codec
[src]

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

impl<T> MaybeSerialize for T where
    T: Serialize
[src]

impl<T> MaybeSerializeDeserialize for T where
    T: DeserializeOwned + Serialize
[src]

impl<T> Member for T where
    T: 'static + Send + Sync + Debug + Eq + PartialEq<T> + Clone
[src]

impl<T> Parameter for T where
    T: Codec + EncodeLike<T> + Clone + Eq + Debug
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T

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<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<T, S> UniqueSaturatedInto<T> for S where
    T: Bounded,
    S: TryInto<T>, 

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,