mocks

package
v0.0.0-...-2da98db Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CrosschainAccountKeeper

type CrosschainAccountKeeper struct {
	mock.Mock
}

CrosschainAccountKeeper is an autogenerated mock type for the CrosschainAccountKeeper type

func NewCrosschainAccountKeeper

func NewCrosschainAccountKeeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *CrosschainAccountKeeper

NewCrosschainAccountKeeper creates a new instance of CrosschainAccountKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*CrosschainAccountKeeper) GetModuleAccount

func (_m *CrosschainAccountKeeper) GetModuleAccount(ctx types.Context, name string) authtypes.ModuleAccountI

GetModuleAccount provides a mock function with given fields: ctx, name

type CrosschainAuthorityKeeper

type CrosschainAuthorityKeeper struct {
	mock.Mock
}

CrosschainAuthorityKeeper is an autogenerated mock type for the CrosschainAuthorityKeeper type

func NewCrosschainAuthorityKeeper

func NewCrosschainAuthorityKeeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *CrosschainAuthorityKeeper

NewCrosschainAuthorityKeeper creates a new instance of CrosschainAuthorityKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*CrosschainAuthorityKeeper) CheckAuthorization

func (_m *CrosschainAuthorityKeeper) CheckAuthorization(ctx types.Context, msg types.Msg) error

CheckAuthorization provides a mock function with given fields: ctx, msg

func (*CrosschainAuthorityKeeper) GetAdditionalChainList

func (_m *CrosschainAuthorityKeeper) GetAdditionalChainList(ctx types.Context) []chains.Chain

GetAdditionalChainList provides a mock function with given fields: ctx

type CrosschainBankKeeper

type CrosschainBankKeeper struct {
	mock.Mock
}

CrosschainBankKeeper is an autogenerated mock type for the CrosschainBankKeeper type

func NewCrosschainBankKeeper

func NewCrosschainBankKeeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *CrosschainBankKeeper

NewCrosschainBankKeeper creates a new instance of CrosschainBankKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*CrosschainBankKeeper) BurnCoins

func (_m *CrosschainBankKeeper) BurnCoins(ctx types.Context, name string, amt types.Coins) error

BurnCoins provides a mock function with given fields: ctx, name, amt

func (*CrosschainBankKeeper) MintCoins

func (_m *CrosschainBankKeeper) MintCoins(ctx types.Context, moduleName string, amt types.Coins) error

MintCoins provides a mock function with given fields: ctx, moduleName, amt

type CrosschainFungibleKeeper

type CrosschainFungibleKeeper struct {
	mock.Mock
}

CrosschainFungibleKeeper is an autogenerated mock type for the CrosschainFungibleKeeper type

func NewCrosschainFungibleKeeper

func NewCrosschainFungibleKeeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *CrosschainFungibleKeeper

NewCrosschainFungibleKeeper creates a new instance of CrosschainFungibleKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*CrosschainFungibleKeeper) CallUniswapV2RouterSwapExactETHForToken

func (_m *CrosschainFungibleKeeper) CallUniswapV2RouterSwapExactETHForToken(ctx types.Context, sender common.Address, to common.Address, amountIn *big.Int, outZRC4 common.Address, noEthereumTxEvent bool) ([]*big.Int, error)

CallUniswapV2RouterSwapExactETHForToken provides a mock function with given fields: ctx, sender, to, amountIn, outZRC4, noEthereumTxEvent

func (*CrosschainFungibleKeeper) CallUniswapV2RouterSwapExactTokensForTokens

func (_m *CrosschainFungibleKeeper) CallUniswapV2RouterSwapExactTokensForTokens(ctx types.Context, sender common.Address, to common.Address, amountIn *big.Int, inZRC4 common.Address, outZRC4 common.Address, noEthereumTxEvent bool) ([]*big.Int, error)

CallUniswapV2RouterSwapExactTokensForTokens provides a mock function with given fields: ctx, sender, to, amountIn, inZRC4, outZRC4, noEthereumTxEvent

func (*CrosschainFungibleKeeper) CallZRC20Approve

func (_m *CrosschainFungibleKeeper) CallZRC20Approve(ctx types.Context, owner common.Address, zrc20address common.Address, spender common.Address, amount *big.Int, noEthereumTxEvent bool) error

CallZRC20Approve provides a mock function with given fields: ctx, owner, zrc20address, spender, amount, noEthereumTxEvent

