transaction_payment

package
v0.0.3-rc-1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventTransactionFeePaid sc.U8 = iota
)

TransactionPayment module events.

Variables

This section is empty.

Functions

func DecodeEvent

func DecodeEvent(moduleIndex sc.U8, buffer *bytes.Buffer) (types.Event, error)

func NewEventTransactionFeePaid

func NewEventTransactionFeePaid(moduleIndex sc.U8, account types.AccountId, actualFee types.Balance, tip types.Balance) types.Event

Types

type Config

type Config struct {
	Storage                  io.Storage
	OperationalFeeMultiplier sc.U8
	WeightToFee              types.WeightToFee
	LengthToFee              types.WeightToFee
	BlockWeights             types.BlockWeights
}

func NewConfig

func NewConfig(storage io.Storage, operationalFeeMultiplier sc.U8, weightToFee, lengthToFee types.WeightToFee, blockWeights types.BlockWeights) *Config

type GenesisConfig

type GenesisConfig struct {
	Multiplier sc.U128
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL