chainSimulator

package
v1.7.13 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainSimulatorMock added in v1.7.6

type ChainSimulatorMock struct {
	GenerateBlocksCalled func(numOfBlocks int) error
	GetNodeHandlerCalled func(shardID uint32) process.NodeHandler
}

ChainSimulatorMock -

func (*ChainSimulatorMock) GenerateBlocks added in v1.7.6

func (mock *ChainSimulatorMock) GenerateBlocks(numOfBlocks int) error

GenerateBlocks -

func (*ChainSimulatorMock) GetNodeHandler added in v1.7.6

func (mock *ChainSimulatorMock) GetNodeHandler(shardID uint32) process.NodeHandler

GetNodeHandler -

func (*ChainSimulatorMock) IsInterfaceNil added in v1.7.6

func (mock *ChainSimulatorMock) IsInterfaceNil() bool

IsInterfaceNil -

type NodeHandlerMock

type NodeHandlerMock struct {
	GetProcessComponentsCalled    func() factory.ProcessComponentsHolder
	GetChainHandlerCalled         func() chainData.ChainHandler
	GetBroadcastMessengerCalled   func() consensus.BroadcastMessenger
	GetShardCoordinatorCalled     func() sharding.Coordinator
	GetCryptoComponentsCalled     func() factory.CryptoComponentsHolder
	GetCoreComponentsCalled       func() factory.CoreComponentsHolder
	GetDataComponentsCalled       func() factory.DataComponentsHandler
	GetStateComponentsCalled      func() factory.StateComponentsHolder
	GetFacadeHandlerCalled        func() shared.FacadeHandler
	GetStatusCoreComponentsCalled func() factory.StatusCoreComponentsHolder
	SetKeyValueForAddressCalled   func(addressBytes []byte, state map[string]string) error
	SetStateForAddressCalled      func(address []byte, state *dtos.AddressState) error
	RemoveAccountCalled           func(address []byte) error
	CloseCalled                   func() error
}

NodeHandlerMock -

func (*NodeHandlerMock) Close

func (mock *NodeHandlerMock) Close() error

Close -

func (*NodeHandlerMock) GetBroadcastMessenger

func (mock *NodeHandlerMock) GetBroadcastMessenger() consensus.BroadcastMessenger

GetBroadcastMessenger -

func (*NodeHandlerMock) GetChainHandler

func (mock *NodeHandlerMock) GetChainHandler() chainData.ChainHandler

GetChainHandler -

func (*NodeHandlerMock) GetCoreComponents

func (mock *NodeHandlerMock) GetCoreComponents() factory.CoreComponentsHolder

GetCoreComponents -

func (*NodeHandlerMock) GetCryptoComponents

func (mock *NodeHandlerMock) GetCryptoComponents() factory.CryptoComponentsHolder

GetCryptoComponents -

func (*NodeHandlerMock) GetDataComponents added in v1.7.9

func (mock *NodeHandlerMock) GetDataComponents() factory.DataComponentsHolder

GetDataComponents -

func (*NodeHandlerMock) GetFacadeHandler

func (mock *NodeHandlerMock) GetFacadeHandler() shared.FacadeHandler

GetFacadeHandler -

func (*NodeHandlerMock) GetProcessComponents

func (mock *NodeHandlerMock) GetProcessComponents() factory.ProcessComponentsHolder

GetProcessComponents -

func (*NodeHandlerMock) GetShardCoordinator

func (mock *NodeHandlerMock) GetShardCoordinator() sharding.Coordinator

GetShardCoordinator -

func (*NodeHandlerMock) GetStateComponents

func (mock *NodeHandlerMock) GetStateComponents() factory.StateComponentsHolder

GetStateComponents -

func (*NodeHandlerMock) GetStatusCoreComponents

func (mock *NodeHandlerMock) GetStatusCoreComponents() factory.StatusCoreComponentsHolder

GetStatusCoreComponents -

func (*NodeHandlerMock) IsInterfaceNil

func (mock *NodeHandlerMock) IsInterfaceNil() bool

IsInterfaceNil -

func (*NodeHandlerMock) RemoveAccount added in v1.7.9

func (mock *NodeHandlerMock) RemoveAccount(address []byte) error

RemoveAccount -

func (*NodeHandlerMock) SetKeyValueForAddress

func (mock *NodeHandlerMock) SetKeyValueForAddress(addressBytes []byte, state map[string]string) error

SetKeyValueForAddress -

func (*NodeHandlerMock) SetStateForAddress

func (mock *NodeHandlerMock) SetStateForAddress(address []byte, state *dtos.AddressState) error

SetStateForAddress -

Jump to

Keyboard shortcuts

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