keeper

package
v1.109.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName  = types.ModuleName
	ReserveName = types.ReserveName
	AsgardName  = types.AsgardName
	BondName    = types.BondName
	RouterKey   = types.RouterKey
	StoreKey    = types.StoreKey
	MayaFund    = types.MayaFund

	ActiveVault = types.VaultStatus_ActiveVault

	// Node status
	NodeActive = types.NodeStatus_Active
)

Variables

View Source
var (
	NewPool                = types.NewPool
	NewJail                = types.NewJail
	ModuleCdc              = types.ModuleCdc
	RegisterCodec          = types.RegisterCodec
	GetRandomVault         = types.GetRandomVault
	GetRandomValidatorNode = types.GetRandomValidatorNode
	GetRandomBNBAddress    = types.GetRandomBNBAddress
	GetRandomTxHash        = types.GetRandomTxHash
	GetRandomBech32Addr    = types.GetRandomBech32Addr
	GetRandomPubKey        = types.GetRandomPubKey
)

Functions

This section is empty.

Types

type BanVoter

type BanVoter = types.BanVoter

type BondProvider

type BondProvider = types.BondProvider

type BondProviders

type BondProviders = types.BondProviders

type ChainContract

type ChainContract = types.ChainContract

type DummyIterator

type DummyIterator struct {
	cosmos.Iterator
	// contains filtered or unexported fields
}

a mock cosmos.Iterator implementation for testing purposes

func NewDummyIterator

func NewDummyIterator() *DummyIterator

func (*DummyIterator) AddItem

func (iter *DummyIterator) AddItem(key, value []byte)

func (*DummyIterator) Close

func (iter *DummyIterator) Close() error

func (*DummyIterator) Domain

func (iter *DummyIterator) Domain() (start, end []byte)

func (*DummyIterator) Error

func (iter *DummyIterator) Error() error

func (*DummyIterator) Key

func (iter *DummyIterator) Key() []byte

func (*DummyIterator) Next

func (iter *DummyIterator) Next()

func (*DummyIterator) Valid

func (iter *DummyIterator) Valid() bool

func (*DummyIterator) Value

func (iter *DummyIterator) Value() []byte

type ErrataTxVoter

type ErrataTxVoter = types.ErrataTxVoter

type ForgiveSlashVoter

type ForgiveSlashVoter = types.ForgiveSlashVoter

type Jail

type Jail = types.Jail

type KVStoreDummy

type KVStoreDummy struct{}

func (KVStoreDummy) AccountKeeper

func (k KVStoreDummy) AccountKeeper() authkeeper.AccountKeeper

func (KVStoreDummy) AddBondFeeToReserve

func (k KVStoreDummy) AddBondFeeToReserve(_ cosmos.Context, _ cosmos.Uint) error

func (KVStoreDummy) AddCoins

func (k KVStoreDummy) AddCoins(ctx cosmos.Context, _ cosmos.AccAddress, coins cosmos.Coins) error

func (KVStoreDummy) AddObservingAddresses

func (k KVStoreDummy) AddObservingAddresses(_ cosmos.Context, _ []cosmos.AccAddress) error

func (KVStoreDummy) AddPoolFeeToReserve

func (k KVStoreDummy) AddPoolFeeToReserve(_ cosmos.Context, _ cosmos.Uint) error

func (KVStoreDummy) AddToLiquidityFees

func (k KVStoreDummy) AddToLiquidityFees(_ cosmos.Context, _ common.Asset, _ cosmos.Uint) error

func (KVStoreDummy) AppendTxOut

func (k KVStoreDummy) AppendTxOut(_ cosmos.Context, _ int64, _ TxOutItem) error

func (KVStoreDummy) BurnFromModule

func (k KVStoreDummy) BurnFromModule(ctx cosmos.Context, module string, coin common.Coin) error

func (KVStoreDummy) CalcLPLiquidityBond

func (k KVStoreDummy) CalcLPLiquidityBond(ctx cosmos.Context, bondAddr common.Address, nodeAddr cosmos.AccAddress) (cosmos.Uint, error)

func (KVStoreDummy) CalcNodeBondProvidersLiquidityBond added in v1.107.0

func (k KVStoreDummy) CalcNodeBondProvidersLiquidityBond(ctx cosmos.Context, na NodeAccount) (cosmos.Uint, []cosmos.Uint, error)

func (KVStoreDummy) CalcNodeLiquidityBond

func (k KVStoreDummy) CalcNodeLiquidityBond(ctx cosmos.Context, na NodeAccount) (cosmos.Uint, error)

func (KVStoreDummy) CalcTotalBondableLiquidity added in v1.104.1

func (k KVStoreDummy) CalcTotalBondableLiquidity(ctx cosmos.Context, addr common.Address) (cosmos.Uint, error)

func (KVStoreDummy) Cdc

func (k KVStoreDummy) Cdc() codec.BinaryCodec

func (KVStoreDummy) ClearObservingAddresses

func (k KVStoreDummy) ClearObservingAddresses(_ cosmos.Context)

func (KVStoreDummy) ClearTxOut

func (k KVStoreDummy) ClearTxOut(_ cosmos.Context, _ int64) error

func (KVStoreDummy) CoinKeeper

func (k KVStoreDummy) CoinKeeper() bankkeeper.Keeper

func (KVStoreDummy) DecNodeAccountSlashPoints

func (k KVStoreDummy) DecNodeAccountSlashPoints(_ cosmos.Context, _ cosmos.AccAddress, _ int64) error

func (KVStoreDummy) DeleteMAYAName

func (k KVStoreDummy) DeleteMAYAName(ctx cosmos.Context, _ string) error

func (KVStoreDummy) DeleteMimir

func (k KVStoreDummy) DeleteMimir(_ cosmos.Context, key string) error

func (KVStoreDummy) DeleteVault

func (k KVStoreDummy) DeleteVault(_ cosmos.Context, _ common.PubKey) error

func (KVStoreDummy) DistributeMayaFund

func (k KVStoreDummy) DistributeMayaFund(ctx cosmos.Context, constAccessor constants.ConstantValues)

func (KVStoreDummy) DynamicInflation

func (k KVStoreDummy) DynamicInflation(ctx cosmos.Context, constAccessor constants.ConstantValues) error

func (KVStoreDummy) EnableAPool

func (k KVStoreDummy) EnableAPool(_ cosmos.Context)

func (KVStoreDummy) EnsureAztecAddressUnique

func (k KVStoreDummy) EnsureAztecAddressUnique(_ cosmos.Context, _ common.Address) error

func (KVStoreDummy) EnsureNodeKeysUnique

func (k KVStoreDummy) EnsureNodeKeysUnique(_ cosmos.Context, _ string, _ common.PubKeySet) error

func (KVStoreDummy) FindPubKeyOfAddress

func (k KVStoreDummy) FindPubKeyOfAddress(_ cosmos.Context, _ common.Address, _ common.Chain) (common.PubKey, error)

func (KVStoreDummy) GetAccount

func (k KVStoreDummy) GetAccount(ctx cosmos.Context, addr cosmos.AccAddress) cosmos.Account

func (KVStoreDummy) GetAsgardVaults

func (k KVStoreDummy) GetAsgardVaults(_ cosmos.Context) (Vaults, error)

func (KVStoreDummy) GetAsgardVaultsByStatus

func (k KVStoreDummy) GetAsgardVaultsByStatus(_ cosmos.Context, _ VaultStatus) (Vaults, error)

func (KVStoreDummy) GetBalance

func (k KVStoreDummy) GetBalance(ctx cosmos.Context, addr cosmos.AccAddress) cosmos.Coins

