Documentation ¶
Index ¶
- Constants
- Variables
- func HandleMsgAddLiquidity(ctx sdk.Context, msg MsgAddLiquidity, k Keeper) sdk.Result
- func HandleMsgRemoveLiquidity(ctx sdk.Context, msg MsgRemoveLiquidity, k Keeper) sdk.Result
- func HandleMsgSwapOrder(ctx sdk.Context, msg MsgSwapOrder, k Keeper) sdk.Result
- func InitGenesis(ctx sdk.Context, k Keeper, data GenesisState)
- func NewHandler(k Keeper) sdk.Handler
- func ValidateGenesis(data GenesisState) error
- type GenesisState
- type Input
- type Keeper
- type MsgAddLiquidity
- type MsgRemoveLiquidity
- type MsgSwapOrder
- type Output
- type Params
- type QueryLiquidityParams
Constants ¶
View Source
const ( DefaultCodespace = types.DefaultCodespace ModuleName = types.ModuleName FormatUniABSPrefix = types.FormatUniABSPrefix )
Variables ¶
View Source
var ( DefaultParamSpace = types.DefaultParamSpace QueryLiquidity = types.QueryLiquidity RegisterCodec = types.RegisterCodec NewMsgSwapOrder = types.NewMsgSwapOrder NewMsgAddLiquidity = types.NewMsgAddLiquidity NewMsgRemoveLiquidity = types.NewMsgRemoveLiquidity NewKeeper = keeper.NewKeeper NewQuerier = keeper.NewQuerier ErrInvalidDeadline = types.ErrInvalidDeadline ErrNotPositive = types.ErrNotPositive ErrConstraintNotMet = types.ErrConstraintNotMet GetUniId = types.GetUniId GetCoinMinDenomFromUniDenom = types.GetCoinMinDenomFromUniDenom GetUniDenom = types.GetUniDenom GetUniCoinType = types.GetUniCoinType CheckUniDenom = types.CheckUniDenom CheckUniId = types.CheckUniId )
Functions ¶
func HandleMsgAddLiquidity ¶
Handle MsgAddLiquidity. If the reserve pool does not exist, it will be created. The first liquidity provider sets the exchange rate.
func HandleMsgRemoveLiquidity ¶
HandleMsgRemoveLiquidity handler for MsgRemoveLiquidity
func HandleMsgSwapOrder ¶
Handle MsgSwapOrder.
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, k Keeper, data GenesisState)
InitGenesis new coinswap genesis
func NewHandler ¶
NewHandler returns a handler for "coinswap" type messages.
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
ValidateGenesis - placeholder function
Types ¶
type GenesisState ¶
GenesisState - coinswap genesis state
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
DefaultGenesisState creates a default GenesisState object
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, keeper Keeper) GenesisState
ExportGenesis returns a GenesisState for a given context and keeper.
func NewGenesisState ¶
func NewGenesisState(params types.Params) GenesisState
NewGenesisState is the constructor function for GenesisState
type MsgAddLiquidity ¶
type MsgAddLiquidity = types.MsgAddLiquidity
type MsgRemoveLiquidity ¶
type MsgRemoveLiquidity = types.MsgRemoveLiquidity
type MsgSwapOrder ¶
type MsgSwapOrder = types.MsgSwapOrder
type QueryLiquidityParams ¶
type QueryLiquidityParams = types.QueryLiquidityParams
Click to show internal directories.
Click to hide internal directories.