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.

Object Safety§

This trait is not object safe.

Implementors§

source§

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