Trait ibc::applications::transfer::context::Ics20Reader
source · [−]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
fn get_port(&self) -> Result<PortId, Ics20Error>
fn get_port(&self) -> Result<PortId, Ics20Error>
get_port returns the portID for the transfer module.
fn get_channel_escrow_address(
&self,
port_id: &PortId,
channel_id: &ChannelId
) -> Result<<Self as Ics20Reader>::AccountId, Ics20Error>
fn get_channel_escrow_address(
&self,
port_id: &PortId,
channel_id: &ChannelId
) -> Result<<Self as Ics20Reader>::AccountId, Ics20Error>
Returns the escrow account id for a port and channel combination
fn is_send_enabled(&self) -> bool
fn is_send_enabled(&self) -> bool
Returns true iff send is enabled.
fn is_receive_enabled(&self) -> bool
fn is_receive_enabled(&self) -> bool
Returns true iff receive is enabled.
Provided Methods
fn denom_hash_string(&self, _denom: &PrefixedDenom) -> Option<String>
fn denom_hash_string(&self, _denom: &PrefixedDenom) -> Option<String>
Returns a hash of the prefixed denom. Implement only if the host chain supports hashed denominations.