Documentation
¶
Index ¶
- Constants
- func FirehoseDebug(msg string, args ...interface{})
- func NewCosmosFirehoseTracer(backwardCompatibility bool) (*cosmostracing.Hooks, error)
- func NewCosmosTracingHooksFromFirehose(hooks *tracing.Hooks, firehose *Firehose) *cosmostracing.Hooks
- func NewTracingHooksFromFirehose(tracer *Firehose) *tracing.Hooks
- type CallStack
- type DeferredCallState
- type FinalityStatus
- type Firehose
- func (f *Firehose) InternalTestingBuffer() *bytes.Buffer
- func (f *Firehose) OnBalanceChange(a common.Address, prev, new *big.Int, reason tracing.BalanceChangeReason)
- func (f *Firehose) OnBlockEnd(err error)
- func (f *Firehose) OnBlockStart(event tracing.BlockEvent)
- func (f *Firehose) OnBlockchainInit(chainConfig *params.ChainConfig)
- func (f *Firehose) OnCallEnter(depth int, typ byte, from common.Address, to common.Address, input []byte, ...)
- func (f *Firehose) OnCallExit(depth int, output []byte, gasUsed uint64, err error, reverted bool)
- func (f *Firehose) OnCodeChange(a common.Address, prevCodeHash common.Hash, prev []byte, codeHash common.Hash, ...)
- func (f *Firehose) OnCosmosBlockEnd(event cosmostracing.CosmosEndBlockEvent, err error)
- func (f *Firehose) OnCosmosBlockStart(event cosmostracing.CosmosStartBlockEvent)
- func (f *Firehose) OnCosmosTxStart(evm *tracing.VMContext, tx *types.Transaction, hash common.Hash, ...)
- func (f *Firehose) OnGasChange(old, new uint64, reason tracing.GasChangeReason)
- func (f *Firehose) OnGenesisBlock(b *types.Block, alloc types.GenesisAlloc)
- func (f *Firehose) OnLog(l *types.Log)
- func (f *Firehose) OnNonceChange(a common.Address, prev, new uint64)
- func (f *Firehose) OnOpcode(pc uint64, op byte, gas, cost uint64, scope tracing.OpContext, rData []byte, ...)
- func (f *Firehose) OnOpcodeFault(pc uint64, op byte, gas, cost uint64, scope tracing.OpContext, depth int, ...)
- func (f *Firehose) OnSkippedBlock(event tracing.BlockEvent)
- func (f *Firehose) OnStorageChange(a common.Address, k, prev, new common.Hash)
- func (f *Firehose) OnSystemCallEnd()
- func (f *Firehose) OnSystemCallStart()
- func (f *Firehose) OnTxEnd(receipt *types.Receipt, err error)
- func (f *Firehose) OnTxStart(evm *tracing.VMContext, tx *types.Transaction, from common.Address)
- type FirehoseConfig
- type Memory
- type Ordinal
Constants ¶
const FirehoseProtocolVersion = "3.0"
Variables ¶
This section is empty.
Functions ¶
func FirehoseDebug ¶
func FirehoseDebug(msg string, args ...interface{})
func NewCosmosFirehoseTracer ¶
func NewCosmosFirehoseTracer(backwardCompatibility bool) (*cosmostracing.Hooks, error)
func NewCosmosTracingHooksFromFirehose ¶
func NewCosmosTracingHooksFromFirehose(hooks *tracing.Hooks, firehose *Firehose) *cosmostracing.Hooks
Types ¶
type CallStack ¶
type CallStack struct {
// contains filtered or unexported fields
}
func NewCallStack ¶
func NewCallStack() *CallStack
func (*CallStack) ActiveIndex ¶
func (*CallStack) HasActiveCall ¶
func (*CallStack) Peek ¶
Peek returns the top of the stack without removing it, it's the activate call.
type DeferredCallState ¶
type DeferredCallState struct {
// contains filtered or unexported fields
}
DeferredCallState is a helper struct that can be used to accumulate call's state that is recorded before the Call has been started. This happens on the "starting" portion of the call/created.
func NewDeferredCallState ¶
func NewDeferredCallState() *DeferredCallState
func (*DeferredCallState) IsEmpty ¶
func (d *DeferredCallState) IsEmpty() bool
func (*DeferredCallState) MaybePopulateCallAndReset ¶
func (d *DeferredCallState) MaybePopulateCallAndReset(source string, call *pbeth.Call) error
func (*DeferredCallState) Reset ¶
func (d *DeferredCallState) Reset()
type FinalityStatus ¶
func (*FinalityStatus) IsEmpty ¶
func (s *FinalityStatus) IsEmpty() bool
func (*FinalityStatus) Reset ¶
func (s *FinalityStatus) Reset()
type Firehose ¶
type Firehose struct {
// contains filtered or unexported fields
}
func NewFirehoseFromRawJSON ¶
func NewFirehoseFromRawJSON(cfg json.RawMessage) (*Firehose, error)
func (*Firehose) InternalTestingBuffer ¶
InternalTestingBuffer TestingBuffer is an internal method only used for testing purposes that should never be used in production code.
There is no public api guaranteed for this method.
func (*Firehose) OnBalanceChange ¶
func (*Firehose) OnBlockEnd ¶
func (*Firehose) OnBlockStart ¶
func (f *Firehose) OnBlockStart(event tracing.BlockEvent)
func (*Firehose) OnBlockchainInit ¶
func (f *Firehose) OnBlockchainInit(chainConfig *params.ChainConfig)
func (*Firehose) OnCallEnter ¶
func (f *Firehose) OnCallEnter(depth int, typ byte, from common.Address, to common.Address, input []byte, gas uint64, value *big.Int)
OnCallEnter implements the EVMLogger interface to initialize the tracing operation.
func (*Firehose) OnCallExit ¶
OnCallExit is called after the call finishes to finalize the tracing.
func (*Firehose) OnCodeChange ¶
func (*Firehose) OnCosmosBlockEnd ¶
func (f *Firehose) OnCosmosBlockEnd(event cosmostracing.CosmosEndBlockEvent, err error)
func (*Firehose) OnCosmosBlockStart ¶
func (f *Firehose) OnCosmosBlockStart(event cosmostracing.CosmosStartBlockEvent)
func (*Firehose) OnCosmosTxStart ¶
func (*Firehose) OnGasChange ¶
func (f *Firehose) OnGasChange(old, new uint64, reason tracing.GasChangeReason)
func (*Firehose) OnGenesisBlock ¶
func (f *Firehose) OnGenesisBlock(b *types.Block, alloc types.GenesisAlloc)
func (*Firehose) OnNonceChange ¶
func (*Firehose) OnOpcode ¶
func (f *Firehose) OnOpcode(pc uint64, op byte, gas, cost uint64, scope tracing.OpContext, rData []byte, depth int, err error)
OnOpcode implements the EVMLogger interface to trace a single step of VM execution.
func (*Firehose) OnOpcodeFault ¶
func (f *Firehose) OnOpcodeFault(pc uint64, op byte, gas, cost uint64, scope tracing.OpContext, depth int, err error)
OnOpcodeFault implements the EVMLogger interface to trace an execution fault.
func (*Firehose) OnSkippedBlock ¶
func (f *Firehose) OnSkippedBlock(event tracing.BlockEvent)
func (*Firehose) OnStorageChange ¶
func (*Firehose) OnSystemCallEnd ¶
func (f *Firehose) OnSystemCallEnd()
func (*Firehose) OnSystemCallStart ¶
func (f *Firehose) OnSystemCallStart()
type FirehoseConfig ¶
type FirehoseConfig struct { ApplyBackwardCompatibility *bool `json:"applyBackwardCompatibility"` // contains filtered or unexported fields }
func (*FirehoseConfig) LogKeyValues ¶
func (c *FirehoseConfig) LogKeyValues() []any
LogKeValues returns a list of key-values to be logged when the config is printed.