Trait t3rn_primitives::threevm::Erc20Mapping
source · pub trait Erc20Mapping {
// Required methods
fn encode_evm_address(v: TokenId) -> Option<EvmAddress>;
fn decode_evm_address(v: EvmAddress) -> Option<TokenId>;
}
Required Methods§
sourcefn encode_evm_address(v: TokenId) -> Option<EvmAddress>
fn encode_evm_address(v: TokenId) -> Option<EvmAddress>
Encode the AssetId to EvmAddress.
sourcefn decode_evm_address(v: EvmAddress) -> Option<TokenId>
fn decode_evm_address(v: EvmAddress) -> Option<TokenId>
Decode the AssetId from EvmAddress.