Commit Graph

657 Commits

Author SHA1 Message Date
Alexander Theißen 5e80975d1b Move Canvas xcm config to own module (#994) 2022-02-21 08:14:18 +00:00
vincent 431c8df086 Fix parachain-template-runtime build fail (#996)
sync solution from #887
2022-02-20 12:17:10 +01:00
Alexander Theißen 230978b683 Add canvas-kusama runtime (#980)
* Added kanvas runtime

* Fix up benchmarking

* Fixup markdown stucture

* replace :emoji_name: by utf8
* fix up header hierarchy

* Merge canvas README

* Only use "Canvas" as a name

* Remove reference to Rocanvas
2022-02-17 16:18:48 -05:00
Shawn Tabrizi 81e7db5bc8 Fix Runtime Benchmarks Feature Flag in Parachain Template (#991)
* Update Cargo.toml

* add checks to ci
2022-02-16 13:33:08 +01:00
Keith Yeung e141b72ec7 Update rand to v0.8.5 (#987)
* Update rand to v0.8.5

* Enable std_rng feature on rand

* Enable std_rng only when std is enabled

* Revert "Enable std_rng only when std is enabled"

This reverts commit 8fb3b72dbd6dc18bc19868b999b5b07cea4b7392.
2022-02-14 23:14:05 +00:00
Bastian Köcher af29f2da18 Update Polkadot & Substrate (#985) 2022-02-14 11:16:41 +01:00
Keith Yeung 18af89c601 Move XCM configurations out into its own module (#981)
* Move XCM configurations out into its own module

* Revert removal of the AccountNonceApi
2022-02-11 15:59:48 -08:00
Squirrel b8eef1486c bump tx version (#966) (#975) 2022-02-10 16:19:16 +00:00
Squirrel 7a789ac2bc collective flip migration removed, uniques added (#965) (#974)
Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com>
2022-02-10 16:17:57 +00:00
Squirrel cc7116dde6 new weights for release-parachains-v7.0.0 (#951) (#973)
Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com>
2022-02-10 16:16:31 +00:00
Squirrel 19f0be8e08 Set statemin runtime versions (#971) 2022-02-10 16:15:49 +00:00
Squirrel 51f9ec06e4 Bump collator version (#970)
Co-authored-by: Wilfried Kopp <wilfried@parity.io>
2022-02-10 16:12:33 +00:00
Mara Robin B 4500d91830 ci: fix bash quoting in docker ci (#978) 2022-02-10 13:26:22 +00:00
Bastian Köcher a66eac712a Update Substrate & Polkadot (#977) 2022-02-10 09:34:22 +01:00
Bastian Köcher 1a7a452795 CI: Check that rustdocs can be generated (#972) 2022-02-09 13:24:42 +01:00
yjh e4576e541d Fix some typos for client (#968)
* chore: fix typos for consensus

* chore: fix typos for RelayChainError
2022-02-09 11:20:00 +01:00
Bastian Köcher 74472ea085 Update Substrate & Polkadot (#967) 2022-02-08 23:27:13 +01:00
Bastian Köcher 753f58caac Return compressed PoV from collation (#942)
* Return compressed PoV from collation

This enables us to also print the size of the compressed PoV.

* FMT

* Update Polkadot & Substrate

* Fix compilation

* Fixes

* FMT
2022-02-07 21:04:56 +00:00
omadoyeabraham b2f663475f Ensure invulnerables have associated validator keys before they are set (#812)
* Added check to ensure invulnerables have associated validator keys before they are set

* Added check to ensure invulnerables have associated validator keys before they are set

* Update pallets/collator-selection/src/lib.rs

Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>

* Added test for associated validators when setting invulnerables

* FMT

Co-authored-by: Omadoye Abraham <abraham.o@turing.com>
Co-authored-by: Ricardo Rius <9488369+riusricardo@users.noreply.github.com>
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>
Co-authored-by: Bastian Köcher <info@kchr.de>
2022-02-07 16:42:37 +00:00
Mara Robin B 93ca4e137e ci: fix publish-runtimes for parachains containing - in name (v2) (#959) 2022-02-07 11:41:47 +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
Mara Robin B 7f45366210 ci: fix publish-runtimes for rococo-parachain (or any other -parachain) failing on incorrect wasm path (#957) 2022-02-04 15:41:47 +00:00
Ignacio Palacios 43b427d89c Update command for running benchmarks (#954)
* Update command for running benchmarks

* add --locked

Co-authored-by: Chevdor <chevdor@users.noreply.github.com>

Co-authored-by: Chevdor <chevdor@users.noreply.github.com>
2022-02-03 17:41:44 +00:00
dependabot[bot] 079a2834ec Bump node-fetch from 2.6.5 to 2.6.7 in /scripts/scale_encode_genesis (#946)
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.5 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.5...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-02 11:00:53 +01:00
dependabot[bot] a52e8703ae Bump node-fetch from 2.6.1 to 2.6.7 in /scripts/generate_genesis_values (#945)
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-01 23:38:57 +01:00
Mara Robin B cb7b8249ff ci: fix broken reference to rococo srtool digest (#943) 2022-02-01 17:07:10 +00:00
Chris Sosnin 28b653b611 Remove unused cli param (#941) 2022-02-01 12:03:54 +01: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
Squirrel 88928d09a4 Add safe_xcm_version to Genesis Specs (#743) (#904)
* Add safe_xcm_version to Genesis Specs (#743)

* add safe_xcm_version to genesis specs

* cargo +nightly fmt

* Point to xcm latest version

Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>
2022-01-26 11:11:03 +00:00
Sebastian Kunert a9630551c2 Unify RelayChainInterface error handling and introduce async (#909) 2022-01-25 18:27:54 +01:00
Chevdor c70156b122 Add production profile (#934)
* Add production profile

* Fix opt-level

* Update Cargo.toml

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* Move opt-level to release

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
2022-01-25 14:46:05 +00:00
WMQ e25e21fd52 fix: remove duplicate event of pallet_balances (#933)
* fix: remove duplicate event of pallet_balances

https://github.com/paritytech/substrate/blob/master/frame/support/src/traits/tokens/currency.rs#L158
https://github.com/paritytech/substrate/blob/master/frame/balances/src/lib.rs#L1647

Since 0.9.12 of substrate, there is no need for a separate of balances event in runtime.

* Update impls.rs
2022-01-25 12:50:00 +01:00
Qinxuan Chen fd145766d4 Companion for substrate#10632 (#895)
* Companion for substrate#10632

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* cargo update -p clap

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* Update substrate

* update lockfile for {"polkadot"}

Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>
Co-authored-by: parity-processbot <>
2022-01-25 11:42:59 +00:00
Bastian Köcher a9eb032086 Update Substrate & Polkadot (#930)
* Update Substrate & Polkadot

* Hmm

* Set workspace hint path

* Test

* Use absolute path

* Update again
2022-01-22 20:49:01 +00:00
Bastian Köcher 9dd0f5c225 pov-recovery: Enable pov-recovery as well on full nodes (#927)
* pov-recovery: Enable pov-recovery as well on full nodes

Pov recovery was before only enabled for collators. The reason behind this was prevention of spam of
the relay chain for block recovery. However, recent events has shown that this wasn't a good idea.
So, this pr enables pov-recover for normal full nodes as well, but with a much higher delay before
trying to recover a block. This means that full nodes will wait in minimum 2.5 minutes and in
maximum 5 minutes before recovering a block. This should give collators in "normal mode" enough time
to recover a block (they wait in maximum 6 seconds after they have seen a new candidate in the relay
chain) before recovering a block. So, we should hopefully not spam the relay chain.

* FMT

* Fixes

* Fix documentation
2022-01-21 20:16:11 +01:00
Oliver Tale-Yazdi 2327eae5c9 Use define_benchmarks! (#926)
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
2022-01-21 17:13:23 +00:00
Squirrel d07da1c883 Bump the collator version (#747) (#919)
Co-authored-by: Chevdor <chevdor@users.noreply.github.com>
2022-01-21 11:45:56 +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
Bastian Köcher 0760c6804f Statemint: Support running statemint only with ed25519 (#923)
* Statemint: Support running statemint only with ed25519

* FMT

* Update polkadot-parachains/parachains-common/src/lib.rs

Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>

Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>
2022-01-21 09:17:02 +01:00
Squirrel ec751f8fca merge of: Add system weights to Statemint (#762) (#918)
* Add system weights to Statemint (#762)

* waiting for weights from bm

* frame_system weights added

* cargo toml fix + fmt

* removed non-existent set_changes_trie_config

Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com>
2022-01-21 08:11:01 +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
Chevdor e0264b3dba Pin the changelogerator version (#898)
ref #851
2022-01-20 11:39:15 +01:00
Kian Paimani f1474d1d4f Add the uniques migration for statemine (#911)
* Add the uniques migration for statemine

* return weight from on_runtime_upgrade (#914)

need to return the weight from on_runtimie_upgrade().

* cargo update -p sp-io

* cargo update -p polkadot-primitives

Co-authored-by: hamidra <hamid.alipour@gmail.com>
2022-01-20 10:14:31 +01:00
Squirrel 1aa820a483 Add collator selection tool tips (#900)
* First doc lines should show as tool tips

* Update pallets/collator-selection/src/lib.rs

* Update pallets/collator-selection/src/lib.rs

Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>

* Update pallets/collator-selection/src/lib.rs

Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>

* Update pallets/collator-selection/src/lib.rs

Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>

* moving comment onto storage

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>
2022-01-19 17:42:09 +01:00
Squirrel fc79d0dc61 Update Statemint prefix (#916)
Co-authored-by: Ricardo Rius <ricardo@parity.io>
2022-01-19 16:58:37 +01: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
Squirrel 6341fafe9d weights update statemine v6 (#754) (#915)
Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com>
2022-01-19 15:12:24 +00:00
Squirrel 7ce3fe4e0d Add Statemint Genesis Values (#817) (#905)
* Add Statemint Genesis Values (#817)

* add some docs to genesis scripts

* move statemint test chainspec

* add initial (draft) version of statemint chain spec

* adjust genesis value script

* add Statemint genesis Aura keys

* add bootnodes to statemint-genesis spec

* Add checks, debug and doc (#790)

* Add checks, debug and doc

* Update scripts/generate_genesis_value.sh

Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>

* Update scripts/generate_genesis_value.sh

Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>

Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>

* default to official shell rpc endpoint for genesis values

* remove statemint test chain spec

* add Statemint chain spec and genesis values

* sort statemint genesis values

* some script docs adjustments

Co-authored-by: Chevdor <chevdor@users.noreply.github.com>

* cargo fmt

Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>
Co-authored-by: Chevdor <chevdor@users.noreply.github.com>
2022-01-19 10:43:46 +00:00
Squirrel 9c4aa3b21f Configure Statemint and Statemine to Allow Teleports (#912)
* configure pallet-xcm to allow teleports but forbid generic sends

* bump spec_version

Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>
2022-01-19 08:57:13 +00:00
Squirrel 3a8ed1210f bump transaction_version due to parachain_system change (#748) (#903)
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>
2022-01-18 20:01:34 +01:00