Commit 6ccf27f
Add XCM Precompile to
This PR adds the XCM precompile (with `xcmSend`, `xcmExecute` and
`weightMessage` functionalities) to `pallet-xcm`.
This follows the discussion we had on the now closed
[PR](#8471), which
attempted to add the precompile to `pallet-revive`, but that approach
would have introduced unwanted cyclic dependencies. That's why we
decided to migrate the precompile to `pallet-xcm`, avoiding adding
unnecessary dependencies to `pallet-revive`.
This PR should also encapsulate unit tests in `precompiles.rs` as well
as integration tests under
`cumulus/parachains/integration-tests/emulated/tests`.
See tracking parent
[issue](#6718)
---------
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Siphamandla Mjoli <brianm445@yahoo.com>
Co-authored-by: Siphamandla Mjoli <siphamandla@parity.io>
Co-authored-by: Alexander Theißen <alex.theissen@me.com>
Co-authored-by: Francisco Aguirre <franciscoaguirreperez@gmail.com>
Co-authored-by: PG Herveou <pgherveou@gmail.com>pallet-xcm (#8693)1 parent 79e113c commit 6ccf27f
24 files changed
Lines changed: 876 additions & 97 deletions
File tree
- cumulus/parachains/runtimes
- assets
- asset-hub-rococo/src/weights
- asset-hub-westend/src
- weights
- bridge-hubs
- bridge-hub-rococo/src/weights
- bridge-hub-westend/src/weights
- collectives/collectives-westend/src/weights
- coretime
- coretime-rococo/src/weights
- coretime-westend/src/weights
- people
- people-rococo/src/weights
- people-westend/src/weights
- polkadot
- runtime
- rococo/src/weights
- westend/src/weights
- xcm/pallet-xcm
- src
- precompiles
- prdoc
- substrate/frame
- revive/src
- precompiles/builtin
- staking-async/runtimes
- parachain/src/weights
- rc/src/weights
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
402 | 411 | | |
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
1080 | 1080 | | |
1081 | 1081 | | |
1082 | 1082 | | |
| 1083 | + | |
1083 | 1084 | | |
1084 | 1085 | | |
1085 | 1086 | | |
| |||
Lines changed: 98 additions & 88 deletions
Large diffs are not rendered by default.
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
376 | 385 | | |
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
376 | 385 | | |
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
378 | 387 | | |
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
366 | 375 | | |
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
366 | 375 | | |
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
354 | 363 | | |
0 commit comments