Versions in this module Expand all Collapse all v0 v0.19.9 Oct 25, 2021 Changes in this version + func GetBuiltInTokenPair() *types.TokenPair + func ModuleAccountInvariant(keeper IKeeper, supplyKeeper SupplyKeeper) sdk.Invariant + func NewQuerier(keeper IKeeper) sdk.Querier + func RegisterInvariants(ir sdk.InvariantRegistry, keeper IKeeper, supplyKeeper SupplyKeeper) + type BankKeeper interface + GetCoins func(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins + type GovKeeper interface + RemoveFromActiveProposalQueue func(ctx sdk.Context, proposalID uint64, endTime time.Time) + type IKeeper interface + CompleteWithdraw func(ctx sdk.Context, addr sdk.AccAddress) error + DeleteConfirmOwnership func(ctx sdk.Context, product string) + DeleteTokenPairByName func(ctx sdk.Context, owner sdk.AccAddress, tokenPairName string) + DeleteWithdrawCompleteTimeAddress func(ctx sdk.Context, timestamp time.Time, delAddr sdk.AccAddress) + Deposit func(ctx sdk.Context, product string, from sdk.AccAddress, amount sdk.SysCoin) sdk.Error + GetBankKeeper func() BankKeeper + GetConfirmOwnership func(ctx sdk.Context, product string) (confirmOwnership *types.ConfirmOwnership, exist bool) + GetFeeCollector func() string + GetMaxTokenPairID func(ctx sdk.Context) (tokenPairMaxID uint64) + GetOperator func(ctx sdk.Context, addr sdk.AccAddress) (operator types.DEXOperator, isExist bool) + GetParamSubspace func() params.Subspace + GetParams func(ctx sdk.Context) (params types.Params) + GetSupplyKeeper func() SupplyKeeper + GetTokenKeeper func() TokenKeeper + GetTokenPair func(ctx sdk.Context, product string) *types.TokenPair + GetTokenPairs func(ctx sdk.Context) []*types.TokenPair + GetTokenPairsOrdered func(ctx sdk.Context) types.TokenPairs + GetUserTokenPairs func(ctx sdk.Context, owner sdk.AccAddress) []*types.TokenPair + IterateOperators func(ctx sdk.Context, cb func(operator types.DEXOperator) (stop bool)) + IterateWithdrawAddress func(ctx sdk.Context, currentTime time.Time, ...) + IterateWithdrawInfo func(ctx sdk.Context, ...) + LoadProductLocks func(ctx sdk.Context) *ordertypes.ProductLockMap + LockTokenPair func(ctx sdk.Context, product string, lock *ordertypes.ProductLock) + SaveTokenPair func(ctx sdk.Context, tokenPair *types.TokenPair) error + SetConfirmOwnership func(ctx sdk.Context, confirmOwnership *types.ConfirmOwnership) + SetMaxTokenPairID func(ctx sdk.Context, tokenPairMaxID uint64) + SetOperator func(ctx sdk.Context, operator types.DEXOperator) + SetParams func(ctx sdk.Context, params types.Params) + SetWithdrawCompleteTimeAddress func(ctx sdk.Context, completeTime time.Time, addr sdk.AccAddress) + SetWithdrawInfo func(ctx sdk.Context, withdrawInfo types.WithdrawInfo) + UpdateTokenPair func(ctx sdk.Context, product string, tokenPair *types.TokenPair) + UpdateUserTokenPair func(ctx sdk.Context, product string, owner, to sdk.AccAddress) + Withdraw func(ctx sdk.Context, product string, to sdk.AccAddress, amount sdk.SysCoin) sdk.Error + type Keeper struct + func NewKeeper(feeCollectorName string, supplyKeeper SupplyKeeper, ...) Keeper + func (k *Keeper) SetGovKeeper(gk GovKeeper) + func (k *Keeper) SetObserverKeeper(sk StreamKeeper) + func (k Keeper) AfterDepositPeriodPassed(ctx sdk.Context, proposal govTypes.Proposal) + func (k Keeper) AfterSubmitProposalHandler(ctx sdk.Context, proposal govTypes.Proposal) + func (k Keeper) CheckMsgSubmitProposal(ctx sdk.Context, msg govTypes.MsgSubmitProposal) (sdkErr sdk.Error) + func (k Keeper) CheckTokenPairUnderDexDelist(ctx sdk.Context, product string) (isDelisting bool, err error) + func (k Keeper) CompleteWithdraw(ctx sdk.Context, addr sdk.AccAddress) error + func (k Keeper) DeleteConfirmOwnership(ctx sdk.Context, product string) + func (k Keeper) DeleteTokenPairByName(ctx sdk.Context, owner sdk.AccAddress, product string) + func (k Keeper) DeleteWithdrawCompleteTimeAddress(ctx sdk.Context, timestamp time.Time, delAddr sdk.AccAddress) + func (k Keeper) Deposit(ctx sdk.Context, product string, from sdk.AccAddress, amount sdk.SysCoin) sdk.Error + func (k Keeper) GetBankKeeper() BankKeeper + func (k Keeper) GetConfirmOwnership(ctx sdk.Context, product string) (confirmOwnership *types.ConfirmOwnership, exist bool) + func (k Keeper) GetFeeCollector() string + func (k Keeper) GetLockedProductsCopy(ctx sdk.Context) *ordertypes.ProductLockMap + func (k Keeper) GetMaxDepositPeriod(ctx sdk.Context, content gov.Content) (maxDepositPeriod time.Duration) + func (k Keeper) GetMaxTokenPairID(ctx sdk.Context) (tokenPairMaxID uint64) + func (k Keeper) GetMinDeposit(ctx sdk.Context, content gov.Content) (minDeposit sdk.SysCoins) + func (k Keeper) GetOperator(ctx sdk.Context, addr sdk.AccAddress) (operator types.DEXOperator, isExist bool) + func (k Keeper) GetParamSubspace() params.Subspace + func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) + func (k Keeper) GetSupplyKeeper() SupplyKeeper + func (k Keeper) GetTokenKeeper() TokenKeeper + func (k Keeper) GetTokenPair(ctx sdk.Context, product string) *types.TokenPair + func (k Keeper) GetTokenPairFromStore(ctx sdk.Context, product string) *types.TokenPair + func (k Keeper) GetTokenPairs(ctx sdk.Context) (tokenPairs []*types.TokenPair) + func (k Keeper) GetTokenPairsOrdered(ctx sdk.Context) types.TokenPairs + func (k Keeper) GetUserTokenPairs(ctx sdk.Context, owner sdk.AccAddress) (tokenPairs []*types.TokenPair) + func (k Keeper) GetVotingPeriod(ctx sdk.Context, content gov.Content) (votingPeriod time.Duration) + func (k Keeper) GetWithdrawInfo(ctx sdk.Context, addr sdk.AccAddress) (withdrawInfo types.WithdrawInfo, ok bool) + func (k Keeper) IsAnyProductLocked(ctx sdk.Context) bool + func (k Keeper) IsTokenPairLocked(ctx sdk.Context, product string) bool + func (k Keeper) IterateOperators(ctx sdk.Context, cb func(operator types.DEXOperator) (stop bool)) + func (k Keeper) IterateWithdrawAddress(ctx sdk.Context, currentTime time.Time, ...) + func (k Keeper) IterateWithdrawInfo(ctx sdk.Context, ...) + func (k Keeper) LoadProductLocks(ctx sdk.Context) *ordertypes.ProductLockMap + func (k Keeper) LockTokenPair(ctx sdk.Context, product string, lock *ordertypes.ProductLock) + func (k Keeper) RejectedHandler(ctx sdk.Context, content govTypes.Content) + func (k Keeper) RemoveFromActiveProposalQueue(ctx sdk.Context, proposalID uint64, endTime time.Time) + func (k Keeper) SaveTokenPair(ctx sdk.Context, tokenPair *types.TokenPair) error + func (k Keeper) SetConfirmOwnership(ctx sdk.Context, confirmOwnership *types.ConfirmOwnership) + func (k Keeper) SetMaxTokenPairID(ctx sdk.Context, MaxtokenPairID uint64) + func (k Keeper) SetOperator(ctx sdk.Context, operator types.DEXOperator) + func (k Keeper) SetParams(ctx sdk.Context, params types.Params) + func (k Keeper) SetWithdrawCompleteTimeAddress(ctx sdk.Context, completeTime time.Time, addr sdk.AccAddress) + func (k Keeper) SetWithdrawInfo(ctx sdk.Context, withdrawInfo types.WithdrawInfo) + func (k Keeper) SortProducts(ctx sdk.Context, products []string) + func (k Keeper) UnlockTokenPair(ctx sdk.Context, product string) + func (k Keeper) UpdateTokenPair(ctx sdk.Context, product string, tokenPair *types.TokenPair) + func (k Keeper) UpdateUserTokenPair(ctx sdk.Context, product string, owner, to sdk.AccAddress) + func (k Keeper) VoteHandler(ctx sdk.Context, proposal govTypes.Proposal, vote govTypes.Vote) (string, sdk.Error) + func (k Keeper) Withdraw(ctx sdk.Context, product string, to sdk.AccAddress, amount sdk.SysCoin) sdk.Error + type StakingKeeper interface + IsValidator func(ctx sdk.Context, addr sdk.AccAddress) bool + type StreamKeeper interface + OnAddNewTokenPair func(ctx sdk.Context, tokenPair *types.TokenPair) + OnTokenPairUpdated func(ctx sdk.Context) + type SupplyKeeper interface + GetModuleAccount func(ctx sdk.Context, moduleName string) exported.ModuleAccountI + GetModuleAddress func(moduleName string) sdk.AccAddress + 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 + type TokenKeeper interface + TokenExist func(ctx sdk.Context, symbol string) bool