Documentation ¶
Index ¶
- type EconomicsHandlerStub
- func (e *EconomicsHandlerStub) CheckValidityTxValues(tx process.TransactionWithFeeHandler) error
- func (e *EconomicsHandlerStub) ComputeFeeForProcessing(tx process.TransactionWithFeeHandler, gasToUse uint64) *big.Int
- func (e *EconomicsHandlerStub) ComputeGasLimit(tx process.TransactionWithFeeHandler) uint64
- func (e *EconomicsHandlerStub) ComputeGasUsedAndFeeBasedOnRefundValue(tx process.TransactionWithFeeHandler, refundValue *big.Int) (uint64, *big.Int)
- func (e *EconomicsHandlerStub) ComputeMoveBalanceFee(tx process.TransactionWithFeeHandler) *big.Int
- func (e *EconomicsHandlerStub) ComputeTxFee(tx process.TransactionWithFeeHandler) *big.Int
- func (e *EconomicsHandlerStub) ComputeTxFeeBasedOnGasUsed(tx process.TransactionWithFeeHandler, gasUsed uint64) *big.Int
- func (e *EconomicsHandlerStub) DeveloperPercentage() float64
- func (e *EconomicsHandlerStub) GasPerDataByte() uint64
- func (e *EconomicsHandlerStub) GasPriceForMove(tx process.TransactionWithFeeHandler) uint64
- func (e *EconomicsHandlerStub) GasPriceForProcessing(tx process.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(uint32) 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) SplitTxGasInCategories(tx process.TransactionWithFeeHandler) (uint64, uint64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EconomicsHandlerStub ¶
type EconomicsHandlerStub struct { MaxGasLimitPerBlockCalled func() uint64 ComputeGasLimitCalled func(tx process.TransactionWithFeeHandler) uint64 ComputeMoveBalanceFeeCalled func(tx process.TransactionWithFeeHandler) *big.Int ComputeTxFeeCalled func(tx process.TransactionWithFeeHandler) *big.Int CheckValidityTxValuesCalled func(tx process.TransactionWithFeeHandler) error DeveloperPercentageCalled func() float64 MinGasPriceCalled func() uint64 GasPriceModifierCalled func() float64 LeaderPercentageCalled func() float64 ProtocolSustainabilityPercentageCalled func() float64 ProtocolSustainabilityAddressCalled func() string MinInflationRateCalled func() float64 MaxInflationRateCalled func(year uint32) float64 GasPerDataByteCalled func() uint64 MinGasLimitCalled func() uint64 GenesisTotalSupplyCalled func() *big.Int ComputeFeeForProcessingCalled func(tx process.TransactionWithFeeHandler, gasToUse uint64) *big.Int RewardsTopUpGradientPointCalled func() *big.Int RewardsTopUpFactorCalled func() float64 SplitTxGasInCategoriesCalled func(tx process.TransactionWithFeeHandler) (uint64, uint64) GasPriceForProcessingCalled func(tx process.TransactionWithFeeHandler) uint64 GasPriceForMoveCalled func(tx process.TransactionWithFeeHandler) uint64 MinGasPriceProcessingCalled func() uint64 ComputeGasUsedAndFeeBasedOnRefundValueCalled func(tx process.TransactionWithFeeHandler, refundValue *big.Int) (uint64, *big.Int) ComputeTxFeeBasedOnGasUsedCalled func(tx process.TransactionWithFeeHandler, gasUsed uint64) *big.Int }
EconomicsHandlerStub -
func (*EconomicsHandlerStub) CheckValidityTxValues ¶
func (e *EconomicsHandlerStub) CheckValidityTxValues(tx process.TransactionWithFeeHandler) error
CheckValidityTxValues -
func (*EconomicsHandlerStub) ComputeFeeForProcessing ¶
func (e *EconomicsHandlerStub) ComputeFeeForProcessing(tx process.TransactionWithFeeHandler, gasToUse uint64) *big.Int
ComputeFeeForProcessing -
func (*EconomicsHandlerStub) ComputeGasLimit ¶
func (e *EconomicsHandlerStub) ComputeGasLimit(tx process.TransactionWithFeeHandler) uint64
ComputeGasLimit -
func (*EconomicsHandlerStub) ComputeGasUsedAndFeeBasedOnRefundValue ¶ added in v1.1.18
func (e *EconomicsHandlerStub) ComputeGasUsedAndFeeBasedOnRefundValue(tx process.TransactionWithFeeHandler, refundValue *big.Int) (uint64, *big.Int)
ComputeGasUsedAndFeeBasedOnRefundValue -
func (*EconomicsHandlerStub) ComputeMoveBalanceFee ¶
func (e *EconomicsHandlerStub) ComputeMoveBalanceFee(tx process.TransactionWithFeeHandler) *big.Int
ComputeMoveBalanceFee -
func (*EconomicsHandlerStub) ComputeTxFee ¶
func (e *EconomicsHandlerStub) ComputeTxFee(tx process.TransactionWithFeeHandler) *big.Int
ComputeTxFee -
func (*EconomicsHandlerStub) ComputeTxFeeBasedOnGasUsed ¶ added in v1.1.18
func (e *EconomicsHandlerStub) ComputeTxFeeBasedOnGasUsed(tx process.TransactionWithFeeHandler, gasUsed uint64) *big.Int
ComputeTxFeeBasedOnGasUsed -
func (*EconomicsHandlerStub) DeveloperPercentage ¶
func (e *EconomicsHandlerStub) DeveloperPercentage() float64
DeveloperPercentage -
func (*EconomicsHandlerStub) GasPerDataByte ¶
func (e *EconomicsHandlerStub) GasPerDataByte() uint64
GasPerDataByte -
func (*EconomicsHandlerStub) GasPriceForMove ¶
func (e *EconomicsHandlerStub) GasPriceForMove(tx process.TransactionWithFeeHandler) uint64
GasPriceForMove -
func (*EconomicsHandlerStub) GasPriceForProcessing ¶
func (e *EconomicsHandlerStub) GasPriceForProcessing(tx process.TransactionWithFeeHandler) uint64
GasPriceForProcessing -
func (*EconomicsHandlerStub) GasPriceModifier ¶
func (e *EconomicsHandlerStub) GasPriceModifier() float64
GasPriceModifier -
func (*EconomicsHandlerStub) GenesisTotalSupply ¶
func (e *EconomicsHandlerStub) GenesisTotalSupply() *big.Int
GenesisTotalSupply -
func (*EconomicsHandlerStub) IsInterfaceNil ¶
func (e *EconomicsHandlerStub) IsInterfaceNil() bool
IsInterfaceNil returns true if there is no value under the interface
func (*EconomicsHandlerStub) LeaderPercentage ¶
func (e *EconomicsHandlerStub) LeaderPercentage() float64
LeaderPercentage -
func (*EconomicsHandlerStub) MaxGasLimitPerBlock ¶
func (e *EconomicsHandlerStub) MaxGasLimitPerBlock(uint32) uint64
MaxGasLimitPerBlock -
func (*EconomicsHandlerStub) MaxInflationRate ¶
func (e *EconomicsHandlerStub) MaxInflationRate(year uint32) float64
MaxInflationRate -
func (*EconomicsHandlerStub) MinGasLimit ¶
func (e *EconomicsHandlerStub) MinGasLimit() uint64
MinGasLimit -
func (*EconomicsHandlerStub) MinGasPrice ¶
func (e *EconomicsHandlerStub) MinGasPrice() uint64
MinGasPrice -
func (*EconomicsHandlerStub) MinGasPriceForProcessing ¶
func (e *EconomicsHandlerStub) MinGasPriceForProcessing() uint64
MinGasPriceForProcessing -
func (*EconomicsHandlerStub) MinInflationRate ¶
func (e *EconomicsHandlerStub) MinInflationRate() float64
MinInflationRate -
func (*EconomicsHandlerStub) ProtocolSustainabilityAddress ¶
func (e *EconomicsHandlerStub) ProtocolSustainabilityAddress() string
ProtocolSustainabilityAddress -
func (*EconomicsHandlerStub) ProtocolSustainabilityPercentage ¶
func (e *EconomicsHandlerStub) ProtocolSustainabilityPercentage() float64
ProtocolSustainabilityPercentage -
func (*EconomicsHandlerStub) RewardsTopUpFactor ¶
func (e *EconomicsHandlerStub) RewardsTopUpFactor() float64
RewardsTopUpFactor -
func (*EconomicsHandlerStub) RewardsTopUpGradientPoint ¶
func (e *EconomicsHandlerStub) RewardsTopUpGradientPoint() *big.Int
RewardsTopUpGradientPoint -
func (*EconomicsHandlerStub) SplitTxGasInCategories ¶
func (e *EconomicsHandlerStub) SplitTxGasInCategories(tx process.TransactionWithFeeHandler) (uint64, uint64)
SplitTxGasInCategories -