pub trait OverflowRecvContext {
type PacketMetadata: PacketMetadata + Serialize + for<'de> Deserialize<'de> + Sized;
type Error: Display;
// Required methods
fn mint_coins_execute(
&mut self,
receiver: &<Self::PacketMetadata as PacketMetadata>::AccountId,
coin: &Coin<PrefixedDenom>,
) -> Result<(), Self::Error>;
fn unescrow_coins_execute(
&mut self,
receiver: &<Self::PacketMetadata as PacketMetadata>::AccountId,
port: &PortId,
channel: &ChannelId,
coin: &Coin<PrefixedDenom>,
) -> Result<(), Self::Error>;
}
Expand description
Context data required by the OverflowReceiveMiddleware
.
Required Associated Types§
Sourcetype PacketMetadata: PacketMetadata + Serialize + for<'de> Deserialize<'de> + Sized
type PacketMetadata: PacketMetadata + Serialize + for<'de> Deserialize<'de> + Sized
Metadata included in ICS-20 packet memos, related with the overflow receive middleware.
Required Methods§
Sourcefn mint_coins_execute(
&mut self,
receiver: &<Self::PacketMetadata as PacketMetadata>::AccountId,
coin: &Coin<PrefixedDenom>,
) -> Result<(), Self::Error>
fn mint_coins_execute( &mut self, receiver: &<Self::PacketMetadata as PacketMetadata>::AccountId, coin: &Coin<PrefixedDenom>, ) -> Result<(), Self::Error>
Mint coins.
Sourcefn unescrow_coins_execute(
&mut self,
receiver: &<Self::PacketMetadata as PacketMetadata>::AccountId,
port: &PortId,
channel: &ChannelId,
coin: &Coin<PrefixedDenom>,
) -> Result<(), Self::Error>
fn unescrow_coins_execute( &mut self, receiver: &<Self::PacketMetadata as PacketMetadata>::AccountId, port: &PortId, channel: &ChannelId, coin: &Coin<PrefixedDenom>, ) -> Result<(), Self::Error>
Unescrow coins.