Documentation ¶
Index ¶
- Variables
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type DeductTaxDecorator
- type Keeper
- func (k Keeper) BaseDenom(ctx sdk.Context) (res string)
- func (k Keeper) ContractAddress(ctx sdk.Context) (res string)
- func (k Keeper) FeeRate(ctx sdk.Context) (res int32)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
Constants ¶
This section is empty.
Variables ¶
View Source
var HUNDRED_DEC = sdk.NewDec(100)
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type DeductTaxDecorator ¶
type DeductTaxDecorator struct {
// contains filtered or unexported fields
}
DeductTaxDecorator deducts tax by a given fee rate from the standard collected fee. The tax is sent to a treasury account Call next AnteHandler if tax successfully sent to treasury or no fee provided CONTRACT: Tx must implement FeeTx interface to use DeductTaxDecorator.
func NewDeductTaxDecorator ¶
func NewDeductTaxDecorator(ak types.AccountKeeper, bk types.BankKeeper, tk Keeper) DeductTaxDecorator
func (DeductTaxDecorator) AnteHandle ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey sdk.StoreKey, ps paramtypes.Subspace, ) *Keeper
func (Keeper) ContractAddress ¶
ContractAddress returns the contract address.
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Click to show internal directories.
Click to hide internal directories.