Shaun Wang
fe97d7eb16
XCM docstring typo fix ( #3138 )
...
* Typo fix in xcm crate.
* Update xcm/src/v0/junction.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-05-31 07:49:43 +00:00
Martin Pugh
2174d9475e
bump version & substrate ( #3085 )
2021-05-24 12:36:30 +02:00
Martin Pugh
fe97c3a3a2
Bump version & spec version in prep for v0.9.2 ( #3046 )
...
* bump version & spec version
* update Cargo.lock
* bump substrate
2021-05-18 23:03:45 +02:00
Gavin Wood
dcae333e82
Introduce reserve-asset transfer extrinsic ( #3010 )
...
* Introduce reserve-asset transfer extrinsic
* Fixes
2021-05-12 21:07:20 +02:00
Gavin Wood
41a93127a9
Check out/in assets when teleporting to maintain total issuance ( #3007 )
...
* Check out/in assets when teleporting to maintain total issuance
* Fixes
* Fixes
* Fixes
* Fixes
* Update xcm/xcm-executor/src/traits/transact_asset.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Docs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-05-12 08:39:16 +02:00
Martin Pugh
25cd67436c
Bump version to v0.9.1 and spec_version to v9010 ( #3001 )
...
* bump version and spec_version
* fix generate_release_text.rb
* Revert "fix generate_release_text.rb"
This reverts commit 9e01e0ae4f6db2155d123f69063db7d7564588e0.
* fix publish_draft_release
* fix publish_draft_release
* update target cache
2021-05-11 15:27:52 +02:00
Gavin Wood
36b9d23923
Dispatchable for teleporting assets ( #2995 )
...
* Dispatchable for teleporting assets
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
* Update node/network/protocol/src/peer_set.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Update xcm/src/v0/traits.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-05-10 16:13:46 +02:00
Robert Habermeier
2d18b26151
Add parachains modules to Westend and Kusama runtimes ( #2854 )
...
* add `force_set_active_config`
* add parachains modules to Westend
* add parachains modules to Kusama runtime
* use real runtime API impl
* add module indices and remove auctions, crowdloan
* add benchmarks
* remove previous migrations and add host configuration set migration
* make compile
* Add Call Filter for Registrar and Slots except Root
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=slots --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=paras_registrar --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/
* fix build
* update `add_benchmark`
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_common::paras_registrar --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_common_paras_registrar.rs
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_common::slots --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_common_slots.rs
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_common::paras_registrar --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_common_paras_registrar.rs
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_common::slots --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_common_slots.rs
* fix weights
* tweak more constants
* Fix up the kusama runtime
* Westend runtime fixups
* Fix MMR & Beefy for westend
* Fixes
* fix tests
* Update runtime/polkadot/src/constants.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Update runtime/westend/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
Co-authored-by: Gav Wood <gavin@parity.io >
2021-05-01 17:36:11 +02:00
Martin Pugh
7a99a18d1d
v0.9.0 prep ( #2959 )
...
* bump version and unify spec version
* bump substrate
* spec_version to 900
2021-04-29 18:21:58 +02:00
Gavin Wood
ce457a91e1
Implement null weight trader ( #2957 )
2021-04-29 15:35:07 +02:00
Gavin Wood
f36d8efb3d
Allow normal accounts to execute XCM for withdraw+teleport ( #2953 )
...
* Allow normal accounts to execute XCM for withdraw+teleport
* Bump Substrate
2021-04-28 23:13:19 +02:00
Gavin Wood
c0bf7e3d8c
Required weight is returned in case it exceeds limit. ( #2952 )
2021-04-28 18:24:39 +02:00
Martin Pugh
9c60982989
Bump version, bump substrate & update benchmarks in preparation for v0.8.31 ( #2938 )
...
* bump version
* bump cargo
* update benchmarks
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_identity --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
2021-04-28 13:23:54 +02:00
Guillaume Thiolliere
41e57c4509
change junction parachain id from named field to unnamed field ( #2940 )
...
* use unnamed field for parachain variant in junction
* remove outdated comment
2021-04-27 14:49:55 +02:00
Gavin Wood
9194219586
Add XCM Origin and converter ( #2896 )
...
* Add XCM Origin and converter
* IsMajority filter can be location-prefixed
* Update xcm/pallet-xcm/src/lib.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update xcm/src/v0/multi_location.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Introduce UsingComponents to allow reuse of fee payment in XCM
* Use Drop rather than finalize
* Add errors for weight.
* Apply suggestions from code review
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Fixes
* Update xcm/xcm-builder/src/weight.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Various XCM fixes and improvements
* Fixes
* Update xcm/xcm-builder/src/weight.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update xcm/xcm-builder/src/weight.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update xcm/xcm-builder/src/weight.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Fixes
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2021-04-27 14:33:40 +02:00
Kian Paimani
47889d845c
Fix bench bot ( #2900 )
...
* Fix bench bot
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_membership --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/
* Fix weights files
* Fix'
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_membership --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
2021-04-21 01:38:19 +00:00
Gavin Wood
359ade2b89
Dedupe some code and companion for #8589 ( #2873 )
...
* Dedupe some code and companion for #8589
* Bump Substrate
2021-04-11 12:22:45 +00:00
Gavin Wood
025200fb25
Rococo allows ROC to be teleported from Tick, Trick and Track ( #2872 )
...
Also allows unpaid messages from them.
2021-04-10 12:59:50 +02:00
Gavin Wood
69bd6d8ef2
Introduce/integrate a collective into Rococo Relay ( #2869 )
...
* Introduce a collective into Rococo runtime
* Intregrate Rococo Collective into XCM
* Fixes
* Update runtime/rococo/src/lib.rs
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
2021-04-09 22:16:32 +02:00
Gavin Wood
c9102c11a4
XCM Revamp Continued ( #2865 )
...
* Introduce plurality XCM locations
* Add RelayedFrom
* DMP dispatch weight handling.
* Add pallet for XCM sending, add routing logic.
* Update error types & doc
* Fix warnings.
* Fixes
* Fixes
* Fixes
* Bump Substrate
* Fixes
* Docs
* Docs
* Docs
* Fixes
* Fixes
* Fixes
* Update xcm/pallet-xcm/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Docs
* Fixes
* Update lib.rs
* Fixes
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-04-09 20:34:28 +02:00
Gavin Wood
9b4844e853
Introduce plurality XCM locations ( #2846 )
...
* Introduce plurality XCM locations
* Add RelayedFrom
2021-04-08 20:58:06 +02:00
Gavin Wood
adc238ad86
XCM revamp ( #2836 )
...
* Remove unused relaying XCM
* Aggregate HRMP (XCMP/HMP) messages. Payloads for spambot.
* Revert lock
* Fix
* Broken example
* Introduce fee payment mechanics into XCM.
* Weight limitations on XCM execution
* Mock environment for tests and the first test
* Tests for XCM and a few refactors.
* Remove code that's not ready
* Fix for an XCM and an additional test
* Query response system
* 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
* Some build fixes
* Remove the Encode bounds sprayed around
* More faff
* Fix bounds amek use latest scale codec.
* remove println
* fixes
* Fix XcmExecutor Tests
* Fix XCM bounds using derivative crate
* Refactor names of XcmGeneric &c into Xcm
* Repot the xcm-executor into xcm-builder
* Docs
* Docs
* Fixes
* Update xcm/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Fixes
* Docs
* Update runtime/parachains/src/ump.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Docs
* Fixes
* Fixes
* Fixes
* Docs
* Fixes
* Fixes
* Introduce transfer_asset specialisation.
* Fixes
* Fixes
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-04-07 22:38:29 +02:00
Guillaume Thiolliere
445f626c34
Fix usage ( #2775 )
2021-03-30 18:37:24 +02:00
Gavin Wood
0395b5dd16
Fungibles adapter and MultiLocation::X8 ( #2662 )
...
* Fungibles adapter and MultiLocation::X8
* Comments
* Comment & whitespace
* Fix up CI/CD for the new labels.
* Fix labels
* Whitespace
* Fixes
* Update Cargo.lock
* Update xcm/xcm-builder/src/fungibles_adapter.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-03-30 17:52:50 +02:00
Martin Pugh
9938513e71
Bump version , weights and substrate in prep for v0.8.30 ( #2690 )
...
* bump version and substrate
* bump old forgotten versions
* update weights
* bump substrate
* Revert "bump substrate"
This reverts commit 8b5004b6fe9ce9ccdf143d3fe878802931ea4f2f.
Co-authored-by: André Silva <andrerfosilva@gmail.com >
2021-03-25 11:29:11 +01:00
Shaun Wang
d859734ed9
Replace XCM Error::Undefined usage ( #2580 )
...
* Replace undefined error in currency adapter.
* Update tranact asset errors.
* Update TransactAsset trait documentations.
* Update currency adapter error documentation.
2021-03-09 15:46:30 +01:00
Amar Singh
5b3fa6f7f6
add accountkey20 conversion impls ( #2576 )
2021-03-07 17:54:30 -04:00
Bastian Köcher
7a2c7aa3fe
Companion for init the RuntimeLogger automatically ( #2522 )
...
* Lol
* Add the features
* Remove some more runtime logger init calls
* Make companion check work
* Revert "Make companion check work"
This reverts commit a255c798076466c0fa20a4db713fc712772c2b4d.
* Update Substrate
2021-03-01 16:15:34 +01:00
Shaun Wang
135cce9055
Add Xcm sender. ( #2489 )
...
* Add Xcm sender.
* Rename XCM sender and add description.
* Update copyright header.
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-03-01 14:25:55 +01:00
Guillaume Thiolliere
29f12f3f48
Upgrade codec to 2.0 and bitvec to 0.20 (companion) ( #2343 )
...
* upgrade codec and bitvec
* "Update Substrate"
Co-authored-by: parity-processbot <>
2021-01-29 14:35:45 +01:00
Guillaume Thiolliere
a3682f8d9d
bump codec minor version ( #2247 )
2021-01-11 23:00:07 +01:00
Shawn Tabrizi
0efee478a2
patches ( #1965 )
2020-11-17 15:26:19 +00:00
Andronik Ordian
0a8a607a58
update most of the dependencies ( #1946 )
...
* update tiny-keccak to 0.2
* update deps except bitvec and shared_memory
* fix some warning after futures upgrade
* remove useless package rename caused by bug in cargo-upgrade
* revert parity-util-mem *
* remove unused import
* cargo update
* remove all renames on parity-scale-codec
* remove the leftovers
* remove unused dep
2020-11-17 11:16:31 +01:00
Sergei Shulepov
c96f8cfcca
Implement HRMP ( #1900 )
...
* HRMP: Update the impl guide
* HRMP: Incorporate the channel notifications into the guide
* HRMP: Renaming in the impl guide
* HRMP: Constrain the maximum number of HRMP messages per candidate
This commit addresses the HRMP part of https://github.com/paritytech/polkadot/issues/1869
* XCM: Introduce HRMP related message types
* HRMP: Data structures and plumbing
* HRMP: Configuration
* HRMP: Data layout
* HRMP: Acceptance & Enactment
* HRMP: Test base logic
* Update adder collator
* HRMP: Runtime API for accessing inbound messages
Also, removing some redundant fully-qualified names.
* HRMP: Add diagnostic logging in acceptance criteria
* HRMP: Additional tests
* Self-review fixes
* save test refactorings for the next time
* Missed a return statement.
* a formatting blip
* Add missing logic for appending HRMP digests
* Remove the channel contents vectors which became empty
* Tighten HRMP channel digests invariants.
* Apply suggestions from code review
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
* Remove a note about sorting for channel id
* Add missing rustdocs to the configuration
* Clarify and update the invariant for HrmpChannelDigests
* Make the onboarding invariant less sloppy
Namely, introduce `Paras::is_valid_para` (in fact, it already is present
in the implementation) and hook up the invariant to that.
Note that this says "within a session" because I don't want to make it
super strict on the session boundary. The logic on the session boundary
should be extremely careful.
* Make `CandidateCheckContext` use T::BlockNumber for hrmp_watermark
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
2020-11-06 15:35:36 +00:00
Qinxuan Chen
39db0688de
Companion for substrate #7159 ( #1747 )
...
* Companion for paritytech/substrate#7159
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* update WithdrawReason in xcm
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* "Update Substrate"
Co-authored-by: parity-processbot <>
2020-10-29 12:35:58 +00:00
Shawn Tabrizi
d79b37b8fd
Finish XCM Executor Assets w/ Tests ( #1821 )
...
* adding some basic tests
* min error
* fix min
* fix saturating_take
* all fungible and non fungible
* min abstract
* fix saturating take
* clean up
* some comments and fixes
* another fix
* more fixes
* comment
* remove unnecessary collect
* improve iter cloning
* better saturating_take impl
* feedback
* fix no_std build
* add doc tests
* mem::replace to be a bit more efficient
* better api
2020-10-27 20:00:14 +01:00
Pierre Krieger
23b7542fee
Tweak Cargo.tomls to make burnin easier ( #1805 )
2020-10-13 13:32:30 +02:00
Shawn Tabrizi
fc1153681e
XCM: Land XCM Builder ( #1793 )
...
* Land XCM Builder
* Clean up Cargo dependencies
Co-authored-by: Gavin Wood <gavin@parity.io >
2020-10-07 16:32:53 +00:00
Sergei Shulepov
22e7d54f4d
XCM: Land xcm-handler and xcm-executor ( #1771 )
...
Co-authored-by: Gavin Wood <gavin@parity.io >
2020-10-06 10:03:07 +02:00
Sergei Shulepov
5d4eb6bdce
Add the XCM primitives crate. ( #1760 )
...
Co-authored-by: Gavin Wood <gavin@parity.io >
Co-authored-by: Gavin Wood <gavin@parity.io >
2020-09-28 14:28:03 +00:00