mimir

package
v1.128.2 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Id

type Id int32
const (
	Unknown Id = iota
	AffiliateFeeBasisPointsMax
	BondPause
	ConfMultiplierBasisPoints // https://gitlab.com/thorchain/thornode/-/issues/1599
	MaxConfirmations          // https://gitlab.com/thorchain/thornode/-/issues/1761
	CloutSwapperLimit
	CloutSwapperReset
	SwapSlipBasisPointsMin
	TradeAccountEnabled
)

func (Id) String added in v1.128.0

func (i Id) String() string

type Mimir

type Mimir interface {
	LegacyKey(_ string) string
	Tags() []string
	Description() string
	Name() string
	Reference() string
	DefaultValue() int64
	Type() MimirType
	FetchValue(_ cosmos.Context, _ keeper.Keeper) int64
	IsOn(_ cosmos.Context, _ keeper.Keeper) bool
	IsOff(_ cosmos.Context, _ keeper.Keeper) bool
}

func GetMimir

func GetMimir(id Id, ref string) (Mimir, bool)

GetMimir fetches a mimir by id number

func GetMimirByKey added in v1.125.0

func GetMimirByKey(key string) (Mimir, bool)

GetMimirByKey fetches a mimir by key

func NewAffiliateFeeBasisPointsMax

func NewAffiliateFeeBasisPointsMax(refs ...string) Mimir

func NewBondPause

func NewBondPause(refs ...string) Mimir

func NewConfBasisPointValue added in v1.125.0

func NewConfBasisPointValue(refs ...string) Mimir

func NewMaxConfValue added in v1.125.0

func NewMaxConfValue(refs ...string) Mimir

func NewSwapSlipBasisPointsMin added in v1.128.0

func NewSwapSlipBasisPointsMin(refs ...string) Mimir

func NewSwapperCloutLimit added in v1.125.0

func NewSwapperCloutLimit(refs ...string) Mimir

func NewSwapperCloutReset added in v1.125.0

func NewSwapperCloutReset(refs ...string) Mimir

func NewTradeAccountsEnabled added in v1.128.0

func NewTradeAccountsEnabled(refs ...string) Mimir

type MimirType

type MimirType uint8
const (
	UnknownMimir MimirType = iota
	EconomicMimir
	OperationalMimir
)

func (MimirType) String added in v1.125.0

func (i MimirType) String() string

Jump to

Keyboard shortcuts

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