mocks

package
v2.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsensusKeeper

type ConsensusKeeper struct {
	mock.Mock
}

ConsensusKeeper is an autogenerated mock type for the ConsensusKeeper type

func NewConsensusKeeper

func NewConsensusKeeper(t interface {
	mock.TestingT
	Cleanup(func())
},
) *ConsensusKeeper

NewConsensusKeeper creates a new instance of ConsensusKeeper. 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 (*ConsensusKeeper) DeleteJob

func (_m *ConsensusKeeper) DeleteJob(ctx context.Context, queueTypeName string, id uint64) error

DeleteJob provides a mock function with given fields: ctx, queueTypeName, id

func (*ConsensusKeeper) GetMessagesFromQueue

func (_m *ConsensusKeeper) GetMessagesFromQueue(ctx context.Context, queueTypeName string, n int) ([]consensustypes.QueuedSignedMessageI, error)

GetMessagesFromQueue provides a mock function with given fields: ctx, queueTypeName, n

func (*ConsensusKeeper) PutMessageInQueue

func (_m *ConsensusKeeper) PutMessageInQueue(ctx context.Context, queueTypeName string, msg consensustypes.ConsensusMsg, opts *consensus.PutOptions) (uint64, error)

PutMessageInQueue provides a mock function with given fields: ctx, queueTypeName, msg, opts

func (*ConsensusKeeper) RemoveConsensusQueue

func (_m *ConsensusKeeper) RemoveConsensusQueue(ctx context.Context, queueTypeName string) error

RemoveConsensusQueue provides a mock function with given fields: ctx, queueTypeName

type MetrixKeeper

type MetrixKeeper struct {
	mock.Mock
}

MetrixKeeper is an autogenerated mock type for the MetrixKeeper type

func NewMetrixKeeper

func NewMetrixKeeper(t interface {
	mock.TestingT
	Cleanup(func())
},
) *MetrixKeeper

NewMetrixKeeper creates a new instance of MetrixKeeper. 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 (*MetrixKeeper) Validators

func (_m *MetrixKeeper) Validators(goCtx context.Context, _a1 *types.Empty) (*types.QueryValidatorsResponse, error)

Validators provides a mock function with given fields: goCtx, _a1

type MsgSender

type MsgSender struct {
	mock.Mock
}

MsgSender is an autogenerated mock type for the MsgSender type

func NewMsgSender

func NewMsgSender(t interface {
	mock.TestingT
	Cleanup(func())
}) *MsgSender

NewMsgSender creates a new instance of MsgSender. 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 (*MsgSender) SendValsetMsgForChain

func (_m *MsgSender) SendValsetMsgForChain(ctx context.Context, chainInfo *types.ChainInfo, valset types.Valset, assignee string, remoteAddr string) error

SendValsetMsgForChain provides a mock function with given fields: ctx, chainInfo, valset, assignee, remoteAddr

type SkywayKeeper

type SkywayKeeper struct {
	mock.Mock
}

SkywayKeeper is an autogenerated mock type for the SkywayKeeper type

func NewSkywayKeeper

func NewSkywayKeeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *SkywayKeeper

NewSkywayKeeper creates a new instance of SkywayKeeper. 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 (*SkywayKeeper) CastAllERC20ToDenoms

func (_m *SkywayKeeper) CastAllERC20ToDenoms(ctx context.Context) ([]types.ERC20Record, error)

CastAllERC20ToDenoms provides a mock function with given fields: ctx

func (*SkywayKeeper) CastChainERC20ToDenoms

func (_m *SkywayKeeper) CastChainERC20ToDenoms(ctx context.Context, chainReferenceID string) ([]types.ERC20Record, error)

CastChainERC20ToDenoms provides a mock function with given fields: ctx, chainReferenceID

func (*SkywayKeeper) GetLastObservedSkywayNonce

func (_m *SkywayKeeper) GetLastObservedSkywayNonce(ctx context.Context, chainReferenceID string) (uint64, error)

GetLastObservedSkywayNonce provides a mock function with given fields: ctx, chainReferenceID

