state

package
v0.4.47 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2025 License: Apache-2.0 Imports: 48 Imported by: 0

Documentation

Overview

Package state implements the machinery for tracking on-chain state.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChunksToV8 added in v0.4.46

func ChunksToV8(chunks []*flowChunk) []*flow.Chunk

Types

type ChunkBodyV1 added in v0.4.46

type ChunkBodyV1 struct {
	CollectionIndex      uint
	StartState           flow.StateCommitment
	EventCollection      flow.Identifier
	BlockID              flow.Identifier
	TotalComputationUsed uint64
	NumberOfTransactions uint64
}

type ChunkBodyV7 added in v0.4.46

type ChunkBodyV7 struct {
	CollectionIndex      uint
	StartState           flow.StateCommitment
	EventCollection      flow.Identifier
	ServiceEventCount    *uint16
	BlockID              flow.Identifier
	TotalComputationUsed uint64
	NumberOfTransactions uint64
}

type ChunkV1 added in v0.4.46

type ChunkV1 struct {
	ChunkBodyV1 ChunkBodyV1
	Index       uint64
	EndState    flow.StateCommitment
}

func ChunksToV1 added in v0.4.46

func ChunksToV1(chunks []*flowChunk) []*ChunkV1

type ChunkV7 added in v0.4.46

type ChunkV7 struct {
	ChunkBodyV7 ChunkBodyV7
	Index       uint64
	EndState    flow.StateCommitment
}

func ChunksToV7 added in v0.4.46

func ChunksToV7(chunks []*flowChunk) []*ChunkV7

type Indexer

type Indexer struct {
	Chain *config.Chain
	Store *indexdb.Store
	// contains filtered or unexported fields
}

Indexer indexes block data using the Flow Access API and Consensus Follower.

func (*Indexer) Run

func (i *Indexer) Run(ctx context.Context)

Run kicks off the entire state tracking machinery.

func (*Indexer) Synced

func (i *Indexer) Synced() bool

Synced returns whether the indexer is synced with the tip of the live spork.

Jump to

Keyboard shortcuts

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