dependabot[bot]
476c3bf688
Bump scale-info from 2.0.1 to 2.1.0 ( #1165 )
...
Bumps [scale-info](https://github.com/paritytech/scale-info ) from 2.0.1 to 2.1.0.
- [Release notes](https://github.com/paritytech/scale-info/releases )
- [Changelog](https://github.com/paritytech/scale-info/blob/master/CHANGELOG.md )
- [Commits](https://github.com/paritytech/scale-info/commits/v2.1.0 )
---
updated-dependencies:
- dependency-name: scale-info
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-12 09:43:02 +02:00
dependabot[bot]
2fe7a2edba
Bump log from 0.4.14 to 0.4.16 ( #1107 )
...
Bumps [log](https://github.com/rust-lang/log ) from 0.4.14 to 0.4.16.
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/commits )
---
updated-dependencies:
- dependency-name: log
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-23 00:17:49 +01:00
Squirrel
3cbd4279fa
xcmp-queue / less indexing ( #1100 )
...
* less indexing
* removed unneeded clone
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2022-03-22 20:56:58 +00:00
Squirrel
2db0a69f66
express intent better ( #1099 )
2022-03-21 14:47:47 +00:00
Robert Habermeier
8eee3c37c4
Companion for primitives consolidation into v2 ( #1071 )
...
* branches
* update all primitives references
* fmt
* Update Polkadot & Substrate
* Again
Co-authored-by: Bastian Köcher <info@kchr.de >
2022-03-10 09:33:05 +00:00
Doordashcon
c543f9d980
Add benchmarks for Xcmp QueueConfigData setters ( #982 )
...
* add benchmarks for xcmp queue config data setters
* add new benchmarks
* cargo fmt
* added newline
* Additional weights for dmp queue for westmint
* include new weights
* Adding WeightInfo trait and friends
* WeightInfo should be on xcmp rather than dmp pallet
* cargo fmt
* update scripts
* mock weightinfo
* cargo fmt
* canvas kusama is substrate weight
* weights from bm2
* expanding to other similar config functions
* updated weights from bm2
* Revert "updated weights from bm2"
This reverts commit b1702780982c278b44f572c2089b1d7ddc564d76.
* Consolidation to one benchmark
* reran weights
* Update pallets/xcmp-queue/src/lib.rs
Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com >
* integrating review feedback
* rerun weights
* Add DispatchClass::Operational
Co-authored-by: Squirrel <gilescope@gmail.com >
Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com >
2022-03-07 11:47:24 +00:00
Dan Shields
65454fbf96
Update Cumulus to common Cargo formmating scheme ( #1050 )
...
* Update throughout with common Cargo formating scheme
2022-03-02 00:07:29 -07:00
wigy
6af1dd5f6f
Companion to "Updating scale to v3" ( #1013 )
...
* Updating dependencies
* Adapting code to scale v3
* cargo fmt
* Fix compilation
* Update Cargo.lock
* TIL exists
Co-authored-by: Bastian Köcher <info@kchr.de >
2022-02-25 13:40:24 +00:00
Doordashcon
7d48c42b56
Add Setter for XCMP QueueConfigData ( #931 )
...
* add QueueConfigData setter
* update weights
* syntax change
* add test case
* fix Result error
* cargo fmt
* Apply suggestions from code review
Co-authored-by: Alexander Popiak <alexander.popiak@gmail.com >
* update
* one call per set
* cargo fmt
* cargo fmt
* mutate method
* cargo fmt
Co-authored-by: Alexander Popiak <alexander.popiak@gmail.com >
2022-02-05 11:47:31 +00:00
Keith Yeung
77491879cd
Add the ability to suspend or resume XCM execution on the XCMP queue ( #896 )
...
* Add the ability to suspend or resume XCM execution on the XCMP queue
* Rename QueueActive to QueueSuspended
* Add the ability to suspend the DMP queue
* Rename XCMP to DMP in comments where appropriate
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Add a bypass for XCMP queue suspension
* Revert "Add the ability to suspend the DMP queue"
This reverts commit 363ca09b41e40fce3f2740e7ab78f5c54781ca5c.
* Change controller origin to either root or council-issued origin
* Rename to ControllerOriginConverter
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
2022-01-31 12:12:09 +00:00
Keith Yeung
9c977d66a3
Companion for paritytech/polkadot#4712 ( #901 )
...
* Rename ParentIsDefault to ParentIsAllZeroes
* Fixes
* Create ParentAccounts for respective networks
* Fixes
* Use b"Parent" as the basis for generating parent AccountId
* Fixes
* Use preset parent account ID
* update lockfile for {"polkadot"}
Co-authored-by: parity-processbot <>
2022-01-21 11:40:27 +00:00
Oliver Tale-Yazdi
b5c8fcbae6
co #4746 : Require MaxEncodedLen per default ( #917 )
...
* Add `without_storage_info`
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add `without_storage_info`
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add `without_storage_info`
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add `without_storage_info`
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* update lockfile for {"polkadot"}
* Run `cargo update -p sp-io`
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: parity-processbot <>
2022-01-20 13:51:37 +00:00
Bastian Köcher
4cc1223622
xcmp-queue: Fix handling of encoded blobs ( #889 )
...
* xcmp-queue: Fix handling of encoded blobs
With #701 we tried to fix some infinite loop related to encoded blobs, however that lead actually to
not being able to process encoded blobs at all. The reason for this is that `decode_all` doesn't
consume the given input. The point of this function is that it returns an error if the data couldn't
be decoded or there is still data left. However, this means that the check
`remaining_fragments.len() < last_remaining_fragments.len()` would always fail.
We remove the while loop, because we decode the entire fragment anyway or it fails. Aka, we don't
need to loop here. Next we remove the broken check and we directly reset the
`remaining_fragments` (because `decode_all` doesn't consume anything).
* Restore correct behavior
We need to use a while loop, because there can be multiple `Vec<u8>`s. We also need to use `decode`,
because `decode_all` would otherwise return an error if the input is not empty afterwards.
* Remove unused import
2022-01-19 16:57:03 +01:00
Ignacio Palacios
60c3ccfd62
Add set custom header to Seedling Runtime ( #846 )
...
* before adding seedling client side
* seedling runtime compiles
* create seedling spec script added
* seedling node & BaseCallFilter fixes
* update AllPalets
* formatting
* CallFilter + SignedExtra + AccountData fix
* XCM removed
* cleanup
* solo-to-para pallet added & before testing
* fix runtime upgrade method
* soloToPara pallet + set header
* clean up
* clean up 2
* signed extension check sudo added
* fmt + cleanup
* Refac code and fixes
* fmt
* Update pallets/solo-to-para/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update pallets/solo-to-para/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update pallets/solo-to-para/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* small fixes
* OnValidationData used
* small changes
* Update pallets/solo-to-para/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update pallets/solo-to-para/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update pallets/solo-to-para/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* OnValidationData replaced by OnSystemEvent
* fmt + cargo fix
* disable-default-bootnodes for seedling script
Co-authored-by: Ricardo Rius <ricardo@parity.io >
Co-authored-by: Ricardo Rius <9488369+riusricardo@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2022-01-14 14:21:10 +01:00
Bastian Köcher
2a8c07bf0b
Update to latest Polkadot & Substrate ( #850 )
...
* Update to latest Polkadot & Substrate
* More fixes
2021-12-10 12:08:41 +01:00
Gavin Wood
a4b3b378eb
Companion for #10382 (Insufficient asset quotes and deposits) ( #804 )
...
* MaxConsumers
* Fixes
* Fixes
* Fixes
* Fixes
* Bump
* Fixes
* Fixes
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-12-09 17:24:32 +01:00
Keith Yeung
b5a7ab4d12
Support overweight messages in XCMP queue ( #799 )
...
* Support overweight messages in XCMP queue
* Add storage migration logic to XCMP queue pallet
* Check whether required weight is larger than max individual weight first
* cargo fmt
* Add some unit tests
* Remove review question comment
2021-12-08 18:07:08 -08:00
Keith Yeung
ca81203b83
Refactor some types in XCMP queue ( #813 )
...
* Rename InboundXcmpStatus and its related types
* Rename OutboundXcmpStatus and its relevant types
* Add documentation to the newly created types
* Ensure storage prefixes are kept the same
* Add code comments
* Revert storage name changes
* typo fix
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
2021-12-02 00:24:04 +00:00
zjb0807
94988af02f
use double quotes instead of single quotes ( #815 )
2021-12-01 03:00:11 +00:00
Chevdor
8cc008b6a9
CI: Release start ( #788 )
...
* Initial version
* Fix branch pattern
* Fix template
* Update .github/ISSUE_TEMPLATE/release.md
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update .github/ISSUE_TEMPLATE/release.md
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Rebase master and fmt
* Swap out Polkadot JS section for integration tests + remove tags
* remove tags
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
2021-11-24 18:15:43 +01:00
Gavin Wood
5df273eea8
Fix use of weight limit errors ( #791 )
2021-11-24 13:26:45 +01:00
Bastian Köcher
d85a3a937f
Update Substrate & Polkadot ( #770 )
...
* Update Substrate & Polkadot
* Disable tests without debug assertions
2021-11-19 23:46:14 +01:00
Dan Shields
ec401ce1d0
move to rust 2021 ( #759 )
...
* move to rust 2021
* fix formatting, more moves
2021-11-16 15:12:06 +01:00
Gavin Wood
0793aa8937
Ensure a bad datastream cannot cause problems ( #701 )
...
* Ensure a bad datastream cannot cause problems
* Formatting
* Formatting
2021-10-27 13:40:24 +02:00
Bastian Köcher
0fad3ae44c
Same procedure as not every day ( #636 )
...
* Same procedure as not every day
* Remove warning
* Update
2021-10-01 13:23:56 +02:00
Keith Yeung
1aab3349cc
Use DecodeLimit for decoding XCM messages ( #605 )
...
* Use DecodeLimit for decoding XCM messages
* Use decode_all_with_depth_limit in appropriate places
* Use decode_all while decoding byte vector
* cargo fmt
2021-09-19 15:29:34 +03:00
Chevdor
1dd000a011
ci: add quick-check with rustfmt ( #615 )
...
* ci: add quick-check with clippy and rustfmt
* chore: rustfmt round
* chore: set the same rustfmt config than substrate
* chore: fix formatting
* cI: remove clippy
* ci: switch to nightly for the checks
* ci: fix toolchains and naming
* ci: Limit the check to formatting
* chore: fix formatting
* Update .rustfmt.toml
* Update .rustfmt.toml
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-09-16 16:57:52 +02:00
Andrew Jones
035a576008
Metadata v14 (companion to #3336 ) ( #564 )
...
* Remove event pallet::metadata attributes
* Add scale-info deps, TypeInfo derives, update call variants
* Update metadata runtime APIs
* Add missing scale_info dependency, update rococo runtime API
* Add missing scale_info dependency
* Remove pushed diener patches
* Cargo.lock
* Add missing scale-info dependencies
* Fixes
* Statemint runtime fixes
* Call struct variant empty matches
* Add missing scale-info dependency
* Fixes
* scale-info 1.0
* cargo update -p xcm
* update lock
* Update Cargo.lock
* update to latest polkadot
* remove rpc_http_threads
https://github.com/paritytech/substrate/pull/9737
* replace task executor with tokio handler
https://github.com/paritytech/substrate/pull/9737
* fix test compilation?
* Update Cargo.lock
* cargo update
* remove unused
* Update substrate and polkadot
* Update test/client/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-09-16 12:11:05 +02:00
Squirrel
a0532634e1
less deps ( #606 )
2021-09-12 23:22:14 +02:00
Robert Habermeier
6c8f1f7b3c
bump deps, fix aura-ext pallet, and fill in stubs for XCM ( #600 )
...
* bump deps, fix aura-ext pallet, and fill in stubs for XCM
* response handler, asset trap, asset claims
* subscription_service
* update xcmp-queue mock
* fix tests
* Update polkadot deps
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-09-04 14:57:48 -05:00
Gavin Wood
276e5bdd38
Companion for #3629 (XCM v2) ( #571 )
...
* Update .gitignore and bring into line with XCM v2's SendError
* type
* Some work
* Weighed responses
* extra fields to xcm pallet
* Fixes
* Bump
2021-08-28 15:51:49 +02:00
Keith Yeung
906bf97321
Use new MultiLocation syntax everywhere ( #570 )
...
* Use new MultiLocation syntax everywhere
* Make tests compile
2021-08-12 11:26:49 +02:00
Gavin Wood
b3c38f0926
Companion to #9514 (Remove Filter and use Contains instead) ( #566 )
...
* Remove Filter and use Contains instead
* Fixes
* Remove patch
* Bump Polkadot
* bump
2021-08-09 18:07:37 +02:00
Gavin Wood
6283c1fce9
Support XCM v1 (Companion to #2815 ) ( #561 )
...
* support for XCM v1
* Fixes
* Fix.
* Use `xcm::latest`
* Bump Polkadot
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-08-06 19:13:33 +00:00
Shaun Wang
47b368ea5c
Polkadot companion (XCM-simulator) ( #560 )
...
* Use definitions from polkadot.
* Remove unused imports.
* Rerun CI.
2021-08-05 08:43:51 +02:00
Bastian Köcher
594f2f4347
Update Substrate & Polkadot ( #540 )
2021-07-20 16:11:56 +02:00
Shawn Tabrizi
a3c33fd31d
make parachain system config consistent ( #538 )
2021-07-14 23:44:39 -04:00
Shaun Wang
f119e39033
Fix xcmp message processing condition. ( #510 )
...
* Fix xcmp message processing condition.
* add a very simple test
* Update Cargo.lock
* remove comment
* remove comment
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Alexander Popiak <alexander.popiak@gmail.com >
2021-07-06 16:35:59 +02:00
Keith Yeung
78ad174b15
Upgrade pallets to FRAMEv2 ( #404 )
...
* Upgrade parachain info pallet to FRAMEv2
* Upgrade parachain system pallet to FRAMEv2
* Use Pallet<T> instead of Module<T>
* Upgrade XCMP queue pallet to FRAMEv2
* Correctly specify the metadata for events in xcmp-queue pallet
* Apply suggestions from code review
* Update pallets/parachain-system/src/tests.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-05-08 22:18:01 +02:00
Gavin Wood
42c18b8cb5
Fix condition ( #424 )
...
Closes #419
2021-04-30 15:17:21 +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
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