Documentation ¶
Index ¶
- Constants
- Variables
- type BanVoter
- type ChainContract
- type DummyIterator
- func (iter *DummyIterator) AddItem(key, value []byte)
- func (iter *DummyIterator) Close() error
- func (iter *DummyIterator) Domain() (start, end []byte)
- func (iter *DummyIterator) Error() error
- func (iter *DummyIterator) Key() []byte
- func (iter *DummyIterator) Next()
- func (iter *DummyIterator) Valid() bool
- func (iter *DummyIterator) Value() []byte
- type ErrataTxVoter
- type Jail
- type KVStoreDummy
- func (k KVStoreDummy) AccountKeeper() authkeeper.AccountKeeper
- func (k KVStoreDummy) AddCoins(ctx cosmos.Context, _ cosmos.AccAddress, coins cosmos.Coins) error
- func (k KVStoreDummy) AddFeeToReserve(_ cosmos.Context, _ cosmos.Uint) error
- func (k KVStoreDummy) AddObservingAddresses(_ cosmos.Context, _ []cosmos.AccAddress) error
- func (k KVStoreDummy) AddToLiquidityFees(_ cosmos.Context, _ common.Asset, _ cosmos.Uint) error
- func (k KVStoreDummy) AppendTxOut(_ cosmos.Context, _ int64, _ TxOutItem) error
- func (k KVStoreDummy) BurnFromModule(ctx cosmos.Context, module string, coin common.Coin) error
- func (k KVStoreDummy) Cdc() codec.BinaryMarshaler
- func (k KVStoreDummy) ClearObservingAddresses(_ cosmos.Context)
- func (k KVStoreDummy) ClearTxOut(_ cosmos.Context, _ int64) error
- func (k KVStoreDummy) CoinKeeper() bankkeeper.Keeper
- func (k KVStoreDummy) DecNodeAccountSlashPoints(_ cosmos.Context, _ cosmos.AccAddress, _ int64) error
- func (k KVStoreDummy) DeleteMimir(_ cosmos.Context, key string) error
- func (k KVStoreDummy) DeleteTHORName(ctx cosmos.Context, _ string) error
- func (k KVStoreDummy) DeleteVault(_ cosmos.Context, _ common.PubKey) error
- func (k KVStoreDummy) EnableAPool(_ cosmos.Context)
- func (k KVStoreDummy) EnsureNodeKeysUnique(_ cosmos.Context, _ string, _ common.PubKeySet) error
- func (k KVStoreDummy) FindPubKeyOfAddress(_ cosmos.Context, _ common.Address, _ common.Chain) (common.PubKey, error)
- func (k KVStoreDummy) GetAccount(ctx cosmos.Context, addr cosmos.AccAddress) cosmos.Account
- func (k KVStoreDummy) GetAsgardVaults(_ cosmos.Context) (Vaults, error)
- func (k KVStoreDummy) GetAsgardVaultsByStatus(_ cosmos.Context, _ VaultStatus) (Vaults, error)
- func (k KVStoreDummy) GetBalance(ctx cosmos.Context, addr cosmos.AccAddress) cosmos.Coins
- func (k KVStoreDummy) GetBanVoter(_ cosmos.Context, _ cosmos.AccAddress) (BanVoter, error)
- func (k KVStoreDummy) GetBanVoterIterator(ctx cosmos.Context) cosmos.Iterator
- func (k KVStoreDummy) GetChainContract(ctx cosmos.Context, chain common.Chain) (ChainContract, error)
- func (k KVStoreDummy) GetChainContractIterator(ctx cosmos.Context) cosmos.Iterator
- func (k KVStoreDummy) GetChainContracts(ctx cosmos.Context, chains common.Chains) []ChainContract
- func (k KVStoreDummy) GetChains(_ cosmos.Context) (common.Chains, error)
- func (k KVStoreDummy) GetErrataTxVoter(_ cosmos.Context, _ common.TxID, _ common.Chain) (ErrataTxVoter, error)
- func (k KVStoreDummy) GetErrataTxVoterIterator(_ cosmos.Context) cosmos.Iterator
- func (k KVStoreDummy) GetGas(_ cosmos.Context, _ common.Asset) ([]cosmos.Uint, error)
- func (k KVStoreDummy) GetGasIterator(ctx cosmos.Context) cosmos.Iterator
- func (k KVStoreDummy) GetKey(_ cosmos.Context, prefix kvTypes.DbPrefix, key string) string
- func (k KVStoreDummy) GetKeygenBlock(_ cosmos.Context, _ int64) (KeygenBlock, error)
- func (k KVStoreDummy) GetKeygenBlockIterator(_ cosmos.Context) cosmos.Iterator
- func (k KVStoreDummy) GetLastChainHeight(_ cosmos.Context, _ common.Chain) (int64, error)
- func (k KVStoreDummy) GetLastChainHeights(ctx cosmos.Context) (map[common.Chain]int64, error)
- func (k KVStoreDummy) GetLastObserveHeight(ctx cosmos.Context, address cosmos.AccAddress) (map[common.Chain]int64, error)
- func (k KVStoreDummy) GetLastSignedHeight(_ cosmos.Context) (int64, error)
- func (k KVStoreDummy) GetLatestTssKeysignMetric(_ cosmos.Context) (*TssKeysignMetric, error)
- func (k KVStoreDummy) GetLeastSecure(_ cosmos.Context, _ Vaults, _ int64) Vault
- func (k KVStoreDummy) GetLiquidityProvider(_ cosmos.Context, _ common.Asset, _ common.Address) (LiquidityProvider, error)
- func (k KVStoreDummy) GetLiquidityProviderIterator(_ cosmos.Context, _ common.Asset) cosmos.Iterator
- func (k KVStoreDummy) GetLowestActiveVersion(_ cosmos.Context) semver.Version
- func (k KVStoreDummy) GetMimir(_ cosmos.Context, key string) (int64, error)
- func (k KVStoreDummy) GetMimirIterator(ctx cosmos.Context) cosmos.Iterator
- func (k KVStoreDummy) GetMinJoinVersion(_ cosmos.Context) semver.Version
- func (k KVStoreDummy) GetMinJoinVersionV1(_ cosmos.Context) semver.Version
- func (k KVStoreDummy) GetModuleAccAddress(module string) cosmos.AccAddress
- func (k KVStoreDummy) GetModuleAddress(module string) (common.Address, error)
- func (k KVStoreDummy) GetMostSecure(_ cosmos.Context, _ Vaults, _ int64) Vault
- func (k KVStoreDummy) GetNetwork(_ cosmos.Context) (Network, error)
- func (k KVStoreDummy) GetNetworkFee(ctx cosmos.Context, chain common.Chain) (NetworkFee, error)
- func (k KVStoreDummy) GetNetworkFeeIterator(ctx cosmos.Context) cosmos.Iterator
- func (k KVStoreDummy) GetNodeAccount(_ cosmos.Context, _ cosmos.AccAddress) (NodeAccount, error)
- func (k KVStoreDummy) GetNodeAccountByPubKey(_ cosmos.Context, _ common.PubKey) (NodeAccount, error)
- func (k KVStoreDummy) GetNodeAccountIterator(_ cosmos.Context) cosmos.Iterator
- func (k KVStoreDummy) GetNodeAccountJail(ctx cosmos.Context, addr cosmos.AccAddress) (Jail, error)
- func (k KVStoreDummy) GetNodeAccountSlashPoints(_ cosmos.Context, _ cosmos.AccAddress) (int64, error)
- func (k KVStoreDummy) GetNodeMimirIterator(ctx cosmos.Context) cosmos.Iterator
- func (k KVStoreDummy) GetNodePauseChain(ctx cosmos.Context, acc cosmos.AccAddress) int64
- func (k KVStoreDummy) GetObservedNetworkFeeVoter(ctx cosmos.Context, height int64, chain common.Chain) (ObservedNetworkFeeVoter, error)
- func (k KVStoreDummy) GetObservedNetworkFeeVoterIterator(ctx cosmos.Context) cosmos.Iterator
- func (k KVStoreDummy) GetObservedNetworkFeeVoterV47(ctx cosmos.Context, height int64, chain common.Chain, rate int64) (ObservedNetworkFeeVoter, error)
- func (k KVStoreDummy) GetObservedTxInVoter(_ cosmos.Context, _ common.TxID) (ObservedTxVoter, error)
- func (k KVStoreDummy) GetObservedTxInVoterIterator(_ cosmos.Context) cosmos.Iterator
- func (k KVStoreDummy) GetObservedTxOutVoter(_ cosmos.Context, _ common.TxID) (ObservedTxVoter, error)
- func (k KVStoreDummy) GetObservedTxOutVoterIterator(_ cosmos.Context) cosmos.Iterator
- func (k KVStoreDummy) GetObservingAddresses(_ cosmos.Context) ([]cosmos.AccAddress, error)
- func (k KVStoreDummy) GetPool(_ cosmos.Context, _ common.Asset) (Pool, error)
- func (k KVStoreDummy) GetPoolBalances(_ cosmos.Context, _, _ common.Asset) (cosmos.Uint, cosmos.Uint)
- func (k KVStoreDummy) GetPoolDataIterator(_ cosmos.Context) cosmos.Iterator
- func (k KVStoreDummy) GetPoolIterator(_ cosmos.Context) cosmos.Iterator
- func (k KVStoreDummy) GetPoolLiquidityFees(_ cosmos.Context, _ uint64, _ common.Asset) (cosmos.Uint, error)
- func (k KVStoreDummy) GetPools(_ cosmos.Context) (Pools, error)
- func (k KVStoreDummy) GetRagnarokBlockHeight(_ cosmos.Context) (int64, error)
- func (k KVStoreDummy) GetRagnarokNth(_ cosmos.Context) (int64, error)
- func (k KVStoreDummy) GetRagnarokPending(_ cosmos.Context) (int64, error)
- func (k KVStoreDummy) GetRagnarokWithdrawPosition(ctx cosmos.Context) (RagnarokWithdrawPosition, error)
- func (k KVStoreDummy) GetRuneBalanceOfModule(ctx cosmos.Context, moduleName string) cosmos.Uint
- func (k KVStoreDummy) GetSolvencyVoter(_ cosmos.Context, _ common.TxID, _ common.Chain) (SolvencyVoter, error)
- func (k KVStoreDummy) GetStoreVersion(ctx cosmos.Context) int64
- func (k KVStoreDummy) GetSwapQueueItem(ctx cosmos.Context, txID common.TxID, _ int) (MsgSwap, error)
- func (k KVStoreDummy) GetSwapQueueIterator(ctx cosmos.Context) cosmos.Iterator
- func (k KVStoreDummy) GetTHORName(ctx cosmos.Context, _ string) (THORName, error)
- func (k KVStoreDummy) GetTHORNameIterator(ctx cosmos.Context) cosmos.Iterator
- func (k KVStoreDummy) GetTotalLiquidityFees(_ cosmos.Context, _ uint64) (cosmos.Uint, error)
- func (k KVStoreDummy) GetTotalSupply(ctx cosmos.Context, asset common.Asset) cosmos.Uint
- func (k KVStoreDummy) GetTssKeygenMetric(_ cosmos.Context, key common.PubKey) (*TssKeygenMetric, error)
- func (k KVStoreDummy) GetTssKeysignFailVoter(_ cosmos.Context, _ string) (TssKeysignFailVoter, error)
- func (k KVStoreDummy) GetTssKeysignFailVoterIterator(_ cosmos.Context) cosmos.Iterator
- func (k KVStoreDummy) GetTssKeysignMetric(_ cosmos.Context, txID common.TxID) (*TssKeysignMetric, error)
- func (k KVStoreDummy) GetTssVoter(_ cosmos.Context, _ string) (TssVoter, error)
- func (k KVStoreDummy) GetTssVoterIterator(_ cosmos.Context) cosmos.Iterator
- func (k KVStoreDummy) GetTxOut(_ cosmos.Context, _ int64) (*TxOut, error)
- func (k KVStoreDummy) GetTxOutIterator(_ cosmos.Context) cosmos.Iterator
- func (k KVStoreDummy) GetTxOutValue(_ cosmos.Context, _ int64) (cosmos.Uint, error)
- func (k KVStoreDummy) GetVault(_ cosmos.Context, _ common.PubKey) (Vault, error)
- func (k KVStoreDummy) GetVaultIterator(_ cosmos.Context) cosmos.Iterator
- func (k KVStoreDummy) HasCoins(ctx cosmos.Context, addr cosmos.AccAddress, coins cosmos.Coins) bool
- func (k KVStoreDummy) HasValidVaultPools(_ cosmos.Context) (bool, error)
- func (k KVStoreDummy) IncNodeAccountSlashPoints(_ cosmos.Context, _ cosmos.AccAddress, _ int64) error
- func (k KVStoreDummy) ListActiveValidators(_ cosmos.Context) (NodeAccounts, error)
- func (k KVStoreDummy) ListValidatorsByStatus(_ cosmos.Context, _ NodeStatus) (NodeAccounts, error)
- func (k KVStoreDummy) ListValidatorsWithBond(_ cosmos.Context) (NodeAccounts, error)
- func (k KVStoreDummy) Logger(ctx cosmos.Context) log.Logger
- func (k KVStoreDummy) MintAndSendToAccount(ctx cosmos.Context, to cosmos.AccAddress, coin common.Coin) error
- func (k KVStoreDummy) MintToModule(ctx cosmos.Context, module string, coin common.Coin) error
- func (k KVStoreDummy) PoolExist(_ cosmos.Context, _ common.Asset) bool
- func (k KVStoreDummy) RagnarokInProgress(_ cosmos.Context) bool
- func (k KVStoreDummy) ReleaseNodeAccountFromJail(ctx cosmos.Context, addr cosmos.AccAddress) error
- func (k KVStoreDummy) RemoveLiquidityProvider(_ cosmos.Context, _ LiquidityProvider)
- func (k KVStoreDummy) RemovePool(_ cosmos.Context, _ common.Asset)
- func (k KVStoreDummy) RemoveSwapQueueItem(ctx cosmos.Context, _ common.TxID, _ int)
- func (k KVStoreDummy) ResetNodeAccountSlashPoints(_ cosmos.Context, _ cosmos.AccAddress)
- func (k KVStoreDummy) SaveNetworkFee(ctx cosmos.Context, chain common.Chain, networkFee NetworkFee) error
- func (k KVStoreDummy) SendCoins(ctx cosmos.Context, from, to cosmos.AccAddress, coins cosmos.Coins) error
- func (k KVStoreDummy) SendFromAccountToModule(ctx cosmos.Context, from cosmos.AccAddress, to string, coins common.Coins) error
- func (k KVStoreDummy) SendFromModuleToAccount(ctx cosmos.Context, from string, to cosmos.AccAddress, coins common.Coins) error
- func (k KVStoreDummy) SendFromModuleToModule(ctx cosmos.Context, from, to string, coins common.Coins) error
- func (k KVStoreDummy) SetBanVoter(_ cosmos.Context, _ BanVoter)
- func (k KVStoreDummy) SetChainContract(ctx cosmos.Context, cc ChainContract)
- func (k KVStoreDummy) SetChains(_ cosmos.Context, _ common.Chains)
- func (k KVStoreDummy) SetErrataTxVoter(_ cosmos.Context, _ ErrataTxVoter)
- func (k KVStoreDummy) SetGas(_ cosmos.Context, _ common.Asset, _ []cosmos.Uint)
- func (k KVStoreDummy) SetKeygenBlock(_ cosmos.Context, _ KeygenBlock)
- func (k KVStoreDummy) SetLastChainHeight(_ cosmos.Context, _ common.Chain, _ int64) error
- func (k KVStoreDummy) SetLastObserveHeight(ctx cosmos.Context, chain common.Chain, address cosmos.AccAddress, ...) error
- func (k KVStoreDummy) SetLastSignedHeight(_ cosmos.Context, _ int64) error
- func (k KVStoreDummy) SetLiquidityProvider(_ cosmos.Context, _ LiquidityProvider)
- func (k KVStoreDummy) SetMimir(_ cosmos.Context, key string, value int64)
- func (k KVStoreDummy) SetNetwork(_ cosmos.Context, _ Network) error
- func (k KVStoreDummy) SetNodeAccount(_ cosmos.Context, _ NodeAccount) error
- func (k KVStoreDummy) SetNodeAccountJail(ctx cosmos.Context, addr cosmos.AccAddress, height int64, reason string) error
- func (k KVStoreDummy) SetNodeAccountSlashPoints(_ cosmos.Context, _ cosmos.AccAddress, _ int64)
- func (k KVStoreDummy) SetNodeMimir(_ cosmos.Context, key string, value int64, acc cosmos.AccAddress) error
- func (k KVStoreDummy) SetNodePauseChain(ctx cosmos.Context, acc cosmos.AccAddress)
- func (k KVStoreDummy) SetObservedNetworkFeeVoter(ctx cosmos.Context, networkFeeVoter ObservedNetworkFeeVoter)
- func (k KVStoreDummy) SetObservedTxInVoter(_ cosmos.Context, _ ObservedTxVoter)
- func (k KVStoreDummy) SetObservedTxOutVoter(_ cosmos.Context, _ ObservedTxVoter)
- func (k KVStoreDummy) SetPool(_ cosmos.Context, _ Pool) error
- func (k KVStoreDummy) SetPoolData(_ cosmos.Context, _ common.Asset, _ PoolStatus)
- func (k KVStoreDummy) SetRagnarokBlockHeight(_ cosmos.Context, _ int64)
- func (k KVStoreDummy) SetRagnarokNth(_ cosmos.Context, _ int64)
- func (k KVStoreDummy) SetRagnarokPending(_ cosmos.Context, _ int64)
- func (k KVStoreDummy) SetRagnarokWithdrawPosition(_tx cosmos.Context, _ RagnarokWithdrawPosition)
- func (k KVStoreDummy) SetSolvencyVoter(_ cosmos.Context, _ SolvencyVoter)
- func (k KVStoreDummy) SetStoreVersion(ctx cosmos.Context, ver int64)
- func (k KVStoreDummy) SetSwapQueueItem(ctx cosmos.Context, msg MsgSwap, i int) error
- func (k KVStoreDummy) SetTHORName(ctx cosmos.Context, name THORName)
- func (k KVStoreDummy) SetTssKeygenMetric(_ cosmos.Context, metric *TssKeygenMetric)
- func (k KVStoreDummy) SetTssKeysignFailVoter(_ cosmos.Context, tss TssKeysignFailVoter)
- func (k KVStoreDummy) SetTssKeysignMetric(_ cosmos.Context, metric *TssKeysignMetric)
- func (k KVStoreDummy) SetTssVoter(_ cosmos.Context, _ TssVoter)
- func (k KVStoreDummy) SetTxOut(_ cosmos.Context, _ *TxOut) error
- func (k KVStoreDummy) SetVault(_ cosmos.Context, _ Vault) error
- func (k KVStoreDummy) SortBySecurity(_ cosmos.Context, _ Vaults, _ int64) Vaults
- func (k KVStoreDummy) THORNameExists(ctx cosmos.Context, _ string) bool
- func (k KVStoreDummy) TotalActiveValidators(_ cosmos.Context) (int, error)
- func (k KVStoreDummy) VaultExists(_ cosmos.Context, _ common.PubKey) bool
- func (k KVStoreDummy) Version() semver.Version
- type Keeper
- type KeeperBanVoter
- type KeeperChainContract
- type KeeperErrataTx
- type KeeperKeygen
- type KeeperLastHeight
- type KeeperLiquidityFees
- type KeeperLiquidityProvider
- type KeeperMimir
- type KeeperNetwork
- type KeeperNetworkFee
- type KeeperNodeAccount
- type KeeperObservedNetworkFeeVoter
- type KeeperObservedTx
- type KeeperObserver
- type KeeperPool
- type KeeperRagnarok
- type KeeperReserveContributors
- type KeeperSolvencyVoter
- type KeeperSwapQueue
- type KeeperTHORName
- type KeeperTss
- type KeeperTssKeysignFail
- type KeeperTxOut
- type KeeperVault
- type KeygenBlock
- type LiquidityProvider
- type MsgSwap
- type Network
- type NetworkFee
- type NodeAccount
- type NodeAccounts
- type NodeStatus
- type ObservedNetworkFeeVoter
- type ObservedTxVoter
- type Pool
- type PoolStatus
- type Pools
- type RagnarokWithdrawPosition
- type ReserveContributors
- type SolvencyVoter
- type THORName
- type TssKeygenMetric
- type TssKeysignFailVoter
- type TssKeysignMetric
- type TssVoter
- type TxOut
- type TxOutItem
- type Vault
- type VaultStatus
- type Vaults
Constants ¶
View Source
const ( ModuleName = types.ModuleName ReserveName = types.ReserveName AsgardName = types.AsgardName BondName = types.BondName RouterKey = types.RouterKey StoreKey = types.StoreKey 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 ChainContract ¶ added in v0.41.0
type ChainContract = types.ChainContract
type DummyIterator ¶
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 KVStoreDummy ¶
type KVStoreDummy struct{}
func (KVStoreDummy) AccountKeeper ¶ added in v0.41.0
func (k KVStoreDummy) AccountKeeper() authkeeper.AccountKeeper
func (KVStoreDummy) AddCoins ¶ added in v0.41.0
func (k KVStoreDummy) AddCoins(ctx cosmos.Context, _ cosmos.AccAddress, coins cosmos.Coins) error
func (KVStoreDummy) AddFeeToReserve ¶
func (KVStoreDummy) AddObservingAddresses ¶
func (k KVStoreDummy) AddObservingAddresses(_ cosmos.Context, _ []cosmos.AccAddress) error
func (KVStoreDummy) AddToLiquidityFees ¶
func (KVStoreDummy) AppendTxOut ¶
func (KVStoreDummy) BurnFromModule ¶ added in v0.41.0
func (KVStoreDummy) Cdc ¶
func (k KVStoreDummy) Cdc() codec.BinaryMarshaler
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) DeleteMimir ¶ added in v0.54.0
func (k KVStoreDummy) DeleteMimir(_ cosmos.Context, key string) error
func (KVStoreDummy) DeleteTHORName ¶ added in v0.58.0
func (k KVStoreDummy) DeleteTHORName(ctx cosmos.Context, _ string) error
func (KVStoreDummy) DeleteVault ¶
func (KVStoreDummy) EnableAPool ¶
func (k KVStoreDummy) EnableAPool(_ cosmos.Context)
func (KVStoreDummy) EnsureNodeKeysUnique ¶
func (KVStoreDummy) FindPubKeyOfAddress ¶
func (KVStoreDummy) GetAccount ¶ added in v0.41.0
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 ¶ added in v0.41.0
func (k KVStoreDummy) GetBalance(ctx cosmos.Context, addr cosmos.AccAddress) cosmos.Coins
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) GetChainContract ¶ added in v0.41.0
func (k KVStoreDummy) GetChainContract(ctx cosmos.Context, chain common.Chain) (ChainContract, error)
func (KVStoreDummy) GetChainContractIterator ¶ added in v0.41.0
func (k KVStoreDummy) GetChainContractIterator(ctx cosmos.Context) cosmos.Iterator
func (KVStoreDummy) GetChainContracts ¶ added in v0.41.0
func (k KVStoreDummy) GetChainContracts(ctx cosmos.Context, chains common.Chains) []ChainContract
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) GetGasIterator ¶
func (k KVStoreDummy) GetGasIterator(ctx cosmos.Context) cosmos.Iterator
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 (KVStoreDummy) GetLastChainHeights ¶
func (KVStoreDummy) GetLastObserveHeight ¶ added in v0.41.0
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 ¶ added in v0.41.0
func (k KVStoreDummy) GetLatestTssKeysignMetric(_ cosmos.Context) (*TssKeysignMetric, error)
func (KVStoreDummy) GetLeastSecure ¶ added in v0.41.0
func (KVStoreDummy) GetLiquidityProvider ¶ added in v0.41.0
func (k KVStoreDummy) GetLiquidityProvider(_ cosmos.Context, _ common.Asset, _ common.Address) (LiquidityProvider, error)
func (KVStoreDummy) GetLiquidityProviderIterator ¶ added in v0.41.0
func (KVStoreDummy) GetLowestActiveVersion ¶
func (k KVStoreDummy) GetLowestActiveVersion(_ cosmos.Context) semver.Version
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 ¶ added in v0.41.0
func (k KVStoreDummy) GetModuleAccAddress(module string) cosmos.AccAddress
func (KVStoreDummy) GetModuleAddress ¶ added in v0.41.0
func (k KVStoreDummy) GetModuleAddress(module string) (common.Address, error)
func (KVStoreDummy) GetMostSecure ¶ added in v0.41.0
func (KVStoreDummy) GetNetwork ¶ added in v0.41.0
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) GetNodeMimirIterator ¶ added in v0.78.0
func (k KVStoreDummy) GetNodeMimirIterator(ctx cosmos.Context) cosmos.Iterator
func (KVStoreDummy) GetNodePauseChain ¶ added in v0.65.0
func (k KVStoreDummy) GetNodePauseChain(ctx cosmos.Context, acc cosmos.AccAddress) int64
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) GetObservedNetworkFeeVoterV47 ¶ added in v0.54.0
func (k KVStoreDummy) GetObservedNetworkFeeVoterV47(ctx cosmos.Context, height int64, chain common.Chain, rate int64) (ObservedNetworkFeeVoter, error)
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) GetPoolBalances ¶
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 (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 ¶ added in v0.41.0
func (k KVStoreDummy) GetRagnarokWithdrawPosition(ctx cosmos.Context) (RagnarokWithdrawPosition, error)
func (KVStoreDummy) GetRuneBalanceOfModule ¶
func (KVStoreDummy) GetSolvencyVoter ¶ added in v0.63.0
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 (KVStoreDummy) GetSwapQueueIterator ¶
func (k KVStoreDummy) GetSwapQueueIterator(ctx cosmos.Context) cosmos.Iterator
func (KVStoreDummy) GetTHORName ¶ added in v0.58.0
func (KVStoreDummy) GetTHORNameIterator ¶ added in v0.58.0
func (k KVStoreDummy) GetTHORNameIterator(ctx cosmos.Context) cosmos.Iterator
func (KVStoreDummy) GetTotalLiquidityFees ¶
func (KVStoreDummy) GetTotalSupply ¶ added in v0.41.0
func (KVStoreDummy) GetTssKeygenMetric ¶ added in v0.41.0
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 ¶ added in v0.41.0
func (k KVStoreDummy) GetTssKeysignMetric(_ cosmos.Context, txID common.TxID) (*TssKeysignMetric, error)
func (KVStoreDummy) GetTssVoter ¶
func (KVStoreDummy) GetTssVoterIterator ¶
func (k KVStoreDummy) GetTssVoterIterator(_ cosmos.Context) cosmos.Iterator
func (KVStoreDummy) GetTxOutIterator ¶
func (k KVStoreDummy) GetTxOutIterator(_ cosmos.Context) cosmos.Iterator
func (KVStoreDummy) GetTxOutValue ¶ added in v0.65.0
func (KVStoreDummy) GetVaultIterator ¶
func (k KVStoreDummy) GetVaultIterator(_ cosmos.Context) cosmos.Iterator
func (KVStoreDummy) HasCoins ¶ added in v0.41.0
func (k KVStoreDummy) HasCoins(ctx cosmos.Context, addr cosmos.AccAddress, coins cosmos.Coins) 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 ¶ added in v0.68.0
func (k KVStoreDummy) ListActiveValidators(_ cosmos.Context) (NodeAccounts, error)
func (KVStoreDummy) ListValidatorsByStatus ¶ added in v0.68.0
func (k KVStoreDummy) ListValidatorsByStatus(_ cosmos.Context, _ NodeStatus) (NodeAccounts, error)
func (KVStoreDummy) ListValidatorsWithBond ¶ added in v0.68.0
func (k KVStoreDummy) ListValidatorsWithBond(_ cosmos.Context) (NodeAccounts, error)
func (KVStoreDummy) MintAndSendToAccount ¶ added in v0.41.0
func (k KVStoreDummy) MintAndSendToAccount(ctx cosmos.Context, to cosmos.AccAddress, coin common.Coin) error
func (KVStoreDummy) MintToModule ¶ added in v0.41.0
func (KVStoreDummy) RagnarokInProgress ¶
func (k KVStoreDummy) RagnarokInProgress(_ cosmos.Context) bool
func (KVStoreDummy) ReleaseNodeAccountFromJail ¶ added in v0.73.0
func (k KVStoreDummy) ReleaseNodeAccountFromJail(ctx cosmos.Context, addr cosmos.AccAddress) error
func (KVStoreDummy) RemoveLiquidityProvider ¶ added in v0.41.0
func (k KVStoreDummy) RemoveLiquidityProvider(_ cosmos.Context, _ LiquidityProvider)
func (KVStoreDummy) RemovePool ¶
func (k KVStoreDummy) RemovePool(_ cosmos.Context, _ common.Asset)
func (KVStoreDummy) RemoveSwapQueueItem ¶
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) SendCoins ¶ added in v0.41.0
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 (KVStoreDummy) SetBanVoter ¶
func (k KVStoreDummy) SetBanVoter(_ cosmos.Context, _ BanVoter)
func (KVStoreDummy) SetChainContract ¶ added in v0.41.0
func (k KVStoreDummy) SetChainContract(ctx cosmos.Context, cc ChainContract)
func (KVStoreDummy) SetErrataTxVoter ¶
func (k KVStoreDummy) SetErrataTxVoter(_ cosmos.Context, _ ErrataTxVoter)
func (KVStoreDummy) SetKeygenBlock ¶
func (k KVStoreDummy) SetKeygenBlock(_ cosmos.Context, _ KeygenBlock)
func (KVStoreDummy) SetLastChainHeight ¶
func (KVStoreDummy) SetLastObserveHeight ¶ added in v0.41.0
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) SetLiquidityProvider ¶ added in v0.41.0
func (k KVStoreDummy) SetLiquidityProvider(_ cosmos.Context, _ LiquidityProvider)
func (KVStoreDummy) SetMimir ¶
func (k KVStoreDummy) SetMimir(_ cosmos.Context, key string, value int64)
func (KVStoreDummy) SetNetwork ¶ added in v0.41.0
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) SetNodeMimir ¶ added in v0.78.0
func (k KVStoreDummy) SetNodeMimir(_ cosmos.Context, key string, value int64, acc cosmos.AccAddress) error
func (KVStoreDummy) SetNodePauseChain ¶ added in v0.65.0
func (k KVStoreDummy) SetNodePauseChain(ctx cosmos.Context, acc cosmos.AccAddress)
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) 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) SetRagnarokWithdrawPosition ¶ added in v0.41.0
func (k KVStoreDummy) SetRagnarokWithdrawPosition(_tx cosmos.Context, _ RagnarokWithdrawPosition)
func (KVStoreDummy) SetSolvencyVoter ¶ added in v0.63.0
func (k KVStoreDummy) SetSolvencyVoter(_ cosmos.Context, _ SolvencyVoter)
func (KVStoreDummy) SetStoreVersion ¶
func (k KVStoreDummy) SetStoreVersion(ctx cosmos.Context, ver int64)
func (KVStoreDummy) SetSwapQueueItem ¶
func (KVStoreDummy) SetTHORName ¶ added in v0.58.0
func (k KVStoreDummy) SetTHORName(ctx cosmos.Context, name THORName)
func (KVStoreDummy) SetTssKeygenMetric ¶ added in v0.41.0
func (k KVStoreDummy) SetTssKeygenMetric(_ cosmos.Context, metric *TssKeygenMetric)
func (KVStoreDummy) SetTssKeysignFailVoter ¶
func (k KVStoreDummy) SetTssKeysignFailVoter(_ cosmos.Context, tss TssKeysignFailVoter)
func (KVStoreDummy) SetTssKeysignMetric ¶ added in v0.41.0
func (k KVStoreDummy) SetTssKeysignMetric(_ cosmos.Context, metric *TssKeysignMetric)
func (KVStoreDummy) SetTssVoter ¶
func (k KVStoreDummy) SetTssVoter(_ cosmos.Context, _ TssVoter)
func (KVStoreDummy) SortBySecurity ¶ added in v0.41.0
func (KVStoreDummy) THORNameExists ¶ added in v0.58.0
func (k KVStoreDummy) THORNameExists(ctx cosmos.Context, _ string) bool
func (KVStoreDummy) TotalActiveValidators ¶ added in v0.68.0
func (k KVStoreDummy) TotalActiveValidators(_ cosmos.Context) (int, error)
func (KVStoreDummy) VaultExists ¶
func (KVStoreDummy) Version ¶
func (k KVStoreDummy) Version() semver.Version
type Keeper ¶
type Keeper interface { Cdc() codec.BinaryMarshaler Version() 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 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 // 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 KeeperMimir KeeperNetworkFee KeeperObservedNetworkFeeVoter KeeperChainContract KeeperSolvencyVoter KeeperTHORName }
func NewKeeper ¶ added in v0.41.0
func NewKeeper(cdc codec.BinaryMarshaler, coinKeeper bankkeeper.Keeper, accountKeeper authkeeper.AccountKeeper, storeKey cosmos.StoreKey) Keeper
NewKVStore creates new instances of the thorchain Keeper
type KeeperBanVoter ¶
type KeeperChainContract ¶ added in v0.41.0
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 KeeperKeygen ¶
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 KeeperLiquidityProvider ¶ added in v0.41.0
type KeeperLiquidityProvider interface { GetLiquidityProviderIterator(ctx cosmos.Context, _ common.Asset) cosmos.Iterator GetLiquidityProvider(ctx cosmos.Context, asset common.Asset, addr common.Address) (LiquidityProvider, error) SetLiquidityProvider(ctx cosmos.Context, lp LiquidityProvider) RemoveLiquidityProvider(ctx cosmos.Context, lp LiquidityProvider) GetTotalSupply(ctx cosmos.Context, asset common.Asset) cosmos.Uint }
type KeeperMimir ¶
type KeeperMimir interface { GetMimir(_ cosmos.Context, key string) (int64, error) SetMimir(_ cosmos.Context, key string, value int64) 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 ¶ added in v0.41.0
type KeeperNetwork interface { GetNetwork(ctx cosmos.Context) (Network, error) SetNetwork(ctx cosmos.Context, data Network) error }
KeeperNetwork func to access network data in key value store
type KeeperNetworkFee ¶
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 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 ReleaseNodeAccountFromJail(ctx cosmos.Context, addr cosmos.AccAddress) 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) GetObservedNetworkFeeVoterV47(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) }
type KeeperObserver ¶
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) GetRagnarokWithdrawPosition(ctx cosmos.Context) (RagnarokWithdrawPosition, error) SetRagnarokWithdrawPosition(ctx cosmos.Context, position RagnarokWithdrawPosition) }
type KeeperSolvencyVoter ¶ added in v0.63.0
type KeeperSwapQueue ¶
type KeeperTHORName ¶ added in v0.58.0
type KeeperTHORName interface { THORNameExists(ctx cosmos.Context, _ string) bool GetTHORName(ctx cosmos.Context, _ string) (THORName, error) SetTHORName(ctx cosmos.Context, name THORName) GetTHORNameIterator(ctx cosmos.Context) cosmos.Iterator DeleteTHORName(ctx cosmos.Context, _ string) error }
NewKeeper creates new instances of the thorchain Keeper
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 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 }
type KeygenBlock ¶
type KeygenBlock = types.KeygenBlock
type LiquidityProvider ¶ added in v0.41.0
type LiquidityProvider = types.LiquidityProvider
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 PoolStatus ¶
type PoolStatus = types.PoolStatus
type RagnarokWithdrawPosition ¶ added in v0.41.0
type RagnarokWithdrawPosition = types.RagnarokWithdrawPosition
type ReserveContributors ¶
type ReserveContributors = types.ReserveContributors
type SolvencyVoter ¶ added in v0.63.0
type SolvencyVoter = types.SolvencyVoter
type TssKeygenMetric ¶ added in v0.41.0
type TssKeygenMetric = types.TssKeygenMetric
type TssKeysignFailVoter ¶
type TssKeysignFailVoter = types.TssKeysignFailVoter
type TssKeysignMetric ¶ added in v0.41.0
type TssKeysignMetric = types.TssKeysignMetric
type VaultStatus ¶
type VaultStatus = types.VaultStatus
Click to show internal directories.
Click to hide internal directories.