Documentation ¶
Index ¶
- type AttestTask
- type Attestator
- type QueuedSignedMessageI
- func (_m *QueuedSignedMessageI) AddEvidence(_a0 types.Evidence)
- func (_m *QueuedSignedMessageI) AddSignData(_a0 *types.SignData)
- func (_m *QueuedSignedMessageI) ConsensusMsg(_a0 codectypes.AnyUnpacker) (types.ConsensusMsg, error)
- func (_m *QueuedSignedMessageI) GetAddedAt() time.Time
- func (_m *QueuedSignedMessageI) GetAddedAtBlockHeight() int64
- func (_m *QueuedSignedMessageI) GetBytesToSign() []byte
- func (_m *QueuedSignedMessageI) GetEvidence() []*types.Evidence
- func (_m *QueuedSignedMessageI) GetId() uint64
- func (_m *QueuedSignedMessageI) GetPublicAccessData() *types.PublicAccessData
- func (_m *QueuedSignedMessageI) GetRequireSignatures() bool
- func (_m *QueuedSignedMessageI) GetSignData() []*types.SignData
- func (_m *QueuedSignedMessageI) Nonce() []byte
- func (_m *QueuedSignedMessageI) ProtoMessage()
- func (_m *QueuedSignedMessageI) Reset()
- func (_m *QueuedSignedMessageI) SetPublicAccessData(_a0 *types.PublicAccessData)
- func (_m *QueuedSignedMessageI) String() string
- type ValsetKeeper
- func (_m *ValsetKeeper) CanAcceptValidator(ctx types.Context, valAddr types.ValAddress) error
- func (_m *ValsetKeeper) GetCurrentSnapshot(ctx types.Context) (*valsettypes.Snapshot, error)
- func (_m *ValsetKeeper) GetSigningKey(ctx types.Context, valAddr types.ValAddress, chainType string, ...) ([]byte, error)
- func (_m *ValsetKeeper) KeepValidatorAlive(ctx types.Context, valAddr types.ValAddress) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttestTask ¶
AttestTask is an autogenerated mock type for the AttestTask type
func NewAttestTask ¶
func NewAttestTask(t mockConstructorTestingTNewAttestTask) *AttestTask
NewAttestTask creates a new instance of AttestTask. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AttestTask) Attest ¶
func (_m *AttestTask) Attest()
Attest provides a mock function with given fields:
type Attestator ¶
Attestator is an autogenerated mock type for the Attestator type
func NewAttestator ¶
func NewAttestator(t mockConstructorTestingTNewAttestator) *Attestator
NewAttestator creates a new instance of Attestator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Attestator) ProcessAllEvidence ¶
func (_m *Attestator) ProcessAllEvidence(ctx types.Context, task consensustypes.AttestTask, evidence []consensustypes.Evidence) (consensustypes.AttestResult, error)
ProcessAllEvidence provides a mock function with given fields: ctx, task, evidence
func (*Attestator) ValidateEvidence ¶
func (_m *Attestator) ValidateEvidence(ctx types.Context, task consensustypes.AttestTask, evidence consensustypes.Evidence) error
ValidateEvidence provides a mock function with given fields: ctx, task, evidence
type QueuedSignedMessageI ¶
QueuedSignedMessageI is an autogenerated mock type for the QueuedSignedMessageI type
func NewQueuedSignedMessageI ¶
func NewQueuedSignedMessageI(t mockConstructorTestingTNewQueuedSignedMessageI) *QueuedSignedMessageI
NewQueuedSignedMessageI creates a new instance of QueuedSignedMessageI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*QueuedSignedMessageI) AddEvidence ¶
func (_m *QueuedSignedMessageI) AddEvidence(_a0 types.Evidence)
AddEvidence provides a mock function with given fields: _a0
func (*QueuedSignedMessageI) AddSignData ¶
func (_m *QueuedSignedMessageI) AddSignData(_a0 *types.SignData)
AddSignData provides a mock function with given fields: _a0
func (*QueuedSignedMessageI) ConsensusMsg ¶
func (_m *QueuedSignedMessageI) ConsensusMsg(_a0 codectypes.AnyUnpacker) (types.ConsensusMsg, error)
ConsensusMsg provides a mock function with given fields: _a0
func (*QueuedSignedMessageI) GetAddedAt ¶ added in v0.6.0
func (_m *QueuedSignedMessageI) GetAddedAt() time.Time
GetAddedAt provides a mock function with given fields:
func (*QueuedSignedMessageI) GetAddedAtBlockHeight ¶ added in v0.6.0
func (_m *QueuedSignedMessageI) GetAddedAtBlockHeight() int64
GetAddedAtBlockHeight provides a mock function with given fields:
func (*QueuedSignedMessageI) GetBytesToSign ¶
func (_m *QueuedSignedMessageI) GetBytesToSign() []byte
GetBytesToSign provides a mock function with given fields:
func (*QueuedSignedMessageI) GetEvidence ¶
func (_m *QueuedSignedMessageI) GetEvidence() []*types.Evidence
GetEvidence provides a mock function with given fields:
func (*QueuedSignedMessageI) GetId ¶
func (_m *QueuedSignedMessageI) GetId() uint64
GetId provides a mock function with given fields:
func (*QueuedSignedMessageI) GetPublicAccessData ¶
func (_m *QueuedSignedMessageI) GetPublicAccessData() *types.PublicAccessData
GetPublicAccessData provides a mock function with given fields:
func (*QueuedSignedMessageI) GetRequireSignatures ¶ added in v0.7.0
func (_m *QueuedSignedMessageI) GetRequireSignatures() bool
GetRequireSignatures provides a mock function with given fields:
func (*QueuedSignedMessageI) GetSignData ¶
func (_m *QueuedSignedMessageI) GetSignData() []*types.SignData
GetSignData provides a mock function with given fields:
func (*QueuedSignedMessageI) Nonce ¶
func (_m *QueuedSignedMessageI) Nonce() []byte
Nonce provides a mock function with given fields:
func (*QueuedSignedMessageI) ProtoMessage ¶
func (_m *QueuedSignedMessageI) ProtoMessage()
ProtoMessage provides a mock function with given fields:
func (*QueuedSignedMessageI) Reset ¶
func (_m *QueuedSignedMessageI) Reset()
Reset provides a mock function with given fields:
func (*QueuedSignedMessageI) SetPublicAccessData ¶
func (_m *QueuedSignedMessageI) SetPublicAccessData(_a0 *types.PublicAccessData)
SetPublicAccessData provides a mock function with given fields: _a0
func (*QueuedSignedMessageI) String ¶
func (_m *QueuedSignedMessageI) String() string
String provides a mock function with given fields:
type ValsetKeeper ¶
ValsetKeeper is an autogenerated mock type for the ValsetKeeper type
func NewValsetKeeper ¶
func NewValsetKeeper(t mockConstructorTestingTNewValsetKeeper) *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.
func (*ValsetKeeper) CanAcceptValidator ¶
func (_m *ValsetKeeper) CanAcceptValidator(ctx types.Context, valAddr types.ValAddress) error
CanAcceptValidator provides a mock function with given fields: ctx, valAddr
func (*ValsetKeeper) GetCurrentSnapshot ¶
func (_m *ValsetKeeper) GetCurrentSnapshot(ctx types.Context) (*valsettypes.Snapshot, error)
GetCurrentSnapshot provides a mock function with given fields: ctx
func (*ValsetKeeper) GetSigningKey ¶
func (_m *ValsetKeeper) GetSigningKey(ctx types.Context, valAddr types.ValAddress, chainType string, chainReferenceID string, signedByAddress string) ([]byte, error)
GetSigningKey provides a mock function with given fields: ctx, valAddr, chainType, chainReferenceID, signedByAddress
func (*ValsetKeeper) KeepValidatorAlive ¶ added in v0.6.0
func (_m *ValsetKeeper) KeepValidatorAlive(ctx types.Context, valAddr types.ValAddress) error
KeepValidatorAlive provides a mock function with given fields: ctx, valAddr