Documentation ¶
Index ¶
- type DriverStub
- func (d *DriverStub) Close() error
- func (d *DriverStub) FinalizedBlock(finalizedBlock *outportcore.FinalizedBlock) error
- func (d *DriverStub) GetMarshaller() marshal.Marshalizer
- func (d *DriverStub) IsInterfaceNil() bool
- func (d *DriverStub) RegisterHandler(handlerFunction func() error, topic string) error
- func (d *DriverStub) RevertIndexedBlock(blockData *outportcore.BlockData) error
- func (d *DriverStub) SaveAccounts(accounts *outportcore.Accounts) error
- func (d *DriverStub) SaveBlock(args *outportcore.OutportBlock) error
- func (d *DriverStub) SaveRoundsInfo(roundsInfos *outportcore.RoundsInfo) error
- func (d *DriverStub) SaveValidatorsPubKeys(validatorsPubKeys *outportcore.ValidatorsPubKeys) error
- func (d *DriverStub) SaveValidatorsRating(validatorsRating *outportcore.ValidatorsRating) error
- func (d *DriverStub) SetCurrentSettings(config outportcore.OutportConfig) error
- type EconomicsHandlerMock
- func (e *EconomicsHandlerMock) ComputeGasLimit(tx coreData.TransactionWithFeeHandler) uint64
- func (e *EconomicsHandlerMock) ComputeGasUsedAndFeeBasedOnRefundValue(tx coreData.TransactionWithFeeHandler, refundValue *big.Int) (uint64, *big.Int)
- func (e *EconomicsHandlerMock) ComputeTxFee(tx coreData.TransactionWithFeeHandler) *big.Int
- func (e *EconomicsHandlerMock) ComputeTxFeeBasedOnGasUsed(tx coreData.TransactionWithFeeHandler, gasUsed uint64) *big.Int
- func (e *EconomicsHandlerMock) IsInterfaceNil() bool
- func (e *EconomicsHandlerMock) MaxGasLimitPerBlock(_ uint32) uint64
- func (e *EconomicsHandlerMock) MinGasLimit() uint64
- type HTTPClientStub
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) 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) 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 ¶
func (e *EconomicsHandlerMock) ComputeGasLimit(tx coreData.TransactionWithFeeHandler) uint64
ComputeGasLimit -
func (*EconomicsHandlerMock) ComputeGasUsedAndFeeBasedOnRefundValue ¶
func (e *EconomicsHandlerMock) ComputeGasUsedAndFeeBasedOnRefundValue(tx coreData.TransactionWithFeeHandler, refundValue *big.Int) (uint64, *big.Int)
ComputeGasUsedAndFeeBasedOnRefundValue -
func (*EconomicsHandlerMock) ComputeTxFee ¶
func (e *EconomicsHandlerMock) ComputeTxFee(tx coreData.TransactionWithFeeHandler) *big.Int
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 ¶
HTTPClientStub -
func (*HTTPClientStub) IsInterfaceNil ¶
func (stub *HTTPClientStub) IsInterfaceNil() bool
IsInterfaceNil -
func (*HTTPClientStub) Post ¶
func (stub *HTTPClientStub) Post(route string, payload interface{}) error
Post -
Click to show internal directories.
Click to hide internal directories.