Versions in this module Expand all Collapse all v0 v0.19.9 Oct 25, 2021 Changes in this version + const CodeAddressIsRequired + const CodeAmountBiggerThanTotalSupplyUpperbound + const CodeAmountIsNotValid + const CodeBlockedContractRecipient + const CodeBlockedRecipient + const CodeBurnCoinsFailed + const CodeConfirmOwnershipAddressNotEqualsMsgAddress + const CodeConfirmOwnershipNotExistOrBlockTimeAfter + const CodeDescLenBiggerThanLimit + const CodeFailedToUnlockAddress + const CodeGetConfirmOwnership + const CodeGetDecimalFromDecimalStringFailed + const CodeInputOwnerIsNotEqualTokenOwner + const CodeInvalidAsset + const CodeInvalidCoins + const CodeInvalidMinTradeSize + const CodeInvalidPriceDigit + const CodeMintCoinsFailed + const CodeMsgSymbolIsEmpty + const CodeMsgTransfersAmountBiggerThanSendLimit + const CodeNotAllowedOriginalSymbol + const CodeSendCoinsFromAccountToAccountFailed + const CodeSendCoinsFromAccountToModuleFailed + const CodeSendCoinsFromModuleToAccountFailed + const CodeSendDisabled + const CodeTokenIsNotMintable + const CodeTotalSupplyOutOfRange + const CodeTotalsupplyExceedsTheUpperLimit + const CodeUnknownTokenQueryType + const CodeUnrecognizedLockCoinsType + const CodeUpdateLockedCoins + const CodeUserInputSymbolIsEmpty + const CodeWholeNameAndDescriptionIsNotModified + const CodeWholeNameIsNotValid + const CodeinputFromAddressIsNotEqualTokenInfoOwner + const DefaultCodespace + const DefaultFeeBurn + const DefaultFeeChown + const DefaultFeeIssue + const DefaultFeeMint + const DefaultFeeModify + const DefaultOwnershipConfirmWindow + const DefaultParamspace + const DescLenLimit + const KeyLock + const KeyMint + const LockCoinsTypeFee + const LockCoinsTypeQuantity + const ModuleName + const MultiSendLimit + const QuerierRoute + const QueryAccount + const QueryAccountV2 + const QueryCurrency + const QueryInfo + const QueryKeysNum + const QueryParameters + const QueryTokenV2 + const QueryTokens + const QueryTokensV2 + const RouterKey + const StoreKey + const TotalSupplyUpperbound + const UploadAccount + var KeyFeeBurn = []byte("FeeBurn") + var KeyFeeChown = []byte("FeeChown") + var KeyFeeIssue = []byte("FeeIssue") + var KeyFeeMint = []byte("FeeMint") + var KeyFeeModify = []byte("FeeModify") + var KeyOwnershipConfirmWindow = []byte("OwnershipConfirmWindow") + var LockKey = []byte + var LockedFeeKey = []byte + var ModuleCdc *codec.Codec + var PrefixConfirmOwnershipKey = []byte + var PrefixUserTokenKey = []byte + var TokenKey = []byte + var TokenNumberKey = []byte + func DecAccountArrToBaseAccountArr(decAccounts []DecAccount) (baseAccountArr []auth.Account) + func ErrAddressIsRequired() sdk.EnvelopedErr + func ErrAmountBiggerThanTotalSupplyUpperbound() sdk.EnvelopedErr + func ErrAmountIsNotValid(amount string) sdk.EnvelopedErr + func ErrBlockedContractRecipient(contractAddr string) sdk.EnvelopedErr + func ErrBlockedRecipient(blockedAddr string) sdk.EnvelopedErr + func ErrBurnCoinsFailed(msg string) sdk.EnvelopedErr + func ErrCodeConfirmOwnershipAddressNotEqualsMsgAddress(address sdk.AccAddress) sdk.EnvelopedErr + func ErrCodeTotalsupplyExceedsTheUpperLimit(totalSupplyAfterMint sdk.Dec, TotalSupplyUpperbound int64) sdk.EnvelopedErr + func ErrCodeinputFromAddressIsNotEqualTokenInfoOwner(address sdk.AccAddress) sdk.EnvelopedErr + func ErrConfirmOwnershipNotExistOrBlockTimeAfter() sdk.EnvelopedErr + func ErrDescLenBiggerThanLimit() sdk.EnvelopedErr + func ErrFailedToUnlockAddress(coins string, addr string) sdk.EnvelopedErr + func ErrGetConfirmOwnership() sdk.EnvelopedErr + func ErrGetDecimalFromDecimalStringFailed(msg string) sdk.EnvelopedErr + func ErrInputOwnerIsNotEqualTokenOwner(address sdk.AccAddress) sdk.EnvelopedErr + func ErrInvalidCoins(symbol string) sdk.EnvelopedErr + func ErrMintCoinsFailed(msg string) sdk.EnvelopedErr + func ErrMsgSymbolIsEmpty() sdk.EnvelopedErr + func ErrMsgTransfersAmountBiggerThanSendLimit() sdk.EnvelopedErr + func ErrNotAllowedOriginalSymbol(symbol string) sdk.EnvelopedErr + func ErrSendCoinsFromAccountToAccountFailed(msg string) sdk.EnvelopedErr + func ErrSendCoinsFromAccountToModuleFailed(message string) sdk.EnvelopedErr + func ErrSendCoinsFromModuleToAccountFailed(msg string) sdk.EnvelopedErr + func ErrSendDisabled() sdk.EnvelopedErr + func ErrTokenIsNotMintable() sdk.EnvelopedErr + func ErrTotalSupplyOutOfRange() sdk.EnvelopedErr + func ErrUnknownTokenQueryType() sdk.EnvelopedErr + func ErrUnrecognizedLockCoinsType(lockCoinsType int) sdk.EnvelopedErr + func ErrUpdateLockedCoins() sdk.EnvelopedErr + func ErrUserInputSymbolIsEmpty() sdk.EnvelopedErr + func ErrWholeNameAndDescriptionIsNotModified() sdk.EnvelopedErr + func ErrWholeNameIsNotValidl() sdk.EnvelopedErr + func GetConfirmOwnershipKey(symbol string) []byte + func GetLockAddress(addr sdk.AccAddress) []byte + func GetLockFeeAddress(addr sdk.AccAddress) []byte + func GetTokenAddress(symbol string) []byte + func GetUserTokenKey(owner sdk.AccAddress, symbol string) []byte + func GetUserTokenPrefix(owner sdk.AccAddress) []byte + func NotAllowedOriginSymbol(name string) bool + func ParamKeyTable() params.KeyTable + func RegisterCodec(cdc *codec.Codec) + func ValidOriginalSymbol(name string) bool + func WholeNameCheck(wholeName string) (newName string, isValid bool) + type AccCoins struct + Acc sdk.AccAddress + Coins sdk.SysCoins + type AccountKeeper interface + GetAccount func(ctx sdk.Context, addr sdk.AccAddress) authexported.Account + IterateAccounts func(ctx sdk.Context, cb func(account authexported.Account) bool) + type AccountParam struct + Show string + Symbol string + type AccountParamV2 struct + Currency string + HideZero string + type AccountResponse struct + Address string + Currencies CoinsInfo + func NewAccountResponse(addr string) AccountResponse + type BaseAccount struct + AccountNumber uint64 + Address sdk.AccAddress + Coins sdk.Coins + PubKey crypto.PubKey + Sequence uint64 + type CoinInfo struct + Available string + Locked string + Symbol string + func NewCoinInfo(symbol, available, locked string) *CoinInfo + type CoinsInfo []CoinInfo + func MergeCoinInfo(availableCoins, lockedCoins sdk.SysCoins) (coinsInfo CoinsInfo) + func (d CoinsInfo) Len() int + func (d CoinsInfo) Less(i, j int) bool + func (d CoinsInfo) Swap(i, j int) + type ConfirmOwnership struct + Address sdk.AccAddress + Expire time.Time + Symbol string + type Currency struct + Description string + Symbol string + TotalSupply sdk.Dec + func (currency Currency) String() string + type DecAccount struct + AccountNumber uint64 + Address sdk.AccAddress + Coins sdk.SysCoins + PubKey crypto.PubKey + Sequence uint64 + func BaseAccountToDecAccount(account auth.BaseAccount) DecAccount + func (acc *DecAccount) ToBaseAccount() *auth.BaseAccount + func (acc DecAccount) String() string + type FeeDetail struct + Address string + Fee string + FeeType string + Receiver string + Timestamp int64 + type MsgConfirmOwnership struct + Address sdk.AccAddress + Symbol string + func NewMsgConfirmOwnership(newOwner sdk.AccAddress, symbol string) MsgConfirmOwnership + func (msg MsgConfirmOwnership) GetSignBytes() []byte + func (msg MsgConfirmOwnership) GetSigners() []sdk.AccAddress + func (msg MsgConfirmOwnership) Route() string + func (msg MsgConfirmOwnership) Type() string + func (msg MsgConfirmOwnership) ValidateBasic() sdk.Error + type MsgMultiSend struct + From sdk.AccAddress + Transfers []TransferUnit + func NewMsgMultiSend(from sdk.AccAddress, transfers []TransferUnit) MsgMultiSend + func (msg MsgMultiSend) GetSignBytes() []byte + func (msg MsgMultiSend) GetSigners() []sdk.AccAddress + func (msg MsgMultiSend) Route() string + func (msg MsgMultiSend) Type() string + func (msg MsgMultiSend) ValidateBasic() sdk.Error + type MsgSend struct + Amount sdk.SysCoins + FromAddress sdk.AccAddress + ToAddress sdk.AccAddress + func NewMsgTokenSend(from, to sdk.AccAddress, coins sdk.SysCoins) MsgSend + func (msg MsgSend) GetSignBytes() []byte + func (msg MsgSend) GetSigners() []sdk.AccAddress + func (msg MsgSend) Route() string + func (msg MsgSend) Type() string + func (msg MsgSend) ValidateBasic() sdk.Error + type MsgTokenBurn struct + Amount sdk.SysCoin + Owner sdk.AccAddress + func NewMsgTokenBurn(amount sdk.SysCoin, owner sdk.AccAddress) MsgTokenBurn + func (msg MsgTokenBurn) GetSignBytes() []byte + func (msg MsgTokenBurn) GetSigners() []sdk.AccAddress + func (msg MsgTokenBurn) Route() string + func (msg MsgTokenBurn) Type() string + func (msg MsgTokenBurn) ValidateBasic() sdk.Error + type MsgTokenIssue struct + Description string + Mintable bool + OriginalSymbol string + Owner sdk.AccAddress + Symbol string + TotalSupply string + WholeName string + func NewMsgTokenIssue(tokenDescription, symbol, originalSymbol, wholeName, totalSupply string, ...) MsgTokenIssue + func (msg MsgTokenIssue) GetSignBytes() []byte + func (msg MsgTokenIssue) GetSigners() []sdk.AccAddress + func (msg MsgTokenIssue) Route() string + func (msg MsgTokenIssue) Type() string + func (msg MsgTokenIssue) ValidateBasic() sdk.Error + type MsgTokenMint struct + Amount sdk.SysCoin + Owner sdk.AccAddress + func NewMsgTokenMint(amount sdk.SysCoin, owner sdk.AccAddress) MsgTokenMint + func (msg MsgTokenMint) GetSignBytes() []byte + func (msg MsgTokenMint) GetSigners() []sdk.AccAddress + func (msg MsgTokenMint) Route() string + func (msg MsgTokenMint) Type() string + func (msg MsgTokenMint) ValidateBasic() sdk.Error + type MsgTokenModify struct + Description string + IsDescriptionModified bool + IsWholeNameModified bool + Owner sdk.AccAddress + Symbol string + WholeName string + func NewMsgTokenModify(symbol, desc, wholeName string, isDescEdit, isWholeNameEdit bool, ...) MsgTokenModify + func (msg MsgTokenModify) GetSignBytes() []byte + func (msg MsgTokenModify) GetSigners() []sdk.AccAddress + func (msg MsgTokenModify) Route() string + func (msg MsgTokenModify) Type() string + func (msg MsgTokenModify) ValidateBasic() sdk.Error + type MsgTransferOwnership struct + FromAddress sdk.AccAddress + Symbol string + ToAddress sdk.AccAddress + func NewMsgTransferOwnership(from, to sdk.AccAddress, symbol string) MsgTransferOwnership + func (msg MsgTransferOwnership) GetSignBytes() []byte + func (msg MsgTransferOwnership) GetSigners() []sdk.AccAddress + func (msg MsgTransferOwnership) Route() string + func (msg MsgTransferOwnership) Type() string + func (msg MsgTransferOwnership) ValidateBasic() sdk.Error + type Params struct + FeeBurn sdk.SysCoin + FeeChown sdk.SysCoin + FeeIssue sdk.SysCoin + FeeMint sdk.SysCoin + FeeModify sdk.SysCoin + OwnershipConfirmWindow time.Duration + func DefaultParams() Params + func (p *Params) ParamSetPairs() params.ParamSetPairs + func (p Params) String() string + type Token struct + Description string + Mintable bool + OriginalSymbol string + OriginalTotalSupply sdk.Dec + Owner sdk.AccAddress + Symbol string + Type int + WholeName string + func (token Token) String() string + type TokenResp struct + Description string + Mintable bool + OriginalSymbol string + OriginalTotalSupply sdk.Dec + Owner sdk.AccAddress + Symbol string + TotalSupply sdk.Dec + Type int + WholeName string + func GenTokenResp(token Token) TokenResp + func (token TokenResp) String() string + type Tokens []TokenResp + func (tokens Tokens) String() string + type Transfer struct + Amount string + To string + type TransferUnit struct + Coins sdk.SysCoins + To sdk.AccAddress + func StrToTransfers(str string) (transfers []TransferUnit, err error)