Versions in this module Expand all Collapse all v0 v0.19.9 Oct 25, 2021 Changes in this version + const CodeAddrAndProductAllRequired + const CodeAddressIsRequired + const CodeDepositFailed + const CodeDepositOnlySupportDenom + const CodeDexUnknownMsgType + const CodeDexUnknownQueryType + const CodeGetConfirmOwnershipNotExist + const CodeInitPriceIsNotPositive + const CodeInsufficientDepositCoins + const CodeInsufficientFeeCoins + const CodeInsufficientWithdrawCoins + const CodeInvalidAddress + const CodeInvalidCoins + const CodeIsTokenPairLocked + const CodeIsTransferringOwner + const CodeMustTokenPairOwner + const CodeRepeatedTransferOwner + const CodeTokenOfPairNotExist + const CodeTokenPairAlreadyExist + const CodeTokenPairIsRequired + const CodeTokenPairSaveFailed + const CodeTransferOwnerExpired + const CodeUnauthorized + const CodeUnauthorizedOperator + const CodeWithdrawFailed + const CodeWithdrawOnlySupportDenom + const DefaultCodespace + const DefaultMaxPriceDigitSize + const DefaultMaxQuantityDigitSize + const DefaultOwnershipConfirmWindow + const DefaultPage + const DefaultParamspace + const DefaultPerPage + const DefaultWithdrawPeriod + const ModuleName + const QuerierRoute + const QueryDeposits + const QueryMatchOrder + const QueryOperator + const QueryOperators + const QueryParameters + const QueryProducts + const QueryProductsDelisting + const RouterKey + const StoreKey + const TestTokenPairOwner + const TokenPairStoreKey + var DEXOperatorKeyPrefix = []byte + var DEXOperatorTokenPairCntPrefix = []byte + var DefaultTokenPairDeposit = sdk.NewDecCoin(sdk.DefaultBondDenom, sdk.NewInt(0)) + var MaxTokenPairIDKey = []byte + var ModuleCdc *codec.Codec + var PrefixConfirmOwnershipKey = []byte + var TokenPairKey = []byte + var TokenPairLockKeyPrefix = []byte + var UserTokenPairKeyPrefix = []byte + var WithdrawAddressKeyPrefix = []byte + var WithdrawTimeKeyPrefix = []byte + func ErrAddrAndProductAllRequired() sdk.EnvelopedErr + func ErrAddressIsRequired(addrType string) sdk.EnvelopedErr + func ErrBalanceNotEnough(proposer string, initialDeposit string) sdk.EnvelopedErr + func ErrDepositFailed(msg string) sdk.EnvelopedErr + func ErrDepositOnlySupportDenom(denom string) sdk.EnvelopedErr + func ErrDexUnknownMsgType(msg string) sdk.EnvelopedErr + func ErrDexUnknownQueryType() sdk.EnvelopedErr + func ErrExistOperator(addr sdk.AccAddress) sdk.EnvelopedErr + func ErrGetConfirmOwnershipNotExist(address string) sdk.EnvelopedErr + func ErrInitPriceIsNotPositive() sdk.EnvelopedErr + func ErrInsufficientDepositCoins(depositCoins string) sdk.EnvelopedErr + func ErrInsufficientFeeCoins(fee sdk.Coins) sdk.EnvelopedErr + func ErrInsufficientWithdrawCoins(depositCoins string, amount string) sdk.EnvelopedErr + func ErrInvalidAddress(msg string) sdk.EnvelopedErr + func ErrInvalidAsset(localMinDeposit string) sdk.EnvelopedErr + func ErrInvalidCoins() sdk.EnvelopedErr + func ErrInvalidTokenPair(tokenPair string) sdk.EnvelopedErr + func ErrInvalidWebsiteLength(got, max int) sdk.EnvelopedErr + func ErrInvalidWebsiteURL(msg string) sdk.EnvelopedErr + func ErrIsTokenPairLocked(tokenPairName string) sdk.EnvelopedErr + func ErrIsTransferOwnerExpired(time string) sdk.EnvelopedErr + func ErrIsTransferringOwner(product string) sdk.EnvelopedErr + func ErrMustTokenPairOwner(addr string, tokenPair string) sdk.EnvelopedErr + func ErrRepeatedTransferOwner(product string) sdk.EnvelopedErr + func ErrTokenOfPairNotExist(baseAsset string, quoteAsset string) sdk.EnvelopedErr + func ErrTokenPairExisted(baseAsset string, quoteAsset string) sdk.EnvelopedErr + func ErrTokenPairIsRequired() sdk.EnvelopedErr + func ErrTokenPairNotFound(product string) sdk.EnvelopedErr + func ErrTokenPairSaveFailed(err string) sdk.EnvelopedErr + func ErrUnauthorized(address, product string) sdk.EnvelopedErr + func ErrUnauthorizedOperator(operator, owner string) sdk.EnvelopedErr + func ErrUnknownOperator(addr sdk.AccAddress) sdk.EnvelopedErr + func ErrWithdrawFailed(msg string) sdk.EnvelopedErr + func ErrWithdrawOnlySupportDenom(denom string) sdk.EnvelopedErr + func GetConfirmOwnershipKey(product string) []byte + func GetKey(it sdk.Iterator) string + func GetLockProductKey(product string) []byte + func GetOperatorAddressKey(addr sdk.AccAddress) []byte + func GetTokenPairAddress(key string) []byte + func GetUserTokenPairAddress(owner sdk.AccAddress, assertPair string) []byte + func GetUserTokenPairAddressPrefix(owner sdk.AccAddress) []byte + func GetWithdrawAddressKey(addr sdk.AccAddress) []byte + func GetWithdrawTimeAddressKey(completeTime time.Time, addr sdk.AccAddress) []byte + func GetWithdrawTimeKey(completeTime time.Time) []byte + func ParamKeyTable() params.KeyTable + func RegisterCodec(cdc *codec.Codec) + func SplitWithdrawTimeKey(key []byte) (time.Time, sdk.AccAddress) + type ConfirmOwnership struct + Expire time.Time + FromAddress sdk.AccAddress + Product string + ToAddress sdk.AccAddress + type DEXOperator struct + Address sdk.AccAddress + HandlingFeeAddress sdk.AccAddress + InitHeight int64 + TxHash string + Website string + func (o DEXOperator) String() string + type DEXOperators []DEXOperator + func (o DEXOperators) String() string + type DelistProposal struct + BaseAsset string + Description string + Proposer sdk.AccAddress + QuoteAsset string + Title string + func NewDelistProposal(title, description string, proposer sdk.AccAddress, ...) DelistProposal + func (DelistProposal) ProposalRoute() string + func (DelistProposal) ProposalType() string + func (drp DelistProposal) GetDescription() string + func (drp DelistProposal) GetTitle() string + func (drp DelistProposal) String() string + func (drp DelistProposal) ValidateBasic() sdk.Error + type MsgConfirmOwnership struct + Address sdk.AccAddress + Product string + func NewMsgConfirmOwnership(newOwner sdk.AccAddress, product 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 MsgCreateOperator struct + HandlingFeeAddress sdk.AccAddress + Owner sdk.AccAddress + Website string + func NewMsgCreateOperator(website string, owner, handlingFeeAddress sdk.AccAddress) MsgCreateOperator + func (msg MsgCreateOperator) GetSignBytes() []byte + func (msg MsgCreateOperator) GetSigners() []sdk.AccAddress + func (msg MsgCreateOperator) Route() string + func (msg MsgCreateOperator) Type() string + func (msg MsgCreateOperator) ValidateBasic() sdk.Error + type MsgDeposit struct + Amount sdk.SysCoin + Depositor sdk.AccAddress + Product string + func NewMsgDeposit(product string, amount sdk.SysCoin, depositor sdk.AccAddress) MsgDeposit + func (msg MsgDeposit) GetSignBytes() []byte + func (msg MsgDeposit) GetSigners() []sdk.AccAddress + func (msg MsgDeposit) Route() string + func (msg MsgDeposit) Type() string + func (msg MsgDeposit) ValidateBasic() sdk.Error + type MsgList struct + InitPrice sdk.Dec + ListAsset string + Owner sdk.AccAddress + QuoteAsset string + func NewMsgList(owner sdk.AccAddress, listAsset, quoteAsset string, initPrice sdk.Dec) MsgList + func (msg MsgList) GetSignBytes() []byte + func (msg MsgList) GetSigners() []sdk.AccAddress + func (msg MsgList) Route() string + func (msg MsgList) Type() string + func (msg MsgList) ValidateBasic() sdk.Error + type MsgTransferOwnership struct + FromAddress sdk.AccAddress + Product string + ToAddress sdk.AccAddress + func NewMsgTransferOwnership(from, to sdk.AccAddress, product 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 MsgUpdateOperator struct + HandlingFeeAddress sdk.AccAddress + Owner sdk.AccAddress + Website string + func NewMsgUpdateOperator(website string, owner, handlingFeeAddress sdk.AccAddress) MsgUpdateOperator + func (msg MsgUpdateOperator) GetSignBytes() []byte + func (msg MsgUpdateOperator) GetSigners() []sdk.AccAddress + func (msg MsgUpdateOperator) Route() string + func (msg MsgUpdateOperator) Type() string + func (msg MsgUpdateOperator) ValidateBasic() sdk.Error + type MsgWithdraw struct + Amount sdk.SysCoin + Depositor sdk.AccAddress + Product string + func NewMsgWithdraw(product string, amount sdk.SysCoin, depositor sdk.AccAddress) MsgWithdraw + func (msg MsgWithdraw) GetSignBytes() []byte + func (msg MsgWithdraw) GetSigners() []sdk.AccAddress + func (msg MsgWithdraw) Route() string + func (msg MsgWithdraw) Type() string + func (msg MsgWithdraw) ValidateBasic() sdk.Error + type Params struct + DelistMaxDepositPeriod time.Duration + DelistMinDeposit sdk.SysCoins + DelistVotingPeriod time.Duration + ListFee sdk.SysCoin + OwnershipConfirmWindow time.Duration + RegisterOperatorFee sdk.SysCoin + TransferOwnershipFee sdk.SysCoin + WithdrawPeriod time.Duration + func DefaultParams() *Params + func (p *Params) ParamSetPairs() params.ParamSetPairs + func (p Params) String() string + type QueryDepositParams struct + Address string + BaseAsset string + Page int + PerPage int + QuoteAsset string + func NewQueryDepositParams(address, baseAsset, quoteAsset string, page, perPage int) QueryDepositParams + type QueryDexInfoParams struct + Owner string + Page int + PerPage int + func NewQueryDexInfoParams(owner string, page, perPage int) QueryDexInfoParams + type QueryDexOperatorParams struct + Addr sdk.AccAddress + func NewQueryDexOperatorParams(addr sdk.AccAddress) QueryDexOperatorParams + type TokenPair struct + BaseAssetSymbol string + BlockHeight int64 + Delisting bool + Deposits sdk.SysCoin + ID uint64 + InitPrice sdk.Dec + MaxPriceDigit int64 + MaxQuantityDigit int64 + MinQuantity sdk.Dec + Owner sdk.AccAddress + QuoteAssetSymbol string + func (tp *TokenPair) IsGT(other *TokenPair) bool + func (tp *TokenPair) Name() string + type TokenPairs []*TokenPair + func (tp TokenPairs) Len() int + func (tp TokenPairs) Less(i, j int) bool + func (tp TokenPairs) Swap(i, j int) + type WithdrawInfo struct + CompleteTime time.Time + Deposits sdk.SysCoin + Owner sdk.AccAddress + func (w WithdrawInfo) Equal(other WithdrawInfo) bool + type WithdrawInfos []WithdrawInfo + func (ws WithdrawInfos) Equal(other WithdrawInfos) bool