Versions in this module Expand all Collapse all v0 v0.11.1 Mar 16, 2021 v0.10.1 Mar 16, 2021 Changes in this version + const CodeInvalidAsset + const DefaultCodespace + const DefaultParamspace + const DefaultTokenOwner + const InitFeeDetailsCap + const KeyLock + const KeyMint + const ModuleName + const QuerierRoute + const RouterKey + const StoreKey + var RegisterCodec = types.RegisterCodec + func InitTestToken(name string) types.Token + func InitTestTokenWithOwner(name string, owner sdk.AccAddress) types.Token + func NewQuerier(keeper Keeper) sdk.Querier + func NewTestToken(t *testing.T, ctx sdk.Context, keeper Keeper, bankKeeper bank.Keeper, ...) + func NewTokenHandler(keeper Keeper, protocolVersion version.ProtocolVersionType) sdk.Handler + type AccountResponse = types.AccountResponse + type AppModule struct + func NewAppModule(v version.ProtocolVersionType, keeper Keeper, ...) AppModule + func (AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate + func (AppModule) Name() string + func (AppModule) QuerierRoute() string + func (AppModule) Route() string + func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock) + func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage + func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate + func (am AppModule) NewHandler() sdk.Handler + func (am AppModule) NewQuerierHandler() sdk.Querier + func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry) + type AppModuleBasic struct + func (AppModuleBasic) DefaultGenesis() json.RawMessage + func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command + func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command + func (AppModuleBasic) Name() string + func (AppModuleBasic) RegisterCodec(cdc *codec.Codec) + func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router) + func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error + type Cache struct + FeeDetails []*FeeDetail + func NewCache() *Cache + type CoinInfo = types.CoinInfo + type CoinsInfo = types.CoinsInfo + type FeeDetail = types.FeeDetail + type GenesisState struct + LockedAssets []types.AccCoins + LockedFees []types.AccCoins + Params types.Params + Tokens []types.Token + func ExportGenesis(ctx sdk.Context, keeper Keeper) (data GenesisState) + type Keeper struct + func CreateParam(t *testing.T, isCheckTx bool) (sdk.Context, Keeper, *sdk.KVStoreKey, []byte) + func NewKeeper(bankKeeper bank.Keeper, paramSpace params.Subspace, feeCollectorName string, ...) Keeper + func (k Keeper) AddFeeDetail(ctx sdk.Context, from string, fee sdk.SysCoins, feeType string, ...) + func (k Keeper) BalanceAccount(ctx sdk.Context, addr sdk.AccAddress, outputCoins sdk.SysCoins, ...) (err error) + func (k Keeper) DeleteConfirmOwnership(ctx sdk.Context, symbol string) + func (k Keeper) DeleteUserToken(ctx sdk.Context, owner sdk.AccAddress, symbol string) + func (k Keeper) GetAllLockedCoins(ctx sdk.Context) (locks []types.AccCoins) + func (k Keeper) GetCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.SysCoins + func (k Keeper) GetCoinsInfo(ctx sdk.Context, addr sdk.AccAddress) (coinsInfo types.CoinsInfo) + func (k Keeper) GetConfirmOwnership(ctx sdk.Context, symbol string) (confirmOwnership *types.ConfirmOwnership, exist bool) + func (k Keeper) GetCurrenciesInfo(ctx sdk.Context) (currencies []types.Currency) + func (k Keeper) GetFeeDetailList() []*FeeDetail + func (k Keeper) GetLockedCoins(ctx sdk.Context, addr sdk.AccAddress) (coins sdk.SysCoins) + func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) + func (k Keeper) GetTokenInfo(ctx sdk.Context, symbol string) types.Token + func (k Keeper) GetTokenTotalSupply(ctx sdk.Context, symbol string) sdk.Dec + func (k Keeper) GetTokensInfo(ctx sdk.Context) (tokens []types.Token) + func (k Keeper) GetUserTokensInfo(ctx sdk.Context, owner sdk.AccAddress) (tokens []types.Token) + func (k Keeper) IsContractAddress(ctx sdk.Context, addr sdk.AccAddress) bool + func (k Keeper) IterateLockedFees(ctx sdk.Context, cb func(acc sdk.AccAddress, coins sdk.SysCoins) (stop bool)) + func (k Keeper) LockCoins(ctx sdk.Context, addr sdk.AccAddress, coins sdk.SysCoins, lockCoinsType int) error + func (k Keeper) NewToken(ctx sdk.Context, token types.Token) + func (k Keeper) ResetCache(ctx sdk.Context) + func (k Keeper) SendCoinsFromAccountToAccount(ctx sdk.Context, from, to sdk.AccAddress, amt sdk.SysCoins) error + func (k Keeper) SetConfirmOwnership(ctx sdk.Context, confirmOwnership *types.ConfirmOwnership) + func (k Keeper) SetParams(ctx sdk.Context, params types.Params) + func (k Keeper) TokenExist(ctx sdk.Context, symbol string) bool + func (k Keeper) UnlockCoins(ctx sdk.Context, addr sdk.AccAddress, coins sdk.SysCoins, lockCoinsType int) error + func (k Keeper) UpdateToken(ctx sdk.Context, token types.Token) + type MsgSend = types.MsgSend + type Params = types.Params + type StakingKeeper interface + IsValidator func(ctx sdk.Context, addr sdk.AccAddress) bool + type SupplyKeeper interface + BurnCoins func(ctx sdk.Context, moduleName string, amt sdk.Coins) sdk.Error + GetModuleAccount func(ctx sdk.Context, name string) supplyexported.ModuleAccountI + GetSupplyByDenom func(ctx sdk.Context, denom string) sdk.Dec + MintCoins func(ctx sdk.Context, moduleName string, amt sdk.Coins) sdk.Error + SendCoinsFromAccountToModule func(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, ...) sdk.Error + SendCoinsFromModuleToAccount func(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, ...) sdk.Error + SendCoinsFromModuleToModule func(ctx sdk.Context, senderModule string, recipientModule string, amt sdk.Coins) sdk.Error + SetModuleAccount func(sdk.Context, supplyexported.ModuleAccountI) + type Token = types.Token