func (*CrosschainFungibleKeeper) CallZRC20Burn

func (_m *CrosschainFungibleKeeper) CallZRC20Burn(ctx types.Context, sender common.Address, zrc20address common.Address, amount *big.Int, noEthereumTxEvent bool) error

CallZRC20Burn provides a mock function with given fields: ctx, sender, zrc20address, amount, noEthereumTxEvent

func (*CrosschainFungibleKeeper) DeployZRC20Contract

func (_m *CrosschainFungibleKeeper) DeployZRC20Contract(ctx types.Context, name string, symbol string, decimals uint8, chainID int64, coinType coin.CoinType, erc20Contract string, gasLimit *big.Int) (common.Address, error)

DeployZRC20Contract provides a mock function with given fields: ctx, name, symbol, decimals, chainID, coinType, erc20Contract, gasLimit

func (*CrosschainFungibleKeeper) DepositCoinZeta

func (_m *CrosschainFungibleKeeper) DepositCoinZeta(ctx types.Context, to common.Address, amount *big.Int) error

DepositCoinZeta provides a mock function with given fields: ctx, to, amount

func (*CrosschainFungibleKeeper) DepositZRC20

func (_m *CrosschainFungibleKeeper) DepositZRC20(ctx types.Context, contract common.Address, to common.Address, amount *big.Int) (*evmtypes.MsgEthereumTxResponse, error)

DepositZRC20 provides a mock function with given fields: ctx, contract, to, amount

func (*CrosschainFungibleKeeper) FundGasStabilityPool

func (_m *CrosschainFungibleKeeper) FundGasStabilityPool(ctx types.Context, chainID int64, amount *big.Int) error

FundGasStabilityPool provides a mock function with given fields: ctx, chainID, amount

func (*CrosschainFungibleKeeper) GetAllForeignCoinMap

func (_m *CrosschainFungibleKeeper) GetAllForeignCoinMap(ctx types.Context) map[int64]map[string]fungibletypes.ForeignCoins

GetAllForeignCoinMap provides a mock function with given fields: ctx

func (*CrosschainFungibleKeeper) GetAllForeignCoins

func (_m *CrosschainFungibleKeeper) GetAllForeignCoins(ctx types.Context) []fungibletypes.ForeignCoins

GetAllForeignCoins provides a mock function with given fields: ctx

func (*CrosschainFungibleKeeper) GetAllForeignCoinsForChain

func (_m *CrosschainFungibleKeeper) GetAllForeignCoinsForChain(ctx types.Context, foreignChainID int64) []fungibletypes.ForeignCoins

GetAllForeignCoinsForChain provides a mock function with given fields: ctx, foreignChainID

func (*CrosschainFungibleKeeper) GetForeignCoinFromAsset

func (_m *CrosschainFungibleKeeper) GetForeignCoinFromAsset(ctx types.Context, asset string, chainID int64) (fungibletypes.ForeignCoins, bool)

GetForeignCoinFromAsset provides a mock function with given fields: ctx, asset, chainID

func (*CrosschainFungibleKeeper) GetForeignCoins

func (_m *CrosschainFungibleKeeper) GetForeignCoins(ctx types.Context, zrc20Addr string) (fungibletypes.ForeignCoins, bool)

GetForeignCoins provides a mock function with given fields: ctx, zrc20Addr

func (*CrosschainFungibleKeeper) GetGasCoinForForeignCoin

func (_m *CrosschainFungibleKeeper) GetGasCoinForForeignCoin(ctx types.Context, chainID int64) (fungibletypes.ForeignCoins, bool)

GetGasCoinForForeignCoin provides a mock function with given fields: ctx, chainID

func (*CrosschainFungibleKeeper) GetSystemContract

GetSystemContract provides a mock function with given fields: ctx

func (*CrosschainFungibleKeeper) GetUniswapV2Router02Address

func (_m *CrosschainFungibleKeeper) GetUniswapV2Router02Address(ctx types.Context) (common.Address, error)

GetUniswapV2Router02Address provides a mock function with given fields: ctx

func (*CrosschainFungibleKeeper) QueryGasLimit

func (_m *CrosschainFungibleKeeper) QueryGasLimit(ctx types.Context, contract common.Address) (*big.Int, error)

QueryGasLimit provides a mock function with given fields: ctx, contract

