pub trait Erc20Mapping {
    // Required methods
    fn encode_evm_address(v: TokenId) -> Option<EvmAddress>;
    fn decode_evm_address(v: EvmAddress) -> Option<TokenId>;
}

Required Methods§

source

fn encode_evm_address(v: TokenId) -> Option<EvmAddress>

Encode the AssetId to EvmAddress.

source

fn decode_evm_address(v: EvmAddress) -> Option<TokenId>

Decode the AssetId from EvmAddress.

Implementors§