debug_tx

package
v0.44.0-experimental-c... Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "debug-tx",
	Short: "debug a transaction",
	Run:   run,
}

Functions

func FetchBlockHeader

func FetchBlockHeader(
	blockID flow.Identifier,
	flowClient *client.Client,
) (header *flow.Header)

func FetchBlockTransactions

func FetchBlockTransactions(
	blockID flow.Identifier,
	flowClient *client.Client,
) (
	blockTransactions []*sdk.Transaction,
	systemTxID sdk.Identifier,
)

func NewBlockSnapshot

func NewBlockSnapshot(
	remoteClient debug.RemoteClient,
	blockHeader *flow.Header,
) *debug.CachingStorageSnapshot

func RunBlock

func RunBlock(
	blockSnapshot debug.UpdatableStorageSnapshot,
	blockHeader *flow.Header,
	blockTransactions []*sdk.Transaction,
	debuggedTxID flow.Identifier,
	systemTxID sdk.Identifier,
	chain flow.Chain,
	useVM bool,
	wrapTxSnapshot func(blockTxID flow.Identifier, snapshot debug.UpdatableStorageSnapshot) debug.UpdatableStorageSnapshot,
	newSpanExporter func(blockTxID flow.Identifier) otelTrace.SpanExporter,
	computeLimit uint64,
) (
	results []debug.Result,
)

func RunSingleTransaction

func RunSingleTransaction(
	remoteClient debug.RemoteClient,
	txID flow.Identifier,
	flowClient *client.Client,
	chain flow.Chain,
	useVM bool,
	spanExporter otelTrace.SpanExporter,
	computeLimit uint64,
) debug.Result

func RunTransaction

func RunTransaction(
	tx *sdk.Transaction,
	snapshot debug.StorageSnapshot,
	header *flow.Header,
	chain flow.Chain,
	useVM bool,
	spanExporter otelTrace.SpanExporter,
	computeLimit uint64,
) debug.Result

Types

This section is empty.

Jump to

Keyboard shortcuts

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