Documentation ¶
Overview ¶
nolint aliases generated for the following subdirectories: ALIASGEN: github.com/okex/okexchain/x/dex/keeper ALIASGEN: github.com/okex/okexchain/x/dex/types
Index ¶
- Constants
- Variables
- func EndBlocker(ctx sdk.Context, k IKeeper)
- func InitGenesis(ctx sdk.Context, keeper IKeeper, data GenesisState)
- func NewHandler(k IKeeper) sdk.Handler
- func NewProposalHandler(k *Keeper) govTypes.Handler
- func ValidateGenesis(data GenesisState) error
- type AppModule
- func (am AppModule) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock)
- func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
- 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 (AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (AppModule) Route() string
- type AppModuleBasic
- 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 BankKeeper
- type DEXOperator
- type DEXOperators
- type GenesisState
- type IKeeper
- type Keeper
- type MsgConfirmOwnership
- type MsgCreateOperator
- type MsgDeposit
- type MsgList
- type MsgTransferOwnership
- type MsgUpdateOperator
- type MsgWithdraw
- type Params
- type ProtocolVersionType
- type StakingKeeper
- type StreamKeeper
- type SupplyKeeper
- type TokenKeeper
- type TokenPair
- type WithdrawInfo
- type WithdrawInfos
Constants ¶
const ( ModuleName = types.ModuleName DefaultCodespace = types.DefaultCodespace DefaultParamspace = types.DefaultParamspace TokenPairStoreKey = types.TokenPairStoreKey QuerierRoute = types.QuerierRoute RouterKey = types.RouterKey StoreKey = types.StoreKey DefaultMaxPriceDigitSize = types.DefaultMaxPriceDigitSize DefaultMaxQuantityDigitSize = types.DefaultMaxQuantityDigitSize AuthFeeCollector = auth.FeeCollectorName )
Variables ¶
var ( ModuleCdc = types.ModuleCdc DefaultTokenPairDeposit = types.DefaultTokenPairDeposit RegisterCodec = types.RegisterCodec NewQuerier = keeper.NewQuerier NewKeeper = keeper.NewKeeper GetBuiltInTokenPair = keeper.GetBuiltInTokenPair DefaultParams = types.DefaultParams NewMsgList = types.NewMsgList NewMsgDeposit = types.NewMsgDeposit NewMsgWithdraw = types.NewMsgWithdraw ErrTokenPairNotFound = types.ErrTokenPairNotFound )
Functions ¶
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, keeper IKeeper, data GenesisState)
InitGenesis initialize default parameters and the keeper's address to pubkey map
func NewHandler ¶
NewHandler handles all "dex" type messages.
func NewProposalHandler ¶
NewProposalHandler handles "gov" type message in "dex"
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
ValidateGenesis validates the slashing genesis parameters
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
AppModule represents app module
func NewAppModule ¶
func NewAppModule(version ProtocolVersionType, keeper IKeeper, supplyKeeper SupplyKeeper) AppModule
NewAppModule creates a new AppModule object
func (AppModule) BeginBlock ¶
func (am AppModule) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock)
BeginBlock returns module begin-block
func (AppModule) EndBlock ¶
func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
EndBlock returns module end-block
func (AppModule) ExportGenesis ¶
func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
ExportGenesis exports module genesis
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
InitGenesis inits module genesis
func (AppModule) NewHandler ¶
NewHandler returns module handler
func (AppModule) NewQuerierHandler ¶
NewQuerierHandler returns module querier
func (AppModule) QuerierRoute ¶
QuerierRoute returns module querier route name
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
RegisterInvariants registers invariants
type AppModuleBasic ¶
type AppModuleBasic struct{}
AppModuleBasic represents a app module basics object
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis() json.RawMessage
DefaultGenesis returns default genesis state
func (AppModuleBasic) GetQueryCmd ¶
func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
GetQueryCmd returns the root query command of this module
func (AppModuleBasic) GetTxCmd ¶
func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
GetTxCmd returns the root tx command of this module
func (AppModuleBasic) RegisterCodec ¶
func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
RegisterCodec registers module codec
func (AppModuleBasic) RegisterRESTRoutes ¶
func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
RegisterRESTRoutes registers rest routes
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
ValidateGenesis validates genesis
type BankKeeper ¶
type BankKeeper = keeper.BankKeeper
type DEXOperator ¶
type DEXOperator = types.DEXOperator
type DEXOperators ¶
type DEXOperators = types.DEXOperators
type GenesisState ¶
type GenesisState struct { Params Params `json:"params"` TokenPairs []*TokenPair `json:"token_pairs"` WithdrawInfos WithdrawInfos `json:"withdraw_infos"` ProductLocks ordertypes.ProductLockMap `json:"product_locks"` Operators DEXOperators `json:"operators"` MaxTokenPairID uint64 `json:"max_token_pair_id" yaml:"max_token_pair_id"` }
GenesisState - all dex state that must be provided at genesis
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
DefaultGenesisState - default GenesisState used by Cosmos Hub TODO: check how the added params' influence export facility
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, keeper IKeeper) (data GenesisState)
ExportGenesis writes the current store values to a genesis file, which can be imported again with InitGenesis
type MsgConfirmOwnership ¶ added in v0.13.0
type MsgConfirmOwnership = types.MsgConfirmOwnership
type MsgCreateOperator ¶
type MsgCreateOperator = types.MsgCreateOperator
type MsgDeposit ¶
type MsgDeposit = types.MsgDeposit
type MsgTransferOwnership ¶
type MsgTransferOwnership = types.MsgTransferOwnership
type MsgUpdateOperator ¶
type MsgUpdateOperator = types.MsgUpdateOperator
type MsgWithdraw ¶
type MsgWithdraw = types.MsgWithdraw
type ProtocolVersionType ¶
type ProtocolVersionType = version.ProtocolVersionType
type StakingKeeper ¶
type StakingKeeper = keeper.StakingKeeper
type StreamKeeper ¶ added in v0.16.0
type StreamKeeper = keeper.StreamKeeper
type SupplyKeeper ¶
type SupplyKeeper = keeper.SupplyKeeper
type TokenKeeper ¶
type TokenKeeper = keeper.TokenKeeper
type WithdrawInfo ¶
type WithdrawInfo = types.WithdrawInfo
type WithdrawInfos ¶
type WithdrawInfos = types.WithdrawInfos