Lux SDKGoPackages

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.FeeConfig

GetFeeConfigForThroughput returns a fee configuration for the specified throughput level

Types

FeeConfigBuilder

FeeConfigBuilder helps construct custom fee configurations

func NewFeeConfigBuilder() *FeeConfigBuilder
func (b *FeeConfigBuilder) Build() commontype.FeeConfig
func (b *FeeConfigBuilder) WithBaseFeeChangeDenominator(denominator *big.Int) *FeeConfigBuilder
func (b *FeeConfigBuilder) WithBlockGasCostStep(blockGasCostStep *big.Int) *FeeConfigBuilder
func (b *FeeConfigBuilder) WithGasLimit(gasLimit *big.Int) *FeeConfigBuilder
func (b *FeeConfigBuilder) WithMaxBlockGasCost(maxBlockGasCost *big.Int) *FeeConfigBuilder
func (b *FeeConfigBuilder) WithMinBaseFee(minBaseFee *big.Int) *FeeConfigBuilder
func (b *FeeConfigBuilder) WithMinBlockGasCost(minBlockGasCost *big.Int) *FeeConfigBuilder
func (b *FeeConfigBuilder) WithTargetBlockRate(targetBlockRate uint64) *FeeConfigBuilder
func (b *FeeConfigBuilder) WithTargetGas(targetGas *big.Int) *FeeConfigBuilder