Documentation
¶
Index ¶
- Variables
- func FetchBlockHeader(blockID flow.Identifier, flowClient *client.Client) (header *flow.Header)
- func FetchBlockTransactions(blockID flow.Identifier, flowClient *client.Client) (blockTransactions []*sdk.Transaction, systemTxID sdk.Identifier)
- func NewBlockSnapshot(remoteClient debug.RemoteClient, blockHeader *flow.Header) *debug.CachingStorageSnapshot
- func RunBlock(blockSnapshot debug.UpdatableStorageSnapshot, blockHeader *flow.Header, ...) (results []debug.Result)
- func RunSingleTransaction(remoteClient debug.RemoteClient, txID flow.Identifier, ...) debug.Result
- func RunTransaction(tx *sdk.Transaction, snapshot debug.StorageSnapshot, header *flow.Header, ...) debug.Result
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 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.
Click to show internal directories.
Click to hide internal directories.