func (KVStoreDummy) GetBalanceOfModule

func (k KVStoreDummy) GetBalanceOfModule(ctx cosmos.Context, moduleName, denom string) cosmos.Uint

func (KVStoreDummy) GetBanVoter

func (k KVStoreDummy) GetBanVoter(_ cosmos.Context, _ cosmos.AccAddress) (BanVoter, error)

func (KVStoreDummy) GetBanVoterIterator

func (k KVStoreDummy) GetBanVoterIterator(ctx cosmos.Context) cosmos.Iterator

func (KVStoreDummy) GetBondProviders

func (k KVStoreDummy) GetBondProviders(ctx cosmos.Context, _ cosmos.AccAddress) (BondProviders, error)

func (KVStoreDummy) GetChainContract

func (k KVStoreDummy) GetChainContract(ctx cosmos.Context, chain common.Chain) (ChainContract, error)

func (KVStoreDummy) GetChainContractIterator

func (k KVStoreDummy) GetChainContractIterator(ctx cosmos.Context) cosmos.Iterator

func (KVStoreDummy) GetChainContracts

func (k KVStoreDummy) GetChainContracts(ctx cosmos.Context, chains common.Chains) []ChainContract

func (KVStoreDummy) GetChains

func (k KVStoreDummy) GetChains(_ cosmos.Context) (common.Chains, error)

func (KVStoreDummy) GetErrataTxVoter

func (k KVStoreDummy) GetErrataTxVoter(_ cosmos.Context, _ common.TxID, _ common.Chain) (ErrataTxVoter, error)

func (KVStoreDummy) GetErrataTxVoterIterator

func (k KVStoreDummy) GetErrataTxVoterIterator(_ cosmos.Context) cosmos.Iterator

func (KVStoreDummy) GetForgiveSlashVoter

func (k KVStoreDummy) GetForgiveSlashVoter(_ cosmos.Context, _ cosmos.AccAddress) (ForgiveSlashVoter, error)

func (KVStoreDummy) GetGas

func (k KVStoreDummy) GetGas(_ cosmos.Context, _ common.Asset) ([]cosmos.Uint, error)

func (KVStoreDummy) GetGasIterator

func (k KVStoreDummy) GetGasIterator(ctx cosmos.Context) cosmos.Iterator

func (KVStoreDummy) GetIBCTransferParams

func (k KVStoreDummy) GetIBCTransferParams(ctx cosmos.Context) ibctransfertypes.Params

func (KVStoreDummy) GetKey

func (k KVStoreDummy) GetKey(_ cosmos.Context, prefix kvTypes.DbPrefix, key string) string

func (KVStoreDummy) GetKeygenBlock

func (k KVStoreDummy) GetKeygenBlock(_ cosmos.Context, _ int64) (KeygenBlock, error)

func (KVStoreDummy) GetKeygenBlockIterator

func (k KVStoreDummy) GetKeygenBlockIterator(_ cosmos.Context) cosmos.Iterator

func (KVStoreDummy) GetLastChainHeight

func (k KVStoreDummy) GetLastChainHeight(_ cosmos.Context, _ common.Chain) (int64, error)

func (KVStoreDummy) GetLastChainHeights

func (k KVStoreDummy) GetLastChainHeights(ctx cosmos.Context) (map[common.Chain]int64, error)

func (KVStoreDummy) GetLastObserveHeight

func (k KVStoreDummy) GetLastObserveHeight(ctx cosmos.Context, address cosmos.AccAddress) (map[common.Chain]int64, error)

func (KVStoreDummy) GetLastSignedHeight

func (k KVStoreDummy) GetLastSignedHeight(_ cosmos.Context) (int64, error)

func (KVStoreDummy) GetLatestTssKeysignMetric

func (k KVStoreDummy) GetLatestTssKeysignMetric(_ cosmos.Context) (*TssKeysignMetric, error)

func (KVStoreDummy) GetLeastSecure

func (k KVStoreDummy) GetLeastSecure(_ cosmos.Context, _ Vaults, _ int64) Vault

func (KVStoreDummy) GetLiquidityAuctionTier

func (k KVStoreDummy) GetLiquidityAuctionTier(_ cosmos.Context, _ common.Address) (int64, error)

func (KVStoreDummy) GetLiquidityProvider

func (k KVStoreDummy) GetLiquidityProvider(_ cosmos.Context, _ common.Asset, _ common.Address) (LiquidityProvider, error)

func (KVStoreDummy) GetLiquidityProviderByAssets

func (k KVStoreDummy) GetLiquidityProviderByAssets(_ cosmos.Context, _ common.Assets, _ common.Address) (LiquidityProviders, error)

func (KVStoreDummy) GetLiquidityProviderIterator

func (k KVStoreDummy) GetLiquidityProviderIterator(_ cosmos.Context, _ common.Asset) cosmos.Iterator

func (KVStoreDummy) GetLowestActiveVersion

func (k KVStoreDummy) GetLowestActiveVersion(_ cosmos.Context) semver.Version

func (KVStoreDummy) GetMAYAName

func (k KVStoreDummy) GetMAYAName(ctx cosmos.Context, _ string) (MAYAName, error)

func (KVStoreDummy) GetMAYANameIterator

func (k KVStoreDummy) GetMAYANameIterator(ctx cosmos.Context) cosmos.Iterator

func (KVStoreDummy) GetMimir

func (k KVStoreDummy) GetMimir(_ cosmos.Context, key string) (int64, error)

func (KVStoreDummy) GetMimirIterator

func (k KVStoreDummy) GetMimirIterator(ctx cosmos.Context) cosmos.Iterator

func (KVStoreDummy) GetMinJoinVersion

func (k KVStoreDummy) GetMinJoinVersion(_ cosmos.Context) semver.Version

func (KVStoreDummy) GetMinJoinVersionV1

func (k KVStoreDummy) GetMinJoinVersionV1(_ cosmos.Context) semver.Version

func (KVStoreDummy) GetModuleAccAddress

func (k KVStoreDummy) GetModuleAccAddress(module string) cosmos.AccAddress

func (KVStoreDummy) GetModuleAddress

func (k KVStoreDummy) GetModuleAddress(module string) (common.Address, error)

func (KVStoreDummy) GetMostSecure

func (k KVStoreDummy) GetMostSecure(_ cosmos.Context, _ Vaults, _ int64) Vault

func (KVStoreDummy) GetNetwork

func (k KVStoreDummy) GetNetwork(_ cosmos.Context) (Network, error)

func (KVStoreDummy) GetNetworkFee

func (k KVStoreDummy) GetNetworkFee(ctx cosmos.Context, chain common.Chain) (NetworkFee, error)

func (KVStoreDummy) GetNetworkFeeIterator

func (k KVStoreDummy) GetNetworkFeeIterator(ctx cosmos.Context) cosmos.Iterator

func (KVStoreDummy) GetNodeAccount

func (k KVStoreDummy) GetNodeAccount(_ cosmos.Context, _ cosmos.AccAddress) (NodeAccount, error)

func (KVStoreDummy) GetNodeAccountByPubKey

func (k KVStoreDummy) GetNodeAccountByPubKey(_ cosmos.Context, _ common.PubKey) (NodeAccount, error)

func (KVStoreDummy) GetNodeAccountIterator

func (k KVStoreDummy) GetNodeAccountIterator(_ cosmos.Context) cosmos.Iterator

func (KVStoreDummy) GetNodeAccountJail

func (k KVStoreDummy) GetNodeAccountJail(ctx cosmos.Context, addr cosmos.AccAddress) (Jail, error)

func (KVStoreDummy) GetNodeAccountSlashPoints

