Trait SmartContractHandle

Source
pub trait SmartContractHandle<AccountId> {
    // Required methods
    fn evm(address: H160) -> Self;
    fn wasm(address: AccountId) -> Self;
}
Expand description

Trait defining the interface for dApp staking smart contract types handler.

It can be used to create a representation of the specified smart contract instance type.

Required Methods§

Source

fn evm(address: H160) -> Self

Create a new smart contract representation for the specified EVM address.

Source

fn wasm(address: AccountId) -> Self

Create a new smart contract representation for the specified Wasm address.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<AccountId> SmartContractHandle<AccountId> for SmartContract<AccountId>