mock_blockchain

package
v2.1.0-rc8 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package mock_blockchain is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBlockBuilderFactory

type MockBlockBuilderFactory struct {
	// contains filtered or unexported fields
}

MockBlockBuilderFactory is a mock of BlockBuilderFactory interface.

func NewMockBlockBuilderFactory

func NewMockBlockBuilderFactory(ctrl *gomock.Controller) *MockBlockBuilderFactory

NewMockBlockBuilderFactory creates a new mock instance.

func (*MockBlockBuilderFactory) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockBlockBuilderFactory) NewBlockBuilder

func (m *MockBlockBuilderFactory) NewBlockBuilder(arg0 context.Context, arg1 func(action.Envelope) (*action.SealedEnvelope, error)) (*block.Builder, error)

NewBlockBuilder mocks base method.

type MockBlockBuilderFactoryMockRecorder

type MockBlockBuilderFactoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockBlockBuilderFactoryMockRecorder is the mock recorder for MockBlockBuilderFactory.

func (*MockBlockBuilderFactoryMockRecorder) NewBlockBuilder

func (mr *MockBlockBuilderFactoryMockRecorder) NewBlockBuilder(arg0, arg1 interface{}) *gomock.Call

NewBlockBuilder indicates an expected call of NewBlockBuilder.

type MockBlockchain

type MockBlockchain struct {
	// contains filtered or unexported fields
}

MockBlockchain is a mock of Blockchain interface.

func NewMockBlockchain

func NewMockBlockchain(ctrl *gomock.Controller) *MockBlockchain

NewMockBlockchain creates a new mock instance.

func (*MockBlockchain) AddSubscriber

func (m *MockBlockchain) AddSubscriber(arg0 blockchain.BlockCreationSubscriber) error

AddSubscriber mocks base method.

func (*MockBlockchain) BlockFooterByHeight

func (m *MockBlockchain) BlockFooterByHeight(height uint64) (*block.Footer, error)

BlockFooterByHeight mocks base method.

func (*MockBlockchain) BlockHeaderByHeight

func (m *MockBlockchain) BlockHeaderByHeight(height uint64) (*block.Header, error)

BlockHeaderByHeight mocks base method.

func (*MockBlockchain) ChainAddress

func (m *MockBlockchain) ChainAddress() string

ChainAddress mocks base method.

func (*MockBlockchain) ChainID

func (m *MockBlockchain) ChainID() uint32

ChainID mocks base method.

func (*MockBlockchain) CommitBlock

func (m *MockBlockchain) CommitBlock(blk *block.Block) error

CommitBlock mocks base method.

func (*MockBlockchain) Context

func (m *MockBlockchain) Context(arg0 context.Context) (context.Context, error)

Context mocks base method.

func (*MockBlockchain) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockBlockchain) EvmNetworkID

func (m *MockBlockchain) EvmNetworkID() uint32

EvmNetworkID mocks base method.

func (*MockBlockchain) Genesis

func (m *MockBlockchain) Genesis() genesis.Genesis

Genesis mocks base method.

func (*MockBlockchain) MintNewBlock

func (m *MockBlockchain) MintNewBlock(timestamp time.Time) (*block.Block, error)

MintNewBlock mocks base method.

func (*MockBlockchain) RemoveSubscriber

func (m *MockBlockchain) RemoveSubscriber(arg0 blockchain.BlockCreationSubscriber) error

RemoveSubscriber mocks base method.

func (*MockBlockchain) Start

func (m *MockBlockchain) Start(arg0 context.Context) error

Start mocks base method.

func (*MockBlockchain) Stop

func (m *MockBlockchain) Stop(arg0 context.Context) error

Stop mocks base method.

func (*MockBlockchain) TipHash

func (m *MockBlockchain) TipHash() hash.Hash256

TipHash mocks base method.

func (*MockBlockchain) TipHeight

func (m *MockBlockchain) TipHeight() uint64

