mock

package
v1.7.13-patch2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 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 DriverStub

type DriverStub struct {
	SaveBlockCalled             func(outportBlock *outportcore.OutportBlock) error
	RevertIndexedBlockCalled    func(blockData *outportcore.BlockData) error
	SaveRoundsInfoCalled        func(roundsInfos *outportcore.RoundsInfo) error
	SaveValidatorsPubKeysCalled func(validatorsPubKeys *outportcore.ValidatorsPubKeys) error
	SaveValidatorsRatingCalled  func(validatorsRating *outportcore.ValidatorsRating) error
	SaveAccountsCalled          func(accounts *outportcore.Accounts) error
	FinalizedBlockCalled        func(finalizedBlock *outportcore.FinalizedBlock) error
	CloseCalled                 func() error
	RegisterHandlerCalled       func(handlerFunction func() error, topic string) error
	SetCurrentSettingsCalled    func(config outportcore.OutportConfig) error
}

DriverStub -

func (*DriverStub) Close

func (d *DriverStub) Close() error

Close -

func (*DriverStub) FinalizedBlock

func (d *DriverStub) FinalizedBlock(finalizedBlock *outportcore.FinalizedBlock) error

FinalizedBlock -

func (*DriverStub) GetMarshaller added in v1.6.0

func (d *DriverStub) GetMarshaller() marshal.Marshalizer

GetMarshaller -

func (*DriverStub) IsInterfaceNil

func (d *DriverStub) IsInterfaceNil() bool

IsInterfaceNil -

func (*DriverStub) RegisterHandler added in v1.6.0

func (d *DriverStub) RegisterHandler(handlerFunction func() error, topic string) error

RegisterHandler -

func (*DriverStub) RevertIndexedBlock

func (d *DriverStub) RevertIndexedBlock(blockData *outportcore.BlockData) error

RevertIndexedBlock -

func (*DriverStub) SaveAccounts

func (d *DriverStub) SaveAccounts(accounts *outportcore.Accounts) error

SaveAccounts -

func (*DriverStub) SaveBlock

func (d *DriverStub) SaveBlock(args *outportcore.OutportBlock) error

SaveBlock -

func (*DriverStub) SaveRoundsInfo

func (d *DriverStub) SaveRoundsInfo(roundsInfos *outportcore.RoundsInfo) error

SaveRoundsInfo -

func (*DriverStub) SaveValidatorsPubKeys

func (d *DriverStub) SaveValidatorsPubKeys(validatorsPubKeys *outportcore.ValidatorsPubKeys) error

SaveValidatorsPubKeys -

func (*DriverStub) SaveValidatorsRating

func (d *DriverStub) SaveValidatorsRating(validatorsRating *outportcore.ValidatorsRating) error

SaveValidatorsRating -

func (*DriverStub) SetCurrentSettings added in v1.6.0

func (d *DriverStub) SetCurrentSettings(config outportcore.OutportConfig) error

SetCurrentSettings -

type EconomicsHandlerMock

type EconomicsHandlerMock struct {
}

EconomicsHandlerMock -

func (*EconomicsHandlerMock) ComputeGasLimit

ComputeGasLimit -

func (*EconomicsHandlerMock) ComputeGasUsedAndFeeBasedOnRefundValue

func (e *EconomicsHandlerMock) ComputeGasUsedAndFeeBasedOnRefundValue(tx coreData.TransactionWithFeeHandler, refundValue *big.Int) (uint64, *big.Int)

ComputeGasUsedAndFeeBasedOnRefundValue -

func (*EconomicsHandlerMock) ComputeTxFee

func (*EconomicsHandlerMock) ComputeTxFeeBasedOnGasUsed

func (e *EconomicsHandlerMock) ComputeTxFeeBasedOnGasUsed(tx coreData.TransactionWithFeeHandler, gasUsed uint64) *big.Int

ComputeTxFeeBasedOnGasUsed -

func (*EconomicsHandlerMock) IsInterfaceNil

func (e *EconomicsHandlerMock) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*EconomicsHandlerMock) MaxGasLimitPerBlock

func (e *EconomicsHandlerMock) MaxGasLimitPerBlock(_ uint32) uint64

MaxGasLimitPerBlock -

func (*EconomicsHandlerMock) MinGasLimit

func (e *EconomicsHandlerMock) MinGasLimit() uint64

MinGasLimit -

type HTTPClientStub

type HTTPClientStub struct {
	PostCalled func(route string, payload interface{}) error
}

HTTPClientStub -

func (*HTTPClientStub) IsInterfaceNil

func (stub *HTTPClientStub) IsInterfaceNil() bool

IsInterfaceNil -

func (*HTTPClientStub) Post

func (stub *HTTPClientStub) Post(route string, payload interface{}) error

Post -

Jump to

Keyboard shortcuts

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