fees
Package fees provides fee calculation and configuration utilities.
import "github.com/luxfi/sdk/fees"Package fees provides fee calculation and configuration utilities.
Functions
GetFeeConfigForThroughput
func GetFeeConfigForThroughput(throughput string) commontype.FeeConfigGetFeeConfigForThroughput returns a fee configuration for the specified throughput level
Types
FeeConfigBuilder
FeeConfigBuilder helps construct custom fee configurations
func NewFeeConfigBuilder() *FeeConfigBuilderfunc (b *FeeConfigBuilder) Build() commontype.FeeConfigfunc (b *FeeConfigBuilder) WithBaseFeeChangeDenominator(denominator *big.Int) *FeeConfigBuilderfunc (b *FeeConfigBuilder) WithBlockGasCostStep(blockGasCostStep *big.Int) *FeeConfigBuilderfunc (b *FeeConfigBuilder) WithGasLimit(gasLimit *big.Int) *FeeConfigBuilderfunc (b *FeeConfigBuilder) WithMaxBlockGasCost(maxBlockGasCost *big.Int) *FeeConfigBuilderfunc (b *FeeConfigBuilder) WithMinBaseFee(minBaseFee *big.Int) *FeeConfigBuilderfunc (b *FeeConfigBuilder) WithMinBlockGasCost(minBlockGasCost *big.Int) *FeeConfigBuilderfunc (b *FeeConfigBuilder) WithTargetBlockRate(targetBlockRate uint64) *FeeConfigBuilderfunc (b *FeeConfigBuilder) WithTargetGas(targetGas *big.Int) *FeeConfigBuilder