Trait ibc::applications::transfer::context::BankKeeper
source · [−]pub trait BankKeeper {
type AccountId;
fn send_coins(
&mut self,
from: &Self::AccountId,
to: &Self::AccountId,
amt: &PrefixedCoin
) -> Result<(), Ics20Error>;
fn mint_coins(
&mut self,
account: &Self::AccountId,
amt: &PrefixedCoin
) -> Result<(), Ics20Error>;
fn burn_coins(
&mut self,
account: &Self::AccountId,
amt: &PrefixedCoin
) -> Result<(), Ics20Error>;
}
Required Associated Types
Required Methods
fn send_coins(
&mut self,
from: &Self::AccountId,
to: &Self::AccountId,
amt: &PrefixedCoin
) -> Result<(), Ics20Error>
fn send_coins(
&mut self,
from: &Self::AccountId,
to: &Self::AccountId,
amt: &PrefixedCoin
) -> Result<(), Ics20Error>
This function should enable sending ibc fungible tokens from one account to another
fn mint_coins(
&mut self,
account: &Self::AccountId,
amt: &PrefixedCoin
) -> Result<(), Ics20Error>
fn mint_coins(
&mut self,
account: &Self::AccountId,
amt: &PrefixedCoin
) -> Result<(), Ics20Error>
This function to enable minting ibc tokens to a user account
fn burn_coins(
&mut self,
account: &Self::AccountId,
amt: &PrefixedCoin
) -> Result<(), Ics20Error>
fn burn_coins(
&mut self,
account: &Self::AccountId,
amt: &PrefixedCoin
) -> Result<(), Ics20Error>
This function should enable burning of minted tokens in a user account