Documentation
¶
Index ¶
- type ConsensusKeeper
- func (_m *ConsensusKeeper) DeleteJob(ctx types.Context, queueTypeName string, id uint64) error
- func (_m *ConsensusKeeper) GetMessagesFromQueue(ctx types.Context, queueTypeName string, n int) ([]consensustypes.QueuedSignedMessageI, error)
- func (_m *ConsensusKeeper) PutMessageInQueue(ctx types.Context, queueTypeName string, msg consensustypes.ConsensusMsg, ...) (uint64, error)
- func (_m *ConsensusKeeper) RemoveConsensusQueue(ctx types.Context, queueTypeName string) error
- type GravityKeeper
- type MsgSender
- type ValsetKeeper
- func (_m *ValsetKeeper) FindSnapshotByID(ctx types.Context, id uint64) (*valsettypes.Snapshot, error)
- func (_m *ValsetKeeper) GetAllChainInfos(ctx types.Context) ([]*valsettypes.ValidatorExternalAccounts, error)
- func (_m *ValsetKeeper) GetCurrentSnapshot(ctx types.Context) (*valsettypes.Snapshot, error)
- func (_m *ValsetKeeper) GetLatestSnapshotOnChain(ctx types.Context, chainReferenceID string) (*valsettypes.Snapshot, error)
- func (_m *ValsetKeeper) GetValidatorChainInfos(ctx types.Context, valAddr types.ValAddress) ([]*valsettypes.ExternalChainInfo, error)
- func (_m *ValsetKeeper) IsJailed(ctx types.Context, val types.ValAddress) bool
- func (_m *ValsetKeeper) Jail(ctx types.Context, valAddr types.ValAddress, reason string) error
- func (_m *ValsetKeeper) KeepValidatorAlive(ctx types.Context, valAddr types.ValAddress, pigeonVersion string) error
- func (_m *ValsetKeeper) SetSnapshotOnChain(ctx types.Context, snapshotID uint64, chainReferenceID string) error
- func (_m *ValsetKeeper) SetValidatorBalance(ctx types.Context, valAddr types.ValAddress, chainType string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsensusKeeper ¶
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 ¶ added in v0.8.0
DeleteJob provides a mock function with given fields: ctx, queueTypeName, id
func (*ConsensusKeeper) GetMessagesFromQueue ¶ added in v0.8.0
func (_m *ConsensusKeeper) GetMessagesFromQueue(ctx types.Context, queueTypeName string, n int) ([]consensustypes.QueuedSignedMessageI, error)
GetMessagesFromQueue provides a mock function with given fields: ctx, queueTypeName, n
func (*ConsensusKeeper) PutMessageInQueue ¶ added in v0.6.0
func (_m *ConsensusKeeper) PutMessageInQueue(ctx types.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 types.Context, queueTypeName string) error
RemoveConsensusQueue provides a mock function with given fields: ctx, queueTypeName
type GravityKeeper ¶ added in v1.10.1
GravityKeeper is an autogenerated mock type for the GravityKeeper type
func NewGravityKeeper ¶ added in v1.10.1
func NewGravityKeeper(t interface { mock.TestingT Cleanup(func()) }, ) *GravityKeeper
NewGravityKeeper creates a new instance of GravityKeeper. 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 (*GravityKeeper) CastAllERC20ToDenoms ¶ added in v1.11.0
func (_m *GravityKeeper) CastAllERC20ToDenoms(ctx types.Context) ([]evmtypes.ERC20Record, error)
CastAllERC20ToDenoms provides a mock function with given fields: ctx
func (*GravityKeeper) GetLastObservedEventNonce ¶ added in v1.10.1
func (_m *GravityKeeper) GetLastObservedEventNonce(ctx types.Context) (uint64, error)
GetLastObservedEventNonce provides a mock function with given fields: ctx
type MsgSender ¶ added in v1.4.0
MsgSender is an autogenerated mock type for the MsgSender type
func NewMsgSender ¶ added in v1.4.0
func NewMsgSender(t mockConstructorTestingTNewMsgSender) *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.
type ValsetKeeper ¶
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 types.Context, id uint64) (*valsettypes.Snapshot, error)
FindSnapshotByID provides a mock function with given fields: ctx, id
func (*ValsetKeeper) GetAllChainInfos ¶ added in v1.8.0
func (_m *ValsetKeeper) GetAllChainInfos(ctx types.Context) ([]*valsettypes.ValidatorExternalAccounts, error)
GetAllChainInfos provides a mock function with given fields: ctx
func (*ValsetKeeper) GetCurrentSnapshot ¶
func (_m *ValsetKeeper) GetCurrentSnapshot(ctx types.Context) (*valsettypes.Snapshot, error)
GetCurrentSnapshot provides a mock function with given fields: ctx
func (*ValsetKeeper) GetLatestSnapshotOnChain ¶ added in v1.2.0
func (_m *ValsetKeeper) GetLatestSnapshotOnChain(ctx types.Context, chainReferenceID string) (*valsettypes.Snapshot, error)
GetLatestSnapshotOnChain provides a mock function with given fields: ctx, chainReferenceID
func (*ValsetKeeper) GetValidatorChainInfos ¶ added in v1.8.0
func (_m *ValsetKeeper) GetValidatorChainInfos(ctx types.Context, valAddr types.ValAddress) ([]*valsettypes.ExternalChainInfo, error)
GetValidatorChainInfos provides a mock function with given fields: ctx, valAddr
func (*ValsetKeeper) IsJailed ¶ added in v0.7.0
func (_m *ValsetKeeper) IsJailed(ctx types.Context, val types.ValAddress) bool
IsJailed provides a mock function with given fields: ctx, val
func (*ValsetKeeper) Jail ¶ added in v0.6.0
func (_m *ValsetKeeper) Jail(ctx types.Context, valAddr types.ValAddress, reason string) error
Jail provides a mock function with given fields: ctx, valAddr, reason
func (*ValsetKeeper) KeepValidatorAlive ¶ added in v0.6.0
func (_m *ValsetKeeper) KeepValidatorAlive(ctx types.Context, valAddr types.ValAddress, pigeonVersion string) error
KeepValidatorAlive provides a mock function with given fields: ctx, valAddr, pigeonVersion
func (*ValsetKeeper) SetSnapshotOnChain ¶ added in v1.2.0
func (_m *ValsetKeeper) SetSnapshotOnChain(ctx types.Context, snapshotID uint64, chainReferenceID string) error
SetSnapshotOnChain provides a mock function with given fields: ctx, snapshotID, chainReferenceID
func (*ValsetKeeper) SetValidatorBalance ¶ added in v0.6.0
func (_m *ValsetKeeper) SetValidatorBalance(ctx types.Context, valAddr types.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