Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
- func NewXatpProposalHandler(k Keeper) govtypes.Handler
- type Keeper
- func (k Keeper) DeductAndDistiributeFees(ctx sdk.Context, coins sdk.Coins) error
- func (k Keeper) DeleteXatp(ctx sdk.Context, denom string)
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) FundXatpPool(ctx sdk.Context, amount sdk.Coins, sender sdk.AccAddress) error
- func (k Keeper) GetAllXatps(ctx sdk.Context) (xatps []types.XATP)
- func (k Keeper) GetFeeInfoFromXATP(ctx sdk.Context, cw20 string) (sdk.Dec, error)
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetTaxRate(ctx sdk.Context) (taxRate sdk.Dec)
- func (k Keeper) GetXatp(ctx sdk.Context, denom string) (xatp types.XATP, found bool)
- func (k Keeper) GetXatpPayerAccount() sdk.AccAddress
- func (k Keeper) InitGenesis(ctx sdk.Context, data types.GenesisState)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Pair(ctx sdk.Context, pairContract string) (*types.Pair, error)
- func (k Keeper) PayXATP(ctx sdk.Context, deductFeesFrom sdk.AccAddress, denom string, amount string) error
- func (k Keeper) Pool(ctx sdk.Context, pairContract string) (*types.Pool, error)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetXatp(ctx sdk.Context, xatp types.XATP)
- func (k Keeper) TokenBalance(ctx sdk.Context, tokenContract string, account sdk.AccAddress) (*types.Cw20Balance, error)
- func (k Keeper) TokenInfo(ctx sdk.Context, tokenContract string) (*types.Token, error)
- func (k Keeper) TransferCw20(ctx sdk.Context, sender sdk.AccAddress, token string, amount string, ...) error
- type Querier
- func (k Querier) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Querier) Xatp(c context.Context, req *types.QueryXatpRequest) (*types.QueryXatpResponse, error)
- func (k Querier) XatpPool(c context.Context, req *types.QueryXatpPoolRequest) (*types.QueryXatpPoolResponse, error)
- func (k Querier) Xatps(c context.Context, req *types.QueryXatpsRequest) (*types.QueryXatpsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
func NewQuerier ¶
func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
func NewXatpProposalHandler ¶
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, key sdk.StoreKey, paramSpace paramtypes.Subspace, ak types.AccountKeeper, bk types.BankKeeper, dk types.DistributionKeeper, ck wasmTypes.ContractOpsKeeper, vk wasmTypes.ViewKeeper, ) Keeper
func (Keeper) DeductAndDistiributeFees ¶
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
func (Keeper) FundXatpPool ¶
FundXatpPool allows an account to directly fund the xatp fund pool. An error is returned if the amount cannot be sent to the module account.
func (Keeper) GetFeeInfoFromXATP ¶
func (Keeper) GetXatpPayerAccount ¶
func (k Keeper) GetXatpPayerAccount() sdk.AccAddress
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, data types.GenesisState)
func (Keeper) TokenBalance ¶
func (k Keeper) TokenBalance(ctx sdk.Context, tokenContract string, account sdk.AccAddress) (*types.Cw20Balance, error)
type Querier ¶
type Querier struct {
Keeper
}
func (Querier) Params ¶
func (k Querier) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Params queries params of distribution module
func (Querier) Xatp ¶
func (k Querier) Xatp(c context.Context, req *types.QueryXatpRequest) (*types.QueryXatpResponse, error)
func (Querier) XatpPool ¶
func (k Querier) XatpPool(c context.Context, req *types.QueryXatpPoolRequest) (*types.QueryXatpPoolResponse, error)
XatpPool queries the xatp pool coins
func (Querier) Xatps ¶
func (k Querier) Xatps(c context.Context, req *types.QueryXatpsRequest) (*types.QueryXatpsResponse, error)
Click to show internal directories.
Click to hide internal directories.