Versions in this module Expand all Collapse all v0 v0.0.1 Nov 7, 2024 Changes in this version + type EconomicsHandlerMock struct + CheckValidityTxValuesCalled func(tx data.TransactionWithFeeHandler) error + ComputeFeeCalled func(tx data.TransactionWithFeeHandler) *big.Int + ComputeFeeForProcessingCalled func(tx data.TransactionWithFeeHandler, gasToUse uint64) *big.Int + ComputeGasLimitBasedOnBalanceCalled func(tx data.TransactionWithFeeHandler, balance *big.Int) (uint64, error) + ComputeGasLimitCalled func(tx data.TransactionWithFeeHandler) uint64 + ComputeGasLimitInEpochCalled func(tx data.TransactionWithFeeHandler, epoch uint32) uint64 + ComputeGasUsedAndFeeBasedOnRefundValueCalled func(tx data.TransactionWithFeeHandler, refundValue *big.Int) (uint64, *big.Int) + ComputeGasUsedAndFeeBasedOnRefundValueInEpochCalled func(tx data.TransactionWithFeeHandler, refundValue *big.Int, epoch uint32) (uint64, *big.Int) + ComputeMoveBalanceFeeCalled func(tx data.TransactionWithFeeHandler) *big.Int + ComputeTxFeeBasedOnGasUsedCalled func(tx data.TransactionWithFeeHandler, gasUsed uint64) *big.Int + ComputeTxFeeBasedOnGasUsedInEpochCalled func(tx data.TransactionWithFeeHandler, gasUsed uint64, epoch uint32) *big.Int + ComputeTxFeeCalled func(tx data.TransactionWithFeeHandler) *big.Int + ComputeTxFeeInEpochCalled func(tx data.TransactionWithFeeHandler, epoch uint32) *big.Int + DeveloperPercentageCalled func() float64 + GasPerDataByteCalled func() uint64 + GasPriceForMoveCalled func(tx data.TransactionWithFeeHandler) uint64 + GasPriceForProcessingCalled func(tx data.TransactionWithFeeHandler) uint64 + GasPriceModifierCalled func() float64 + LeaderPercentageCalled func() float64 + MaxGasLimitPerBlockCalled func(shardID uint32) uint64 + MaxGasLimitPerBlockForSafeCrossShardCalled func() uint64 + MaxGasLimitPerMiniBlockCalled func(shardID uint32) uint64 + MaxGasLimitPerMiniBlockForSafeCrossShardCalled func() uint64 + MaxGasLimitPerTxCalled func() uint64 + MaxInflationRateCalled func(year uint32) float64 + MinGasPriceCalled func() uint64 + MinGasPriceForProcessingCalled func() uint64 + MinInflationRateCalled func() float64 + ProtocolSustainabilityAddressCalled func() string + ProtocolSustainabilityPercentageCalled func() float64 + RewardsTopUpFactorCalled func() float64 + RewardsTopUpGradientPointCalled func() *big.Int + SetMaxGasLimitPerBlockCalled func(maxGasLimitPerBlock uint64) + SetMinGasLimitCalled func(minGasLimit uint64) + SetMinGasPriceCalled func(minGasPrice uint64) + SetStatusHandlerCalled func(statusHandler core.AppStatusHandler) error + SplitTxGasInCategoriesCalled func(tx data.TransactionWithFeeHandler) (uint64, uint64) + func (ehm *EconomicsHandlerMock) CheckValidityTxValues(tx data.TransactionWithFeeHandler) error + func (ehm *EconomicsHandlerMock) ComputeFee(tx data.TransactionWithFeeHandler) *big.Int + func (ehm *EconomicsHandlerMock) ComputeFeeForProcessing(tx data.TransactionWithFeeHandler, gasToUse uint64) *big.Int + func (ehm *EconomicsHandlerMock) ComputeGasLimit(tx data.TransactionWithFeeHandler) uint64 + func (ehm *EconomicsHandlerMock) ComputeGasLimitBasedOnBalance(tx data.TransactionWithFeeHandler, balance *big.Int) (uint64, error) + func (ehm *EconomicsHandlerMock) ComputeGasLimitInEpoch(tx data.TransactionWithFeeHandler, epoch uint32) uint64 + func (ehm *EconomicsHandlerMock) ComputeGasUsedAndFeeBasedOnRefundValue(tx data.TransactionWithFeeHandler, refundValue *big.Int) (uint64, *big.Int) + func (ehm *EconomicsHandlerMock) ComputeGasUsedAndFeeBasedOnRefundValueInEpoch(tx data.TransactionWithFeeHandler, refundValue *big.Int, epoch uint32) (uint64, *big.Int) + func (ehm *EconomicsHandlerMock) ComputeMoveBalanceFee(tx data.TransactionWithFeeHandler) *big.Int + func (ehm *EconomicsHandlerMock) ComputeTxFee(tx data.TransactionWithFeeHandler) *big.Int + func (ehm *EconomicsHandlerMock) ComputeTxFeeBasedOnGasUsed(tx data.TransactionWithFeeHandler, gasUsed uint64) *big.Int + func (ehm *EconomicsHandlerMock) ComputeTxFeeBasedOnGasUsedInEpoch(tx data.TransactionWithFeeHandler, gasUsed uint64, epoch uint32) *big.Int + func (ehm *EconomicsHandlerMock) ComputeTxFeeInEpoch(tx data.TransactionWithFeeHandler, epoch uint32) *big.Int + func (ehm *EconomicsHandlerMock) DeveloperPercentage() float64 + func (ehm *EconomicsHandlerMock) ExtraGasLimitGuardedTx() uint64 + func (ehm *EconomicsHandlerMock) GasPerDataByte() uint64 + func (ehm *EconomicsHandlerMock) GasPriceForMove(tx data.TransactionWithFeeHandler) uint64 + func (ehm *EconomicsHandlerMock) GasPriceForProcessing(tx data.TransactionWithFeeHandler) uint64 + func (ehm *EconomicsHandlerMock) GasPriceModifier() float64 + func (ehm *EconomicsHandlerMock) GenesisTotalSupply() *big.Int + func (ehm *EconomicsHandlerMock) IsInterfaceNil() bool + func (ehm *EconomicsHandlerMock) LeaderPercentage() float64 + func (ehm *EconomicsHandlerMock) MaxGasLimitPerBlock(shardID uint32) uint64 + func (ehm *EconomicsHandlerMock) MaxGasLimitPerBlockForSafeCrossShard() uint64 + func (ehm *EconomicsHandlerMock) MaxGasLimitPerMiniBlock(shardID uint32) uint64 + func (ehm *EconomicsHandlerMock) MaxGasLimitPerMiniBlockForSafeCrossShard() uint64 + func (ehm *EconomicsHandlerMock) MaxGasLimitPerTx() uint64 + func (ehm *EconomicsHandlerMock) MaxGasPriceSetGuardian() uint64 + func (ehm *EconomicsHandlerMock) MaxInflationRate(year uint32) float64 + func (ehm *EconomicsHandlerMock) MinGasLimit() uint64 + func (ehm *EconomicsHandlerMock) MinGasPrice() uint64 + func (ehm *EconomicsHandlerMock) MinGasPriceForProcessing() uint64 + func (ehm *EconomicsHandlerMock) MinInflationRate() float64 + func (ehm *EconomicsHandlerMock) ProtocolSustainabilityAddress() string + func (ehm *EconomicsHandlerMock) ProtocolSustainabilityPercentage() float64 + func (ehm *EconomicsHandlerMock) RewardsTopUpFactor() float64 + func (ehm *EconomicsHandlerMock) RewardsTopUpGradientPoint() *big.Int + func (ehm *EconomicsHandlerMock) SetMaxGasLimitPerBlock(maxGasLimitPerBlock uint64) + func (ehm *EconomicsHandlerMock) SetMinGasLimit(minGasLimit uint64) + func (ehm *EconomicsHandlerMock) SetMinGasPrice(minGasPrice uint64) + func (ehm *EconomicsHandlerMock) SetStatusHandler(statusHandler core.AppStatusHandler) error + func (ehm *EconomicsHandlerMock) SplitTxGasInCategories(tx data.TransactionWithFeeHandler) (uint64, uint64) + type EconomicsHandlerStub struct + CheckValidityTxValuesCalled func(tx data.TransactionWithFeeHandler) error + ComputeFeeForProcessingCalled func(tx data.TransactionWithFeeHandler, gasToUse uint64) *big.Int + ComputeGasLimitBasedOnBalanceCalled func(tx data.TransactionWithFeeHandler, balance *big.Int) (uint64, error) + ComputeGasLimitCalled func(tx data.TransactionWithFeeHandler) uint64 + ComputeGasLimitInEpochCalled func(tx data.TransactionWithFeeHandler, epoch uint32) uint64 + ComputeGasUsedAndFeeBasedOnRefundValueCalled func(tx data.TransactionWithFeeHandler, refundValue *big.Int) (uint64, *big.Int) + ComputeGasUsedAndFeeBasedOnRefundValueInEpochCalled func(tx data.TransactionWithFeeHandler, refundValue *big.Int, epoch uint32) (uint64, *big.Int) + ComputeMoveBalanceFeeCalled func(tx data.TransactionWithFeeHandler) *big.Int + ComputeTxFeeBasedOnGasUsedCalled func(tx data.TransactionWithFeeHandler, gasUsed uint64) *big.Int + ComputeTxFeeBasedOnGasUsedInEpochCalled func(tx data.TransactionWithFeeHandler, gasUsed uint64, epoch uint32) *big.Int + ComputeTxFeeCalled func(tx data.TransactionWithFeeHandler) *big.Int + ComputeTxFeeInEpochCalled func(tx data.TransactionWithFeeHandler, epoch uint32) *big.Int + DeveloperPercentageCalled func() float64 + ExtraGasLimitGuardedTxCalled func() uint64 + GasPerDataByteCalled func() uint64 + GasPriceForMoveCalled func(tx data.TransactionWithFeeHandler) uint64 + GasPriceForProcessingCalled func(tx data.TransactionWithFeeHandler) uint64 + GasPriceModifierCalled func() float64 + GenesisTotalSupplyCalled func() *big.Int + LeaderPercentageCalled func() float64 + MaxGasLimitPerBlockCalled func(shardID uint32) uint64 + MaxGasLimitPerBlockForSafeCrossShardCalled func() uint64 + MaxGasLimitPerMiniBlockCalled func() uint64 + MaxGasLimitPerMiniBlockForSafeCrossShardCalled func() uint64 + MaxGasLimitPerTxCalled func() uint64 + MaxGasPriceSetGuardianCalled func() uint64 + MaxInflationRateCalled func(year uint32) float64 + MinGasLimitCalled func() uint64 + MinGasPriceCalled func() uint64 + MinGasPriceProcessingCalled func() uint64 + MinInflationRateCalled func() float64 + ProtocolSustainabilityAddressCalled func() string + ProtocolSustainabilityPercentageCalled func() float64 + RewardsTopUpFactorCalled func() float64 + RewardsTopUpGradientPointCalled func() *big.Int + SetStatusHandlerCalled func(statusHandler core.AppStatusHandler) error + SplitTxGasInCategoriesCalled func(tx data.TransactionWithFeeHandler) (uint64, uint64) + func (e *EconomicsHandlerStub) CheckValidityTxValues(tx data.TransactionWithFeeHandler) error + func (e *EconomicsHandlerStub) ComputeFeeForProcessing(tx data.TransactionWithFeeHandler, gasToUse uint64) *big.Int + func (e *EconomicsHandlerStub) ComputeGasLimit(tx data.TransactionWithFeeHandler) uint64 + func (e *EconomicsHandlerStub) ComputeGasLimitBasedOnBalance(tx data.TransactionWithFeeHandler, balance *big.Int) (uint64, error) + func (e *EconomicsHandlerStub) ComputeGasLimitInEpoch(tx data.TransactionWithFeeHandler, epoch uint32) uint64 + func (e *EconomicsHandlerStub) ComputeGasUsedAndFeeBasedOnRefundValue(tx data.TransactionWithFeeHandler, refundValue *big.Int) (uint64, *big.Int) + func (e *EconomicsHandlerStub) ComputeGasUsedAndFeeBasedOnRefundValueInEpoch(tx data.TransactionWithFeeHandler, refundValue *big.Int, epoch uint32) (uint64, *big.Int) + func (e *EconomicsHandlerStub) ComputeMoveBalanceFee(tx data.TransactionWithFeeHandler) *big.Int + func (e *EconomicsHandlerStub) ComputeTxFee(tx data.TransactionWithFeeHandler) *big.Int + func (e *EconomicsHandlerStub) ComputeTxFeeBasedOnGasUsed(tx data.TransactionWithFeeHandler, gasUsed uint64) *big.Int + func (e *EconomicsHandlerStub) ComputeTxFeeBasedOnGasUsedInEpoch(tx data.TransactionWithFeeHandler, gasUsed uint64, epoch uint32) *big.Int + func (e *EconomicsHandlerStub) ComputeTxFeeInEpoch(tx data.TransactionWithFeeHandler, epoch uint32) *big.Int + func (e *EconomicsHandlerStub) DeveloperPercentage() float64 + func (e *EconomicsHandlerStub) ExtraGasLimitGuardedTx() uint64 + func (e *EconomicsHandlerStub) GasPerDataByte() uint64 + func (e *EconomicsHandlerStub) GasPriceForMove(tx data.TransactionWithFeeHandler) uint64 + func (e *EconomicsHandlerStub) GasPriceForProcessing(tx data.TransactionWithFeeHandler) uint64 + func (e *EconomicsHandlerStub) GasPriceModifier() float64 + func (e *EconomicsHandlerStub) GenesisTotalSupply() *big.Int + func (e *EconomicsHandlerStub) IsInterfaceNil() bool + func (e *EconomicsHandlerStub) LeaderPercentage() float64 + func (e *EconomicsHandlerStub) MaxGasLimitPerBlock(shardID uint32) uint64 + func (e *EconomicsHandlerStub) MaxGasLimitPerBlockForSafeCrossShard() uint64 + func (e *EconomicsHandlerStub) MaxGasLimitPerMiniBlock(uint32) uint64 + func (e *EconomicsHandlerStub) MaxGasLimitPerMiniBlockForSafeCrossShard() uint64 + func (e *EconomicsHandlerStub) MaxGasLimitPerTx() uint64 + func (e *EconomicsHandlerStub) MaxGasPriceSetGuardian() uint64 + func (e *EconomicsHandlerStub) MaxInflationRate(year uint32) float64 + func (e *EconomicsHandlerStub) MinGasLimit() uint64 + func (e *EconomicsHandlerStub) MinGasPrice() uint64 + func (e *EconomicsHandlerStub) MinGasPriceForProcessing() uint64 + func (e *EconomicsHandlerStub) MinInflationRate() float64 + func (e *EconomicsHandlerStub) ProtocolSustainabilityAddress() string + func (e *EconomicsHandlerStub) ProtocolSustainabilityPercentage() float64 + func (e *EconomicsHandlerStub) RewardsTopUpFactor() float64 + func (e *EconomicsHandlerStub) RewardsTopUpGradientPoint() *big.Int + func (e *EconomicsHandlerStub) SetStatusHandler(statusHandler core.AppStatusHandler) error + func (e *EconomicsHandlerStub) SplitTxGasInCategories(tx data.TransactionWithFeeHandler) (uint64, uint64)