func (k KVStoreDummy) GetNodeAccountSlashPoints(_ cosmos.Context, _ cosmos.AccAddress) (int64, error)

func (KVStoreDummy) GetNodeAccountSlashUnitsByAsset

func (k KVStoreDummy) GetNodeAccountSlashUnitsByAsset(_ cosmos.Context, addr cosmos.AccAddress, _ common.Asset) (int64, error)

func (KVStoreDummy) GetNodeMimirIterator

func (k KVStoreDummy) GetNodeMimirIterator(ctx cosmos.Context) cosmos.Iterator

func (KVStoreDummy) GetNodeMimirs

func (k KVStoreDummy) GetNodeMimirs(ctx cosmos.Context, key string) (NodeMimirs, error)

func (KVStoreDummy) GetNodePauseChain

func (k KVStoreDummy) GetNodePauseChain(ctx cosmos.Context, acc cosmos.AccAddress) int64
func (k KVStoreDummy) GetObservedLink(ctx cosmos.Context, inhash common.TxID) []common.TxID

func (KVStoreDummy) GetObservedNetworkFeeVoter

func (k KVStoreDummy) GetObservedNetworkFeeVoter(ctx cosmos.Context, height int64, chain common.Chain, rate int64) (ObservedNetworkFeeVoter, error)

func (KVStoreDummy) GetObservedNetworkFeeVoterIterator

func (k KVStoreDummy) GetObservedNetworkFeeVoterIterator(ctx cosmos.Context) cosmos.Iterator

func (KVStoreDummy) GetObservedTxInVoter

func (k KVStoreDummy) GetObservedTxInVoter(_ cosmos.Context, _ common.TxID) (ObservedTxVoter, error)

func (KVStoreDummy) GetObservedTxInVoterIterator

func (k KVStoreDummy) GetObservedTxInVoterIterator(_ cosmos.Context) cosmos.Iterator

func (KVStoreDummy) GetObservedTxOutVoter

func (k KVStoreDummy) GetObservedTxOutVoter(_ cosmos.Context, _ common.TxID) (ObservedTxVoter, error)

func (KVStoreDummy) GetObservedTxOutVoterIterator

func (k KVStoreDummy) GetObservedTxOutVoterIterator(_ cosmos.Context) cosmos.Iterator

func (KVStoreDummy) GetObservingAddresses

func (k KVStoreDummy) GetObservingAddresses(_ cosmos.Context) ([]cosmos.AccAddress, error)

func (KVStoreDummy) GetOrderBookIndex

func (k KVStoreDummy) GetOrderBookIndex(_ cosmos.Context, _ MsgSwap) (common.TxIDs, error)

func (KVStoreDummy) GetOrderBookIndexIterator

func (k KVStoreDummy) GetOrderBookIndexIterator(_ cosmos.Context, _ types.OrderType, _, _ common.Asset) cosmos.Iterator

func (KVStoreDummy) GetOrderBookItem

func (k KVStoreDummy) GetOrderBookItem(ctx cosmos.Context, txID common.TxID) (MsgSwap, error)

func (KVStoreDummy) GetOrderBookItemIterator

func (k KVStoreDummy) GetOrderBookItemIterator(ctx cosmos.Context) cosmos.Iterator

func (KVStoreDummy) GetOrderBookProcessor

func (k KVStoreDummy) GetOrderBookProcessor(ctx cosmos.Context) ([]bool, error)

GetOrderBookProcessor - get a list of asset pairs to process

func (KVStoreDummy) GetPOL

func (KVStoreDummy) GetPool

func (k KVStoreDummy) GetPool(_ cosmos.Context, _ common.Asset) (Pool, error)

func (KVStoreDummy) GetPoolBalances

func (k KVStoreDummy) GetPoolBalances(_ cosmos.Context, _, _ common.Asset) (cosmos.Uint, cosmos.Uint)

func (KVStoreDummy) GetPoolDataIterator

func (k KVStoreDummy) GetPoolDataIterator(_ cosmos.Context) cosmos.Iterator

func (KVStoreDummy) GetPoolIterator

func (k KVStoreDummy) GetPoolIterator(_ cosmos.Context) cosmos.Iterator

func (KVStoreDummy) GetPoolLUVI

func (k KVStoreDummy) GetPoolLUVI(ctx cosmos.Context, asset common.Asset) (cosmos.Uint, error)

func (KVStoreDummy) GetPoolLiquidityFees

func (k KVStoreDummy) GetPoolLiquidityFees(_ cosmos.Context, _ uint64, _ common.Asset) (cosmos.Uint, error)

func (KVStoreDummy) GetPoolRagnarokStart

func (k KVStoreDummy) GetPoolRagnarokStart(ctx cosmos.Context, asset common.Asset) (int64, error)

GetPoolRagnarokStart get pool ragnarok start block height

func (KVStoreDummy) GetPools

func (k KVStoreDummy) GetPools(_ cosmos.Context) (Pools, error)

func (KVStoreDummy) GetRagnarokBlockHeight

func (k KVStoreDummy) GetRagnarokBlockHeight(_ cosmos.Context) (int64, error)

func (KVStoreDummy) GetRagnarokNth

func (k KVStoreDummy) GetRagnarokNth(_ cosmos.Context) (int64, error)

func (KVStoreDummy) GetRagnarokPending

func (k KVStoreDummy) GetRagnarokPending(_ cosmos.Context) (int64, error)

func (KVStoreDummy) GetRagnarokWithdrawPosition

func (k KVStoreDummy) GetRagnarokWithdrawPosition(ctx cosmos.Context) (RagnarokWithdrawPosition, error)

func (KVStoreDummy) GetRollingPoolLiquidityFee

func (k KVStoreDummy) GetRollingPoolLiquidityFee(ctx cosmos.Context, asset common.Asset) (uint64, error)

func (KVStoreDummy) GetRuneBalanceOfModule

func (k KVStoreDummy) GetRuneBalanceOfModule(ctx cosmos.Context, moduleName string) cosmos.Uint

func (KVStoreDummy) GetSolvencyVoter

func (k KVStoreDummy) GetSolvencyVoter(_ cosmos.Context, _ common.TxID, _ common.Chain) (SolvencyVoter, error)

func (KVStoreDummy) GetStoreVersion

func (k KVStoreDummy) GetStoreVersion(ctx cosmos.Context) int64

func (KVStoreDummy) GetSwapQueueItem

func (k KVStoreDummy) GetSwapQueueItem(ctx cosmos.Context, txID common.TxID, _ int) (MsgSwap, error)

func (KVStoreDummy) GetSwapQueueIterator

func (k KVStoreDummy) GetSwapQueueIterator(ctx cosmos.Context) cosmos.Iterator

func (KVStoreDummy) GetTotalLiquidityFees

func (k KVStoreDummy) GetTotalLiquidityFees(_ cosmos.Context, _ uint64) (cosmos.Uint, error)

func (KVStoreDummy) GetTotalSupply

func (k KVStoreDummy) GetTotalSupply(ctx cosmos.Context, asset common.Asset) cosmos.Uint

func (KVStoreDummy) GetTssKeygenMetric

func (k KVStoreDummy) GetTssKeygenMetric(_ cosmos.Context, key common.PubKey) (*TssKeygenMetric, error)

func (KVStoreDummy) GetTssKeysignFailVoter

func (k KVStoreDummy) GetTssKeysignFailVoter(_ cosmos.Context, _ string) (TssKeysignFailVoter, error)

func (KVStoreDummy) GetTssKeysignFailVoterIterator

func (k KVStoreDummy) GetTssKeysignFailVoterIterator(_ cosmos.Context) cosmos.Iterator