func (*CrosschainFungibleKeeper) QueryProtocolFlatFee

func (_m *CrosschainFungibleKeeper) QueryProtocolFlatFee(ctx types.Context, contract common.Address) (*big.Int, error)

QueryProtocolFlatFee provides a mock function with given fields: ctx, contract

func (*CrosschainFungibleKeeper) QuerySystemContractGasCoinZRC20

func (_m *CrosschainFungibleKeeper) QuerySystemContractGasCoinZRC20(ctx types.Context, chainID *big.Int) (common.Address, error)

QuerySystemContractGasCoinZRC20 provides a mock function with given fields: ctx, chainID

func (*CrosschainFungibleKeeper) QueryUniswapV2RouterGetZRC4ToZRC4AmountsIn

func (_m *CrosschainFungibleKeeper) QueryUniswapV2RouterGetZRC4ToZRC4AmountsIn(ctx types.Context, amountOut *big.Int, inZRC4 common.Address, outZRC4 common.Address) (*big.Int, error)

QueryUniswapV2RouterGetZRC4ToZRC4AmountsIn provides a mock function with given fields: ctx, amountOut, inZRC4, outZRC4

func (*CrosschainFungibleKeeper) QueryUniswapV2RouterGetZetaAmountsIn

func (_m *CrosschainFungibleKeeper) QueryUniswapV2RouterGetZetaAmountsIn(ctx types.Context, amountOut *big.Int, outZRC4 common.Address) (*big.Int, error)

QueryUniswapV2RouterGetZetaAmountsIn provides a mock function with given fields: ctx, amountOut, outZRC4

func (*CrosschainFungibleKeeper) SetForeignCoins

func (_m *CrosschainFungibleKeeper) SetForeignCoins(ctx types.Context, foreignCoins fungibletypes.ForeignCoins)

SetForeignCoins provides a mock function with given fields: ctx, foreignCoins

func (*CrosschainFungibleKeeper) SetGasPrice

func (_m *CrosschainFungibleKeeper) SetGasPrice(ctx types.Context, chainID *big.Int, gasPrice *big.Int) (uint64, error)

SetGasPrice provides a mock function with given fields: ctx, chainID, gasPrice

func (*CrosschainFungibleKeeper) WithdrawFromGasStabilityPool

func (_m *CrosschainFungibleKeeper) WithdrawFromGasStabilityPool(ctx types.Context, chainID int64, amount *big.Int) error

WithdrawFromGasStabilityPool provides a mock function with given fields: ctx, chainID, amount

func (*CrosschainFungibleKeeper) ZETADepositAndCallContract

func (_m *CrosschainFungibleKeeper) ZETADepositAndCallContract(ctx types.Context, sender common.Address, to common.Address, inboundSenderChainID int64, inboundAmount *big.Int, data []byte, indexBytes [32]byte) (*evmtypes.MsgEthereumTxResponse, error)

ZETADepositAndCallContract provides a mock function with given fields: ctx, sender, to, inboundSenderChainID, inboundAmount, data, indexBytes

func (*CrosschainFungibleKeeper) ZETARevertAndCallContract

func (_m *CrosschainFungibleKeeper) ZETARevertAndCallContract(ctx types.Context, sender common.Address, to common.Address, inboundSenderChainID int64, destinationChainID int64, remainingAmount *big.Int, data []byte, indexBytes [32]byte) (*evmtypes.MsgEthereumTxResponse, error)

ZETARevertAndCallContract provides a mock function with given fields: ctx, sender, to, inboundSenderChainID, destinationChainID, remainingAmount, data, indexBytes

func (*CrosschainFungibleKeeper) ZRC20DepositAndCallContract

func (_m *CrosschainFungibleKeeper) ZRC20DepositAndCallContract(ctx types.Context, from []byte, to common.Address, amount *big.Int, senderChainID int64, data []byte, coinType coin.CoinType, asset string) (*evmtypes.MsgEthereumTxResponse, bool, error)

ZRC20DepositAndCallContract provides a mock function with given fields: ctx, from, to, amount, senderChainID, data, coinType, asset

type CrosschainIBCCrosschainKeeper

type CrosschainIBCCrosschainKeeper struct {
	mock.Mock
}

CrosschainIBCCrosschainKeeper is an autogenerated mock type for the CrosschainIBCCrosschainKeeper type

