types

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeeDetails

type FeeDetails struct {
	InclusionFee sc.Option[InclusionFee]
	Tip          primitives.Balance // not serializable
}

func DecodeFeeDetails

func DecodeFeeDetails(buffer *bytes.Buffer) (FeeDetails, error)

func (FeeDetails) Bytes

func (fd FeeDetails) Bytes() []byte

func (FeeDetails) Encode

func (fd FeeDetails) Encode(buffer *bytes.Buffer) error

func (FeeDetails) FinalFee

func (fd FeeDetails) FinalFee() primitives.Balance

type InclusionFee

type InclusionFee struct {
	BaseFee           primitives.Balance
	LenFee            primitives.Balance
	AdjustedWeightFee primitives.Balance
}

func DecodeInclusionFee

func DecodeInclusionFee(buffer *bytes.Buffer) (InclusionFee, error)

func NewInclusionFee

func NewInclusionFee(baseFee, lenFee, adjustedWeightFee primitives.Balance) InclusionFee

func (InclusionFee) Bytes

func (i InclusionFee) Bytes() []byte

func (InclusionFee) Encode

func (i InclusionFee) Encode(buffer *bytes.Buffer) error

func (InclusionFee) InclusionFee

func (i InclusionFee) InclusionFee() primitives.Balance

Jump to

Keyboard shortcuts

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