Skip to content

[pallet-revive] Implement originIsRoot precompile method#12281

Open
xermicus wants to merge 6 commits into
masterfrom
cl/originIsRoot
Open

[pallet-revive] Implement originIsRoot precompile method#12281
xermicus wants to merge 6 commits into
masterfrom
cl/originIsRoot

Conversation

@xermicus

@xermicus xermicus commented Jun 5, 2026

Copy link
Copy Markdown
Member

We have the callerIsRoot API but this doesn't work with nested calls. originIsRoot fills this gap.

Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
@xermicus

xermicus commented Jun 5, 2026

Copy link
Copy Markdown
Member Author

/cmd fmt

@xermicus xermicus added T7-smart_contracts This PR/Issue is related to smart contracts. R0-no-crate-publish-required The change does not require any crates to be re-published. labels Jun 5, 2026
@xermicus

xermicus commented Jun 5, 2026

Copy link
Copy Markdown
Member Author

/cmd prdoc --audience runtime_dev --bump minor

@xermicus

xermicus commented Jun 5, 2026

Copy link
Copy Markdown
Member Author

/cmd bench --runtime dev --pallet pallet_revive

@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Command "bench --runtime dev --pallet pallet_revive" has started 🚀 See logs here

@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Command "bench --runtime dev --pallet pallet_revive" has finished ✅ See logs here

Details

Subweight results:
File Extrinsic Old New Change [%]
substrate/frame/revive/src/weights.rs instr 818.30us 1.23ms +50.51
substrate/frame/revive/src/weights.rs seal_call_data_copy 119.66us 157.68us +31.78
substrate/frame/revive/src/weights.rs identity 119.27us 156.31us +31.06
substrate/frame/revive/src/weights.rs seal_gas_limit 324.00ns 396.00ns +22.22
substrate/frame/revive/src/weights.rs seal_value_transferred 301.00ns 362.00ns +20.27
substrate/frame/revive/src/weights.rs seal_return 26.72us 31.65us +18.44
substrate/frame/revive/src/weights.rs seal_call_data_size 300.00ns 355.00ns +18.33
substrate/frame/revive/src/weights.rs seal_copy_to_contract 213.39us 250.78us +17.52
substrate/frame/revive/src/weights.rs seal_block_number 309.00ns 360.00ns +16.50
substrate/frame/revive/src/weights.rs seal_return_data_size 293.00ns 340.00ns +16.04
substrate/frame/revive/src/weights.rs seal_call_data_load 306.00ns 353.00ns +15.36
substrate/frame/revive/src/weights.rs seal_now 304.00ns 348.00ns +14.47
substrate/frame/revive/src/weights.rs seal_address 349.00ns 392.00ns +12.32
substrate/frame/revive/src/weights.rs seal_origin 357.00ns 400.00ns +12.04
substrate/frame/revive/src/weights.rs seal_caller 374.00ns 415.00ns +10.96
substrate/frame/revive/src/weights.rs seal_sr25519_verify 5.02ms 5.50ms +9.61
substrate/frame/revive/src/weights.rs seal_ref_time_left 2.04us 2.23us +9.28
substrate/frame/revive/src/weights.rs seal_deposit_event 91.63us 98.62us +7.64
substrate/frame/revive/src/weights.rs call_with_pvm_code_per_byte 705.93us 755.44us +7.01
substrate/frame/revive/src/weights.rs seal_clear_transient_storage 4.41us 4.71us +7.01
substrate/frame/revive/src/weights.rs caller_is_root 1.31us 1.40us +6.40
substrate/frame/revive/src/weights.rs set_transient_storage_empty 1.81us 1.92us +6.19
substrate/frame/revive/src/weights.rs seal_contains_transient_storage 3.75us 3.98us +5.94
substrate/frame/revive/src/weights.rs seal_balance 4.58us 4.84us +5.76
substrate/frame/revive/src/weights.rs origin_is_root 1.40us Added
Command output:

✅ Successful benchmarks of runtimes/pallets:
-- dev: ['pallet_revive']

@paritytech-workflow-stopper

Copy link
Copy Markdown

All GitHub workflows were cancelled due to failure one of the required jobs.
Failed workflow url: https://github.com/paritytech/polkadot-sdk/actions/runs/27004777186
Failed job name: quick-benchmarks-omni

Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
@xermicus

xermicus commented Jun 5, 2026

Copy link
Copy Markdown
Member Author

/cmd bench --runtime asset-hub-westend --pallet pallet_revive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

R0-no-crate-publish-required The change does not require any crates to be re-published. T7-smart_contracts This PR/Issue is related to smart contracts.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant