examples

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEq

func AssertEq[T comparable](v1 T, v2 T, message string)

v1 is Actual value, v2 is Expected value

func AssertTrue

func AssertTrue(v bool, message string)

func PanicOnError

func PanicOnError(err error)

func Run

func Run()

func RunAccount

func RunAccount()

func RunAccountBalance

func RunAccountBalance()

func RunAccountCreation

func RunAccountCreation()

func RunAccountNonce

func RunAccountNonce()

func RunBatch

func RunBatch()

func RunBlock

func RunBlock()

func RunBlockDataSubmissionAll

func RunBlockDataSubmissionAll()

func RunBlockDataSubmissionByAppId

func RunBlockDataSubmissionByAppId()

func RunBlockDataSubmissionByHash

func RunBlockDataSubmissionByHash()

func RunBlockDataSubmissionByIndex

func RunBlockDataSubmissionByIndex()

func RunBlockDataSubmissionBySigner

func RunBlockDataSubmissionBySigner()

func RunBlockEvents

func RunBlockEvents()

func RunBlockTransactionAll

func RunBlockTransactionAll()

func RunBlockTransactionByAppId

func RunBlockTransactionByAppId()

func RunBlockTransactionByHash

func RunBlockTransactionByHash()

func RunBlockTransactionByIndex

func RunBlockTransactionByIndex()

func RunBlockTransactionBySigner

func RunBlockTransactionBySigner()

func RunDataSubmission

func RunDataSubmission()

func RunIndexer added in v0.2.6

func RunIndexer()

func RunProxy

func RunProxy()

func RunProxyFailure

func RunProxyFailure()

func RunProxyNormal

func RunProxyNormal()

func RunProxyPure

func RunProxyPure()

func RunRpc

func RunRpc()

func RunStorage

func RunStorage()

func RunTransaction

func RunTransaction()

func RunTransactionCustom

func RunTransactionCustom()

func RunTransactionExecute

func RunTransactionExecute()

func RunTransactionExecuteAndWatchFinalization

func RunTransactionExecuteAndWatchFinalization()

func RunTransactionExecuteAndWatchInclusion

func RunTransactionExecuteAndWatchInclusion()

func RunTransactionOptions

func RunTransactionOptions()

func RunTransactionOptionsAppId

func RunTransactionOptionsAppId()

func RunTransactionOptionsMortality

func RunTransactionOptionsMortality()

func RunTransactionOptionsNonce

func RunTransactionOptionsNonce()

func RunTransactionOptionsTip

func RunTransactionOptionsTip()

func RunTransactionPayment

func RunTransactionPayment()

func RunTransactionState added in v0.2.4

func RunTransactionState()

func RunValidator

func RunValidator()

func RunVector added in v0.2.6

func RunVector()

Types

type BlockSubscription added in v0.2.6

type BlockSubscription struct {
	Height uint32

	Shutdown bool
	// contains filtered or unexported fields
}

func (*BlockSubscription) Fetch added in v0.2.6

func (this *BlockSubscription) Fetch() IndexedBlock

type ComplexEnum

type ComplexEnum struct {
	VariantIndex uint8
	Day          prim.Option[uint16]
	Month        prim.Option[uint8]
	Year         prim.Option[uint32]
}

ANCHOR: complexenum

func (*ComplexEnum) Decode

func (this *ComplexEnum) Decode(decoder *prim.Decoder) error

func (*ComplexEnum) EncodeTo

func (this *ComplexEnum) EncodeTo(dest *string)

func (ComplexEnum) ToString

func (this ComplexEnum) ToString() string

type CustomTransaction

type CustomTransaction struct {
	Value []byte
}

func (CustomTransaction) CallIndex

func (this CustomTransaction) CallIndex() uint8

func (CustomTransaction) CallName

func (this CustomTransaction) CallName() string

func (CustomTransaction) PalletIndex

func (this CustomTransaction) PalletIndex() uint8

func (CustomTransaction) PalletName

func (this CustomTransaction) PalletName() string

type IndexedBlock added in v0.2.6

type IndexedBlock struct {
	// contains filtered or unexported fields
}

type Indexer added in v0.2.6

type Indexer struct {
	// contains filtered or unexported fields
}

func (*Indexer) Callback added in v0.2.6

func (this *Indexer) Callback(cb func(IndexedBlock)) *BlockSubscription

func (*Indexer) GetBlock added in v0.2.6

func (this *Indexer) GetBlock(blockNumber uint32) IndexedBlock

func (*Indexer) Init added in v0.2.6

func (this *Indexer) Init()

func (*Indexer) Run added in v0.2.6

func (this *Indexer) Run()

func (*Indexer) Shutdown added in v0.2.6

func (this *Indexer) Shutdown()

func (*Indexer) Subscribe added in v0.2.6

func (this *Indexer) Subscribe() BlockSubscription

type SimpleEnum

type SimpleEnum struct {
	VariantIndex uint8
}

ANCHOR: simpleenum

func (SimpleEnum) ToString

func (this SimpleEnum) ToString() string

Jump to

Keyboard shortcuts

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