keeper

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: MIT Imports: 12 Imported by: 4

Documentation

Index

Constants

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

	ActiveVault = types.ActiveVault

	// Node status
	NodeActive = types.Active
)

Variables

View Source
var (
	NewPool              = types.NewPool
	NewJail              = types.NewJail
	ModuleCdc            = types.ModuleCdc
	RegisterCodec        = types.RegisterCodec
	GetRandomVault       = types.GetRandomVault
	GetRandomNodeAccount = types.GetRandomNodeAccount
	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 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()

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 Jail

type Jail = types.Jail

type KVStoreDummy

type KVStoreDummy struct{}

func (KVStoreDummy) AddFeeToReserve

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

func (KVStoreDummy) AddObservingAddresses

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

func (KVStoreDummy) AddToLiquidityFees

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

func (KVStoreDummy) AppendTxMarker

func (k KVStoreDummy) AppendTxMarker(_ cosmos.Context, _ string, _ TxMarker) error

func (KVStoreDummy) AppendTxOut

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

func (KVStoreDummy) Cdc

func (k KVStoreDummy) Cdc() *codec.Codec

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() bank.Keeper

func (KVStoreDummy) DecNodeAccountSlashPoints

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

func (KVStoreDummy) DeleteVault

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

func (KVStoreDummy) EnableAPool

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

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

func (k KVStoreDummy) GetAllTxMarkers(ctx cosmos.Context) (map[string]TxMarkers, error)

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

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

func (KVStoreDummy) GetLowestActiveVersion

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

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

func (k KVStoreDummy) GetObservedNetworkFeeVoter(ctx cosmos.Context, height int64, chain common.Chain) (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) 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) GetPoolLiquidityFees

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

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

func (k KVStoreDummy) GetRagnarokUnstakPosition(ctx cosmos.Context) (RagnarokUnstakePosition, error)

func (KVStoreDummy) GetReservesContributors

func (k KVStoreDummy) GetReservesContributors(_ cosmos.Context) (ReserveContributors, error)

func (KVStoreDummy) GetRuneBalanceOfModule

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

func (KVStoreDummy) GetStaker

func (k KVStoreDummy) GetStaker(_ cosmos.Context, _ common.Asset, _ common.Address) (Staker, error)

func (KVStoreDummy) GetStakerIterator

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

func (KVStoreDummy) GetStoreVersion

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

func (KVStoreDummy) GetSwapQueueItem

func (k KVStoreDummy) GetSwapQueueItem(ctx cosmos.Context, txID common.TxID) (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) GetTssKeysignFailVoter

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

func (KVStoreDummy) GetTssKeysignFailVoterIterator

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

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

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

func (KVStoreDummy) GetVaultData

func (k KVStoreDummy) GetVaultData(_ cosmos.Context) (VaultData, error)

func (KVStoreDummy) GetVaultIterator

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

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

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

func (KVStoreDummy) ListNodeAccountsByStatus

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

func (KVStoreDummy) ListNodeAccountsWithBond

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

func (KVStoreDummy) ListTxMarker

func (k KVStoreDummy) ListTxMarker(_ cosmos.Context, _ string) (TxMarkers, error)

func (KVStoreDummy) Logger

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

func (KVStoreDummy) PoolExist

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

func (KVStoreDummy) RagnarokInProgress

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

func (KVStoreDummy) RemovePool

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

func (KVStoreDummy) RemoveStaker

func (k KVStoreDummy) RemoveStaker(_ cosmos.Context, _ Staker)

func (KVStoreDummy) RemoveSwapQueueItem

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

func (KVStoreDummy) ResetNodeAccountSlashPoints

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

func (KVStoreDummy) SaveNetworkFee

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

func (KVStoreDummy) SendFromAccountToModule

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

func (KVStoreDummy) SendFromModuleToAccount

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

func (KVStoreDummy) SendFromModuleToModule

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

func (KVStoreDummy) SetBanVoter

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

func (KVStoreDummy) SetChains

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

func (KVStoreDummy) SetErrataTxVoter

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

func (KVStoreDummy) SetGas

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

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

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

func (KVStoreDummy) SetMimir

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

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

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

func (KVStoreDummy) SetPoolData

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

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

func (k KVStoreDummy) SetRagnarokUnstakPosition(_tx cosmos.Context, _ RagnarokUnstakePosition)

func (KVStoreDummy) SetReserveContributors

func (k KVStoreDummy) SetReserveContributors(_ cosmos.Context, _ ReserveContributors) error

func (KVStoreDummy) SetStaker

func (k KVStoreDummy) SetStaker(_ cosmos.Context, _ Staker)

func (KVStoreDummy) SetStoreVersion

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

func (KVStoreDummy) SetSwapQueueItem

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

func (KVStoreDummy) SetTssKeysignFailVoter

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

func (KVStoreDummy) SetTssVoter

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

func (KVStoreDummy) SetTxMarkers

func (k KVStoreDummy) SetTxMarkers(_ cosmos.Context, _ string, _ TxMarkers) error

func (KVStoreDummy) SetTxOut

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