func (KVStoreDummy) GetTssKeysignMetric

func (k KVStoreDummy) GetTssKeysignMetric(_ cosmos.Context, txID common.TxID) (*TssKeysignMetric, error)

func (KVStoreDummy) GetTssVoter

func (k KVStoreDummy) GetTssVoter(_ cosmos.Context, _ string) (TssVoter, error)

func (KVStoreDummy) GetTssVoterIterator

func (k KVStoreDummy) GetTssVoterIterator(_ cosmos.Context) cosmos.Iterator

func (KVStoreDummy) GetTxOut

func (k KVStoreDummy) GetTxOut(_ cosmos.Context, _ int64) (*TxOut, error)

func (KVStoreDummy) GetTxOutIterator

func (k KVStoreDummy) GetTxOutIterator(_ cosmos.Context) cosmos.Iterator

func (KVStoreDummy) GetTxOutValue

func (k KVStoreDummy) GetTxOutValue(_ cosmos.Context, _ int64) (cosmos.Uint, error)

func (KVStoreDummy) GetVault

func (k KVStoreDummy) GetVault(_ cosmos.Context, _ common.PubKey) (Vault, error)

func (KVStoreDummy) GetVaultIterator

func (k KVStoreDummy) GetVaultIterator(_ cosmos.Context) cosmos.Iterator

func (KVStoreDummy) GetVersion

func (k KVStoreDummy) GetVersion() semver.Version

func (KVStoreDummy) GetVersionWithCtx

func (k KVStoreDummy) GetVersionWithCtx(ctx cosmos.Context) (semver.Version, bool)

func (KVStoreDummy) HasCoins

func (k KVStoreDummy) HasCoins(ctx cosmos.Context, addr cosmos.AccAddress, coins cosmos.Coins) bool

func (KVStoreDummy) HasOrderBookIndex

func (k KVStoreDummy) HasOrderBookIndex(_ cosmos.Context, _ MsgSwap) (bool, error)

func (KVStoreDummy) HasOrderBookItem

func (k KVStoreDummy) HasOrderBookItem(ctx cosmos.Context, txID common.TxID) bool

func (KVStoreDummy) HasSwapQueueItem

func (k KVStoreDummy) HasSwapQueueItem(ctx cosmos.Context, txID common.TxID, _ int) bool

func (KVStoreDummy) HasValidVaultPools

func (k KVStoreDummy) HasValidVaultPools(_ cosmos.Context) (bool, error)

func (KVStoreDummy) IncNodeAccountSlashPoints

func (k KVStoreDummy) IncNodeAccountSlashPoints(_ cosmos.Context, _ cosmos.AccAddress, _ int64) error

func (KVStoreDummy) ListActiveValidators

func (k KVStoreDummy) ListActiveValidators(_ cosmos.Context) (NodeAccounts, error)

func (KVStoreDummy) ListValidatorsByStatus

func (k KVStoreDummy) ListValidatorsByStatus(_ cosmos.Context, _ NodeStatus) (NodeAccounts, error)

func (KVStoreDummy) ListValidatorsWithBond

func (k KVStoreDummy) ListValidatorsWithBond(_ cosmos.Context) (NodeAccounts, error)

func (KVStoreDummy) Logger

func (k KVStoreDummy) Logger(ctx cosmos.Context) log.Logger

func (KVStoreDummy) MAYANameExists

func (k KVStoreDummy) MAYANameExists(ctx cosmos.Context, _ string) bool

func (KVStoreDummy) MintAndSendToAccount

func (k KVStoreDummy) MintAndSendToAccount(ctx cosmos.Context, to cosmos.AccAddress, coin common.Coin) error

func (KVStoreDummy) MintToModule

func (k KVStoreDummy) MintToModule(ctx cosmos.Context, module string, coin common.Coin) error

func (KVStoreDummy) PoolExist

func (k KVStoreDummy) PoolExist(_ cosmos.Context, _ common.Asset) bool

func (KVStoreDummy) RagnarokInProgress

func (k KVStoreDummy) RagnarokInProgress(_ cosmos.Context) bool

func (KVStoreDummy) ReleaseNodeAccountFromJail

func (k KVStoreDummy) ReleaseNodeAccountFromJail(ctx cosmos.Context, addr cosmos.AccAddress) error

func (KVStoreDummy) RemoveFromAsgardIndex

func (k KVStoreDummy) RemoveFromAsgardIndex(ctx cosmos.Context, pubkey common.PubKey) error

func (KVStoreDummy) RemoveLiquidityProvider

func (k KVStoreDummy) RemoveLiquidityProvider(_ cosmos.Context, _ LiquidityProvider)

func (KVStoreDummy) RemoveOrderBookIndex

func (k KVStoreDummy) RemoveOrderBookIndex(_ cosmos.Context, _ MsgSwap) error

func (KVStoreDummy) RemoveOrderBookItem

func (k KVStoreDummy) RemoveOrderBookItem(ctx cosmos.Context, _ common.TxID) error

func (KVStoreDummy) RemovePool

func (k KVStoreDummy) RemovePool(_ cosmos.Context, _ common.Asset)

func (KVStoreDummy) RemoveSwapQueueItem

func (k KVStoreDummy) RemoveSwapQueueItem(ctx cosmos.Context, _ common.TxID, _ int)

func (KVStoreDummy) ResetNodeAccountSlashPoints

func (k KVStoreDummy) ResetNodeAccountSlashPoints(_ cosmos.Context, _ cosmos.AccAddress)

func (KVStoreDummy) ResetRollingPoolLiquidityFee

func (k KVStoreDummy) ResetRollingPoolLiquidityFee(ctx cosmos.Context, asset common.Asset)

func (KVStoreDummy) SaveNetworkFee

func (k KVStoreDummy) SaveNetworkFee(ctx cosmos.Context, chain common.Chain, networkFee NetworkFee) error

func (KVStoreDummy) SendCoins

func (k KVStoreDummy) SendCoins(ctx cosmos.Context, from, to cosmos.AccAddress, coins cosmos.Coins) error

func (KVStoreDummy) SendFromAccountToModule

func (k KVStoreDummy) SendFromAccountToModule(ctx cosmos.Context, from cosmos.AccAddress, to string, coins common.Coins) error

func (KVStoreDummy) SendFromModuleToAccount

func (k KVStoreDummy) SendFromModuleToAccount(ctx cosmos.Context, from string, to cosmos.AccAddress, coins common.Coins) error

func (KVStoreDummy) SendFromModuleToModule

func (k KVStoreDummy) SendFromModuleToModule(ctx cosmos.Context, from, to string, coins common.Coins) error

func (KVStoreDummy) SetBanVoter

func (k KVStoreDummy) SetBanVoter(_ cosmos.Context, _ BanVoter)

func (KVStoreDummy) SetBondProviders

func (k KVStoreDummy) SetBondProviders(ctx cosmos.Context, _ BondProviders) error

func (KVStoreDummy) SetChainContract

func (k KVStoreDummy) SetChainContract(ctx cosmos.Context, cc ChainContract)

func (KVStoreDummy) SetChains

func (k KVStoreDummy) SetChains(_ cosmos.Context, _ common.Chains)

func (KVStoreDummy) SetErrataTxVoter

func (k KVStoreDummy) SetErrataTxVoter(_ cosmos.Context, _ ErrataTxVoter)

func (KVStoreDummy) SetForgiveSlashVoter

func (k KVStoreDummy) SetForgiveSlashVoter(_ cosmos.Context, _ ForgiveSlashVoter)

func (KVStoreDummy) SetGas

func (k KVStoreDummy) SetGas(_ cosmos.Context, _ common.Asset, _ []cosmos.Uint)

