[][src]Struct substrate_subxt::contracts::InstantiateCall

pub struct InstantiateCall<'a, T: Contracts> {
    pub endowment: <T as Balances>::Balance,
    pub gas_limit: Gas,
    pub code_hash: &'a <T as System>::Hash,
    pub data: &'a [u8],
}

Creates a new contract from the codehash generated by put_code, optionally transferring some balance.

Creation is executed as follows:

  • The destination address is computed based on the sender and hash of the code.
  • The smart-contract account is instantiated at the computed address.
  • The ctor_code is executed in the context of the newly-instantiated account. Buffer returned after the execution is saved as the codehttps://www.bbc.co.uk/ of the account. That code will be invoked upon any call received by this account.
  • The contract is initialized.

Fields

endowment: <T as Balances>::Balance

Initial balance transfered to the contract.

gas_limit: Gas

Gas limit.

code_hash: &'a <T as System>::Hash

Code hash returned by the put_code call.

data: &'a [u8]

Data to initialize the contract with.

Trait Implementations

impl<'a, T: Contracts> Call<T> for InstantiateCall<'a, T>[src]

impl<'a, T: Clone + Contracts> Clone for InstantiateCall<'a, T>[src]

impl<'a, T: Debug + Contracts> Debug for InstantiateCall<'a, T>[src]

impl<'a, T: Contracts> Encode for InstantiateCall<'a, T> where
    <T as System>::Hash: Encode,
    &'a <T as System>::Hash: Encode,
    <T as Balances>::Balance: HasCompact
[src]

impl<'a, T: Contracts> EncodeLike<InstantiateCall<'a, T>> for InstantiateCall<'a, T> where
    <T as System>::Hash: Encode,
    &'a <T as System>::Hash: Encode,
    <T as Balances>::Balance: HasCompact
[src]

impl<'a, T: Eq + Contracts> Eq for InstantiateCall<'a, T>[src]

impl<'a, T: PartialEq + Contracts> PartialEq<InstantiateCall<'a, T>> for InstantiateCall<'a, T>[src]

impl<'a, T: Contracts> StructuralEq for InstantiateCall<'a, T>[src]

impl<'a, T: Contracts> StructuralPartialEq for InstantiateCall<'a, T>[src]

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for InstantiateCall<'a, T> where
    <T as Balances>::Balance: RefUnwindSafe,
    <T as System>::Hash: RefUnwindSafe

impl<'a, T> Send for InstantiateCall<'a, T> where
    <T as Balances>::Balance: Send,
    <T as System>::Hash: Sync

impl<'a, T> Sync for InstantiateCall<'a, T> where
    <T as Balances>::Balance: Sync,
    <T as System>::Hash: Sync

impl<'a, T> Unpin for InstantiateCall<'a, T> where
    <T as Balances>::Balance: Unpin

impl<'a, T> UnwindSafe for InstantiateCall<'a, T> where
    <T as Balances>::Balance: UnwindSafe,
    <T as System>::Hash: RefUnwindSafe

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, X> Encode for X where
    T: Encode + ?Sized,
    X: WrapperTypeEncode<Target = T>, 
[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>> for T where
    T: Encode
[src]

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

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<S> FullEncode for S where
    S: Encode + EncodeLike<S>, 
[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
    Outer: AsRef<T> + AsMut<T> + From<T>,
    T: From<Outer>, 
[src]

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

Get a reference to the inner from the outer.

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

Get a mutable reference to the inner from the outer.

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> Member for T where
    T: 'static + Clone + PartialEq<T> + Eq + Send + Sync + 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
    S: TryInto<T>,
    T: Bounded

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