type TreasuryKeeper

type TreasuryKeeper struct {
	mock.Mock
}

TreasuryKeeper is an autogenerated mock type for the TreasuryKeeper type

func NewTreasuryKeeper

func NewTreasuryKeeper(t interface {
	mock.TestingT
	Cleanup(func())
},
) *TreasuryKeeper

NewTreasuryKeeper creates a new instance of TreasuryKeeper. 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 (*TreasuryKeeper) GetRelayerFeesByChainReferenceID

func (_m *TreasuryKeeper) GetRelayerFeesByChainReferenceID(ctx context.Context, chainReferenceID string) (map[string]math.LegacyDec, error)

GetRelayerFeesByChainReferenceID provides a mock function with given fields: ctx, chainReferenceID

type ValsetKeeper

type ValsetKeeper struct {
	mock.Mock
}

ValsetKeeper is an autogenerated mock type for the ValsetKeeper type

func NewValsetKeeper

func NewValsetKeeper(t interface {
	mock.TestingT
	Cleanup(func())
},
) *ValsetKeeper

NewValsetKeeper creates a new instance of ValsetKeeper. 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 (*ValsetKeeper) FindSnapshotByID

func (_m *ValsetKeeper) FindSnapshotByID(ctx context.Context, id uint64) (*types.Snapshot, error)

FindSnapshotByID provides a mock function with given fields: ctx, id

func (*ValsetKeeper) GetAllChainInfos

func (_m *ValsetKeeper) GetAllChainInfos(ctx context.Context) ([]*types.ValidatorExternalAccounts, error)

GetAllChainInfos provides a mock function with given fields: ctx

func (*ValsetKeeper) GetCurrentSnapshot

func (_m *ValsetKeeper) GetCurrentSnapshot(ctx context.Context) (*types.Snapshot, error)

GetCurrentSnapshot provides a mock function with given fields: ctx

func (*ValsetKeeper) GetLatestSnapshotOnChain

func (_m *ValsetKeeper) GetLatestSnapshotOnChain(ctx context.Context, chainReferenceID string) (*types.Snapshot, error)

GetLatestSnapshotOnChain provides a mock function with given fields: ctx, chainReferenceID

func (*ValsetKeeper) GetValidatorChainInfos

func (_m *ValsetKeeper) GetValidatorChainInfos(ctx context.Context, valAddr cosmos_sdktypes.ValAddress) ([]*types.ExternalChainInfo, error)

GetValidatorChainInfos provides a mock function with given fields: ctx, valAddr

func (*ValsetKeeper) IsJailed

func (_m *ValsetKeeper) IsJailed(ctx context.Context, val cosmos_sdktypes.ValAddress) (bool, error)

IsJailed provides a mock function with given fields: ctx, val

func (*ValsetKeeper) Jail

func (_m *ValsetKeeper) Jail(ctx context.Context, valAddr cosmos_sdktypes.ValAddress, reason string) error

Jail provides a mock function with given fields: ctx, valAddr, reason

func (*ValsetKeeper) KeepValidatorAlive

func (_m *ValsetKeeper) KeepValidatorAlive(ctx context.Context, valAddr cosmos_sdktypes.ValAddress, pigeonVersion string) error

KeepValidatorAlive provides a mock function with given fields: ctx, valAddr, pigeonVersion

func (*ValsetKeeper) SetSnapshotOnChain

func (_m *ValsetKeeper) SetSnapshotOnChain(ctx context.Context, snapshotID uint64, chainReferenceID string) error

SetSnapshotOnChain provides a mock function with given fields: ctx, snapshotID, chainReferenceID

func (*ValsetKeeper) SetValidatorBalance

func (_m *ValsetKeeper) SetValidatorBalance(ctx context.Context, valAddr cosmos_sdktypes.ValAddress, chainType string, chainReferenceID string, externalAddress string, balance *big.Int) error

SetValidatorBalance provides a mock function with given fields: ctx, valAddr, chainType, chainReferenceID, externalAddress, balance

Jump to

Keyboard shortcuts

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