TipHeight mocks base method.

func (*MockBlockchain) ValidateBlock

func (m *MockBlockchain) ValidateBlock(arg0 *block.Block, arg1 ...blockchain.BlockValidationOption) error

ValidateBlock mocks base method.

type MockBlockchainMockRecorder

type MockBlockchainMockRecorder struct {
	// contains filtered or unexported fields
}

MockBlockchainMockRecorder is the mock recorder for MockBlockchain.

func (*MockBlockchainMockRecorder) AddSubscriber

func (mr *MockBlockchainMockRecorder) AddSubscriber(arg0 interface{}) *gomock.Call

AddSubscriber indicates an expected call of AddSubscriber.

func (*MockBlockchainMockRecorder) BlockFooterByHeight

func (mr *MockBlockchainMockRecorder) BlockFooterByHeight(height interface{}) *gomock.Call

BlockFooterByHeight indicates an expected call of BlockFooterByHeight.

func (*MockBlockchainMockRecorder) BlockHeaderByHeight

func (mr *MockBlockchainMockRecorder) BlockHeaderByHeight(height interface{}) *gomock.Call

BlockHeaderByHeight indicates an expected call of BlockHeaderByHeight.

func (*MockBlockchainMockRecorder) ChainAddress

func (mr *MockBlockchainMockRecorder) ChainAddress() *gomock.Call

ChainAddress indicates an expected call of ChainAddress.

func (*MockBlockchainMockRecorder) ChainID

func (mr *MockBlockchainMockRecorder) ChainID() *gomock.Call

ChainID indicates an expected call of ChainID.

func (*MockBlockchainMockRecorder) CommitBlock

func (mr *MockBlockchainMockRecorder) CommitBlock(blk interface{}) *gomock.Call

CommitBlock indicates an expected call of CommitBlock.

func (*MockBlockchainMockRecorder) Context

func (mr *MockBlockchainMockRecorder) Context(arg0 interface{}) *gomock.Call

Context indicates an expected call of Context.

func (*MockBlockchainMockRecorder) EvmNetworkID

func (mr *MockBlockchainMockRecorder) EvmNetworkID() *gomock.Call

EvmNetworkID indicates an expected call of EvmNetworkID.

func (*MockBlockchainMockRecorder) Genesis

func (mr *MockBlockchainMockRecorder) Genesis() *gomock.Call

Genesis indicates an expected call of Genesis.

func (*MockBlockchainMockRecorder) MintNewBlock

func (mr *MockBlockchainMockRecorder) MintNewBlock(timestamp interface{}) *gomock.Call

MintNewBlock indicates an expected call of MintNewBlock.

func (*MockBlockchainMockRecorder) RemoveSubscriber

func (mr *MockBlockchainMockRecorder) RemoveSubscriber(arg0 interface{}) *gomock.Call

RemoveSubscriber indicates an expected call of RemoveSubscriber.

func (*MockBlockchainMockRecorder) Start

func (mr *MockBlockchainMockRecorder) Start(arg0 interface{}) *gomock.Call

Start indicates an expected call of Start.

func (*MockBlockchainMockRecorder) Stop

func (mr *MockBlockchainMockRecorder) Stop(arg0 interface{}) *gomock.Call

Stop indicates an expected call of Stop.

func (*MockBlockchainMockRecorder) TipHash

func (mr *MockBlockchainMockRecorder) TipHash() *gomock.Call

TipHash indicates an expected call of TipHash.

func (*MockBlockchainMockRecorder) TipHeight

func (mr *MockBlockchainMockRecorder) TipHeight() *gomock.Call

TipHeight indicates an expected call of TipHeight.

func (*MockBlockchainMockRecorder) ValidateBlock

func (mr *MockBlockchainMockRecorder) ValidateBlock(arg0 interface{}, arg1 ...interface{}) *gomock.Call

ValidateBlock indicates an expected call of ValidateBlock.

Jump to

Keyboard shortcuts

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