Documentation ¶
Index ¶
- Variables
- func GetBindAssetHashKey(sourceDenomHash []byte, chainId uint64) []byte
- func GetIndependentCrossDenomKey(denom string) []byte
- func NewQuerier(k Keeper) sdk.Querier
- type Keeper
- func (k Keeper) BindAssetHash(ctx sdk.Context, creator sdk.AccAddress, sourceAssetDenom string, ...) error
- func (k Keeper) BurnCoins(ctx sdk.Context, fromAcct sdk.AccAddress, amt sdk.Coins) error
- func (k Keeper) ContainToContractAddr(ctx sdk.Context, toContractAddr []byte, fromChainId uint64) bool
- func (k Keeper) CreateCoins(ctx sdk.Context, creator sdk.AccAddress, coins sdk.Coins) error
- func (k Keeper) CreateDenom(ctx sdk.Context, creator sdk.AccAddress, denom string) error
- func (k Keeper) EnsureAccountExist(ctx sdk.Context, addr sdk.AccAddress) error
- func (k Keeper) GetDenomCrossChainInfo(ctx sdk.Context, denom string, toChainId uint64) *types.DenomCrossChainInfo
- func (k Keeper) GetDenomInfo(ctx sdk.Context, denom string) *types.DenomInfo
- func (k Keeper) GetModuleAccount(ctx sdk.Context) exported.ModuleAccountI
- func (k Keeper) Lock(ctx sdk.Context, fromAddr sdk.AccAddress, sourceAssetDenom string, ...) error
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MintCoins(ctx sdk.Context, toAcct sdk.AccAddress, amt sdk.Coins) error
- func (k Keeper) Unlock(ctx sdk.Context, fromChainId uint64, fromContractAddr sdk.AccAddress, ...) error
- func (k Keeper) ValidCreator(ctx sdk.Context, denom string, creator sdk.AccAddress) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BindAssetHashPrefix = []byte{0x01} IndependentCrossDenomPrefix = []byte{0x02} )
Functions ¶
func GetBindAssetHashKey ¶
func NewQuerier ¶
NewQuerier returns a minting Querier handler.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper of the mint store
func NewKeeper ¶
func NewKeeper( cdc *codec.Codec, key sdk.StoreKey, ak types.AccountKeeper, bankKeeper types.BankKeeper, supplyKeeper types.SupplyKeeper, ccmKeeper types.CrossChainManager) Keeper
NewKeeper creates a new mint Keeper instance
func (Keeper) BindAssetHash ¶
func (Keeper) BurnCoins ¶
BurnCoins burns coins deletes coins from the balance of the module account. Panics if the name maps to a non-burner module account or if the amount is invalid.
func (Keeper) ContainToContractAddr ¶
func (Keeper) CreateCoins ¶
func (Keeper) CreateDenom ¶
func (Keeper) EnsureAccountExist ¶
func (Keeper) GetDenomCrossChainInfo ¶
func (Keeper) GetDenomInfo ¶
func (Keeper) GetModuleAccount ¶
func (k Keeper) GetModuleAccount(ctx sdk.Context) exported.ModuleAccountI
func (Keeper) MintCoins ¶
MintCoins creates new coins from thin air and adds it to the module account. Panics if the name maps to a non-minter module account or if the amount is invalid.
func (Keeper) ValidCreator ¶
Click to show internal directories.
Click to hide internal directories.