Documentation ¶
Index ¶
Constants ¶
View Source
const (
EventTransactionFeePaid sc.U8 = iota
)
TransactionPayment module events.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Storage io.Storage OperationalFeeMultiplier sc.U8 WeightToFee types.WeightToFee LengthToFee types.WeightToFee BlockWeights types.BlockWeights }
type GenesisConfig ¶
func (*GenesisConfig) UnmarshalJSON ¶
func (gc *GenesisConfig) UnmarshalJSON(data []byte) error
type Module ¶
type Module interface { primitives.Module ComputeFee(len sc.U32, info primitives.DispatchInfo, tip primitives.Balance) (primitives.Balance, error) ComputeFeeDetails(len sc.U32, info primitives.DispatchInfo, tip primitives.Balance) (types.FeeDetails, error) ComputeActualFee(len sc.U32, info primitives.DispatchInfo, postInfo primitives.PostDispatchInfo, tip primitives.Balance) (primitives.Balance, error) OperationalFeeMultiplier() sc.U8 }
func New ¶
func New(index sc.U8, config *Config, mdGenerator *primitives.MetadataTypeGenerator) Module
Source Files ¶
Click to show internal directories.
Click to hide internal directories.