header

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataLookup

type DataLookup struct {
	Size  avail.UCompact        `json:"size"`
	Index []DataLookupIndexItem `json:"index"`
}

type DataLookupIndexItem

type DataLookupIndexItem struct {
	AppId avail.UCompact `json:"appId"`
	Start avail.UCompact `json:"start"`
}
type Header struct {
	ParentHash     types.Hash          `json:"parentHash"`
	Number         types.BlockNumber   `json:"number"`
	StateRoot      types.Hash          `json:"stateRoot"`
	ExtrinsicsRoot types.Hash          `json:"extrinsicsRoot"`
	Digest         types.Digest        `json:"digest"`
	Extension      HeaderExtensionEnum `json:"extension"`
}

type HeaderExtensionEnum

type HeaderExtensionEnum struct {
	V3 V3HeaderExtension `json:"V3"`
}

func (*HeaderExtensionEnum) Decode

func (m *HeaderExtensionEnum) Decode(decoder scale.Decoder) error

func (HeaderExtensionEnum) Encode

func (m HeaderExtensionEnum) Encode(encoder scale.Encoder) error

type KateCommitment

type KateCommitment struct {
	Rows       avail.UCompact `json:"rows"`
	Cols       avail.UCompact `json:"cols"`
	Commitment []types.U8     `json:"commitment"`
	DataRoot   types.Hash     `json:"dataRoot"`
}

type V3HeaderExtension

type V3HeaderExtension struct {
	AppLookup  DataLookup     `json:"appLookup"`
	Commitment KateCommitment `json:"commitment"`
}

Jump to

Keyboard shortcuts

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