Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
6c702f3
update: initial commit
sphamjoli Apr 8, 2025
7da970b
update: revert file changes
sphamjoli Apr 8, 2025
77c90ad
update: fix function
sphamjoli Apr 9, 2025
2cd3f77
update: add documentation and fixed proof_size issue
sphamjoli Apr 13, 2025
cfddbbd
update: fix unverified commit
sphamjoli Apr 14, 2025
5da9f96
update: test commit
sphamjoli Apr 14, 2025
8a4b9ab
update: revert changes to pallet xcm for weights
sphamjoli Apr 16, 2025
63a7939
update: fix tests
sphamjoli Apr 19, 2025
f81110f
Merge branch 'master' into spha/xcm_precompile
sphamjoli Apr 28, 2025
7dfc036
update: implement precompile using framework
sphamjoli May 2, 2025
12a6b45
update: remove alloy type crate
sphamjoli May 5, 2025
5637a44
Merge branch 'master' into spha/xcm_precompile
sphamjoli May 6, 2025
d1e9fc4
update: remove unnecessary import
sphamjoli May 6, 2025
df3f49f
update: add the XCM precompile to WAH's runtime
tiagobndr May 7, 2025
8c61877
update: remove trace logs, revert changes to AH
sphamjoli May 8, 2025
884dc92
update: fix tests
sphamjoli May 8, 2025
80647e1
Merge branch 'master' into spha/xcm_precompile
sphamjoli May 8, 2025
a1f0dc3
fix: PR comments
sphamjoli May 9, 2025
ee39c21
Merge branch 'master' into spha/xcm_precompile
sphamjoli May 9, 2025
66bfe96
fix: PR comments
sphamjoli May 10, 2025
ad6fb82
Merge branch 'master' into spha/xcm_precompile
sphamjoli May 12, 2025
5c55ab9
Merge branch 'spha/xcm_precompile' of https://github.com/paritytech/p…
sphamjoli May 12, 2025
fa35ded
fix: PR comments
sphamjoli May 12, 2025
2628b96
Merge branch 'master' into spha/xcm_precompile
sphamjoli May 12, 2025
2bae436
fix: revert messages
sphamjoli May 12, 2025
35d3c0e
Merge branch 'spha/xcm_precompile' of https://github.com/paritytech/p…
sphamjoli May 12, 2025
1b09ec4
update: remove weight info
sphamjoli May 13, 2025
a13b50a
fix: PR comments
sphamjoli May 13, 2025
e1f66a1
update: rm formatting
sphamjoli May 13, 2025
60abf42
fix: PR comments
sphamjoli May 13, 2025
24c0d9a
fix: PR comments
sphamjoli May 13, 2025
dcf7375
fix: param name in interface
sphamjoli May 13, 2025
49628d0
update: use correct abi encoded results for messageWeight
sphamjoli May 13, 2025
a814da7
Merge branch 'master' into spha/xcm_precompile
sphamjoli May 14, 2025
fe317bb
Merge branch 'master' into spha/xcm_precompile
sphamjoli May 14, 2025
eb6d839
Update from github-actions[bot] running command 'fmt'
github-actions[bot] May 14, 2025
63b163c
Merge branch 'master' into spha/xcm_precompile
franciscoaguirre May 14, 2025
98874b4
Merge branch 'master' into spha/xcm_precompile
sphamjoli May 14, 2025
231457a
fix: PR comments
sphamjoli May 14, 2025
6856f6d
Merge branch 'spha/xcm_precompile' of https://github.com/paritytech/p…
sphamjoli May 14, 2025
9da7cef
fix: change CallRuntime to CallXcmExecute for xcm execute
sphamjoli May 14, 2025
3bfec03
Merge branch 'master' into spha/xcm_precompile
sphamjoli May 14, 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
2 changes: 2 additions & 0 deletions Cargo.lock

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

12 changes: 10 additions & 2 deletions substrate/frame/revive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ rand = { workspace = true, optional = true }
rand_pcg = { workspace = true, optional = true }
rlp = { workspace = true }
scale-info = { features = ["derive"], workspace = true }
serde = { features = ["alloc", "derive"], workspace = true, default-features = false }
serde = { features = [
"alloc",
"derive",
], workspace = true, default-features = false }

# Polkadot SDK Dependencies
bn = { workspace = true }
Expand All @@ -56,9 +59,12 @@ sp-consensus-slots = { workspace = true, optional = true }
sp-core = { workspace = true }
sp-io = { workspace = true }
sp-runtime = { workspace = true }
subxt-signer = { workspace = true, optional = true, features = ["unstable-eth"] }
subxt-signer = { workspace = true, optional = true, features = [
"unstable-eth",
] }
xcm = { workspace = true }
xcm-builder = { workspace = true }
xcm-executor = { workspace = true }

[dev-dependencies]
array-bytes = { workspace = true, default-features = true }
Expand All @@ -77,6 +83,7 @@ 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 }
xcm-executor = { workspace = true }

[features]
default = ["std"]
Expand Down Expand Up @@ -118,6 +125,7 @@ std = [
"sp-runtime/std",
"subxt-signer",
"xcm-builder/std",
"xcm-executor/std",
"xcm/std",
]
runtime-benchmarks = [
Expand Down
2 changes: 2 additions & 0 deletions substrate/frame/revive/mock-network/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,15 @@ xcm = { workspace = true }
xcm-builder = { workspace = true, default-features = true }
xcm-executor = { workspace = true }
xcm-simulator = { workspace = true, default-features = true }
alloy-core = { workspace = true, features = ["sol-types"] }

[dev-dependencies]
pallet-revive-fixtures = { workspace = true }

[features]
default = ["std"]
std = [
"alloy-core/std",
"codec/std",
"frame-support/std",
"frame-system/std",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,22 @@
// along with Substrate. If not, see <http://www.gnu.org/licenses/>.

use super::{Balances, Runtime, RuntimeCall, RuntimeEvent};
use crate::parachain::RuntimeHoldReason;
use crate::parachain::{parameter_types, MaxInstructions, RuntimeHoldReason};
use frame_support::derive_impl;
use pallet_revive::precompiles::XcmPrecompile;
use xcm::latest::Weight;
use xcm_builder::FixedWeightBounds;

parameter_types! {
pub const BaseXcmWeight: xcm::latest::Weight = Weight::from_parts(100_000_000, 2_000);
}

#[derive_impl(pallet_revive::config_preludes::TestDefaultConfig)]
impl pallet_revive::Config for Runtime {
type AddressMapper = pallet_revive::AccountId32Mapper<Self>;
type Currency = Balances;
type Time = super::Timestamp;
type Xcm = pallet_xcm::Pallet<Self>;
type Precompiles = (XcmPrecompile<Self>,);
type XcmWeigher = FixedWeightBounds<BaseXcmWeight, RuntimeCall, MaxInstructions>;
}
Loading
Loading