func (KVStoreDummy) SetIBCTransferParams

func (k KVStoreDummy) SetIBCTransferParams(ctx cosmos.Context, params ibctransfertypes.Params)

func (KVStoreDummy) SetKeygenBlock

func (k KVStoreDummy) SetKeygenBlock(_ cosmos.Context, _ KeygenBlock)

func (KVStoreDummy) SetLastChainHeight

func (k KVStoreDummy) SetLastChainHeight(_ cosmos.Context, _ common.Chain, _ int64) error

func (KVStoreDummy) SetLastObserveHeight

func (k KVStoreDummy) SetLastObserveHeight(ctx cosmos.Context, chain common.Chain, address cosmos.AccAddress, height int64) error

func (KVStoreDummy) SetLastSignedHeight

func (k KVStoreDummy) SetLastSignedHeight(_ cosmos.Context, _ int64) error

func (KVStoreDummy) SetLiquidityAuctionTier

func (k KVStoreDummy) SetLiquidityAuctionTier(_ cosmos.Context, _ common.Address, _ int64) error

func (KVStoreDummy) SetLiquidityProvider

func (k KVStoreDummy) SetLiquidityProvider(_ cosmos.Context, _ LiquidityProvider)

func (KVStoreDummy) SetLiquidityProviders

func (k KVStoreDummy) SetLiquidityProviders(_ cosmos.Context, _ LiquidityProviders)

func (KVStoreDummy) SetMAYAName

func (k KVStoreDummy) SetMAYAName(ctx cosmos.Context, name MAYAName)

func (KVStoreDummy) SetMimir

func (k KVStoreDummy) SetMimir(_ cosmos.Context, key string, value int64)

func (KVStoreDummy) SetNetwork

func (k KVStoreDummy) SetNetwork(_ cosmos.Context, _ Network) error

func (KVStoreDummy) SetNodeAccount

func (k KVStoreDummy) SetNodeAccount(_ cosmos.Context, _ NodeAccount) error

func (KVStoreDummy) SetNodeAccountJail

func (k KVStoreDummy) SetNodeAccountJail(ctx cosmos.Context, addr cosmos.AccAddress, height int64, reason string) error

func (KVStoreDummy) SetNodeAccountSlashPoints

func (k KVStoreDummy) SetNodeAccountSlashPoints(_ cosmos.Context, _ cosmos.AccAddress, _ int64)

func (KVStoreDummy) SetNodeAccountSlashUnitsByAsset

func (k KVStoreDummy) SetNodeAccountSlashUnitsByAsset(_ cosmos.Context, addr cosmos.AccAddress, asset common.Asset, units int64)

func (KVStoreDummy) SetNodeMimir

func (k KVStoreDummy) SetNodeMimir(_ cosmos.Context, key string, value int64, acc cosmos.AccAddress) error

func (KVStoreDummy) SetNodePauseChain

func (k KVStoreDummy) SetNodePauseChain(ctx cosmos.Context, acc cosmos.AccAddress)
func (k KVStoreDummy) SetObservedLink(ctx cosmos.Context, _, _ common.TxID)

func (KVStoreDummy) SetObservedNetworkFeeVoter

func (k KVStoreDummy) SetObservedNetworkFeeVoter(ctx cosmos.Context, networkFeeVoter ObservedNetworkFeeVoter)

func (KVStoreDummy) SetObservedTxInVoter

func (k KVStoreDummy) SetObservedTxInVoter(_ cosmos.Context, _ ObservedTxVoter)

func (KVStoreDummy) SetObservedTxOutVoter

func (k KVStoreDummy) SetObservedTxOutVoter(_ cosmos.Context, _ ObservedTxVoter)

func (KVStoreDummy) SetOrderBookIndex

func (k KVStoreDummy) SetOrderBookIndex(_ cosmos.Context, _ MsgSwap) error

func (KVStoreDummy) SetOrderBookItem

func (k KVStoreDummy) SetOrderBookItem(ctx cosmos.Context, msg MsgSwap) error

func (KVStoreDummy) SetOrderBookProcessor

func (k KVStoreDummy) SetOrderBookProcessor(ctx cosmos.Context, record []bool) error

func (KVStoreDummy) SetPOL

func (KVStoreDummy) SetPool

func (k KVStoreDummy) SetPool(_ cosmos.Context, _ Pool) error

func (KVStoreDummy) SetPoolData

func (k KVStoreDummy) SetPoolData(_ cosmos.Context, _ common.Asset, _ PoolStatus)

func (KVStoreDummy) SetPoolLUVI

func (k KVStoreDummy) SetPoolLUVI(ctx cosmos.Context, asset common.Asset, luvi cosmos.Uint)

func (KVStoreDummy) SetPoolRagnarokStart

func (k KVStoreDummy) SetPoolRagnarokStart(ctx cosmos.Context, asset common.Asset)

SetPoolRagnarokStart set pool ragnarok start block height

func (KVStoreDummy) SetRagnarokBlockHeight

func (k KVStoreDummy) SetRagnarokBlockHeight(_ cosmos.Context, _ int64)

func (KVStoreDummy) SetRagnarokNth

func (k KVStoreDummy) SetRagnarokNth(_ cosmos.Context, _ int64)

func (KVStoreDummy) SetRagnarokPending

func (k KVStoreDummy) SetRagnarokPending(_ cosmos.Context, _ int64)

func (KVStoreDummy) SetRagnarokWithdrawPosition

func (k KVStoreDummy) SetRagnarokWithdrawPosition(_tx cosmos.Context, _ RagnarokWithdrawPosition)

func (KVStoreDummy) SetSolvencyVoter

func (k KVStoreDummy) SetSolvencyVoter(_ cosmos.Context, _ SolvencyVoter)

func (KVStoreDummy) SetStoreVersion

func (k KVStoreDummy) SetStoreVersion(ctx cosmos.Context, ver int64)

func (KVStoreDummy) SetSwapQueueItem

func (k KVStoreDummy) SetSwapQueueItem(ctx cosmos.Context, msg MsgSwap, i int) error

func (KVStoreDummy) SetTssKeygenMetric

func (k KVStoreDummy) SetTssKeygenMetric(_ cosmos.Context, metric *TssKeygenMetric)

func (KVStoreDummy) SetTssKeysignFailVoter

func (k KVStoreDummy) SetTssKeysignFailVoter(_ cosmos.Context, tss TssKeysignFailVoter)

func (KVStoreDummy) SetTssKeysignMetric

func (k KVStoreDummy) SetTssKeysignMetric(_ cosmos.Context, metric *TssKeysignMetric)

func (KVStoreDummy) SetTssVoter

func (k KVStoreDummy) SetTssVoter(_ cosmos.Context, _ TssVoter)

func (KVStoreDummy) SetTxOut

func (k KVStoreDummy) SetTxOut(_ cosmos.Context, _ *TxOut) error

func (KVStoreDummy) SetVault

func (k KVStoreDummy) SetVault(_ cosmos.Context, _ Vault) error

func (KVStoreDummy) SetVersionWithCtx

func (k KVStoreDummy) SetVersionWithCtx(ctx cosmos.Context, v semver.Version)

func (KVStoreDummy) SortBySecurity

func (k KVStoreDummy) SortBySecurity(_ cosmos.Context, _ Vaults, _ int64) Vaults

func (KVStoreDummy) TotalActiveValidators

func (k KVStoreDummy) TotalActiveValidators(_ cosmos.Context) (int, error)

func (KVStoreDummy) VaultExists

func (k KVStoreDummy) VaultExists(_ cosmos.Context, _ common.PubKey) bool

type Keeper

