pub trait Ics20Reader: ChannelReader {
    type AccountId: TryFrom<Signer>;

    fn get_port(&self) -> Result<PortId, Ics20Error>;
    fn get_channel_escrow_address(
        &self,
        port_id: &PortId,
        channel_id: &ChannelId
    ) -> Result<<Self as Ics20Reader>::AccountId, Ics20Error>; fn is_send_enabled(&self) -> bool; fn is_receive_enabled(&self) -> bool; fn denom_hash_string(&self, _denom: &PrefixedDenom) -> Option<String> { ... } }

Required Associated Types

Required Methods

get_port returns the portID for the transfer module.

Returns the escrow account id for a port and channel combination

Returns true iff send is enabled.

Returns true iff receive is enabled.

Provided Methods

Returns a hash of the prefixed denom. Implement only if the host chain supports hashed denominations.

Implementors