mocks

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockEventPublisher

type BlockEventPublisher struct {
	mock.Mock
}

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) PublishEventNewBlock

func (_m *BlockEventPublisher) PublishEventNewBlock(_a0 types.EventDataNewBlock) error

PublishEventNewBlock provides a mock function with given fields: _a0

func (*BlockEventPublisher) PublishEventNewBlockHeader

func (_m *BlockEventPublisher) PublishEventNewBlockHeader(_a0 types.EventDataNewBlockHeader) error

PublishEventNewBlockHeader provides a mock function with given fields: _a0

func (*BlockEventPublisher) PublishEventNewEvidence

func (_m *BlockEventPublisher) PublishEventNewEvidence(_a0 types.EventDataNewEvidence) error

PublishEventNewEvidence provides a mock function with given fields: _a0

func (*BlockEventPublisher) PublishEventTx

func (_m *BlockEventPublisher) PublishEventTx(_a0 types.EventDataTx) error

PublishEventTx provides a mock function with given fields: _a0

func (*BlockEventPublisher) PublishEventValidatorSetUpdates

func (_m *BlockEventPublisher) PublishEventValidatorSetUpdates(_a0 types.EventDataValidatorSetUpdate) error

PublishEventValidatorSetUpdates provides a mock function with given fields: _a0

type PrivValidator

type PrivValidator struct {
	mock.Mock
}

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) ExtractIntoValidator

func (_m *PrivValidator) ExtractIntoValidator(ctx context.Context, quorumHash crypto.QuorumHash) *types.Validator

ExtractIntoValidator provides a mock function with given fields: ctx, quorumHash

func (*PrivValidator) GetFirstQuorumHash

func (_m *PrivValidator) GetFirstQuorumHash(_a0 context.Context) (crypto.QuorumHash, error)

GetFirstQuorumHash provides a mock function with given fields: _a0

func (*PrivValidator) GetHeight

func (_m *PrivValidator) GetHeight(ctx context.Context, quorumHash crypto.QuorumHash) (int64, error)

GetHeight provides a mock function with given fields: ctx, quorumHash

func (*PrivValidator) GetPrivateKey

func (_m *PrivValidator) GetPrivateKey(ctx context.Context, quorumHash crypto.QuorumHash) (crypto.PrivKey, error)

GetPrivateKey provides a mock function with given fields: ctx, quorumHash

func (*PrivValidator) GetProTxHash

func (_m *PrivValidator) GetProTxHash(_a0 context.Context) (crypto.ProTxHash, error)

GetProTxHash provides a mock function with given fields: _a0

func (*PrivValidator) GetPubKey

func (_m *PrivValidator) GetPubKey(ctx context.Context, quorumHash crypto.QuorumHash) (crypto.PubKey, error)

GetPubKey provides a mock function with given fields: ctx, quorumHash

func (*PrivValidator) GetThresholdPublicKey

func (_m *PrivValidator) GetThresholdPublicKey(ctx context.Context, quorumHash crypto.QuorumHash) (crypto.PubKey, error)

GetThresholdPublicKey provides a mock function with given fields: ctx, quorumHash

func (*PrivValidator) SignProposal

func (_m *PrivValidator) SignProposal(ctx context.Context, chainID string, quorumType btcjson.LLMQType, quorumHash crypto.QuorumHash, proposal *tenderminttypes.Proposal) (bytes.HexBytes, error)

SignProposal provides a mock function with given fields: ctx, chainID, quorumType, quorumHash, proposal

func (*PrivValidator) SignVote

func (_m *PrivValidator) SignVote(ctx context.Context, chainID string, quorumType btcjson.LLMQType, quorumHash crypto.QuorumHash, vote *tenderminttypes.Vote, logger log.Logger) error

SignVote provides a mock function with given fields: ctx, chainID, quorumType, quorumHash, vote, logger

func (*PrivValidator) UpdatePrivateKey

func (_m *PrivValidator) UpdatePrivateKey(ctx context.Context, privateKey crypto.PrivKey, quorumHash crypto.QuorumHash, thresholdPublicKey crypto.PubKey, height int64)

UpdatePrivateKey provides a mock function with given fields: ctx, privateKey, quorumHash, thresholdPublicKey, height

Jump to

Keyboard shortcuts

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