func NewCrosschainIBCCrosschainKeeper

func NewCrosschainIBCCrosschainKeeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *CrosschainIBCCrosschainKeeper

NewCrosschainIBCCrosschainKeeper creates a new instance of CrosschainIBCCrosschainKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

type CrosschainLightclientKeeper

type CrosschainLightclientKeeper struct {
	mock.Mock
}

CrosschainLightclientKeeper is an autogenerated mock type for the CrosschainLightclientKeeper type

func NewCrosschainLightclientKeeper

func NewCrosschainLightclientKeeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *CrosschainLightclientKeeper

NewCrosschainLightclientKeeper creates a new instance of CrosschainLightclientKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*CrosschainLightclientKeeper) VerifyProof

func (_m *CrosschainLightclientKeeper) VerifyProof(ctx types.Context, proof *proofs.Proof, chainID int64, blockHash string, txIndex int64) ([]byte, error)

VerifyProof provides a mock function with given fields: ctx, proof, chainID, blockHash, txIndex

type CrosschainObserverKeeper

type CrosschainObserverKeeper struct {
	mock.Mock
}

CrosschainObserverKeeper is an autogenerated mock type for the CrosschainObserverKeeper type

func NewCrosschainObserverKeeper

func NewCrosschainObserverKeeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *CrosschainObserverKeeper

NewCrosschainObserverKeeper creates a new instance of CrosschainObserverKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*CrosschainObserverKeeper) AddBallotToList

func (_m *CrosschainObserverKeeper) AddBallotToList(ctx types.Context, ballot observertypes.Ballot)

AddBallotToList provides a mock function with given fields: ctx, ballot

func (*CrosschainObserverKeeper) AddVoteToBallot

func (_m *CrosschainObserverKeeper) AddVoteToBallot(ctx types.Context, ballot observertypes.Ballot, address string, observationType observertypes.VoteType) (observertypes.Ballot, error)

AddVoteToBallot provides a mock function with given fields: ctx, ballot, address, observationType

func (*CrosschainObserverKeeper) CheckIfFinalizingVote

func (_m *CrosschainObserverKeeper) CheckIfFinalizingVote(ctx types.Context, ballot observertypes.Ballot) (observertypes.Ballot, bool)

CheckIfFinalizingVote provides a mock function with given fields: ctx, ballot

func (*CrosschainObserverKeeper) CheckIfTssPubkeyHasBeenGenerated

func (_m *CrosschainObserverKeeper) CheckIfTssPubkeyHasBeenGenerated(ctx types.Context, tssPubkey string) (observertypes.TSS, bool)

CheckIfTssPubkeyHasBeenGenerated provides a mock function with given fields: ctx, tssPubkey

func (*CrosschainObserverKeeper) FindBallot

func (_m *CrosschainObserverKeeper) FindBallot(ctx types.Context, index string, chain chains.Chain, observationType observertypes.ObservationType) (observertypes.Ballot, bool, error)

FindBallot provides a mock function with given fields: ctx, index, chain, observationType

func (*CrosschainObserverKeeper) GetAllChainNonces

func (_m *CrosschainObserverKeeper) GetAllChainNonces(ctx types.Context) []observertypes.ChainNonces

GetAllChainNonces provides a mock function with given fields: ctx

func (*CrosschainObserverKeeper) GetAllNodeAccount

func (_m *CrosschainObserverKeeper) GetAllNodeAccount(ctx types.Context) []observertypes.NodeAccount

GetAllNodeAccount provides a mock function with given fields: ctx

func (*CrosschainObserverKeeper) GetAllNonceToCctx

func (_m *CrosschainObserverKeeper) GetAllNonceToCctx(ctx types.Context) []observertypes.NonceToCctx

GetAllNonceToCctx provides a mock function with given fields: ctx

func (*CrosschainObserverKeeper) GetAllPendingNonces

func (_m *CrosschainObserverKeeper) GetAllPendingNonces(ctx types.Context) ([]observertypes.PendingNonces, error)

GetAllPendingNonces provides a mock function with given fields: ctx

func (*CrosschainObserverKeeper) GetAllTSS

GetAllTSS provides a mock function with given fields: ctx

func (*CrosschainObserverKeeper) GetAllTssFundMigrators

func (_m *CrosschainObserverKeeper) GetAllTssFundMigrators(ctx types.Context) []observertypes.TssFundMigratorInfo

