Commit Graph

571 Commits

Author SHA1 Message Date
Bastian Köcher df18c424d8 Dependabot: A new round... (#1034) 2022-02-22 16:58:27 +01:00
dependabot[bot] 39f069e831 Bump nix from 0.17.0 to 0.23.1 (#1017)
Bumps [nix](https://github.com/nix-rust/nix) from 0.17.0 to 0.23.1.
- [Release notes](https://github.com/nix-rust/nix/releases)
- [Changelog](https://github.com/nix-rust/nix/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nix-rust/nix/compare/v0.17.0...v0.23.1)

---
updated-dependencies:
- dependency-name: nix
  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-02-22 16:50:13 +01:00
dependabot[bot] 64a0b0e41b Bump hex-literal from 0.2.1 to 0.3.4 (#1028)
Bumps [hex-literal](https://github.com/RustCrypto/utils) from 0.2.1 to 0.3.4.
- [Release notes](https://github.com/RustCrypto/utils/releases)
- [Commits](https://github.com/RustCrypto/utils/compare/hex-literal-v0.2.1...hex-literal-v0.3.4)

---
updated-dependencies:
- dependency-name: hex-literal
  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-02-22 16:49:46 +01:00
Bastian Köcher c09389b501 Dependabot: Also ignore polkadot :grimaced: (#1026)
* Dependabot: Also ignore polkadot :grimaced:

* And XCM
2022-02-22 15:18:46 +01:00
Bastian Köcher 26de63254b Dependabot: Make sure to ignore all the Substrate deps (#1021) 2022-02-22 14:54:28 +01:00
Sergejs Kostjucenko 20f525635a Add dependabot config file (#1015) 2022-02-22 12:56:39 +01:00
Koute 5f74b4cf67 Bump tokio to 1.17.0 (#1014) 2022-02-22 11:01:17 +00:00
Alexander Theißen 1864a61706 canvas: Run migrations defined by pallet-contracts (#1011)
* Run migrations defined by pallet-contracts

* cargo fmt
2022-02-21 15:28:25 +00:00
Squirrel 20fb742513 updating benchmarking script (#1012)
we should be using production profile for benchmarks.
--raw does not exist: https://github.com/paritytech/substrate/pull/10771
2022-02-21 15:18:56 +00:00
Alexander Theißen 8988ecb938 canvas: More refactoring (#997)
* canvas: Move contracts config to own file

* Reduce usage of parameter_types where possible

* Fix try-runtime compilation
2022-02-21 11:59:29 +00:00
Alexander Theißen 16b1ce796a canvas: Add sudo (#1010) 2022-02-21 11:45:43 +00:00
Squirrel 2c73873527 Remove migrations that have been executed. (#986) 2022-02-21 11:25:54 +00:00
Alexander Theißen 2ebe089f99 Bump state version (#1009) 2022-02-21 10:57:56 +00:00
Bastian Köcher a17b173a87 Fix relay chain node name (#1008)
Before this fix the relay chain node name was always a random generated, because we did not had
implemented all the required methods of the `CliConfiguration` trait.
2022-02-21 11:34:23 +01:00
Alexander Theißen 6766b8106a Move Canvas xcm config to own module (#994) 2022-02-21 08:14:18 +00:00
vincent 5bc7eba412 Fix parachain-template-runtime build fail (#996)
sync solution from #887
2022-02-20 12:17:10 +01:00
Alexander Theißen 4d319d0fae 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 eeca2bb61a 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 e7d354ca14 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 774cdac585 Update Polkadot & Substrate (#985) 2022-02-14 11:16:41 +01:00
Keith Yeung d166c78b17 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 4515e3ec7e bump tx version (#966) (#975) 2022-02-10 16:19:16 +00:00
Squirrel 999748757b 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 ce2fca24f0 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 acf37d29cc Set statemin runtime versions (#971) 2022-02-10 16:15:49 +00:00
Squirrel 8e276aecb1 Bump collator version (#970)
Co-authored-by: Wilfried Kopp <wilfried@parity.io>
2022-02-10 16:12:33 +00:00
Mara Robin B 18408a34cb ci: fix bash quoting in docker ci (#978) 2022-02-10 13:26:22 +00:00
Bastian Köcher c051bbdb45 Update Substrate & Polkadot (#977) 2022-02-10 09:34:22 +01:00
Bastian Köcher 98f0e87daf CI: Check that rustdocs can be generated (#972) 2022-02-09 13:24:42 +01:00
yjh e6e5d1bb0a 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 f52b549571 Update Substrate & Polkadot (#967) 2022-02-08 23:27:13 +01:00
Bastian Köcher 6cbb92bbc8 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 de8462ec2b 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 b5a268e69b ci: fix publish-runtimes for parachains containing - in name (v2) (#959) 2022-02-07 11:41:47 +00:00
Doordashcon 5956c70a58 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 03ac127508 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 56d89ab041 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] 5c589926ce 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] 77ae936b57 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 21fb5199a3 ci: fix broken reference to rococo srtool digest (#943) 2022-02-01 17:07:10 +00:00
Chris Sosnin 8a98067d96 Remove unused cli param (#941) 2022-02-01 12:03:54 +01:00
Keith Yeung d793334bbd 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 c69b749290 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 dacd0aed5e Unify RelayChainInterface error handling and introduce async (#909) 2022-01-25 18:27:54 +01:00
Chevdor ced952c1ce 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 cbae45a27d 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 e802dcad1d 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 12fc58d1bb 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 035f7cee9f 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 ab76ff5313 Use define_benchmarks! (#926)
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
2022-01-21 17:13:23 +00:00