-
Notifications
You must be signed in to change notification settings - Fork 829
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RPC endpoints for excluding tracing failures #1995
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
ad776a4
add sei_getTransactionReceipt
jewei1997 f2538fb
add logic to exclude panic txs from getBlockByNumber
jewei1997 1df51b4
fixed compilation errs
jewei1997 d874c2f
test both sei_traceBlock and sei_getTransactionReceipt
jewei1997 0a9d2fc
fix block_test
jewei1997 e595c32
update go.mod
jewei1997 987da7a
fixed tracer test
jewei1997 73e6d5e
tests seem to all work now
jewei1997 65b2411
fix genesis code
jewei1997 61ba030
remove unnecessary isPanicTx param
jewei1997 0ad6145
remove prints
jewei1997 1e8e136
fix complilation
jewei1997 deef723
Merge branch 'main' into exclude-panic-txs
jewei1997 39922a0
use a trace block + cache to do isPanic
jewei1997 4f04bcd
catch panic in traceTx
jewei1997 b9849c0
fix
jewei1997 30b88ef
add README + change name to *TraceFail
jewei1997 ac6df39
Merge branch 'main' into exclude-panic-txs
jewei1997 90b90b5
update geth dep
jewei1997 41d0c00
update geth dep
jewei1997 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Sei's EVM RPC | ||
|
||
Sei supports the standard [Ethereum JSON-RPC API](https://ethereum.org/en/developers/docs/apis/json-rpc/) endpoints. On top of that, Sei supports some additional custom endpoints. | ||
|
||
## Sei_ endpoints | ||
|
||
### Endpoints for Synthetic txs | ||
The motivation for these endpoints is to expose CW20 and CW721 events on the EVM side through synthetic receipts and logs. This is useful for indexing pointer contracts. | ||
- `sei_getFilterLogs` | ||
- same as `eth_getFilterLogs` but includes synthetic logs | ||
- `sei_getLogs` | ||
- same as `eth_getLogs` but includes synthetic logs | ||
- `sei_getBlockByNumber` and `sei_getBlockByHash` | ||
- same as `eth_getBlockByNumber` and `eth_getBlockByHash` but includes synthetic txs | ||
- NOTE: for synthetic txs, `eth_getTransactionReceipt` can be used to get the receipt data for a synthetic tx hash. | ||
|
||
### Endpoints for excluding tracing failures | ||
The motivation for these endpoints is to exclude tracing failures from the EVM side. Due to how our mempool works and our lack of tx simulation, we cannot rely on txs to pass all pre-state checks. Therefore, in the eth_ endpoints, we may see txs that fail tracing with errors like "nonce too low", "nonce too high", "insufficient funds", or other types of panic failures. These transactions are not executed, yet are still included in the block. These endpoints are useful for filtering out these txs. | ||
- `sei_traceBlockByNumberExcludeTraceFail` | ||
- same as `debug_traceBlockByNumber` but excludes panic txs | ||
- `sei_getTransactionReceiptExcludeTraceFail` | ||
- same as `eth_getTransactionReceipt` but excludes panic txs | ||
- `sei_getBlockByNumberExcludeTraceFail` and `sei_getBlockByHashExcludeTraceFail` | ||
- same as `eth_getBlockByNumber` and `eth_getBlockByHash` but excludes panic txs |
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 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 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 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Calling the system time Warning