GetAllTssFundMigrators provides a mock function with given fields: ctx

func (*CrosschainObserverKeeper) GetBallot

func (_m *CrosschainObserverKeeper) GetBallot(ctx types.Context, index string) (observertypes.Ballot, bool)

GetBallot provides a mock function with given fields: ctx, index

func (*CrosschainObserverKeeper) GetChainNonces

func (_m *CrosschainObserverKeeper) GetChainNonces(ctx types.Context, index string) (observertypes.ChainNonces, bool)

GetChainNonces provides a mock function with given fields: ctx, index

func (*CrosschainObserverKeeper) GetChainParamsByChainID

func (_m *CrosschainObserverKeeper) GetChainParamsByChainID(ctx types.Context, chainID int64) (*observertypes.ChainParams, bool)

GetChainParamsByChainID provides a mock function with given fields: ctx, chainID

func (*CrosschainObserverKeeper) GetCrosschainFlags

GetCrosschainFlags provides a mock function with given fields: ctx

func (*CrosschainObserverKeeper) GetFundMigrator

func (_m *CrosschainObserverKeeper) GetFundMigrator(ctx types.Context, chainID int64) (observertypes.TssFundMigratorInfo, bool)

GetFundMigrator provides a mock function with given fields: ctx, chainID

func (*CrosschainObserverKeeper) GetKeygen

GetKeygen provides a mock function with given fields: ctx

func (*CrosschainObserverKeeper) GetNodeAccount

func (_m *CrosschainObserverKeeper) GetNodeAccount(ctx types.Context, address string) (observertypes.NodeAccount, bool)

GetNodeAccount provides a mock function with given fields: ctx, address

func (*CrosschainObserverKeeper) GetNonceToCctx

func (_m *CrosschainObserverKeeper) GetNonceToCctx(ctx types.Context, tss string, chainID int64, nonce int64) (observertypes.NonceToCctx, bool)

GetNonceToCctx provides a mock function with given fields: ctx, tss, chainID, nonce

func (*CrosschainObserverKeeper) GetObserverSet

GetObserverSet provides a mock function with given fields: ctx

func (*CrosschainObserverKeeper) GetPendingNonces

func (_m *CrosschainObserverKeeper) GetPendingNonces(ctx types.Context, tss string, chainID int64) (observertypes.PendingNonces, bool)

GetPendingNonces provides a mock function with given fields: ctx, tss, chainID

func (*CrosschainObserverKeeper) GetSupportedChainFromChainID

func (_m *CrosschainObserverKeeper) GetSupportedChainFromChainID(ctx types.Context, chainID int64) (chains.Chain, bool)

GetSupportedChainFromChainID provides a mock function with given fields: ctx, chainID

func (*CrosschainObserverKeeper) GetSupportedChains

func (_m *CrosschainObserverKeeper) GetSupportedChains(ctx types.Context) []chains.Chain

GetSupportedChains provides a mock function with given fields: ctx

func (*CrosschainObserverKeeper) GetSupportedForeignChains

func (_m *CrosschainObserverKeeper) GetSupportedForeignChains(ctx types.Context) []chains.Chain

GetSupportedForeignChains provides a mock function with given fields: ctx

func (*CrosschainObserverKeeper) GetTSS

GetTSS provides a mock function with given fields: ctx

func (*CrosschainObserverKeeper) GetTssAddress

GetTssAddress provides a mock function with given fields: goCtx, req

func (*CrosschainObserverKeeper) IsInboundEnabled

func (_m *CrosschainObserverKeeper) IsInboundEnabled(ctx types.Context) bool

IsInboundEnabled provides a mock function with given fields: ctx

func (*CrosschainObserverKeeper) IsNonTombstonedObserver

func (_m *CrosschainObserverKeeper) IsNonTombstonedObserver(ctx types.Context, address string) bool

IsNonTombstonedObserver provides a mock function with given fields: ctx, address

func (*CrosschainObserverKeeper) RemoveAllExistingMigrators

func (_m *CrosschainObserverKeeper) RemoveAllExistingMigrators(ctx types.Context)

RemoveAllExistingMigrators provides a mock function with given fields: ctx

func (*CrosschainObserverKeeper) RemoveFromPendingNonces

func (_m *CrosschainObserverKeeper) RemoveFromPendingNonces(ctx types.Context, tss string, chainID int64, nonce int64)

