Trait ink_lang::ChainExtensionInstance[][src]

pub trait ChainExtensionInstance {
    type Instance;
    fn instantiate() -> Self::Instance;
}

Trait implemented by chain extensions.

Allows to use the self.env().extension().my_chain_extension(..) syntax.

Note

This trait is automatically implemented when using #[ink::chain_extension] proc. macro.

Associated Types

type Instance[src]

The type of the chain extension instance.

Loading content...

Required methods

fn instantiate() -> Self::Instance[src]

Creates a new instance of the chain extension to use methods with method chaining syntax.

Loading content...

Implementors

Loading content...