type Keeper interface {
	Cdc() codec.BinaryCodec
	GetVersion() semver.Version
	GetVersionWithCtx(ctx cosmos.Context) (semver.Version, bool)
	SetVersionWithCtx(ctx cosmos.Context, v semver.Version)
	GetKey(ctx cosmos.Context, prefix kvTypes.DbPrefix, key string) string
	GetStoreVersion(ctx cosmos.Context) int64
	SetStoreVersion(ctx cosmos.Context, ver int64)
	GetRuneBalanceOfModule(ctx cosmos.Context, moduleName string) cosmos.Uint
	GetBalanceOfModule(ctx cosmos.Context, moduleName, denom string) cosmos.Uint
	SendFromModuleToModule(ctx cosmos.Context, from, to string, coin common.Coins) error
	SendFromAccountToModule(ctx cosmos.Context, from cosmos.AccAddress, to string, coin common.Coins) error
	SendFromModuleToAccount(ctx cosmos.Context, from string, to cosmos.AccAddress, coin common.Coins) error
	MintToModule(ctx cosmos.Context, module string, coin common.Coin) error
	BurnFromModule(ctx cosmos.Context, module string, coin common.Coin) error
	MintAndSendToAccount(ctx cosmos.Context, to cosmos.AccAddress, coin common.Coin) error
	GetModuleAddress(module string) (common.Address, error)
	GetModuleAccAddress(module string) cosmos.AccAddress
	GetBalance(ctx cosmos.Context, addr cosmos.AccAddress) cosmos.Coins
	HasCoins(ctx cosmos.Context, addr cosmos.AccAddress, coins cosmos.Coins) bool
	GetAccount(ctx cosmos.Context, addr cosmos.AccAddress) cosmos.Account
	GetIBCTransferParams(ctx cosmos.Context) ibctransfertypes.Params
	SetIBCTransferParams(ctx cosmos.Context, params ibctransfertypes.Params)

	// passthrough funcs
	SendCoins(ctx cosmos.Context, from, to cosmos.AccAddress, coins cosmos.Coins) error
	AddCoins(ctx cosmos.Context, addr cosmos.AccAddress, coins cosmos.Coins) error

	// Keeper Interfaces
	KeeperPool
	KeeperLastHeight
	KeeperLiquidityProvider
	KeeperNodeAccount
	KeeperObserver
	KeeperObservedTx
	KeeperTxOut
	KeeperLiquidityFees
	KeeperVault
	KeeperReserveContributors
	KeeperNetwork
	KeeperTss
	KeeperTssKeysignFail
	KeeperKeygen
	KeeperRagnarok
	KeeperErrataTx
	KeeperBanVoter
	KeeperSwapQueue
	KeeperOrderBooks
	KeeperMimir
	KeeperNetworkFee
	KeeperObservedNetworkFeeVoter
	KeeperChainContract
	KeeperSolvencyVoter
	KeeperMAYAName
	KeeperForgiveSlashVoter
}

func NewKeeper

func NewKeeper(cdc codec.BinaryCodec, coinKeeper bankkeeper.Keeper, accountKeeper authkeeper.AccountKeeper, ibcTransferkeeper ibctransferkeeper.Keeper, storeKey cosmos.StoreKey) Keeper

NewKVStore creates new instances of the thorchain Keeper

type KeeperBanVoter

type KeeperBanVoter interface {
	SetBanVoter(_ cosmos.Context, _ BanVoter)
	GetBanVoter(_ cosmos.Context, _ cosmos.AccAddress) (BanVoter, error)
	GetBanVoterIterator(_ cosmos.Context) cosmos.Iterator
}

type KeeperChainContract

type KeeperChainContract interface {
	SetChainContract(ctx cosmos.Context, cc ChainContract)
	GetChainContract(ctx cosmos.Context, chain common.Chain) (ChainContract, error)
	GetChainContracts(ctx cosmos.Context, chains common.Chains) []ChainContract
	GetChainContractIterator(ctx cosmos.Context) cosmos.Iterator
}

type KeeperErrataTx

type KeeperErrataTx interface {
	SetErrataTxVoter(_ cosmos.Context, _ ErrataTxVoter)
	GetErrataTxVoterIterator(_ cosmos.Context) cosmos.Iterator
	GetErrataTxVoter(_ cosmos.Context, _ common.TxID, _ common.Chain) (ErrataTxVoter, error)
}

type KeeperForgiveSlashVoter

type KeeperForgiveSlashVoter interface {
	SetForgiveSlashVoter(_ cosmos.Context, _ ForgiveSlashVoter)
	GetForgiveSlashVoter(_ cosmos.Context, _ cosmos.AccAddress) (ForgiveSlashVoter, error)
}

type KeeperKeygen

type KeeperKeygen interface {
	SetKeygenBlock(ctx cosmos.Context, keygenBlock KeygenBlock)
	GetKeygenBlockIterator(ctx cosmos.Context) cosmos.Iterator
	GetKeygenBlock(ctx cosmos.Context, height int64) (KeygenBlock, error)
}

type KeeperLastHeight

type KeeperLastHeight interface {
	SetLastSignedHeight(ctx cosmos.Context, height int64) error
	GetLastSignedHeight(ctx cosmos.Context) (int64, error)
	SetLastChainHeight(ctx cosmos.Context, chain common.Chain, height int64) error
	GetLastChainHeight(ctx cosmos.Context, chain common.Chain) (int64, error)
	GetLastChainHeights(ctx cosmos.Context) (map[common.Chain]int64, error)
	SetLastObserveHeight(ctx cosmos.Context, chain common.Chain, address cosmos.AccAddress, height int64) error
	GetLastObserveHeight(ctx cosmos.Context, address cosmos.AccAddress) (map[common.Chain]int64, error)
}

type KeeperLiquidityFees

type KeeperLiquidityFees interface {
	AddToLiquidityFees(ctx cosmos.Context, asset common.Asset, fee cosmos.Uint) error
	GetTotalLiquidityFees(ctx cosmos.Context, height uint64) (cosmos.Uint, error)
	GetPoolLiquidityFees(ctx cosmos.Context, height uint64, asset common.Asset) (cosmos.Uint, error)
	GetRollingPoolLiquidityFee(ctx cosmos.Context, asset common.Asset) (uint64, error)
	ResetRollingPoolLiquidityFee(ctx cosmos.Context, asset common.Asset)
}

type KeeperLiquidityProvider

type KeeperLiquidityProvider interface {
	GetLiquidityProviderIterator(ctx cosmos.Context, _ common.Asset) cosmos.Iterator
	GetLiquidityProvider(ctx cosmos.Context, asset common.Asset, addr common.Address) (LiquidityProvider, error)
	GetLiquidityProviderByAssets(ctx cosmos.Context, assets common.Assets, addr common.Address) (LiquidityProviders, error)
	GetLiquidityAuctionTier(ctx cosmos.Context, addr common.Address) (int64, error)
	SetLiquidityProvider(ctx cosmos.Context, lp LiquidityProvider)
	SetLiquidityProviders(ctx cosmos.Context, lps LiquidityProviders)
	SetLiquidityAuctionTier(ctx cosmos.Context, addr common.Address, tier int64) error
	RemoveLiquidityProvider(ctx cosmos.Context, lp LiquidityProvider)
	GetTotalSupply(ctx cosmos.Context, asset common.Asset) cosmos.Uint
	CalcLPLiquidityBond(ctx cosmos.Context, bondAddr common.Address, nodeAddr cosmos.AccAddress) (cosmos.Uint, error)
	CalcTotalBondableLiquidity(ctx cosmos.Context, addr common.Address) (cosmos.Uint, error)
}

