-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[pallet-revive] Add eth_substrate_call extrinsic #10159
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
Merged
marian-radu
merged 35 commits into
master
from
180-failed-to-instantiate-contract-someoutofgas
Nov 10, 2025
Merged
Changes from 29 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
c67ee0e
Support upload_code via eth_sendRawTransaction
marian-radu ff85c0c
WIP: add eth_substrate_call extrinsic.
marian-radu 67a3eaf
Add test for uploading contract code via RUNTIME_PALLETS_ADDR magic a…
marian-radu 4d03947
Add test for removing contract code via RUNTIME_PALLETS_ADDR.
marian-radu 07003da
Merge branch 'master' into 180-failed-to-instantiate-contract-someout…
marian-radu 5968242
Add a unit test for unmapping an account using an Ethereum transaction.
marian-radu 8fb515a
Filter the calls allowed via eth_substrate.
marian-radu 1efda77
Add benchmark eth_substrate_call_upload_code.
marian-radu 1826022
Changed eth_substrate_call parameter type to RuntimeCall.
marian-radu fa3189b
Allow eth_substrate_call only in development.
marian-radu 53f9657
Add eth_substrate_call overhead to post_info.actual_weight.
marian-radu 7eda58c
Small refactor
marian-radu 0a05cee
Merge branch 'master' into 180-failed-to-instantiate-contract-someout…
marian-radu 543249e
Address review comments.
marian-radu d1610b6
Adjust eth_substrate_call weight.
marian-radu ddc4607
Tweak a few comments.
marian-radu f9d0d8c
Update from github-actions[bot] running command 'prdoc --audience run…
github-actions[bot] e98001e
Small optimization.
marian-radu e89ccac
Add unit tests for eth_substrate_call
marian-radu f71dc30
Merge branch 'master' into 180-failed-to-instantiate-contract-someout…
marian-radu 4e43194
Fix TOML formatting and remove redundant local variable.
marian-radu cba5dfb
Merge branch 'master' into 180-failed-to-instantiate-contract-someout…
marian-radu 7fdbf8d
Move debug enabled check inside the ethereum_context block.
marian-radu 43bb605
Add parameter transaction_encoded to eth_substrate_call and remove wi…
marian-radu 0e9a36a
Remove development requirement for eth_substrate_call.
marian-radu 70c277a
Update prdoc.
marian-radu 24e5792
Update from github-actions[bot] running command 'bench --runtime dev …
github-actions[bot] e86bfa3
Address review comments.
marian-radu 4026943
Fixed the actual_weight computation in eth_substrate_call.
marian-radu 0727aba
Address review comments.
marian-radu fa8463d
Merge branch 'master' into 180-failed-to-instantiate-contract-someout…
marian-radu 47789a6
Fix typo and tweak test.
marian-radu b4e5563
Merge branch 'master' into 180-failed-to-instantiate-contract-someout…
marian-radu 88c4fb8
Update prdoc.
marian-radu e911c31
Merge branch 'master' into 180-failed-to-instantiate-contract-someout…
marian-radu 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 hidden or 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,18 @@ | ||
| title: Add eth_substrate_call extrinsic. | ||
| doc: | ||
| - audience: Runtime Dev | ||
| description: |- | ||
| Fixes https://github.com/paritytech/contract-issues/issues/180 | ||
|
|
||
| This PR introduces `eth_substrate_call`, a new extrinsic in pallet-revive that enables Substrate runtime calls from Ethereum transactions. This allows tools like Hardhat to invoke Substrate extrinsics (e.g., `upload_code`) via the Ethereum RPC. | ||
|
|
||
| Includes: | ||
| - New eth-rpc test validating the functionality | ||
| - Benchmark measuring the extrinsic overhead | ||
| crates: | ||
| - name: pallet-revive | ||
| bump: patch | ||
| - name: pallet-revive-eth-rpc | ||
| bump: patch | ||
| - name: revive-dev-runtime | ||
| bump: patch |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.