transaction_payment

package
v0.0.1-rc-1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventTransactionFeePaid sc.U8 = iota
)

TransactionPayment module events.

Variables

View Source
var DefaultMultiplierValue = sc.NewU128FromUint64(1)
View Source
var DefaultTip = sc.NewU128FromUint64(0)

Functions

func DecodeEvent

func DecodeEvent(buffer *bytes.Buffer) types.Event

func NewEventTransactionFeePaid

func NewEventTransactionFeePaid(account types.PublicKey, actualFee types.Balance, tip types.Balance) types.Event

func QueryCallFeeDetails

func QueryCallFeeDetails(dataPtr int32, dataLen int32) int64

QueryCallFeeDetails queries the detailed fee of a dispatch call. It takes two arguments: - dataPtr: Pointer to the data in the Wasm memory. - dataLen: Length of the data. which represent the SCALE-encoded dispatch call and its length. Returns a pointer-size of the SCALE-encoded detailed fee. [Specification](https://spec.polkadot.network/chap-runtime-api#sect-rte-transactionpaymentcallapi-query-call-fee-details)

func QueryCallInfo

func QueryCallInfo(dataPtr int32, dataLen int32) int64

QueryCallInfo queries the data of a dispatch call. It takes two arguments: - dataPtr: Pointer to the data in the Wasm memory. - dataLen: Length of the data. which represent the SCALE-encoded dispatch call and its length. Returns a pointer-size of the SCALE-encoded weight, dispatch class and partial fee. [Specification](https://spec.polkadot.network/chap-runtime-api#sect-rte-transactionpaymentcallapi-query-call-info)

func QueryFeeDetails

func QueryFeeDetails(dataPtr int32, dataLen int32) int64

QueryFeeDetails queries the detailed fee of an extrinsic. It takes two arguments: - dataPtr: Pointer to the data in the Wasm memory. - dataLen: Length of the data. which represent the SCALE-encoded extrinsic and its length. Returns a pointer-size of the SCALE-encoded detailed fee. [Specification](https://spec.polkadot.network/chap-runtime-api#sect-rte-transactionpaymentapi-query-fee-details)

func QueryInfo

func QueryInfo(dataPtr int32, dataLen int32) int64

QueryInfo queries the data of an extrinsic. It takes two arguments: - dataPtr: Pointer to the data in the Wasm memory. - dataLen: Length of the data. which represent the SCALE-encoded extrinsic and its length. Returns a pointer-size of the SCALE-encoded weight, dispatch class and partial fee. [Specification](https://spec.polkadot.network/chap-runtime-api#sect-rte-transactionpaymentapi-query-info)

Types

type ChargeTransactionPayment

type ChargeTransactionPayment primitives.Balance

func (ChargeTransactionPayment) AdditionalSigned

func (ctp ChargeTransactionPayment) AdditionalSigned() (ok sc.Empty, err primitives.TransactionValidityError)

func (ChargeTransactionPayment) PreDispatch

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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