type KeeperMAYAName

type KeeperMAYAName interface {
	MAYANameExists(ctx cosmos.Context, _ string) bool
	GetMAYAName(ctx cosmos.Context, _ string) (MAYAName, error)
	SetMAYAName(ctx cosmos.Context, name MAYAName)
	GetMAYANameIterator(ctx cosmos.Context) cosmos.Iterator
	DeleteMAYAName(ctx cosmos.Context, _ string) error
}

NewKeeper creates new instances of the thorchain Keeper

type KeeperMimir

type KeeperMimir interface {
	GetMimir(_ cosmos.Context, key string) (int64, error)
	SetMimir(_ cosmos.Context, key string, value int64)
	GetNodeMimirs(ctx cosmos.Context, key string) (NodeMimirs, error)
	SetNodeMimir(_ cosmos.Context, key string, value int64, acc cosmos.AccAddress) error
	GetMimirIterator(ctx cosmos.Context) cosmos.Iterator
	GetNodeMimirIterator(ctx cosmos.Context) cosmos.Iterator
	DeleteMimir(_ cosmos.Context, key string) error
	GetNodePauseChain(ctx cosmos.Context, acc cosmos.AccAddress) int64
	SetNodePauseChain(ctx cosmos.Context, acc cosmos.AccAddress)
}

type KeeperNetwork

type KeeperNetwork interface {
	GetNetwork(ctx cosmos.Context) (Network, error)
	SetNetwork(ctx cosmos.Context, data Network) error
	GetPOL(ctx cosmos.Context) (ProtocolOwnedLiquidity, error)
	SetPOL(ctx cosmos.Context, data ProtocolOwnedLiquidity) error
}

KeeperNetwork func to access network data in key value store

type KeeperNetworkFee

type KeeperNetworkFee interface {
	GetNetworkFee(ctx cosmos.Context, chain common.Chain) (NetworkFee, error)
	SaveNetworkFee(ctx cosmos.Context, chain common.Chain, networkFee NetworkFee) error
	GetNetworkFeeIterator(ctx cosmos.Context) cosmos.Iterator
	DistributeMayaFund(ctx cosmos.Context, constAccessor constants.ConstantValues)
	DynamicInflation(ctx cosmos.Context, constAccessor constants.ConstantValues) error
}

type KeeperNodeAccount

type KeeperNodeAccount interface {
	TotalActiveValidators(ctx cosmos.Context) (int, error)
	ListValidatorsWithBond(ctx cosmos.Context) (NodeAccounts, error)
	ListValidatorsByStatus(ctx cosmos.Context, status NodeStatus) (NodeAccounts, error)
	ListActiveValidators(ctx cosmos.Context) (NodeAccounts, error)
	GetLowestActiveVersion(ctx cosmos.Context) semver.Version
	GetMinJoinVersion(ctx cosmos.Context) semver.Version
	GetNodeAccount(ctx cosmos.Context, addr cosmos.AccAddress) (NodeAccount, error)
	GetNodeAccountByPubKey(ctx cosmos.Context, pk common.PubKey) (NodeAccount, error)
	SetNodeAccount(ctx cosmos.Context, na NodeAccount) error
	EnsureNodeKeysUnique(ctx cosmos.Context, consensusPubKey string, pubKeys common.PubKeySet) error
	EnsureAztecAddressUnique(ctx cosmos.Context, aztecAddress common.Address) error
	GetNodeAccountIterator(ctx cosmos.Context) cosmos.Iterator
	GetNodeAccountSlashPoints(_ cosmos.Context, _ cosmos.AccAddress) (int64, error)
	SetNodeAccountSlashPoints(_ cosmos.Context, _ cosmos.AccAddress, _ int64)
	IncNodeAccountSlashPoints(_ cosmos.Context, _ cosmos.AccAddress, _ int64) error
	DecNodeAccountSlashPoints(_ cosmos.Context, _ cosmos.AccAddress, _ int64) error
	ResetNodeAccountSlashPoints(_ cosmos.Context, _ cosmos.AccAddress)
	GetNodeAccountJail(ctx cosmos.Context, addr cosmos.AccAddress) (Jail, error)
	SetNodeAccountJail(ctx cosmos.Context, addr cosmos.AccAddress, height int64, reason string) error
	ReleaseNodeAccountFromJail(ctx cosmos.Context, addr cosmos.AccAddress) error
	SetBondProviders(ctx cosmos.Context, _ BondProviders) error
	GetBondProviders(ctx cosmos.Context, add cosmos.AccAddress) (BondProviders, error)
	CalcNodeLiquidityBond(ctx cosmos.Context, na NodeAccount) (cosmos.Uint, error)
	CalcNodeBondProvidersLiquidityBond(ctx cosmos.Context, na NodeAccount) (cosmos.Uint, []cosmos.Uint, error)
}

type KeeperObservedNetworkFeeVoter

type KeeperObservedNetworkFeeVoter interface {
	SetObservedNetworkFeeVoter(ctx cosmos.Context, networkFeeVoter ObservedNetworkFeeVoter)
	GetObservedNetworkFeeVoterIterator(ctx cosmos.Context) cosmos.Iterator
	GetObservedNetworkFeeVoter(ctx cosmos.Context, height int64, chain common.Chain, rate int64) (ObservedNetworkFeeVoter, error)
}

type KeeperObservedTx

type KeeperObservedTx interface {
	SetObservedTxInVoter(ctx cosmos.Context, tx ObservedTxVoter)
	GetObservedTxInVoterIterator(ctx cosmos.Context) cosmos.Iterator
	GetObservedTxInVoter(ctx cosmos.Context, hash common.TxID) (ObservedTxVoter, error)
	SetObservedTxOutVoter(ctx cosmos.Context, tx ObservedTxVoter)
	GetObservedTxOutVoterIterator(ctx cosmos.Context) cosmos.Iterator
	GetObservedTxOutVoter(ctx cosmos.Context, hash common.TxID) (ObservedTxVoter, error)
	SetObservedLink(ctx cosmos.Context, _, _ common.TxID)
	GetObservedLink(ctx cosmos.Context, inhash common.TxID) []common.TxID
}

type KeeperObserver

type KeeperObserver interface {
	GetObservingAddresses(ctx cosmos.Context) ([]cosmos.AccAddress, error)
	AddObservingAddresses(ctx cosmos.Context, inAddresses []cosmos.AccAddress) error
	ClearObservingAddresses(ctx cosmos.Context)
}

type KeeperOrderBooks

type KeeperOrderBooks interface {
	SetOrderBookItem(ctx cosmos.Context, msg MsgSwap) error
	GetOrderBookItemIterator(ctx cosmos.Context) cosmos.Iterator
	GetOrderBookItem(ctx cosmos.Context, txID common.TxID) (MsgSwap, error)
	HasOrderBookItem(ctx cosmos.Context, txID common.TxID) bool
	RemoveOrderBookItem(ctx cosmos.Context, txID common.TxID) error
	GetOrderBookIndexIterator(_ cosmos.Context, _ types.OrderType, _, _ common.Asset) cosmos.Iterator
	SetOrderBookIndex(_ cosmos.Context, _ MsgSwap) error
	GetOrderBookIndex(_ cosmos.Context, _ MsgSwap) (common.TxIDs, error)
	HasOrderBookIndex(_ cosmos.Context, _ MsgSwap) (bool, error)
	RemoveOrderBookIndex(_ cosmos.Context, _ MsgSwap) error
	SetOrderBookProcessor(_ cosmos.Context, _ []bool) error
	GetOrderBookProcessor(_ cosmos.Context) ([]bool, error)
}

type KeeperPool

