Versions in this module Expand all Collapse all v1 v1.27.20 May 25, 2026 Changes in this version + const MinTxFeeFloor + var ErrChainAcceptsNoUserTxs = errors.New("chain accepts no user-submitted txs") + var ErrInsufficientFee = errors.New("tx fee below policy minimum") + var ErrWrongFeeAsset = errors.New("tx pays fee in wrong asset") + var ErrZeroMinFee = errors.New("fee policy declares zero min tx fee on a user-facing chain") + func Validate(p Policy) error + type FlatPolicy struct + AssetID ids.ID + Fee uint64 + func (p FlatPolicy) FeeAssetID() ids.ID + func (p FlatPolicy) MinTxFee() uint64 + func (p FlatPolicy) ValidateFee(paid uint64, asset ids.ID) error + type NoUserTxPolicy struct + func (NoUserTxPolicy) FeeAssetID() ids.ID + func (NoUserTxPolicy) MinTxFee() uint64 + func (NoUserTxPolicy) ValidateFee(uint64, ids.ID) error + type Policy interface + FeeAssetID func() ids.ID + MinTxFee func() uint64 + ValidateFee func(paidNanoLux uint64, paidAsset ids.ID) error