Documentation
¶
Index ¶
- type BlockEventPublisher
- func (_m *BlockEventPublisher) EXPECT() *BlockEventPublisher_Expecter
- func (_mock *BlockEventPublisher) PublishEventNewBlock(eventDataNewBlock types.EventDataNewBlock) error
- func (_mock *BlockEventPublisher) PublishEventNewBlockHeader(eventDataNewBlockHeader types.EventDataNewBlockHeader) error
- func (_mock *BlockEventPublisher) PublishEventNewEvidence(eventDataNewEvidence types.EventDataNewEvidence) error
- func (_mock *BlockEventPublisher) PublishEventTx(eventDataTx types.EventDataTx) error
- func (_mock *BlockEventPublisher) PublishEventValidatorSetUpdates(eventDataValidatorSetUpdate types.EventDataValidatorSetUpdate) error
- type BlockEventPublisher_Expecter
- func (_e *BlockEventPublisher_Expecter) PublishEventNewBlock(eventDataNewBlock interface{}) *BlockEventPublisher_PublishEventNewBlock_Call
- func (_e *BlockEventPublisher_Expecter) PublishEventNewBlockHeader(eventDataNewBlockHeader interface{}) *BlockEventPublisher_PublishEventNewBlockHeader_Call
- func (_e *BlockEventPublisher_Expecter) PublishEventNewEvidence(eventDataNewEvidence interface{}) *BlockEventPublisher_PublishEventNewEvidence_Call
- func (_e *BlockEventPublisher_Expecter) PublishEventTx(eventDataTx interface{}) *BlockEventPublisher_PublishEventTx_Call
- func (_e *BlockEventPublisher_Expecter) PublishEventValidatorSetUpdates(eventDataValidatorSetUpdate interface{}) *BlockEventPublisher_PublishEventValidatorSetUpdates_Call
- type BlockEventPublisher_PublishEventNewBlockHeader_Call
- func (_c *BlockEventPublisher_PublishEventNewBlockHeader_Call) Return(err error) *BlockEventPublisher_PublishEventNewBlockHeader_Call
- func (_c *BlockEventPublisher_PublishEventNewBlockHeader_Call) Run(run func(eventDataNewBlockHeader types.EventDataNewBlockHeader)) *BlockEventPublisher_PublishEventNewBlockHeader_Call
- func (_c *BlockEventPublisher_PublishEventNewBlockHeader_Call) RunAndReturn(run func(eventDataNewBlockHeader types.EventDataNewBlockHeader) error) *BlockEventPublisher_PublishEventNewBlockHeader_Call
- type BlockEventPublisher_PublishEventNewBlock_Call
- func (_c *BlockEventPublisher_PublishEventNewBlock_Call) Return(err error) *BlockEventPublisher_PublishEventNewBlock_Call
- func (_c *BlockEventPublisher_PublishEventNewBlock_Call) Run(run func(eventDataNewBlock types.EventDataNewBlock)) *BlockEventPublisher_PublishEventNewBlock_Call
- func (_c *BlockEventPublisher_PublishEventNewBlock_Call) RunAndReturn(run func(eventDataNewBlock types.EventDataNewBlock) error) *BlockEventPublisher_PublishEventNewBlock_Call
- type BlockEventPublisher_PublishEventNewEvidence_Call
- func (_c *BlockEventPublisher_PublishEventNewEvidence_Call) Return(err error) *BlockEventPublisher_PublishEventNewEvidence_Call
- func (_c *BlockEventPublisher_PublishEventNewEvidence_Call) Run(run func(eventDataNewEvidence types.EventDataNewEvidence)) *BlockEventPublisher_PublishEventNewEvidence_Call
- func (_c *BlockEventPublisher_PublishEventNewEvidence_Call) RunAndReturn(run func(eventDataNewEvidence types.EventDataNewEvidence) error) *BlockEventPublisher_PublishEventNewEvidence_Call
- type BlockEventPublisher_PublishEventTx_Call
- func (_c *BlockEventPublisher_PublishEventTx_Call) Return(err error) *BlockEventPublisher_PublishEventTx_Call
- func (_c *BlockEventPublisher_PublishEventTx_Call) Run(run func(eventDataTx types.EventDataTx)) *BlockEventPublisher_PublishEventTx_Call
- func (_c *BlockEventPublisher_PublishEventTx_Call) RunAndReturn(run func(eventDataTx types.EventDataTx) error) *BlockEventPublisher_PublishEventTx_Call
- type BlockEventPublisher_PublishEventValidatorSetUpdates_Call
- func (_c *BlockEventPublisher_PublishEventValidatorSetUpdates_Call) Return(err error) *BlockEventPublisher_PublishEventValidatorSetUpdates_Call
- func (_c *BlockEventPublisher_PublishEventValidatorSetUpdates_Call) Run(run func(eventDataValidatorSetUpdate types.EventDataValidatorSetUpdate)) *BlockEventPublisher_PublishEventValidatorSetUpdates_Call
- func (_c *BlockEventPublisher_PublishEventValidatorSetUpdates_Call) RunAndReturn(run func(eventDataValidatorSetUpdate types.EventDataValidatorSetUpdate) error) *BlockEventPublisher_PublishEventValidatorSetUpdates_Call
- type PrivValidator
- func (_m *PrivValidator) EXPECT() *PrivValidator_Expecter
- func (_mock *PrivValidator) ExtractIntoValidator(ctx context.Context, quorumHash crypto.QuorumHash) *types.Validator
- func (_mock *PrivValidator) GetFirstQuorumHash(context1 context.Context) (crypto.QuorumHash, error)
- func (_mock *PrivValidator) GetHeight(ctx context.Context, quorumHash crypto.QuorumHash) (int64, error)
- func (_mock *PrivValidator) GetPrivateKey(ctx context.Context, quorumHash crypto.QuorumHash) (crypto.PrivKey, error)
- func (_mock *PrivValidator) GetProTxHash(context1 context.Context) (crypto.ProTxHash, error)
- func (_mock *PrivValidator) GetPubKey(ctx context.Context, quorumHash crypto.QuorumHash) (crypto.PubKey, error)
- func (_mock *PrivValidator) GetThresholdPublicKey(ctx context.Context, quorumHash crypto.QuorumHash) (crypto.PubKey, error)
- func (_mock *PrivValidator) SignProposal(ctx context.Context, chainID string, quorumType btcjson.LLMQType, ...) (bytes.HexBytes, error)
- func (_mock *PrivValidator) SignVote(ctx context.Context, chainID string, quorumType btcjson.LLMQType, ...) error
- func (_mock *PrivValidator) UpdatePrivateKey(ctx context.Context, privateKey crypto.PrivKey, quorumHash crypto.QuorumHash, ...)
- type PrivValidator_Expecter
- func (_e *PrivValidator_Expecter) ExtractIntoValidator(ctx interface{}, quorumHash interface{}) *PrivValidator_ExtractIntoValidator_Call
- func (_e *PrivValidator_Expecter) GetFirstQuorumHash(context1 interface{}) *PrivValidator_GetFirstQuorumHash_Call
- func (_e *PrivValidator_Expecter) GetHeight(ctx interface{}, quorumHash interface{}) *PrivValidator_GetHeight_Call
- func (_e *PrivValidator_Expecter) GetPrivateKey(ctx interface{}, quorumHash interface{}) *PrivValidator_GetPrivateKey_Call
- func (_e *PrivValidator_Expecter) GetProTxHash(context1 interface{}) *PrivValidator_GetProTxHash_Call
- func (_e *PrivValidator_Expecter) GetPubKey(ctx interface{}, quorumHash interface{}) *PrivValidator_GetPubKey_Call
- func (_e *PrivValidator_Expecter) GetThresholdPublicKey(ctx interface{}, quorumHash interface{}) *PrivValidator_GetThresholdPublicKey_Call
- func (_e *PrivValidator_Expecter) SignProposal(ctx interface{}, chainID interface{}, quorumType interface{}, ...) *PrivValidator_SignProposal_Call
- func (_e *PrivValidator_Expecter) SignVote(ctx interface{}, chainID interface{}, quorumType interface{}, ...) *PrivValidator_SignVote_Call
- func (_e *PrivValidator_Expecter) UpdatePrivateKey(ctx interface{}, privateKey interface{}, quorumHash interface{}, ...) *PrivValidator_UpdatePrivateKey_Call
- type PrivValidator_ExtractIntoValidator_Call
- func (_c *PrivValidator_ExtractIntoValidator_Call) Return(validator *types.Validator) *PrivValidator_ExtractIntoValidator_Call
- func (_c *PrivValidator_ExtractIntoValidator_Call) Run(run func(ctx context.Context, quorumHash crypto.QuorumHash)) *PrivValidator_ExtractIntoValidator_Call
- func (_c *PrivValidator_ExtractIntoValidator_Call) RunAndReturn(run func(ctx context.Context, quorumHash crypto.QuorumHash) *types.Validator) *PrivValidator_ExtractIntoValidator_Call
- type PrivValidator_GetFirstQuorumHash_Call
- func (_c *PrivValidator_GetFirstQuorumHash_Call) Return(v crypto.QuorumHash, err error) *PrivValidator_GetFirstQuorumHash_Call
- func (_c *PrivValidator_GetFirstQuorumHash_Call) Run(run func(context1 context.Context)) *PrivValidator_GetFirstQuorumHash_Call
- func (_c *PrivValidator_GetFirstQuorumHash_Call) RunAndReturn(run func(context1 context.Context) (crypto.QuorumHash, error)) *PrivValidator_GetFirstQuorumHash_Call
- type PrivValidator_GetHeight_Call
- func (_c *PrivValidator_GetHeight_Call) Return(n int64, err error) *PrivValidator_GetHeight_Call
- func (_c *PrivValidator_GetHeight_Call) Run(run func(ctx context.Context, quorumHash crypto.QuorumHash)) *PrivValidator_GetHeight_Call
- func (_c *PrivValidator_GetHeight_Call) RunAndReturn(run func(ctx context.Context, quorumHash crypto.QuorumHash) (int64, error)) *PrivValidator_GetHeight_Call
- type PrivValidator_GetPrivateKey_Call
- func (_c *PrivValidator_GetPrivateKey_Call) Return(privKey crypto.PrivKey, err error) *PrivValidator_GetPrivateKey_Call
- func (_c *PrivValidator_GetPrivateKey_Call) Run(run func(ctx context.Context, quorumHash crypto.QuorumHash)) *PrivValidator_GetPrivateKey_Call
- func (_c *PrivValidator_GetPrivateKey_Call) RunAndReturn(...) *PrivValidator_GetPrivateKey_Call
- type PrivValidator_GetProTxHash_Call
- func (_c *PrivValidator_GetProTxHash_Call) Return(v crypto.ProTxHash, err error) *PrivValidator_GetProTxHash_Call
- func (_c *PrivValidator_GetProTxHash_Call) Run(run func(context1 context.Context)) *PrivValidator_GetProTxHash_Call
- func (_c *PrivValidator_GetProTxHash_Call) RunAndReturn(run func(context1 context.Context) (crypto.ProTxHash, error)) *PrivValidator_GetProTxHash_Call
- type PrivValidator_GetPubKey_Call
- func (_c *PrivValidator_GetPubKey_Call) Return(pubKey crypto.PubKey, err error) *PrivValidator_GetPubKey_Call
- func (_c *PrivValidator_GetPubKey_Call) Run(run func(ctx context.Context, quorumHash crypto.QuorumHash)) *PrivValidator_GetPubKey_Call
- func (_c *PrivValidator_GetPubKey_Call) RunAndReturn(...) *PrivValidator_GetPubKey_Call
- type PrivValidator_GetThresholdPublicKey_Call
- func (_c *PrivValidator_GetThresholdPublicKey_Call) Return(pubKey crypto.PubKey, err error) *PrivValidator_GetThresholdPublicKey_Call
- func (_c *PrivValidator_GetThresholdPublicKey_Call) Run(run func(ctx context.Context, quorumHash crypto.QuorumHash)) *PrivValidator_GetThresholdPublicKey_Call
- func (_c *PrivValidator_GetThresholdPublicKey_Call) RunAndReturn(...) *PrivValidator_GetThresholdPublicKey_Call
- type PrivValidator_SignProposal_Call
- type PrivValidator_SignVote_Call
- type PrivValidator_UpdatePrivateKey_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockEventPublisher ¶
BlockEventPublisher is an autogenerated mock type for the BlockEventPublisher type
func NewBlockEventPublisher ¶
func NewBlockEventPublisher(t interface {
mock.TestingT
Cleanup(func())
}) *BlockEventPublisher
NewBlockEventPublisher creates a new instance of BlockEventPublisher. 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 (*BlockEventPublisher) EXPECT ¶ added in v1.4.0
func (_m *BlockEventPublisher) EXPECT() *BlockEventPublisher_Expecter
func (*BlockEventPublisher) PublishEventNewBlock ¶
func (_mock *BlockEventPublisher) PublishEventNewBlock(eventDataNewBlock types.EventDataNewBlock) error
PublishEventNewBlock provides a mock function for the type BlockEventPublisher
func (*BlockEventPublisher) PublishEventNewBlockHeader ¶
func (_mock *BlockEventPublisher) PublishEventNewBlockHeader(eventDataNewBlockHeader types.EventDataNewBlockHeader) error
PublishEventNewBlockHeader provides a mock function for the type BlockEventPublisher
func (*BlockEventPublisher) PublishEventNewEvidence ¶
func (_mock *BlockEventPublisher) PublishEventNewEvidence(eventDataNewEvidence types.EventDataNewEvidence) error
PublishEventNewEvidence provides a mock function for the type BlockEventPublisher
func (*BlockEventPublisher) PublishEventTx ¶
func (_mock *BlockEventPublisher) PublishEventTx(eventDataTx types.EventDataTx) error
PublishEventTx provides a mock function for the type BlockEventPublisher
func (*BlockEventPublisher) PublishEventValidatorSetUpdates ¶
func (_mock *BlockEventPublisher) PublishEventValidatorSetUpdates(eventDataValidatorSetUpdate types.EventDataValidatorSetUpdate) error
PublishEventValidatorSetUpdates provides a mock function for the type BlockEventPublisher
type BlockEventPublisher_Expecter ¶ added in v1.4.0
type BlockEventPublisher_Expecter struct {
// contains filtered or unexported fields
}
func (*BlockEventPublisher_Expecter) PublishEventNewBlock ¶ added in v1.4.0
func (_e *BlockEventPublisher_Expecter) PublishEventNewBlock(eventDataNewBlock interface{}) *BlockEventPublisher_PublishEventNewBlock_Call
PublishEventNewBlock is a helper method to define mock.On call
- eventDataNewBlock types.EventDataNewBlock
func (*BlockEventPublisher_Expecter) PublishEventNewBlockHeader ¶ added in v1.4.0
func (_e *BlockEventPublisher_Expecter) PublishEventNewBlockHeader(eventDataNewBlockHeader interface{}) *BlockEventPublisher_PublishEventNewBlockHeader_Call
PublishEventNewBlockHeader is a helper method to define mock.On call
- eventDataNewBlockHeader types.EventDataNewBlockHeader
func (*BlockEventPublisher_Expecter) PublishEventNewEvidence ¶ added in v1.4.0
func (_e *BlockEventPublisher_Expecter) PublishEventNewEvidence(eventDataNewEvidence interface{}) *BlockEventPublisher_PublishEventNewEvidence_Call
PublishEventNewEvidence is a helper method to define mock.On call
- eventDataNewEvidence types.EventDataNewEvidence
func (*BlockEventPublisher_Expecter) PublishEventTx ¶ added in v1.4.0
func (_e *BlockEventPublisher_Expecter) PublishEventTx(eventDataTx interface{}) *BlockEventPublisher_PublishEventTx_Call
PublishEventTx is a helper method to define mock.On call
- eventDataTx types.EventDataTx
func (*BlockEventPublisher_Expecter) PublishEventValidatorSetUpdates ¶ added in v1.4.0
func (_e *BlockEventPublisher_Expecter) PublishEventValidatorSetUpdates(eventDataValidatorSetUpdate interface{}) *BlockEventPublisher_PublishEventValidatorSetUpdates_Call
PublishEventValidatorSetUpdates is a helper method to define mock.On call
- eventDataValidatorSetUpdate types.EventDataValidatorSetUpdate
type BlockEventPublisher_PublishEventNewBlockHeader_Call ¶ added in v1.4.0
BlockEventPublisher_PublishEventNewBlockHeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PublishEventNewBlockHeader'
func (*BlockEventPublisher_PublishEventNewBlockHeader_Call) Run ¶ added in v1.4.0
func (_c *BlockEventPublisher_PublishEventNewBlockHeader_Call) Run(run func(eventDataNewBlockHeader types.EventDataNewBlockHeader)) *BlockEventPublisher_PublishEventNewBlockHeader_Call
func (*BlockEventPublisher_PublishEventNewBlockHeader_Call) RunAndReturn ¶ added in v1.4.0
func (_c *BlockEventPublisher_PublishEventNewBlockHeader_Call) RunAndReturn(run func(eventDataNewBlockHeader types.EventDataNewBlockHeader) error) *BlockEventPublisher_PublishEventNewBlockHeader_Call
type BlockEventPublisher_PublishEventNewBlock_Call ¶ added in v1.4.0
BlockEventPublisher_PublishEventNewBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PublishEventNewBlock'
func (*BlockEventPublisher_PublishEventNewBlock_Call) Return ¶ added in v1.4.0
func (_c *BlockEventPublisher_PublishEventNewBlock_Call) Return(err error) *BlockEventPublisher_PublishEventNewBlock_Call
func (*BlockEventPublisher_PublishEventNewBlock_Call) Run ¶ added in v1.4.0
func (_c *BlockEventPublisher_PublishEventNewBlock_Call) Run(run func(eventDataNewBlock types.EventDataNewBlock)) *BlockEventPublisher_PublishEventNewBlock_Call
func (*BlockEventPublisher_PublishEventNewBlock_Call) RunAndReturn ¶ added in v1.4.0
func (_c *BlockEventPublisher_PublishEventNewBlock_Call) RunAndReturn(run func(eventDataNewBlock types.EventDataNewBlock) error) *BlockEventPublisher_PublishEventNewBlock_Call
type BlockEventPublisher_PublishEventNewEvidence_Call ¶ added in v1.4.0
BlockEventPublisher_PublishEventNewEvidence_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PublishEventNewEvidence'
func (*BlockEventPublisher_PublishEventNewEvidence_Call) Return ¶ added in v1.4.0
func (_c *BlockEventPublisher_PublishEventNewEvidence_Call) Return(err error) *BlockEventPublisher_PublishEventNewEvidence_Call
func (*BlockEventPublisher_PublishEventNewEvidence_Call) Run ¶ added in v1.4.0
func (_c *BlockEventPublisher_PublishEventNewEvidence_Call) Run(run func(eventDataNewEvidence types.EventDataNewEvidence)) *BlockEventPublisher_PublishEventNewEvidence_Call
func (*BlockEventPublisher_PublishEventNewEvidence_Call) RunAndReturn ¶ added in v1.4.0
func (_c *BlockEventPublisher_PublishEventNewEvidence_Call) RunAndReturn(run func(eventDataNewEvidence types.EventDataNewEvidence) error) *BlockEventPublisher_PublishEventNewEvidence_Call
type BlockEventPublisher_PublishEventTx_Call ¶ added in v1.4.0
BlockEventPublisher_PublishEventTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PublishEventTx'
func (*BlockEventPublisher_PublishEventTx_Call) Return ¶ added in v1.4.0
func (_c *BlockEventPublisher_PublishEventTx_Call) Return(err error) *BlockEventPublisher_PublishEventTx_Call
func (*BlockEventPublisher_PublishEventTx_Call) Run ¶ added in v1.4.0
func (_c *BlockEventPublisher_PublishEventTx_Call) Run(run func(eventDataTx types.EventDataTx)) *BlockEventPublisher_PublishEventTx_Call
func (*BlockEventPublisher_PublishEventTx_Call) RunAndReturn ¶ added in v1.4.0
func (_c *BlockEventPublisher_PublishEventTx_Call) RunAndReturn(run func(eventDataTx types.EventDataTx) error) *BlockEventPublisher_PublishEventTx_Call
type BlockEventPublisher_PublishEventValidatorSetUpdates_Call ¶ added in v1.4.0
BlockEventPublisher_PublishEventValidatorSetUpdates_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PublishEventValidatorSetUpdates'
func (*BlockEventPublisher_PublishEventValidatorSetUpdates_Call) Run ¶ added in v1.4.0
func (_c *BlockEventPublisher_PublishEventValidatorSetUpdates_Call) Run(run func(eventDataValidatorSetUpdate types.EventDataValidatorSetUpdate)) *BlockEventPublisher_PublishEventValidatorSetUpdates_Call
func (*BlockEventPublisher_PublishEventValidatorSetUpdates_Call) RunAndReturn ¶ added in v1.4.0
func (_c *BlockEventPublisher_PublishEventValidatorSetUpdates_Call) RunAndReturn(run func(eventDataValidatorSetUpdate types.EventDataValidatorSetUpdate) error) *BlockEventPublisher_PublishEventValidatorSetUpdates_Call
type PrivValidator ¶
PrivValidator is an autogenerated mock type for the PrivValidator type
func NewPrivValidator ¶
func NewPrivValidator(t interface {
mock.TestingT
Cleanup(func())
}) *PrivValidator
NewPrivValidator creates a new instance of PrivValidator. 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 (*PrivValidator) EXPECT ¶ added in v1.4.0
func (_m *PrivValidator) EXPECT() *PrivValidator_Expecter
func (*PrivValidator) ExtractIntoValidator ¶
func (_mock *PrivValidator) ExtractIntoValidator(ctx context.Context, quorumHash crypto.QuorumHash) *types.Validator
ExtractIntoValidator provides a mock function for the type PrivValidator
func (*PrivValidator) GetFirstQuorumHash ¶
func (_mock *PrivValidator) GetFirstQuorumHash(context1 context.Context) (crypto.QuorumHash, error)
GetFirstQuorumHash provides a mock function for the type PrivValidator
func (*PrivValidator) GetHeight ¶
func (_mock *PrivValidator) GetHeight(ctx context.Context, quorumHash crypto.QuorumHash) (int64, error)
GetHeight provides a mock function for the type PrivValidator
func (*PrivValidator) GetPrivateKey ¶
func (_mock *PrivValidator) GetPrivateKey(ctx context.Context, quorumHash crypto.QuorumHash) (crypto.PrivKey, error)
GetPrivateKey provides a mock function for the type PrivValidator
func (*PrivValidator) GetProTxHash ¶
GetProTxHash provides a mock function for the type PrivValidator
func (*PrivValidator) GetPubKey ¶
func (_mock *PrivValidator) GetPubKey(ctx context.Context, quorumHash crypto.QuorumHash) (crypto.PubKey, error)
GetPubKey provides a mock function for the type PrivValidator
func (*PrivValidator) GetThresholdPublicKey ¶
func (_mock *PrivValidator) GetThresholdPublicKey(ctx context.Context, quorumHash crypto.QuorumHash) (crypto.PubKey, error)
GetThresholdPublicKey provides a mock function for the type PrivValidator
func (*PrivValidator) SignProposal ¶
func (_mock *PrivValidator) SignProposal(ctx context.Context, chainID string, quorumType btcjson.LLMQType, quorumHash crypto.QuorumHash, proposal *types0.Proposal) (bytes.HexBytes, error)
SignProposal provides a mock function for the type PrivValidator
func (*PrivValidator) SignVote ¶
func (_mock *PrivValidator) SignVote(ctx context.Context, chainID string, quorumType btcjson.LLMQType, quorumHash crypto.QuorumHash, vote *types0.Vote, logger log.Logger) error
SignVote provides a mock function for the type PrivValidator
func (*PrivValidator) UpdatePrivateKey ¶
func (_mock *PrivValidator) UpdatePrivateKey(ctx context.Context, privateKey crypto.PrivKey, quorumHash crypto.QuorumHash, thresholdPublicKey crypto.PubKey, height int64)
UpdatePrivateKey provides a mock function for the type PrivValidator
type PrivValidator_Expecter ¶ added in v1.4.0
type PrivValidator_Expecter struct {
// contains filtered or unexported fields
}
func (*PrivValidator_Expecter) ExtractIntoValidator ¶ added in v1.4.0
func (_e *PrivValidator_Expecter) ExtractIntoValidator(ctx interface{}, quorumHash interface{}) *PrivValidator_ExtractIntoValidator_Call
ExtractIntoValidator is a helper method to define mock.On call
- ctx context.Context
- quorumHash crypto.QuorumHash
func (*PrivValidator_Expecter) GetFirstQuorumHash ¶ added in v1.4.0
func (_e *PrivValidator_Expecter) GetFirstQuorumHash(context1 interface{}) *PrivValidator_GetFirstQuorumHash_Call
GetFirstQuorumHash is a helper method to define mock.On call
- context1 context.Context
func (*PrivValidator_Expecter) GetHeight ¶ added in v1.4.0
func (_e *PrivValidator_Expecter) GetHeight(ctx interface{}, quorumHash interface{}) *PrivValidator_GetHeight_Call
GetHeight is a helper method to define mock.On call
- ctx context.Context
- quorumHash crypto.QuorumHash
func (*PrivValidator_Expecter) GetPrivateKey ¶ added in v1.4.0
func (_e *PrivValidator_Expecter) GetPrivateKey(ctx interface{}, quorumHash interface{}) *PrivValidator_GetPrivateKey_Call
GetPrivateKey is a helper method to define mock.On call
- ctx context.Context
- quorumHash crypto.QuorumHash
func (*PrivValidator_Expecter) GetProTxHash ¶ added in v1.4.0
func (_e *PrivValidator_Expecter) GetProTxHash(context1 interface{}) *PrivValidator_GetProTxHash_Call
GetProTxHash is a helper method to define mock.On call
- context1 context.Context
func (*PrivValidator_Expecter) GetPubKey ¶ added in v1.4.0
func (_e *PrivValidator_Expecter) GetPubKey(ctx interface{}, quorumHash interface{}) *PrivValidator_GetPubKey_Call
GetPubKey is a helper method to define mock.On call
- ctx context.Context
- quorumHash crypto.QuorumHash
func (*PrivValidator_Expecter) GetThresholdPublicKey ¶ added in v1.4.0
func (_e *PrivValidator_Expecter) GetThresholdPublicKey(ctx interface{}, quorumHash interface{}) *PrivValidator_GetThresholdPublicKey_Call
GetThresholdPublicKey is a helper method to define mock.On call
- ctx context.Context
- quorumHash crypto.QuorumHash
func (*PrivValidator_Expecter) SignProposal ¶ added in v1.4.0
func (_e *PrivValidator_Expecter) SignProposal(ctx interface{}, chainID interface{}, quorumType interface{}, quorumHash interface{}, proposal interface{}) *PrivValidator_SignProposal_Call
SignProposal is a helper method to define mock.On call
- ctx context.Context
- chainID string
- quorumType btcjson.LLMQType
- quorumHash crypto.QuorumHash
- proposal *types0.Proposal
func (*PrivValidator_Expecter) SignVote ¶ added in v1.4.0
func (_e *PrivValidator_Expecter) SignVote(ctx interface{}, chainID interface{}, quorumType interface{}, quorumHash interface{}, vote interface{}, logger interface{}) *PrivValidator_SignVote_Call
SignVote is a helper method to define mock.On call
- ctx context.Context
- chainID string
- quorumType btcjson.LLMQType
- quorumHash crypto.QuorumHash
- vote *types0.Vote
- logger log.Logger
func (*PrivValidator_Expecter) UpdatePrivateKey ¶ added in v1.4.0
func (_e *PrivValidator_Expecter) UpdatePrivateKey(ctx interface{}, privateKey interface{}, quorumHash interface{}, thresholdPublicKey interface{}, height interface{}) *PrivValidator_UpdatePrivateKey_Call
UpdatePrivateKey is a helper method to define mock.On call
- ctx context.Context
- privateKey crypto.PrivKey
- quorumHash crypto.QuorumHash
- thresholdPublicKey crypto.PubKey
- height int64
type PrivValidator_ExtractIntoValidator_Call ¶ added in v1.4.0
PrivValidator_ExtractIntoValidator_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExtractIntoValidator'
func (*PrivValidator_ExtractIntoValidator_Call) Return ¶ added in v1.4.0
func (_c *PrivValidator_ExtractIntoValidator_Call) Return(validator *types.Validator) *PrivValidator_ExtractIntoValidator_Call
func (*PrivValidator_ExtractIntoValidator_Call) Run ¶ added in v1.4.0
func (_c *PrivValidator_ExtractIntoValidator_Call) Run(run func(ctx context.Context, quorumHash crypto.QuorumHash)) *PrivValidator_ExtractIntoValidator_Call
func (*PrivValidator_ExtractIntoValidator_Call) RunAndReturn ¶ added in v1.4.0
func (_c *PrivValidator_ExtractIntoValidator_Call) RunAndReturn(run func(ctx context.Context, quorumHash crypto.QuorumHash) *types.Validator) *PrivValidator_ExtractIntoValidator_Call
type PrivValidator_GetFirstQuorumHash_Call ¶ added in v1.4.0
PrivValidator_GetFirstQuorumHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFirstQuorumHash'
func (*PrivValidator_GetFirstQuorumHash_Call) Return ¶ added in v1.4.0
func (_c *PrivValidator_GetFirstQuorumHash_Call) Return(v crypto.QuorumHash, err error) *PrivValidator_GetFirstQuorumHash_Call
func (*PrivValidator_GetFirstQuorumHash_Call) Run ¶ added in v1.4.0
func (_c *PrivValidator_GetFirstQuorumHash_Call) Run(run func(context1 context.Context)) *PrivValidator_GetFirstQuorumHash_Call
func (*PrivValidator_GetFirstQuorumHash_Call) RunAndReturn ¶ added in v1.4.0
func (_c *PrivValidator_GetFirstQuorumHash_Call) RunAndReturn(run func(context1 context.Context) (crypto.QuorumHash, error)) *PrivValidator_GetFirstQuorumHash_Call
type PrivValidator_GetHeight_Call ¶ added in v1.4.0
PrivValidator_GetHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHeight'
func (*PrivValidator_GetHeight_Call) Return ¶ added in v1.4.0
func (_c *PrivValidator_GetHeight_Call) Return(n int64, err error) *PrivValidator_GetHeight_Call
func (*PrivValidator_GetHeight_Call) Run ¶ added in v1.4.0
func (_c *PrivValidator_GetHeight_Call) Run(run func(ctx context.Context, quorumHash crypto.QuorumHash)) *PrivValidator_GetHeight_Call
func (*PrivValidator_GetHeight_Call) RunAndReturn ¶ added in v1.4.0
func (_c *PrivValidator_GetHeight_Call) RunAndReturn(run func(ctx context.Context, quorumHash crypto.QuorumHash) (int64, error)) *PrivValidator_GetHeight_Call
type PrivValidator_GetPrivateKey_Call ¶ added in v1.4.0
PrivValidator_GetPrivateKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPrivateKey'
func (*PrivValidator_GetPrivateKey_Call) Return ¶ added in v1.4.0
func (_c *PrivValidator_GetPrivateKey_Call) Return(privKey crypto.PrivKey, err error) *PrivValidator_GetPrivateKey_Call
func (*PrivValidator_GetPrivateKey_Call) Run ¶ added in v1.4.0
func (_c *PrivValidator_GetPrivateKey_Call) Run(run func(ctx context.Context, quorumHash crypto.QuorumHash)) *PrivValidator_GetPrivateKey_Call
func (*PrivValidator_GetPrivateKey_Call) RunAndReturn ¶ added in v1.4.0
func (_c *PrivValidator_GetPrivateKey_Call) RunAndReturn(run func(ctx context.Context, quorumHash crypto.QuorumHash) (crypto.PrivKey, error)) *PrivValidator_GetPrivateKey_Call
type PrivValidator_GetProTxHash_Call ¶ added in v1.4.0
PrivValidator_GetProTxHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProTxHash'
func (*PrivValidator_GetProTxHash_Call) Return ¶ added in v1.4.0
func (_c *PrivValidator_GetProTxHash_Call) Return(v crypto.ProTxHash, err error) *PrivValidator_GetProTxHash_Call
func (*PrivValidator_GetProTxHash_Call) Run ¶ added in v1.4.0
func (_c *PrivValidator_GetProTxHash_Call) Run(run func(context1 context.Context)) *PrivValidator_GetProTxHash_Call
func (*PrivValidator_GetProTxHash_Call) RunAndReturn ¶ added in v1.4.0
func (_c *PrivValidator_GetProTxHash_Call) RunAndReturn(run func(context1 context.Context) (crypto.ProTxHash, error)) *PrivValidator_GetProTxHash_Call
type PrivValidator_GetPubKey_Call ¶ added in v1.4.0
PrivValidator_GetPubKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPubKey'
func (*PrivValidator_GetPubKey_Call) Return ¶ added in v1.4.0
func (_c *PrivValidator_GetPubKey_Call) Return(pubKey crypto.PubKey, err error) *PrivValidator_GetPubKey_Call
func (*PrivValidator_GetPubKey_Call) Run ¶ added in v1.4.0
func (_c *PrivValidator_GetPubKey_Call) Run(run func(ctx context.Context, quorumHash crypto.QuorumHash)) *PrivValidator_GetPubKey_Call
func (*PrivValidator_GetPubKey_Call) RunAndReturn ¶ added in v1.4.0
func (_c *PrivValidator_GetPubKey_Call) RunAndReturn(run func(ctx context.Context, quorumHash crypto.QuorumHash) (crypto.PubKey, error)) *PrivValidator_GetPubKey_Call
type PrivValidator_GetThresholdPublicKey_Call ¶ added in v1.4.0
PrivValidator_GetThresholdPublicKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetThresholdPublicKey'
func (*PrivValidator_GetThresholdPublicKey_Call) Return ¶ added in v1.4.0
func (_c *PrivValidator_GetThresholdPublicKey_Call) Return(pubKey crypto.PubKey, err error) *PrivValidator_GetThresholdPublicKey_Call
func (*PrivValidator_GetThresholdPublicKey_Call) Run ¶ added in v1.4.0
func (_c *PrivValidator_GetThresholdPublicKey_Call) Run(run func(ctx context.Context, quorumHash crypto.QuorumHash)) *PrivValidator_GetThresholdPublicKey_Call
func (*PrivValidator_GetThresholdPublicKey_Call) RunAndReturn ¶ added in v1.4.0
func (_c *PrivValidator_GetThresholdPublicKey_Call) RunAndReturn(run func(ctx context.Context, quorumHash crypto.QuorumHash) (crypto.PubKey, error)) *PrivValidator_GetThresholdPublicKey_Call
type PrivValidator_SignProposal_Call ¶ added in v1.4.0
PrivValidator_SignProposal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SignProposal'
func (*PrivValidator_SignProposal_Call) Return ¶ added in v1.4.0
func (_c *PrivValidator_SignProposal_Call) Return(hexBytes bytes.HexBytes, err error) *PrivValidator_SignProposal_Call
func (*PrivValidator_SignProposal_Call) Run ¶ added in v1.4.0
func (_c *PrivValidator_SignProposal_Call) Run(run func(ctx context.Context, chainID string, quorumType btcjson.LLMQType, quorumHash crypto.QuorumHash, proposal *types0.Proposal)) *PrivValidator_SignProposal_Call
func (*PrivValidator_SignProposal_Call) RunAndReturn ¶ added in v1.4.0
func (_c *PrivValidator_SignProposal_Call) RunAndReturn(run func(ctx context.Context, chainID string, quorumType btcjson.LLMQType, quorumHash crypto.QuorumHash, proposal *types0.Proposal) (bytes.HexBytes, error)) *PrivValidator_SignProposal_Call
type PrivValidator_SignVote_Call ¶ added in v1.4.0
PrivValidator_SignVote_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SignVote'
func (*PrivValidator_SignVote_Call) Return ¶ added in v1.4.0
func (_c *PrivValidator_SignVote_Call) Return(err error) *PrivValidator_SignVote_Call
func (*PrivValidator_SignVote_Call) Run ¶ added in v1.4.0
func (_c *PrivValidator_SignVote_Call) Run(run func(ctx context.Context, chainID string, quorumType btcjson.LLMQType, quorumHash crypto.QuorumHash, vote *types0.Vote, logger log.Logger)) *PrivValidator_SignVote_Call
func (*PrivValidator_SignVote_Call) RunAndReturn ¶ added in v1.4.0
func (_c *PrivValidator_SignVote_Call) RunAndReturn(run func(ctx context.Context, chainID string, quorumType btcjson.LLMQType, quorumHash crypto.QuorumHash, vote *types0.Vote, logger log.Logger) error) *PrivValidator_SignVote_Call
type PrivValidator_UpdatePrivateKey_Call ¶ added in v1.4.0
PrivValidator_UpdatePrivateKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePrivateKey'
func (*PrivValidator_UpdatePrivateKey_Call) Return ¶ added in v1.4.0
func (_c *PrivValidator_UpdatePrivateKey_Call) Return() *PrivValidator_UpdatePrivateKey_Call
func (*PrivValidator_UpdatePrivateKey_Call) Run ¶ added in v1.4.0
func (_c *PrivValidator_UpdatePrivateKey_Call) Run(run func(ctx context.Context, privateKey crypto.PrivKey, quorumHash crypto.QuorumHash, thresholdPublicKey crypto.PubKey, height int64)) *PrivValidator_UpdatePrivateKey_Call
func (*PrivValidator_UpdatePrivateKey_Call) RunAndReturn ¶ added in v1.4.0
func (_c *PrivValidator_UpdatePrivateKey_Call) RunAndReturn(run func(ctx context.Context, privateKey crypto.PrivKey, quorumHash crypto.QuorumHash, thresholdPublicKey crypto.PubKey, height int64)) *PrivValidator_UpdatePrivateKey_Call