tracing

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: LGPL-3.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const BlockchainTracerKey = BlockchainTracerKeyType("evm_and_state_logger")

Variables

This section is empty.

Functions

func SetTracingHooks

func SetTracingHooks(ctx sdk.Context, hooks *Hooks) sdk.Context

Types

type BlockchainTracerKeyType

type BlockchainTracerKeyType string

type CosmosEndBlockEvent

type CosmosEndBlockEvent struct {
	LogsBloom []byte
}

type CosmosStartBlockEvent

type CosmosStartBlockEvent struct {
	CosmosHeader *types.Header
	BaseFee      *big.Int
	GasLimit     uint64
	Coinbase     common.Address
	Finalized    *ethtypes.Header
}

type Hooks

type Hooks struct {
	*tracing.Hooks

	// OnCosmosBlockStart is called when a new block is started.
	OnCosmosBlockStart OnCosmosBlockStart

	// OnCosmosBlockEnd is called when a block is finished.
	OnCosmosBlockEnd OnCosmosBlockEnd

	// OnCosmosTxStart is called when a new transaction is started.
	// The transaction hash calculated by the EVM is passed as an argument as it
	// is not the same as the one calculated by tx.Hash()
	OnCosmosTxStart OnCosmosTxStart
}

Hooks defines a Cosmos specific tracing.Hooks struct used to trace EVM blocks and transactions.

func GetTracingHooks

func GetTracingHooks(ctx sdk.Context) *Hooks

type OnCosmosBlockEnd

type OnCosmosBlockEnd func(CosmosEndBlockEvent, error)

type OnCosmosBlockStart

type OnCosmosBlockStart func(CosmosStartBlockEvent)

type OnCosmosTxStart

type OnCosmosTxStart func(evm *tracing.VMContext, tx *ethtypes.Transaction, txHash common.Hash, from common.Address)

Jump to

Keyboard shortcuts

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