RemoveFromPendingNonces provides a mock function with given fields: ctx, tss, chainID, nonce

func (*CrosschainObserverKeeper) SetChainNonces

func (_m *CrosschainObserverKeeper) SetChainNonces(ctx types.Context, chainNonces observertypes.ChainNonces)

SetChainNonces provides a mock function with given fields: ctx, chainNonces

func (*CrosschainObserverKeeper) SetCrosschainFlags

func (_m *CrosschainObserverKeeper) SetCrosschainFlags(ctx types.Context, crosschainFlags observertypes.CrosschainFlags)

SetCrosschainFlags provides a mock function with given fields: ctx, crosschainFlags

func (*CrosschainObserverKeeper) SetFundMigrator

SetFundMigrator provides a mock function with given fields: ctx, fm

func (*CrosschainObserverKeeper) SetKeygen

func (_m *CrosschainObserverKeeper) SetKeygen(ctx types.Context, keygen observertypes.Keygen)

SetKeygen provides a mock function with given fields: ctx, keygen

func (*CrosschainObserverKeeper) SetLastObserverCount

func (_m *CrosschainObserverKeeper) SetLastObserverCount(ctx types.Context, lbc *observertypes.LastObserverCount)

SetLastObserverCount provides a mock function with given fields: ctx, lbc

func (*CrosschainObserverKeeper) SetNodeAccount

func (_m *CrosschainObserverKeeper) SetNodeAccount(ctx types.Context, nodeAccount observertypes.NodeAccount)

SetNodeAccount provides a mock function with given fields: ctx, nodeAccount

func (*CrosschainObserverKeeper) SetNonceToCctx

func (_m *CrosschainObserverKeeper) SetNonceToCctx(ctx types.Context, nonceToCctx observertypes.NonceToCctx)

SetNonceToCctx provides a mock function with given fields: ctx, nonceToCctx

func (*CrosschainObserverKeeper) SetPendingNonces

func (_m *CrosschainObserverKeeper) SetPendingNonces(ctx types.Context, pendingNonces observertypes.PendingNonces)

SetPendingNonces provides a mock function with given fields: ctx, pendingNonces

func (*CrosschainObserverKeeper) SetTSS

SetTSS provides a mock function with given fields: ctx, tss

func (*CrosschainObserverKeeper) SetTSSHistory

func (_m *CrosschainObserverKeeper) SetTSSHistory(ctx types.Context, tss observertypes.TSS)

SetTSSHistory provides a mock function with given fields: ctx, tss

func (*CrosschainObserverKeeper) SetTssAndUpdateNonce

func (_m *CrosschainObserverKeeper) SetTssAndUpdateNonce(ctx types.Context, tss observertypes.TSS)

SetTssAndUpdateNonce provides a mock function with given fields: ctx, tss

func (*CrosschainObserverKeeper) VoteOnInboundBallot

func (_m *CrosschainObserverKeeper) VoteOnInboundBallot(ctx types.Context, senderChainID int64, receiverChainID int64, coinType coin.CoinType, voter string, ballotIndex string, inboundHash string) (bool, bool, error)

VoteOnInboundBallot provides a mock function with given fields: ctx, senderChainID, receiverChainID, coinType, voter, ballotIndex, inboundHash

func (*CrosschainObserverKeeper) VoteOnOutboundBallot

func (_m *CrosschainObserverKeeper) VoteOnOutboundBallot(ctx types.Context, ballotIndex string, outTxChainID int64, receiveStatus chains.ReceiveStatus, voter string) (bool, bool, observertypes.Ballot, string, error)

VoteOnOutboundBallot provides a mock function with given fields: ctx, ballotIndex, outTxChainID, receiveStatus, voter

type CrosschainStakingKeeper

type CrosschainStakingKeeper struct {
	mock.Mock
}

CrosschainStakingKeeper is an autogenerated mock type for the CrosschainStakingKeeper type

func NewCrosschainStakingKeeper

func NewCrosschainStakingKeeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *CrosschainStakingKeeper

NewCrosschainStakingKeeper creates a new instance of CrosschainStakingKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*CrosschainStakingKeeper) GetAllValidators

func (_m *CrosschainStakingKeeper) GetAllValidators(ctx types.Context) []stakingtypes.Validator

GetAllValidators provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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