func (KVStoreDummy) SetVault

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

func (KVStoreDummy) SetVaultData

func (k KVStoreDummy) SetVaultData(_ cosmos.Context, _ VaultData) error

func (KVStoreDummy) Supply

func (k KVStoreDummy) Supply() supply.Keeper

func (KVStoreDummy) TotalActiveNodeAccount

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

func (KVStoreDummy) VaultExists

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

func (KVStoreDummy) Version

func (k KVStoreDummy) Version() int64

type Keeper

func NewKVStore

func NewKVStore(coinKeeper bank.Keeper, supplyKeeper supply.Keeper, storeKey cosmos.StoreKey, cdc *codec.Codec) 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 KeeperErrataTx

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

type KeeperGas

type KeeperGas interface {
	GetGas(_ cosmos.Context, asset common.Asset) ([]cosmos.Uint, error)
	SetGas(_ cosmos.Context, asset common.Asset, units []cosmos.Uint)
	GetGasIterator(ctx cosmos.Context) cosmos.Iterator
}

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

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

type KeeperMimir

type KeeperMimir interface {
	GetMimir(_ cosmos.Context, key string) (int64, error)
	SetMimir(_ cosmos.Context, key string, value int64)
	GetMimirIterator(ctx cosmos.Context) cosmos.Iterator
}

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
}

type KeeperNodeAccount

type KeeperNodeAccount interface {
	TotalActiveNodeAccount(ctx cosmos.Context) (int, error)
	ListNodeAccountsWithBond(ctx cosmos.Context) (NodeAccounts, error)
	ListNodeAccountsByStatus(ctx cosmos.Context, status NodeStatus) (NodeAccounts, error)
	ListActiveNodeAccounts(ctx cosmos.Context) (NodeAccounts, error)
	GetLowestActiveVersion(ctx cosmos.Context) semver.Version
	GetMinJoinVersion(ctx cosmos.Context) semver.Version
	GetMinJoinVersionV1(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
	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
}

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) (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)
}

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

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)
	GetRagnarokUnstakPosition(ctx cosmos.Context) (RagnarokUnstakePosition, error)
	SetRagnarokUnstakPosition(ctx cosmos.Context, position RagnarokUnstakePosition)
}

type KeeperReserveContributors

type KeeperReserveContributors interface {
	GetReservesContributors(ctx cosmos.Context) (ReserveContributors, error)
	SetReserveContributors(ctx cosmos.Context, contributors ReserveContributors) error
	AddFeeToReserve(ctx cosmos.Context, fee cosmos.Uint) error
}

type KeeperStaker

type KeeperStaker interface {
	GetStakerIterator(ctx cosmos.Context, _ common.Asset) cosmos.Iterator
	GetStaker(ctx cosmos.Context, asset common.Asset, addr common.Address) (Staker, error)
	SetStaker(ctx cosmos.Context, staker Staker)
	RemoveStaker(ctx cosmos.Context, staker Staker)
}

type KeeperSwapQueue

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

type KeeperTss

type KeeperTss interface {
	SetTssVoter(_ cosmos.Context, tss TssVoter)
	GetTssVoterIterator(_ cosmos.Context) cosmos.Iterator
	GetTssVoter(_ cosmos.Context, _ string) (TssVoter, error)
}

type KeeperTssKeysignFail

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

type KeeperTxMarker

type KeeperTxMarker interface {
	ListTxMarker(ctx cosmos.Context, hash string) (TxMarkers, error)
	SetTxMarkers(ctx cosmos.Context, hash string, marks TxMarkers) error
	AppendTxMarker(ctx cosmos.Context, hash string, mark TxMarker) error
	GetAllTxMarkers(ctx cosmos.Context) (map[string]TxMarkers, 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)
}

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)
	DeleteVault(ctx cosmos.Context, pk common.PubKey) error
}

type KeeperVaultData

type KeeperVaultData interface {
	GetVaultData(ctx cosmos.Context) (VaultData, error)
	SetVaultData(ctx cosmos.Context, data VaultData) error
}

KeeperVaultData func to access Vault in key value store

type KeygenBlock

type KeygenBlock = types.KeygenBlock

type MsgSwap

type MsgSwap = types.MsgSwap

type NetworkFee

type NetworkFee = types.NetworkFee

type NodeAccount

type NodeAccount = types.NodeAccount

type NodeAccounts

type NodeAccounts = types.NodeAccounts

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 RagnarokUnstakePosition

type RagnarokUnstakePosition = types.RagnarokUnstakePosition

type ReserveContributors

type ReserveContributors = types.ReserveContributors

type Staker

type Staker = types.Staker

type TssKeysignFailVoter

type TssKeysignFailVoter = types.TssKeysignFailVoter

type TssVoter

type TssVoter = types.TssVoter

type TxMarker

type TxMarker = types.TxMarker

type TxMarkers

type TxMarkers = types.TxMarkers

type TxOut

type TxOut = types.TxOut

type TxOutItem

type TxOutItem = types.TxOutItem

type Vault

type Vault = types.Vault

type VaultData

type VaultData = types.VaultData

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