forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api_simulation): use call tracer instead of the custom tracer
- Loading branch information
1 parent
916c464
commit 75d48cf
Showing
3 changed files
with
36 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,19 @@ | ||
package types | ||
|
||
import "math/big" | ||
import ( | ||
"encoding/json" | ||
"math/big" | ||
) | ||
|
||
type SimulationDebugInfoResponse struct { | ||
StartSimulateMs int64 `json:"start_simulate_ms"` | ||
EndSimulateMs int64 `json:"end_simulate_ms"` | ||
} | ||
|
||
type InternalTxResponse struct { | ||
Type string `json:"type"` | ||
From string `json:"from"` | ||
To string `json:"to"` | ||
Gas uint64 `json:"gas"` | ||
GasUsed uint64 `json:"gas_used"` | ||
Input string `json:"input"` | ||
Value string `json:"value"` | ||
} | ||
|
||
type EventLogResponse struct { | ||
Address string `json:"address"` | ||
Topics []string `json:"topics"` | ||
Data string `json:"data"` | ||
} | ||
|
||
type SimulationTxResponse struct { | ||
PendingBlockNumber uint64 `json:"pending_block_number"` | ||
BaseFee *big.Int `json:"base_fee"` | ||
InternalTxs []InternalTxResponse `json:"internal_transactions"` | ||
CurrentBlockTime uint64 `json:"current_block_time"` | ||
DebugInfo SimulationDebugInfoResponse `json:"debug_info"` | ||
Logs []EventLogResponse `json:"logs"` | ||
CallFrame json.RawMessage `json:"call_frame"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.