Gavin Wood
fc82a611ce
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
b03d11b8e0
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
00dbc79ebf
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
09cd8a8976
Docs ( #401 )
2021-04-14 10:54:35 +02:00
Gavin Wood
86f9a99184
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
2516e06927
Make set_validation_data public ( #399 )
2021-04-13 21:20:10 +02:00
Keith Yeung
db7fdce9b1
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
c995f6c76e
Update Substrate & Polkadot ( #387 )
...
* Update Substrate & Polkadot
* Enforce `ParachainSetCode`
2021-04-02 16:17:04 +02:00
Shawn Tabrizi
ad5ece357e
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
4d680a5107
Update Substrate & Polkadot ( #375 )
...
* Update Substrate & Polkadot
* Remove `can_set_code` for now
2021-03-23 15:54:40 +01:00
Vincent Geddes
2731bd5858
Use correct HRMP path for parachain sibling ( #366 )
2021-03-16 13:23:22 -04:00
Shaun Wang
2b73fcf45d
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
1eecfe1acb
Update XcmError on sending failure. ( #358 )
2021-03-08 20:30:51 +01:00
Bastian Köcher
5fd6e1b4fd
Remove frame-executive that isn't required anymore ( #355 )
2021-03-04 16:33:26 +01:00
Bastian Köcher
77344a96b1
Update Polkadot & Substrate ( #354 )
2021-03-04 14:20:28 +01:00
Cecile Tonglet
e53a932fe4
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
fb649f19c2
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
d6bc185ed3
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
8ba3e66fd1
XCM handler: make send origin configurable. ( #346 )
2021-02-26 20:12:57 +01:00
Bastian Köcher
a4b4264a5a
Update to latest Substrate & Polkadot ( #341 )
2021-02-24 20:15:52 +01:00
Shaun Wang
f82489dbee
Deposit XCM execution success and fail events. ( #338 )
2021-02-23 09:27:47 +01:00
Bastian Köcher
5f5df0485a
New genesis ( #327 )
...
* Update Substrate & Polkadot
* Update chainspecs
* Update again to fix test
2021-02-15 11:20:36 +01:00
Bastian Köcher
ba0bdc84a5
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
119e0859b9
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