Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
5daf130
Remove all XCM dependencies from pallet-revive
tiagobndr May 20, 2025
d08167e
Remove call_runtime and all its supporting code
tiagobndr May 20, 2025
b2d5167
Merge branch 'master' into tb/revive_rm_xcm_deps
tiagobndr May 20, 2025
7c56dac
Update from github-actions[bot] running command 'fmt'
github-actions[bot] May 21, 2025
542bde3
Merge branch 'master' into tb/revive_rm_xcm_deps
tiagobndr May 21, 2025
49717b8
Merge branch 'master' into tb/revive_rm_xcm_deps
tiagobndr May 22, 2025
107ef2a
Remove CallFilter from Config
tiagobndr May 23, 2025
85565a4
Restore original error code discriminants
tiagobndr May 23, 2025
07d81fe
Make callRuntime part of the test precompile and adjust tests to use …
tiagobndr May 25, 2025
72023ed
Update from github-actions[bot] running command 'fmt'
github-actions[bot] May 25, 2025
f38398c
Merge branch 'master' into tb/revive_rm_xcm_deps
tiagobndr May 25, 2025
e44d1a0
Merge branch 'master' into tb/revive_rm_xcm_deps
tiagobndr May 26, 2025
ef46545
fix: PR comments
tiagobndr May 27, 2025
c79a9c6
Merge branch 'master' into tb/revive_rm_xcm_deps
tiagobndr May 29, 2025
7b32e06
fix: change the Error
tiagobndr May 30, 2025
9dd5b29
Merge branch 'master' into tb/revive_rm_xcm_deps
acatangiu May 30, 2025
4fc6675
Update from github-actions[bot] running command 'fmt'
github-actions[bot] May 30, 2025
55c0cda
Update from github-actions[bot] running command 'prdoc --audience run…
github-actions[bot] May 30, 2025
78911ef
Update lib.rs
acatangiu May 30, 2025
25684a6
fix: remove CallFilter from WAH/Penpal's revive config
tiagobndr May 30, 2025
5818457
fix: remove unused imports in WAH/Penpal's lib.rs
tiagobndr May 30, 2025
d698f8b
Update from github-actions[bot] running command 'fmt'
github-actions[bot] May 30, 2025
2aca19f
Merge branch 'master' into tb/revive_rm_xcm_deps
tiagobndr May 30, 2025
4c56a83
Update from github-actions[bot] running command 'prdoc --audience run…
github-actions[bot] May 30, 2025
2c661ac
Merge branch 'master' into tb/revive_rm_xcm_deps
tiagobndr May 30, 2025
b025a01
fix: clippy
tiagobndr May 30, 2025
64473aa
Merge branch 'master' into tb/revive_rm_xcm_deps
tiagobndr May 30, 2025
36e09fa
Update from github-actions[bot] running command 'prdoc --audience run…
github-actions[bot] May 30, 2025
a0c6243
Merge remote-tracking branch 'origin/master' into tb/revive_rm_xcm_deps
tiagobndr May 30, 2025
c657d9a
Merge remote-tracking branch 'origin/master' into tb/revive_rm_xcm_deps
tiagobndr Jun 2, 2025
a9421c3
fix: PR comments
tiagobndr Jun 2, 2025
bbe06a6
fix: PR comments
tiagobndr Jun 2, 2025
682fc82
Trigger CI
athei Jun 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 0 additions & 32 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,6 @@ members = [
"substrate/frame/remark",
"substrate/frame/revive",
"substrate/frame/revive/fixtures",
"substrate/frame/revive/mock-network",
"substrate/frame/revive/proc-macro",
"substrate/frame/revive/rpc",
"substrate/frame/revive/uapi",
Expand Down Expand Up @@ -1019,7 +1018,6 @@ pallet-remark = { default-features = false, path = "substrate/frame/remark" }
pallet-revive = { path = "substrate/frame/revive", default-features = false }
pallet-revive-eth-rpc = { path = "substrate/frame/revive/rpc", default-features = false }
pallet-revive-fixtures = { path = "substrate/frame/revive/fixtures", default-features = false }
pallet-revive-mock-network = { default-features = false, path = "substrate/frame/revive/mock-network" }
pallet-revive-proc-macro = { path = "substrate/frame/revive/proc-macro", default-features = false }
pallet-revive-uapi = { path = "substrate/frame/revive/uapi", default-features = false }
pallet-root-offences = { default-features = false, path = "substrate/frame/root-offences" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ use frame_support::{
fungibles,
tokens::{imbalance::ResolveAssetTo, nonfungibles_v2::Inspect},
AsEnsureOriginWithArg, ConstBool, ConstU128, ConstU32, ConstU64, ConstU8,
ConstantStoragePrice, Equals, InstanceFilter, Nothing, TransformOrigin,
ConstantStoragePrice, Equals, InstanceFilter, TransformOrigin,
},
weights::{ConstantMultiplier, Weight},
BoundedVec, PalletId,
Expand Down Expand Up @@ -1073,7 +1073,6 @@ impl pallet_revive::Config for Runtime {
type Currency = Balances;
type RuntimeEvent = RuntimeEvent;
type RuntimeCall = RuntimeCall;
type CallFilter = Nothing;
type DepositPerItem = DepositPerItem;
type DepositPerByte = DepositPerByte;
type WeightPrice = pallet_transaction_payment::Pallet<Self>;
Expand All @@ -1090,7 +1089,6 @@ impl pallet_revive::Config for Runtime {
type InstantiateOrigin = EnsureSigned<Self::AccountId>;
type RuntimeHoldReason = RuntimeHoldReason;
type CodeHashLockupDepositPercent = CodeHashLockupDepositPercent;
type Xcm = pallet_xcm::Pallet<Self>;
type ChainId = ConstU64<420_420_421>;
type NativeToEthRatio = ConstU32<1_000_000>; // 10^(18 - 12) Eth is 10^18, Native is 10^12.
type EthGasEncoder = ();
Expand Down
4 changes: 1 addition & 3 deletions cumulus/parachains/runtimes/testing/penpal/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ use frame_support::{
traits::{
tokens::{fungible, fungibles, imbalance::ResolveAssetTo},
AsEnsureOriginWithArg, ConstBool, ConstU128, ConstU32, ConstU64, ConstU8, Everything,
Nothing, TransformOrigin,
TransformOrigin,
},
weights::{
constants::WEIGHT_REF_TIME_PER_SECOND, ConstantMultiplier, FeePolynomial,
Expand Down Expand Up @@ -840,7 +840,6 @@ impl pallet_revive::Config for Runtime {
type Currency = Balances;
type RuntimeEvent = RuntimeEvent;
type RuntimeCall = RuntimeCall;
type CallFilter = Nothing;
type DepositPerItem = DepositPerItem;
type DepositPerByte = DepositPerByte;
type WeightPrice = pallet_transaction_payment::Pallet<Self>;
Expand All @@ -854,7 +853,6 @@ impl pallet_revive::Config for Runtime {
type InstantiateOrigin = EnsureSigned<Self::AccountId>;
type RuntimeHoldReason = RuntimeHoldReason;
type CodeHashLockupDepositPercent = CodeHashLockupDepositPercent;
type Xcm = PolkadotXcm;
type ChainId = ConstU64<420_420_999>;
type NativeToEthRatio = ConstU32<1_000_000>; // 10^(18 - 12) Eth is 10^18, Native is 10^12.
type EthGasEncoder = ();
Expand Down
18 changes: 18 additions & 0 deletions prdoc/pr_8584.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
title: Remove all XCM dependencies from `pallet-revive`
doc:
- audience: Runtime Dev
description: This PR removes all XCM dependencies from `pallet-revive`, including
the `mock-network` crate which was primarily used to test the unstable `xcm_execute`
and `xcm_send` APIs. These APIs (along their respective tests) will be moved to
the XCM precompile in `pallet-xcm` to avoid cyclic dependencies.
crates:
- name: asset-hub-westend-runtime
bump: major
- name: penpal-runtime
bump: major
- name: pallet-revive
bump: major
- name: pallet-revive-uapi
bump: major
- name: polkadot-sdk
bump: major
2 changes: 0 additions & 2 deletions substrate/bin/node/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1469,7 +1469,6 @@ impl pallet_revive::Config for Runtime {
type Currency = Balances;
type RuntimeEvent = RuntimeEvent;
type RuntimeCall = RuntimeCall;
type CallFilter = Nothing;
type DepositPerItem = DepositPerItem;
type DepositPerByte = DepositPerByte;
type WeightPrice = pallet_transaction_payment::Pallet<Self>;
Expand All @@ -1484,7 +1483,6 @@ impl pallet_revive::Config for Runtime {
type InstantiateOrigin = EnsureSigned<Self::AccountId>;
type RuntimeHoldReason = RuntimeHoldReason;
type CodeHashLockupDepositPercent = CodeHashLockupDepositPercent;
type Xcm = ();
type ChainId = ConstU64<420_420_420>;
type NativeToEthRatio = ConstU32<1_000_000>; // 10^(18 - 12) Eth is 10^18, Native is 10^12.
type EthGasEncoder = ();
Expand Down
9 changes: 1 addition & 8 deletions substrate/frame/revive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
alloy-core = { workspace = true, features = ["sol-types"] }
codec = { features = ["derive", "max-encoded-len"], workspace = true }
derive_more = { workspace = true }
derive_more = { workspace = true, features = ["from", "try_into"] }
environmental = { workspace = true }
ethereum-standards = { workspace = true }
ethereum-types = { workspace = true, features = ["codec", "rlp", "serialize"] }
Expand Down Expand Up @@ -58,8 +58,6 @@ sp-core = { workspace = true }
sp-io = { workspace = true }
sp-runtime = { workspace = true }
subxt-signer = { workspace = true, optional = true, features = ["unstable-eth"] }
xcm = { workspace = true }
xcm-builder = { workspace = true }

[dev-dependencies]
array-bytes = { workspace = true, default-features = true }
Expand All @@ -77,7 +75,6 @@ pallet-timestamp = { workspace = true, default-features = true }
pallet-utility = { workspace = true, default-features = true }
sp-keystore = { workspace = true, default-features = true }
sp-tracing = { workspace = true, default-features = true }
xcm-builder = { workspace = true, default-features = true }

[features]
default = ["std"]
Expand Down Expand Up @@ -118,8 +115,6 @@ std = [
"sp-keystore/std",
"sp-runtime/std",
"subxt-signer",
"xcm-builder/std",
"xcm/std",
]
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
Expand All @@ -138,8 +133,6 @@ runtime-benchmarks = [
"sp-consensus-babe",
"sp-consensus-slots",
"sp-runtime/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"xcm/runtime-benchmarks",
]
try-runtime = [
"frame-support/try-runtime",
Expand Down
42 changes: 0 additions & 42 deletions substrate/frame/revive/fixtures/contracts/call_runtime.rs

This file was deleted.

This file was deleted.

40 changes: 0 additions & 40 deletions substrate/frame/revive/fixtures/contracts/xcm_execute.rs

This file was deleted.

42 changes: 0 additions & 42 deletions substrate/frame/revive/fixtures/contracts/xcm_send.rs

This file was deleted.

Loading
Loading