Bastian Köcher
6364eeeef1
Update Substrate & Polkadot ( #427 )
...
* Update Substrate & Polkadot
* Fixes
2021-05-04 09:48:41 +02:00
Gavin Wood
3f687171c2
DMP Queue pallet ( #416 )
...
* Introduce the converter into the hub
* Parachain recognises Rococo governance body as admin
* Whitespace
* Use UsingComponents for fee payment in XCM
* Fixes
* Fixes for XCM permissions
* Remove encode_call test
* Fixes
* Rococo Collator supports Shell runtime
* Fixes
* Fixes
* Initial draft of DMP Queue pallet
* DMP Queue builds.
* Companion for Polkadot gav-allow-xcm-exec
* Bump
* Fix std
* Fixes
* fix and improve docs
* fix compile errors in tests
* add test for try_service_message
* update cargo.lock
* Fixes
* Make test name read well
* Fixes
* Add a couple of simple tests
* Tests
* Tests
* Update pallets/dmp-queue/src/lib.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update pallets/dmp-queue/src/lib.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update pallets/dmp-queue/src/lib.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update pallets/dmp-queue/src/lib.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update pallets/dmp-queue/src/lib.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update pallets/dmp-queue/src/lib.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update pallets/dmp-queue/src/lib.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Chain ID and ParaID don't collide
* Fixes
* Update pallets/dmp-queue/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Update pallets/dmp-queue/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Fixes
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-05-02 16:11:58 +02:00
Gavin Wood
42c18b8cb5
Fix condition ( #424 )
...
Closes #419
2021-04-30 15:17:21 +02:00
Gavin Wood
7d315cf9ab
Strip down Shell to bare minimum ( #421 )
...
* Strip down shell
* Fixes
* Fixes
* Fixes
* Fixes
2021-04-29 18:21:48 +02:00
Sergei Shulepov
3fa1ccc5ef
Panic instead of ensure ( #413 )
...
Instead of `ensure` with dedicated errors use `panic` or `assert`. See
for details #410
Closes #410
Co-authored-by: Gavin Wood <gavin@parity.io >
2021-04-28 22:22:09 +02:00
Gavin Wood
0ab15b2e05
Integrate a governance XCM origin ( #407 )
...
* Introduce the converter into the hub
* Parachain recognises Rococo governance body as admin
* Whitespace
* Use UsingComponents for fee payment in XCM
* Fixes
* Fixes for XCM permissions
* Remove encode_call test
* Fixes
* Fixes
* Fixes
2021-04-28 14:41:18 +02:00
Guillaume Thiolliere
859524f2f1
Bump polkadot + fix parachain unnamed field ( #412 )
...
* parachain unnamed field
* bump polkadot: cargo udpate -p xcm
* Update lock
* Fixes
* Fixes
Co-authored-by: Gav Wood <gavin@parity.io >
2021-04-27 18:56:08 +02:00
Gavin Wood
689cb16660
Two-stage upgrade for parachains ( #392 )
...
* Authorised upgrade doesn't pay fee
* Origin not needed
* Fixes
2021-04-16 12:45:55 +02:00
Gavin Wood
18c9e4e13a
Docs ( #401 )
2021-04-14 10:54:35 +02:00
Gavin Wood
5fe32eb0d4
XCM revamp & Ping pallet ( #391 )
...
* Add spambot
* Fixes
* Add some extra functions to spambot, bump version
* Lock..
* Aggregate HRMP (XCMP/HMP) messages. Payloads for spambot.
* Fix tests, bump Polkadot.
* Fix HMP tests
* Rename Hrmp -> Xcmp for handler/sender
* Use master branch
* Test Xcm message passing & rename away from HMP
* Docs
* Introduce fee payment mechanics into XCM.
* Rename spambot -> ping
* Lock
* XCMP message dispatch system reimagining
- Moved most of the logic into xcm-handler pallet
- Altered the outgoing XCMP API from push to pull
- Changed underlying outgoing queue data structures to avoid multi-page read/writes
- Introduced queuing for incoming messages
- Introduced signal messages as a flow-control sub-stream
- Introduced flow-control with basic threshold back-pressure
- Introduced overall weight limitation on messages executed
- Additonal alterations to XCM APIs for the new system
* Should process any remaining XCM messages when we're not doing anything else.
* Update API usage and preparation for the big build.
* Some build fixes
* Build fixes
* xcm-handler builds
* Fix warnings
* Docs
* Parachains system builds
* Parachain runtime building
* Fix build
* Introduce transfer_asset specialisation.
* Fixes
* Two-stage upgrade for parachains.
* Fixes
* Fixes
* Updates for message sending.
* Repotting/renaming. Add primitives/utility.
* Remove real-overseer and bump refs
* Configure & document Rococo XCM runtime.
* Add shell runtime, some companion changes for #8589
* Bumps & fixes
* Fix test
* Build fix
* Update pallets/xcmp-queue/src/lib.rs
Co-authored-by: Amar Singh <asinghchrony@protonmail.com >
* Make tests compile
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* remove unused
* remove unused event stuff
* Adds proper validation-worker to make integration tests work
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* import saturating
* remove panic test
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Amar Singh <asinghchrony@protonmail.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-04-14 09:36:59 +02:00
Joshy Orndorff
a70ab40cdc
Make set_validation_data public ( #399 )
2021-04-13 21:20:10 +02:00
Keith Yeung
cbd72e7ab8
Declare Error type in decl_module! ( #390 )
...
* Declare Error type in decl_module! for parachain-systems
* Declare Error type in decl_module! for xcm-handler
2021-04-07 11:38:41 +02:00
Bastian Köcher
1d4c02cc4e
Update Substrate & Polkadot ( #387 )
...
* Update Substrate & Polkadot
* Enforce `ParachainSetCode`
2021-04-02 16:17:04 +02:00
Shawn Tabrizi
dc666c7e82
Improve Storage and Add set_upgrade_block to Validation Function Upgrade ( #383 )
...
* set_upgrade_block
* Update lib.rs
* Use Two Storage Items for Validation Function Upgrade
* note issue #374
* fix docs nits
* Apply suggestions from code review
* Update pallets/parachain-system/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-03-31 11:42:48 +02:00
Bastian Köcher
a8bf0e1a7f
Update Substrate & Polkadot ( #375 )
...
* Update Substrate & Polkadot
* Remove `can_set_code` for now
2021-03-23 15:54:40 +01:00
Vincent Geddes
8f1ef9d6e1
Use correct HRMP path for parachain sibling ( #366 )
2021-03-16 13:23:22 -04:00
Shaun Wang
cb5a244f3d
Support xcm local execution in xcm-handler. ( #357 )
...
* Support xcm local execution in xcm handler.
* Add docs.
2021-03-09 22:57:44 +01:00
Shaun Wang
56f60a122e
Update XcmError on sending failure. ( #358 )
2021-03-08 20:30:51 +01:00
Bastian Köcher
b50848ea53
Remove frame-executive that isn't required anymore ( #355 )
2021-03-04 16:33:26 +01:00
Bastian Köcher
937cd767ae
Update Polkadot & Substrate ( #354 )
2021-03-04 14:20:28 +01:00
Cecile Tonglet
5cdbd7c42d
Add a command to purge the relay chain only ( #306 )
...
* Add a command to purge the relay chain only
* WIP
* Update rococo-parachains/src/cli.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Move cli stuff to its own crate
* Copyright dates
* Test not working for some reason...
* WIP
* Revert "WIP"
This reverts commit f97cd63742c7df822e4a6e52a29db5e0f56b7bfa.
* Fix test to use provided relay chain
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Add hint about which database could not be purged
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-03-03 13:40:22 +01:00
Andrew Jones
16bc09f710
Update to latest Substrate and Polkadot ( #348 )
...
* Update to latest Substrate and Polkadot
* log::debug!
* Add log dependecies to runtime
* Comma
* Fix tests
2021-03-03 13:20:17 +01:00
Bastian Köcher
f511757069
Change the way we store, handle and validate the validation data ( #342 )
...
Currently validation data is shared by using a well known key between
the parachain system pallet and the validate block implementation. This
pr changes this by passing the parachain system directly to the validate
block implementation to make use of it. Besides that, we also store the
validation params in some thread local variable to make it inspectable
by parachain system. This moves the validation of validation data and
validation params to the parachain system pallet directly, instead of
having this hidden inside the validate block implementation.
Fixes: https://github.com/paritytech/cumulus/issues/217
2021-02-27 18:46:25 +01:00
Shaun Wang
9535ee26ab
XCM handler: make send origin configurable. ( #346 )
2021-02-26 20:12:57 +01:00
Bastian Köcher
fc8c690cf8
Update to latest Substrate & Polkadot ( #341 )
2021-02-24 20:15:52 +01:00
Shaun Wang
d8126cdc13
Deposit XCM execution success and fail events. ( #338 )
2021-02-23 09:27:47 +01:00
Bastian Köcher
ec08d11d39
New genesis ( #327 )
...
* Update Substrate & Polkadot
* Update chainspecs
* Update again to fix test
2021-02-15 11:20:36 +01:00
Bastian Köcher
886a1e1c76
Move parachain inherent data into its own crate ( #326 )
...
This renames and moves the `SystemInherentData` into its own crate.
The struct is now called `ParachainInherentData`. Besides moving the
struct, this also moves the code for creating this struct into this crate.
2021-02-11 13:05:17 +01:00
Bastian Köcher
fbacfe7937
The great refactor ( #325 )
...
* Move pallets to pallets folder and rename them
* Move genesis file to service
* Rename primitives to primitives-core
* Delete cumulus-runtime
* Move stuff to client folder and rename
2021-02-10 13:07:21 +01:00