v152

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultPoolCreationFee = sdk.NewCoin("ufury", sdkmath.NewIntWithDecimal(2000, 6))
	DefaultTaxRate         = sdk.NewDecWithPrec(4, 1)
)

Parameter store keys

Functions

func Migrate

func Migrate(ctx sdk.Context, k FarmKeeper, ak types.AccountKeeper, paramSpace paramstypes.Subspace) error

Types

type FarmKeeper

type FarmKeeper interface {
	SetParams(ctx sdk.Context, params types.Params)
}

type Params

type Params struct {
	PoolCreationFee     sdk.Coin `` /* 149-byte string literal not displayed */
	MaxRewardCategories uint32   `protobuf:"varint,2,opt,name=max_reward_categories,json=maxRewardCategories,proto3" json:"max_reward_categories,omitempty"`
	TaxRate             sdk.Dec  `protobuf:"bytes,3,opt,name=tax_rate,json=taxRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"tax_rate"`
}

func GetLegacyParams

func GetLegacyParams(ctx sdk.Context, paramSpace paramstypes.Subspace) Params

GetLegacyParams gets the parameters for the coinswap module.

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramstypes.ParamSetPairs

ParamSetPairs implements paramtypes.KeyValuePairs

Jump to

Keyboard shortcuts

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