Seun Lanlege
ab9c86d5e7
Introduce test runner biolerplate ( #2609 )
...
* adds test-runner boilerplate
* revert to master
* Update node/test/runtime/Cargo.toml
Co-authored-by: Andronik Ordian <write@reusable.software >
* fix warning
* use polkadot_development_config
* remove vestigial code
* ...
* remove unused dependencies
* adds simnet binary
* adds simnet binary
* merged with remote
* dummy to check pipeline
* add 2 docker files and a build cmd
* adds logging
* atempt to use binary from build host
* fix simnet-binary
* fix docker commands
* switch branches
* ...
* update docker file
* update the dockerfile 2
* add some message in the cheatsheet
* add repo to chaches stage also
* update paths
* do only 1 stage build
* add time when build cmd started
* remove debugg commands
* polkadot-simnet-substrate-working-version-v1
* reduce size of polkadot-simnet image
* update test runner api
* update test-runner
* ...
* revert to master
* Merge branch 'master' of github.com:paritytech/polkadot into substrate-test-runner
* bump impl version
* remove unused imports, fix test
* was_binary.to_vec()
* Apply suggestions from code review
Co-authored-by: Andronik Ordian <write@reusable.software >
* ...
* remove unused import
* remove unused import
* adds post upgrade test
* dry code
* revert spec_version
* update Cargo.lock
* tested and it works
* compare runtime spec version
* fix spaces, remove docker files
* replace spaces with tabs
* Update runtime/polkadot/src/lib.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
* ...
* revert Cargo.lock
* bump cargo.lock
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: radupopa2010 <radupopa2010@yahoo.com >
Co-authored-by: CI system <>
2021-07-13 16:45:27 +01:00
Qinxuan Chen
41045d891a
Companion for substrate#9197 ( #3359 )
...
* Companion for substrate#9197
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* update Substrate
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: parity-processbot <>
2021-07-13 08:05:48 +00:00
Alexander Theißen
2d102308de
Companion for #9276 : Remove Filter impl on () ( #3420 )
...
* Switch from () to AllowAllFilter
* Rename AllowAllFilter -> AllowAll
* update Substrate
Co-authored-by: parity-processbot <>
2021-07-12 21:12:52 +00:00
Kian Paimani
d53ec86bbe
Companion for substrate/pull/9286 ( #3443 )
...
* Fix weights
* try something to unbreak companion
* update Substrate
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: parity-processbot <>
2021-07-09 20:25:13 +00:00
Lldenaurois
7313e485d0
Approval voting overlay db ( #3366 )
...
* node/approval-voting: Introduce Backend trait and Overlaybackend
This commit introduces a Backend trait and attempts to move away
from the Action model via an OverlayBackend as in the ChainSelection
subsystem.
* node/approval-voting: Add WriteOps for StoredBlockRange and BlocksAtHeight
* node/approval-voting: Add load_all_blocks to overlay
* node/approval-voting: Get all module tests to pass.
This commit modifies all tests to ensure tests are passing.
* node/approval-voting: Address oversights in the previous commit
This commit addresses some oversights in the prior commit.
1. Inner errors in backend.write were swallowed
2. One-off write functions removed to avoid useless abstraction
3. Touch-ups in general
* node/approval-voting: Move from TestDB to dyn KeyValueDB
This commit removes the TestDB from tests.rs and replaces it with
an in-memory kvdb.
* node/approval-voting: Address feedback
* node/approval-voting: Add license to ops.rs
* node/approval-voting: Address second-pass feedback
* Add TODO
* node/approval-voting: Bump spec_version
* node/approval-voting: Address final comments.
2021-07-08 15:00:57 +00:00
Shawn Tabrizi
0e7217b4da
Companion for #9090 (include storage info) ( #3424 )
...
* update benchmark
* add host function
* update Substrate
* fix unused
Co-authored-by: parity-processbot <>
2021-07-07 23:01:00 +00:00
ferrell-code
528e751753
parchain initializer.rs to FrameV2 ( #3416 )
...
* migrate to FrameV2
* kusama & westend change pallet name
* keep item private
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2021-07-07 02:50:52 +00:00
Martin Pugh
5ba0de035e
Update all weights, add run_all_benches.sh script ( #3400 )
...
* update all weights
* add run_all_benches.sh
2021-07-06 13:12:28 +02:00
Svyatoslav Nikolsky
04ac35e127
Enable over-bridge-messaging in Rococo/Wococo runtime ( #3377 )
...
* bridges in W<>R
* fix node compilation
* Update runtime/rococo/src/bridge_messages.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update runtime/rococo/src/bridge_messages.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update runtime/rococo/src/bridge_messages.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update runtime/rococo/src/bridge_messages.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* long line fix
* comment/remove -> comment/#[ignore]
* explicit instances
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
2021-07-06 10:03:12 +00:00
ferrell-code
39969ca536
paras.rs to FRAME V2 ( #3403 )
...
* to v2 macro
* line width
* fix mock
* actually compile moxk
* compile tests
* add hooks
* origin back in mocks
* assimilate_storage
* add generic
* maybe mock compiles now
* origin between parachain and system causing problem
* change origin
* type alias as origin
* keep origin
* add aliases to tests
* remove unnecessary imports
* Parachain -> Paras
* paras test
* nvm
* use genesis build in mock
2021-07-06 00:24:27 +00:00
Igor Matuszewski
037f22342b
Use MaxEncodedLen trait from new parity-scale-codec v2.2 ( #3412 )
...
* Use MaxEncodedLen trait from new parity-scale-codec v2.2
* update Substrate
Co-authored-by: parity-processbot <>
2021-07-05 21:11:03 +00:00
ferrell-code
bf7aff2632
origin to frame v2 ( #3405 )
2021-07-05 16:48:51 +00:00
Kian Paimani
505145efd3
Staking Miner ( #3141 )
...
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
Co-authored-by: Peter Goodspeed-Niklaus <peter.r.goodspeedniklaus@gmail.com >
2021-07-01 20:22:35 +01:00
Bastian Köcher
ad46aadb1a
Companion for Substrate#8953 ( #3140 )
...
* Companion
* Update branch
* Update to correspond to substrate fixes
* Update cargo.lock
* Remove patches
* update Substrate
Co-authored-by: parity-processbot <>
2021-07-01 16:21:51 +00:00
Martin Pugh
cfbfefc972
Bump version, specs & substrate in prep for v0.9.8 ( #3387 )
...
* bump version
* bump substrate
* bump spec_versions
2021-07-01 12:09:41 +02:00
Shawn Tabrizi
4911251a72
Companion for #9193 ( #3376 )
...
* update name
* update Substrate
Co-authored-by: parity-processbot <>
2021-06-28 13:25:31 +00:00
Peter Goodspeed-Niklaus
95736d1bf1
Companion for Decouple Staking and Election - Part 3: Signed Phase ( #2793 )
...
* Companion for Decouple Staking and Election - Part 3: Signed Phase
https://github.com/paritytech/substrate/pull/7910
* remove some config types
* allow up to 5 signed submissions on polkadot and kusama
* signed phase is equal induration to unsigned phase
* use chain defaults for base and per-byte deposits; >= 16 SignedMaxSubmissions
* use a small but non-trivial solution reward
* reduce signed deposit per byte fee
* reduce signed reward, adjust polkadot expected soln size
* copy submit benchmark from substrate
* demo calculating an appropriate fee for the signed reward
Unfortunately, this doesn't work: it needs to be a constant function,
and AFAIK there's no way to make a trait method constant.
* SignedRewardBase is 1.5x the fee to submit a signed solution
* all chains use deposit byte of base per 50k
* update Substrate
* cargo update -p pallet-election-provider-multi-phase
Co-authored-by: parity-processbot <>
2021-06-28 14:36:20 +02:00
Squirrel
dcb08fd533
Use associated constant for max ( #3375 )
2021-06-28 11:32:33 +02:00
Bastian Köcher
ab6c79ecb6
Use wasm-builder from git ( #3354 )
...
* Use wasm-builder from git
This brings new features like compressed runtimes out of the box.
* chore: update wasm builder dep. from 3.0.0 to master
* Fix tests
* Update node/core/pvf/tests/it/main.rs
Co-authored-by: Sergei Shulepov <sergei@parity.io >
Co-authored-by: chevdor <chevdor@gmail.com >
Co-authored-by: Sergei Shulepov <sergei@parity.io >
2021-06-28 10:34:47 +02:00
Martin Pugh
022e8bc11c
Bump versions & spec_versions ( #3368 )
...
* bump versions & spec_versions
* bump Cargo.lock
2021-06-25 12:59:14 +02:00
Shawn Tabrizi
acec54a74b
Don't allow bids for a ParaId where there is an overlapping lease period ( #3361 )
...
* add already leased
Co-Authored-By: parity-processbot <>
* add unit test
Co-Authored-By: parity-processbot <>
* add integration test and fix
Co-Authored-By: parity-processbot <>
* better doc
Co-Authored-By: parity-processbot <>
* Update runtime/common/src/slots.rs
* Update runtime/common/src/slots.rs
* Apply suggestions from code review
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update runtime/common/src/integration_tests.rs
* Update runtime/common/src/integration_tests.rs
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_common::auctions --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_common_auctions.rs
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_common::auctions --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_common_auctions.rs
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_common::crowdloan --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_common_crowdloan.rs
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_common::auctions --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_common_auctions.rs
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_common::crowdloan --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_common_crowdloan.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::slots --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_common_slots.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Parity Bot <admin@parity.io >
2021-06-25 10:56:58 +00:00
Guillaume Thiolliere
4a1d1b2de3
Companion for upgrade of transaction-payment to pallet macro ( #3267 )
...
* update generic of storages
* update Substrate
* Remove unused import
* Remove unused import in test
Co-authored-by: parity-processbot <>
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2021-06-25 07:45:52 +00:00
Shawn Tabrizi
9e641ba187
Do not allow any crowdloan contributions during the VRF period ( #3346 )
...
* patch `is_ending` logic for sampling
* Create AuctionStatus abstraction
* clean up apis
* fix docs
* Add check for contributions during vrf
* custom error for this
* fix benchmark
* opening -> starting
* Apply suggestions from code review
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update runtime/common/src/auctions.rs
* avoid divide by zero stuff
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2021-06-24 17:24:37 -04:00
André Silva
6b408d1e38
runtime: remove randomness collective flip pallet ( #3347 )
...
* runtime: remove randomness collective flip pallet
* add storage migration to remove key
Co-Authored-By: parity-processbot <>
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-06-22 23:36:04 +00:00
dependabot[bot]
23f1b8ee37
Bump rand_chacha from 0.3.0 to 0.3.1 ( #3225 )
...
Bumps [rand_chacha](https://github.com/rust-random/rand ) from 0.3.0 to 0.3.1.
- [Release notes](https://github.com/rust-random/rand/releases )
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/rand/compare/rand_chacha-0.3.0...rand_chacha-0.3.1 )
---
updated-dependencies:
- dependency-name: rand_chacha
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>
2021-06-22 13:21:56 +02:00
Shawn Tabrizi
6b1baba490
Use max_code_size and max_wasm_data_size from Parachains Configuration ( #3329 )
...
* use `configuration::config()` for max bytes
* Update integration_tests.rs
* Update paras_registrar.rs
* remove consts
* add asserts for non-zero
* more const clean up
* 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=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
* add checks to `MAX_CODE_SIZE`
* re-pot MAX_POV_SIZE
* check pov limit in runtime
* POV_BOMB_LIMIT multiplier
* fix compile
* Update configuration.rs
* Update node/primitives/src/lib.rs
* fix test
Co-authored-by: Parity Bot <admin@parity.io >
2021-06-21 17:24:49 +00:00
Andronik Ordian
20d9ed06d6
downgrade a warn log to debug ( #3319 )
...
* downgrade to debug
* another thick log
* bump spec versions in kusama, polkadot and westend again IV
2021-06-20 16:15:13 +00:00
Andreas Doerr
be2d1ce01b
Bump BEEFY ( #3302 )
2021-06-19 17:46:06 +02:00
Shawn Tabrizi
039df45f00
New Weights for Polkadot / Kusama / Westend ( #3305 )
2021-06-19 07:08:05 +02:00
Kian Paimani
ae5b355754
Set new staking limits ( #3299 )
...
* Set staking limits
* Set westend limits as well
* Update runtime/kusama/src/lib.rs
Co-authored-by: Gavin Wood <gavin@parity.io >
Co-authored-by: Gavin Wood <gavin@parity.io >
2021-06-18 13:16:26 +01:00
dependabot[bot]
dc286de7af
Bump derive_more from 0.99.11 to 0.99.14 ( #3248 )
...
Bumps [derive_more](https://github.com/JelteF/derive_more ) from 0.99.11 to 0.99.14.
- [Release notes](https://github.com/JelteF/derive_more/releases )
- [Changelog](https://github.com/JelteF/derive_more/blob/master/CHANGELOG.md )
- [Commits](https://github.com/JelteF/derive_more/compare/v0.99.11...v0.99.14 )
---
updated-dependencies:
- dependency-name: derive_more
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>
2021-06-18 07:28:26 +02:00
Andronik Ordian
325cc888b1
cleanup more tests and spaces ( #3288 )
...
* cleanup more tests and spaces
* oops
2021-06-17 17:28:10 +00:00
Shawn Tabrizi
b5b42c94b7
Allow Council to Use Scheduler ( #3237 )
...
* Allow council to use scheduler
* westend doesnt have council
2021-06-17 09:03:10 +00:00
Shawn Tabrizi
0282ad3128
fix xcm pallet origin ( #3272 )
2021-06-16 21:57:29 +01:00
Shawn Tabrizi
2fbd705ed5
Companion for #8920 (Control Staking) ( #3260 )
...
* update weight apis
* update Substrate
Co-authored-by: parity-processbot <>
2021-06-16 09:17:26 +02:00
Keith Yeung
7d82d93f34
Companion for #8949 ( #3216 )
...
* Remove Call part imports of the offences and authority discovery pallets
* Remove non-existent Call enum variants
* Move ValidateUnsigned impl to be under #[pallet::validate_unsigned] in claims pallet
* Remove unused imports
* Remove Call part import for randomness collective flip pallet
* update Substrate
Co-authored-by: parity-processbot <>
2021-06-16 04:13:21 +00:00
Shawn Tabrizi
da71128daf
Companion for #9106 (remove_all with size limit) ( #3257 )
...
* update apis
* fix api
* rename to `KillStorageResult`
* update Substrate
Co-authored-by: parity-processbot <>
2021-06-15 13:52:54 +00:00
Martin Pugh
396b38b355
Bump version, spec_version & substrate in prep for release v0.9.5 ( #3238 )
...
* bump spec_version and version
* bump substrate
* remove migrations
* Revert "remove migrations"
This reverts commit ceeab924d1cd5c2d3d05f24ab28315f0566f89d8.
* remove stale migration for kusama + westend
2021-06-14 23:10:45 +02:00
Shawn Tabrizi
2a792b48e7
FallbackStrategy::Nothing ( #3088 )
2021-06-14 19:10:41 +00:00
Guillaume Thiolliere
364a8d751d
fix test ( #3240 )
2021-06-14 12:56:36 -05:00
Guillaume Thiolliere
0ca6ee45b5
companion for staking/election: prolonged era and emergency mode for governance submission. ( #3201 )
...
* companion
* update Substrate
Co-authored-by: parity-processbot <>
2021-06-14 14:33:55 +00:00
Qinxuan Chen
e05bd988ed
Companion for #9061 ( #3200 )
...
* migrate pallet-randomness-collective-flip to new pallet attr macro
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* fix some nits
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* fix
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* some nits
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* update Substrate
Co-authored-by: parity-processbot <>
2021-06-14 11:29:39 +00:00
Shawn Tabrizi
7f344df160
Companion for #9085 (pub calls) ( #3214 )
...
* update to use pub dispatchables
* update Substrate
* Update claims.rs
* remove warning
Co-authored-by: parity-processbot <>
2021-06-12 19:13:16 +01:00
André Silva
097cadca19
create newtype for ValidationCodeHash ( #3212 )
...
* create newtype for ValidationCodeHash
* pvf: fix tests compilation
* primitives: fix test compilation
2021-06-12 16:44:07 +00:00
Shaun Wang
693302bee0
Update claims pallet to FRAME v2 ( #3032 )
...
* Migrate claims pallet to pallet attribute macro.
* Trigger CI.
* Update runtime/common/src/claims.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2021-06-12 16:26:52 +00:00
Shawn Tabrizi
7e7b40d11c
Bump Substrate ( #3215 )
...
* fix warning
* Update lib.rs
2021-06-12 12:41:38 +02:00
André Silva
8c3bc2b2bb
replace HistoricalValidationCode usages with ValidationCodeByHash ( #3210 )
...
* replace HistoricalValidationCode usages with ValidationCodeByHash
* runtime-api: tabify tests file
* update implementers guide
2021-06-11 18:00:57 +00:00
Shawn Tabrizi
d7213d33ba
Companion for #9018 (transfer_all) ( #3184 )
...
* update weights
* update Substrate
Co-authored-by: parity-processbot <>
2021-06-11 16:32:41 +00:00
Shaun Wang
1a9dc0d8e9
Migrate mmr pallet to pallet attribute macro. ( #3061 )
2021-06-09 23:27:53 +00:00
dependabot[bot]
4de30aa5d9
Bump futures from 0.3.14 to 0.3.15 ( #3178 )
...
Bumps [futures](https://github.com/rust-lang/futures-rs ) from 0.3.14 to 0.3.15.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.14...0.3.15 )
---
updated-dependencies:
- dependency-name: futures
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>
2021-06-09 16:37:25 +02:00