keeper

package
v1.3.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

func NewQuerier

func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier

func NewXatpProposalHandler

func NewXatpProposalHandler(k Keeper) govtypes.Handler

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func (Keeper) DeductAndDistiributeFees

func (k Keeper) DeductAndDistiributeFees(ctx sdk.Context, coins sdk.Coins) error

func (Keeper) DeleteXatp

func (k Keeper) DeleteXatp(ctx sdk.Context, denom string)

func (Keeper) ExportGenesis

func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState

func (Keeper) FundXatpPool

func (k Keeper) FundXatpPool(ctx sdk.Context, amount sdk.Coins, sender sdk.AccAddress) error

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) GetAllXatps

func (k Keeper) GetAllXatps(ctx sdk.Context) (xatps []types.XATP)

func (Keeper) GetFeeInfoFromXATP

func (k Keeper) GetFeeInfoFromXATP(ctx sdk.Context, cw20 string) (sdk.Dec, error)

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)

func (Keeper) GetTaxRate

func (k Keeper) GetTaxRate(ctx sdk.Context) (taxRate sdk.Dec)

func (Keeper) GetXatp

func (k Keeper) GetXatp(ctx sdk.Context, denom string) (xatp types.XATP, found bool)

func (Keeper) GetXatpPayerAccount

func (k Keeper) GetXatpPayerAccount() sdk.AccAddress

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx sdk.Context, data types.GenesisState)

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

Logger returns a module-specific logger.

func (Keeper) Pair

func (k Keeper) Pair(ctx sdk.Context, pairContract string) (*types.Pair, error)

func (Keeper) PayXATP

func (k Keeper) PayXATP(ctx sdk.Context, deductFeesFrom sdk.AccAddress, denom string, amount string) error

func (Keeper) Pool

func (k Keeper) Pool(ctx sdk.Context, pairContract string) (*types.Pool, error)

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

func (Keeper) SetXatp

func (k Keeper) SetXatp(ctx sdk.Context, xatp types.XATP)

func (Keeper) TokenBalance

func (k Keeper) TokenBalance(ctx sdk.Context, tokenContract string, account sdk.AccAddress) (*types.Cw20Balance, error)

func (Keeper) TokenInfo

func (k Keeper) TokenInfo(ctx sdk.Context, tokenContract string) (*types.Token, error)

func (Keeper) TransferCw20

func (k Keeper) TransferCw20(ctx sdk.Context, sender sdk.AccAddress, token string, amount string, recipient string) error

type Querier

type Querier struct {
	Keeper
}

func (Querier) Params

Params queries params of distribution module

func (Querier) Xatp

func (Querier) XatpPool

XatpPool queries the xatp pool coins

func (Querier) Xatps

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL