Skip to content

Commit

Permalink
Add ethereum traced call structures
Browse files Browse the repository at this point in the history
  • Loading branch information
dkeysil committed Jun 21, 2024
1 parent d44d6ee commit 9132066
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions domain/ethereum.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,3 +451,21 @@ type ClientSubscription interface {
Err() <-chan error
Unsubscribe()
}

// debug_traceCall response structure with such params:
// { "tracer": "callTracer", "tracerConfig": { "withLog": true } }
type TracedCall struct {
From common.Address `json:"from"`
To common.Address `json:"to"`
CallType string `json:"callType"`
GasUsed *hexutil.Big `json:"gasUsed"`
Calls []TracedCall `json:"calls"`
Logs []TracedLog `json:"logs"`
}

type TracedLog struct {
Index int `json:"index"`
Address common.Address `json:"address"`
Topics []string `json:"topics"`
Data *hexutil.Bytes `json:"data"`
}

0 comments on commit 9132066

Please sign in to comment.