result

package
v0.33.35-find-trie-root Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: AGPL-3.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 AttestedCollection added in v0.31.0

type AttestedCollection interface {
	ExecutedCollection

	// StartStateCommitment returns a commitment to the state before collection execution
	StartStateCommitment() flow.StateCommitment

	// EndStateCommitment returns a commitment to the state after collection execution
	EndStateCommitment() flow.StateCommitment

	// StateProof returns state proofs that could be used to build a partial trie
	StateProof() flow.StorageProof

	// EventCommitment returns commitment over eventList
	EventListCommitment() flow.Identifier
}

AttestedCollection holds results of a collection attestation

type AttestedCollectionConsumer added in v0.31.0

type AttestedCollectionConsumer interface {
	module.ReadyDoneAware
	OnAttestedCollection(ac AttestedCollection) error
}

AttestedCollectionConsumer consumes AttestedCollection

type ExecutableCollection added in v0.31.0

type ExecutableCollection interface {
	// BlockHeader returns the block header in which collection was included
	BlockHeader() *flow.Header

	// Collection returns the content of the collection
	Collection() *flow.Collection

	// CollectionIndex returns the index of collection in the block
	CollectionIndex() int

	// IsSystemCollection returns true if the collection is the last collection of the block
	IsSystemCollection() bool
}

type ExecutedBlock added in v0.31.0

type ExecutedBlock interface {
	// BlockHeader returns the block header in which collection was included
	BlockHeader() *flow.Header

	// Receipt returns the execution receipt
	Receipt() *flow.ExecutionReceipt

	// AttestedCollections returns attested collections
	//
	// TODO(ramtin): this could be reduced, currently we need this
	// to store chunk data packs, trie updates package used by access nodes,
	AttestedCollections() []AttestedCollection
}

type ExecutedBlockConsumer added in v0.31.0

type ExecutedBlockConsumer interface {
	module.ReadyDoneAware
	OnExecutedBlock(eb ExecutedBlock) error
}

ExecutedBlockConsumer consumes ExecutedBlock

type ExecutedCollection

type ExecutedCollection interface {

	// Events returns a list of all the events emitted during collection execution
	Events() flow.EventsList

	// ServiceEventList returns a list of only service events emitted during this collection
	ServiceEventList() flow.EventsList

	// ConvertedServiceEvents returns a list of converted service events
	ConvertedServiceEvents() flow.ServiceEventList

	// TransactionResults returns a list of transaction results
	TransactionResults() flow.TransactionResults

	// ExecutionSnapshot returns the execution snapshot
	ExecutionSnapshot() *snapshot.ExecutionSnapshot
}

ExecutedCollection holds results of a collection execution

type ExecutedCollectionConsumer

type ExecutedCollectionConsumer interface {
	module.ReadyDoneAware
	OnExecutedCollection(res ExecutedCollection) error
}

ExecutedCollectionConsumer consumes ExecutedCollections

Jump to

Keyboard shortcuts

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