type KeeperPool interface {
	GetPoolIterator(ctx cosmos.Context) cosmos.Iterator
	GetPool(ctx cosmos.Context, asset common.Asset) (Pool, error)
	GetPools(ctx cosmos.Context) (Pools, error)
	SetPool(ctx cosmos.Context, pool Pool) error
	PoolExist(ctx cosmos.Context, asset common.Asset) bool
	RemovePool(ctx cosmos.Context, asset common.Asset)
	SetPoolLUVI(ctx cosmos.Context, asset common.Asset, luvi cosmos.Uint)
	GetPoolLUVI(ctx cosmos.Context, asset common.Asset) (cosmos.Uint, error)
}

type KeeperRagnarok

type KeeperRagnarok interface {
	RagnarokInProgress(_ cosmos.Context) bool
	GetRagnarokBlockHeight(_ cosmos.Context) (int64, error)
	SetRagnarokBlockHeight(_ cosmos.Context, _ int64)
	GetRagnarokNth(_ cosmos.Context) (int64, error)
	SetRagnarokNth(_ cosmos.Context, _ int64)
	GetRagnarokPending(_ cosmos.Context) (int64, error)
	SetRagnarokPending(_ cosmos.Context, _ int64)
	GetRagnarokWithdrawPosition(ctx cosmos.Context) (RagnarokWithdrawPosition, error)
	SetRagnarokWithdrawPosition(ctx cosmos.Context, position RagnarokWithdrawPosition)
	SetPoolRagnarokStart(ctx cosmos.Context, asset common.Asset)
	GetPoolRagnarokStart(ctx cosmos.Context, asset common.Asset) (int64, error)
}

type KeeperReserveContributors

type KeeperReserveContributors interface {
	AddPoolFeeToReserve(ctx cosmos.Context, fee cosmos.Uint) error
	AddBondFeeToReserve(ctx cosmos.Context, fee cosmos.Uint) error
}

type KeeperSolvencyVoter

type KeeperSolvencyVoter interface {
	SetSolvencyVoter(_ cosmos.Context, _ SolvencyVoter)
	GetSolvencyVoter(_ cosmos.Context, _ common.TxID, _ common.Chain) (SolvencyVoter, error)
}

type KeeperSwapQueue

type KeeperSwapQueue interface {
	SetSwapQueueItem(ctx cosmos.Context, msg MsgSwap, i int) error
	GetSwapQueueIterator(ctx cosmos.Context) cosmos.Iterator
	GetSwapQueueItem(ctx cosmos.Context, txID common.TxID, i int) (MsgSwap, error)
	HasSwapQueueItem(ctx cosmos.Context, txID common.TxID, i int) bool
	RemoveSwapQueueItem(ctx cosmos.Context, txID common.TxID, i int)
}

type KeeperTss

type KeeperTss interface {
	SetTssVoter(_ cosmos.Context, tss TssVoter)
	GetTssVoterIterator(_ cosmos.Context) cosmos.Iterator
	GetTssVoter(_ cosmos.Context, _ string) (TssVoter, error)
	SetTssKeygenMetric(_ cosmos.Context, metric *TssKeygenMetric)
	GetTssKeygenMetric(_ cosmos.Context, key common.PubKey) (*TssKeygenMetric, error)
	SetTssKeysignMetric(_ cosmos.Context, metric *TssKeysignMetric)
	GetTssKeysignMetric(_ cosmos.Context, txID common.TxID) (*TssKeysignMetric, error)
	GetLatestTssKeysignMetric(_ cosmos.Context) (*TssKeysignMetric, error)
}

type KeeperTssKeysignFail

type KeeperTssKeysignFail interface {
	SetTssKeysignFailVoter(_ cosmos.Context, tss TssKeysignFailVoter)
	GetTssKeysignFailVoterIterator(_ cosmos.Context) cosmos.Iterator
	GetTssKeysignFailVoter(_ cosmos.Context, _ string) (TssKeysignFailVoter, error)
}

type KeeperTxOut

type KeeperTxOut interface {
	SetTxOut(ctx cosmos.Context, blockOut *TxOut) error
	AppendTxOut(ctx cosmos.Context, height int64, item TxOutItem) error
	ClearTxOut(ctx cosmos.Context, height int64) error
	GetTxOutIterator(ctx cosmos.Context) cosmos.Iterator
	GetTxOut(ctx cosmos.Context, height int64) (*TxOut, error)
	GetTxOutValue(ctx cosmos.Context, height int64) (cosmos.Uint, error)
}

type KeeperVault

type KeeperVault interface {
	GetVaultIterator(ctx cosmos.Context) cosmos.Iterator
	VaultExists(ctx cosmos.Context, pk common.PubKey) bool
	SetVault(ctx cosmos.Context, vault Vault) error
	GetVault(ctx cosmos.Context, pk common.PubKey) (Vault, error)
	HasValidVaultPools(ctx cosmos.Context) (bool, error)
	GetAsgardVaults(ctx cosmos.Context) (Vaults, error)
	GetAsgardVaultsByStatus(_ cosmos.Context, _ VaultStatus) (Vaults, error)
	GetLeastSecure(_ cosmos.Context, _ Vaults, _ int64) Vault
	GetMostSecure(_ cosmos.Context, _ Vaults, _ int64) Vault
	SortBySecurity(_ cosmos.Context, _ Vaults, _ int64) Vaults
	DeleteVault(ctx cosmos.Context, pk common.PubKey) error
	RemoveFromAsgardIndex(ctx cosmos.Context, pubkey common.PubKey) error
}

type KeygenBlock

type KeygenBlock = types.KeygenBlock

type LiquidityAuctionTier

type LiquidityAuctionTier = types.LiquidityAuctionTier

type LiquidityProvider

type LiquidityProvider = types.LiquidityProvider

type LiquidityProviders

type LiquidityProviders = types.LiquidityProviders

type MAYAName

type MAYAName = types.MAYAName

type MsgSwap

type MsgSwap = types.MsgSwap

type Network

type Network = types.Network

type NetworkFee

type NetworkFee = types.NetworkFee

type NodeAccount

type NodeAccount = types.NodeAccount

type NodeAccounts

type NodeAccounts = types.NodeAccounts

type NodeMimirs

type NodeMimirs = types.NodeMimirs

type NodeStatus

type NodeStatus = types.NodeStatus

type ObservedNetworkFeeVoter

type ObservedNetworkFeeVoter = types.ObservedNetworkFeeVoter

type ObservedTxVoter

type ObservedTxVoter = types.ObservedTxVoter

type Pool

type Pool = types.Pool

type PoolStatus

type PoolStatus = types.PoolStatus

type Pools

type Pools = types.Pools

type ProtocolOwnedLiquidity

type ProtocolOwnedLiquidity = types.ProtocolOwnedLiquidity

type RagnarokWithdrawPosition

type RagnarokWithdrawPosition = types.RagnarokWithdrawPosition

type ReserveContributors

type ReserveContributors = types.ReserveContributors

type SolvencyVoter

type SolvencyVoter = types.SolvencyVoter

type TssKeygenMetric

type TssKeygenMetric = types.TssKeygenMetric

type TssKeysignFailVoter

type TssKeysignFailVoter = types.TssKeysignFailVoter

type TssKeysignMetric

type TssKeysignMetric = types.TssKeysignMetric

type TssVoter

type TssVoter = types.TssVoter

type TxOut

type TxOut = types.TxOut

type TxOutItem

type TxOutItem = types.TxOutItem

type Vault

type Vault = types.Vault

type VaultStatus

type VaultStatus = types.VaultStatus

type Vaults

type Vaults = types.Vaults

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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