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
20b2bba1cd
UncheckedExtrinsic: Harden decode and clarify EXTRINSIC_FORMAT_VERSION ( #10829 )
...
* UncheckedExtrinsic: Harden decode and clarify `EXTRINSIC_FORMAT_VERSION`
* Apply suggestions from code review
2022-02-10 12:34:35 +00:00
Shawn Tabrizi
8d783038c8
Allow SetBalance to handle error when trying to kill acount with reference counter. ( #10826 )
...
* bug found
* fix logic
* a little simpler
* add test
2022-02-10 11:08:05 +00:00
dependabot[bot]
94caa93a14
Bump serde_json from 1.0.74 to 1.0.78 ( #4889 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.74 to 1.0.78.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.74...v1.0.78 )
---
updated-dependencies:
- dependency-name: serde_json
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-02-10 10:03:01 +01:00
Bastian Köcher
c051bbdb45
Update Substrate & Polkadot ( #977 )
2022-02-10 09:34:22 +01:00
Arkadiy Paronyan
13b7c3ccdf
Add db params for export-state CLI command ( #10830 )
2022-02-09 23:55:26 +01:00
Vsevolod Stakhov
84f55cc8d5
Create a more rigid overseer builder pattern that fails at compile time ( #4753 )
...
Introduces `Missing<Field>` and `Init<Field>` states, that are used in place of builder generics, and make this possible.
2022-02-09 17:01:16 +01:00
dependabot[bot]
227e39bff6
Bump clap from 3.0.7 to 3.0.14 ( #4865 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.0.7 to 3.0.14.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.0.7...v3.0.14 )
---
updated-dependencies:
- dependency-name: clap
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-02-09 16:11:16 +01:00
dependabot[bot]
40e172bb32
Bump syn from 1.0.84 to 1.0.86 ( #4870 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.84 to 1.0.86.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.84...1.0.86 )
---
updated-dependencies:
- dependency-name: syn
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-02-09 15:40:34 +01:00
dependabot[bot]
f853c31f7d
Bump quote from 1.0.14 to 1.0.15 ( #4880 )
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.14 to 1.0.15.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.14...1.0.15 )
---
updated-dependencies:
- dependency-name: quote
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-02-09 14:04:30 +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
dependabot[bot]
2a95f4fc43
Bump futures-util from 0.3.19 to 0.3.21 ( #4883 )
...
Bumps [futures-util](https://github.com/rust-lang/futures-rs ) from 0.3.19 to 0.3.21.
- [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.19...0.3.21 )
---
updated-dependencies:
- dependency-name: futures-util
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-02-09 11:08:09 +01:00
dependabot[bot]
6ed0c3c853
Bump color-eyre from 0.5.11 to 0.6.0 ( #4884 )
...
Bumps [color-eyre](https://github.com/yaahc/color-eyre ) from 0.5.11 to 0.6.0.
- [Release notes](https://github.com/yaahc/color-eyre/releases )
- [Changelog](https://github.com/yaahc/color-eyre/blob/master/CHANGELOG.md )
- [Commits](https://github.com/yaahc/color-eyre/compare/v0.5.11...v0.6.0 )
---
updated-dependencies:
- dependency-name: color-eyre
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-09 11:00:30 +01:00
Koute
9a31b2c341
Add a new host function for reporting fatal errors; make WASM backtraces readable when printing out errors ( #10741 )
...
* Add a new host function for reporting fatal errors
* Fix one of the wasmtime executor tests
* Have `#[runtime_interface(wasm_only)]` actually mean WASM-only, and not no_std-only
* Print out errors through `Display` instead of `Debug`
* Switch one more trait to require `Error` for its error instead of only `Debug`
* Align to review comments
2022-02-09 09:12:55 +00:00
Shawn Tabrizi
bd261d57c4
--dev implies --tmp ( #10828 )
2022-02-09 08:37:43 +00:00
Bastian Köcher
f3f18ace7d
Remove node-primitives ( #4877 )
...
This is some Substrate crate that shouldn't be used outside of Substrate.
2022-02-08 23:48:12 +01:00
Bastian Köcher
f52b549571
Update Substrate & Polkadot ( #967 )
2022-02-08 23:27:13 +01:00
dependabot[bot]
a3bc1f4869
Bump indexmap from 1.7.0 to 1.8.0 ( #4876 )
...
Bumps [indexmap](https://github.com/bluss/indexmap ) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/bluss/indexmap/releases )
- [Changelog](https://github.com/bluss/indexmap/blob/master/RELEASES.rst )
- [Commits](https://github.com/bluss/indexmap/compare/1.7.0...1.8.0 )
---
updated-dependencies:
- dependency-name: indexmap
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-08 21:47:06 +01:00
dependabot[bot]
ad2e8e5006
Bump assert_cmd from 2.0.2 to 2.0.4 ( #4866 )
...
Bumps [assert_cmd](https://github.com/assert-rs/assert_cmd ) from 2.0.2 to 2.0.4.
- [Release notes](https://github.com/assert-rs/assert_cmd/releases )
- [Changelog](https://github.com/assert-rs/assert_cmd/blob/master/CHANGELOG.md )
- [Commits](https://github.com/assert-rs/assert_cmd/compare/v2.0.2...v2.0.4 )
---
updated-dependencies:
- dependency-name: assert_cmd
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-02-08 21:42:35 +01:00
dependabot[bot]
2632cbb866
Bump serde from 1.0.132 to 1.0.136 ( #10816 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.132 to 1.0.136.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.136 )
---
updated-dependencies:
- dependency-name: serde
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-02-08 19:27:08 +00:00
dependabot[bot]
684894aabc
Bump zstd from 0.9.1+zstd.1.5.1 to 0.9.2+zstd.1.5.1 ( #4868 )
...
Bumps [zstd](https://github.com/gyscos/zstd-rs ) from 0.9.1+zstd.1.5.1 to 0.9.2+zstd.1.5.1.
- [Release notes](https://github.com/gyscos/zstd-rs/releases )
- [Commits](https://github.com/gyscos/zstd-rs/compare/0.9.1...v0.9.2 )
---
updated-dependencies:
- dependency-name: zstd
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-02-08 20:16:18 +01:00
dependabot[bot]
2ffcb55609
Bump serde from 1.0.132 to 1.0.136 ( #4869 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.132 to 1.0.136.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.136 )
---
updated-dependencies:
- dependency-name: serde
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-02-08 20:14:22 +01:00
Zeke Mostov
b9947f4661
try-runtime-cli: Add to docs ( #10822 )
...
* try-runtime-cli: Add to docs of pre/post hooks
* Add note about --ws-max-out-buffer-capacity 1000
2022-02-08 19:05:34 +00:00
Javier Viola
b2b723a3db
remove upgrade test ( #4873 )
2022-02-08 16:57:26 +00:00
S E R A Y A
1b29ce0005
fixed regression in inline docs ( #10819 )
2022-02-08 14:24:20 +00:00
Shawn Tabrizi
f6f82d876b
Add Storage Info to Various Pallets ( #10810 )
...
* atomic swap
* bounties
* bounties fmt
* gilt
* indices
* nicks
* randomness-collective-flip
* recovery
* reuse maxapprovals
* Update tests.rs
* Update frame/randomness-collective-flip/src/lib.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* use the correct bound
* complete recovery
* use `bounded_vec` macro
* Update tests.rs
* transaction payment
* uniques
* mmr
* example offchain worker
* beefy-mmr
* Update frame/recovery/src/lib.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Use BoundedVec instead of a type-parameterized BoundedString
* cargo fmt
* Update frame/atomic-swap/src/lib.rs
* use config const
* Update lib.rs
* update mel_bound
* fmt
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2022-02-08 14:10:35 +00:00
Yarik Bratashchuk
d14e1c641e
seal_delegate_call api function (support for library contracts) (#10617 )
...
* seal_call_code implementation
- tests
- benchmark
* Addressing @xgreenx's comments
* Fix test-linux-stable-int
* Rename seal_call_code to seal_delegate_call
* Pass value unchanged into lib contract
* Address @athei's comments
- whitespace .wat issues
- wrong/missing .wat comments
- redundant .wat calls/declarations
- change order of functions (seal_delegate_call right after seal_call)
in decls, tests, benchmark
- fix comments, move doc comments to enum variants
- remove unnecessary empty lines
- rename runtime cost DelegateCall to DelegateCallBase
- do not set CallFlags::ALLOW_REENTRY for delegate_call
* Do not pass CallFlags::ALLOWS_REENTRY for delegate_call
* Update comment for seal_delegate_call and CallFlags
* Addressing @athei's comments (minor)
* Allow reentry for a new frame after delegate_call (revert)
* Same seal_caller and seal_value_transferred for lib contract
- test
- refactor frame args due to review
- logic for seal_caller (please review)
* Put caller on frame for delegate_call, minor fixes
* Update comment for delegate_call
* Addressing @athei's comments
* Update weights generated by benchmark
* Improve comments
* Address @HCastano's comments
* Update weights, thanks @joao-paulo-parity
* Improve InvalidCallFlags error comment
2022-02-08 11:43:32 +00:00
Andronik
48ed5843ae
rm unused deps ( #4857 )
...
* rm unused deps
* post merge fix
2022-02-08 11:36:29 +00:00
dependabot[bot]
47ec1a254f
Bump trie-db from 0.23.0 to 0.23.1 ( #4867 )
...
Bumps [trie-db](https://github.com/paritytech/trie ) from 0.23.0 to 0.23.1.
- [Release notes](https://github.com/paritytech/trie/releases )
- [Commits](https://github.com/paritytech/trie/compare/trie-db-v0.23.0...trie-db-v0.23.1 )
---
updated-dependencies:
- dependency-name: trie-db
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-02-08 09:57:51 +00:00
Qinxuan Chen
1d62516fad
sp-maybe-compressed-blob: reduce boilerplate code ( #10814 )
...
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
2022-02-08 08:52:20 +00:00
Robert Habermeier
1ae121ff27
Ignore redundant dispute messages ( #4854 )
...
* ignore duplicate dispute votes
* fmt and TODOs
* tests
* fmt
2022-02-07 15:54:56 -06: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
Bastian Köcher
bb69c82cc5
collation-generation: Support compressed PoVs directly ( #4825 )
...
This adds support for returning a compressed PoV directly to the
collation generation. This is mainly to not requiring to compress a PoV
twice.
2022-02-07 20:14:08 +01: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
Bastian Köcher
59cddb9f23
Forward enable_overseer_always ( #4858 )
...
Cumulus actually uses the `build_full` function. I missed that.
2022-02-07 16:05:53 +00:00
Heorhii Lutsenko
2fb4258890
Corrected description of clear_attribute extrinsic ( #10729 )
2022-02-07 12:47:56 +00:00
nanocryk
a2251208ef
make inner field of IdentityFields pub ( #10773 )
2022-02-07 12:33:24 +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
Alexander Samusev
8ee165c2c1
[ci] Fix scheduled pipeline ( #4855 )
...
* [ci] Fix scheduled pipeline
* empty commit for pipeline rerun
2022-02-07 11:48:56 +01:00
Niklas Adolfsson
188840dca1
staking miner: spawn separate task for each block ( #4716 )
...
* staking miner: use config for emergency solution
Fixes #4678
* bump jsonrpsee
* run `monitor_cmd_for` until the connection is closed
* new tokio task for submit_and_watch xt
* re-use header subscription
* update jsonrpsee + simplify code
* revert polkadot runtime changes
* fix grumbles
* Update utils/staking-miner/src/monitor.rs
* grumbles: fix logs + nits
2022-02-07 11:21:56 +01:00
Bernhard Schuster
aa2af6a460
allow overseer to be enabled anyways ( #4840 )
...
Closes #4763
2022-02-07 10:46:27 +01:00
Arkadiy Paronyan
ca5daec14f
More efficient WASM instance memory decommit on macos ( #10801 )
...
* More efficient WASM instance memory decommit on macos
* Apply suggestions from code review
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* Updated error message
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
2022-02-07 10:14:52 +01:00
Gavin Wood
a6891951fb
Referenda and Conviction Voting pallets ( #10195 )
...
* Initial draft of new referendum state machine.
* Docs
* Fixes
* Fixes
* Add conviction-voting pallet
* Basic build
* Building
* Some TODOs
* Tests building
* Add missing file
* Basic lifecycle test
* Add couple of tests
* Another test
* More tests
* Fixes
* Fixes
* Formatting
* Fixes
* Tests
* Fixes
* Fixes
* More tests
* Formatting
* First few benchmarks
* First few benchmarks
* Defered queue servicing
* More testing
* Benchmarks
* Fiddly benchmark
* Final nudge benchmarks
* Formatting
* Formatting
* Finished up benchmarks
* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_referenda --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/referenda/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* Events finished
* Missing file
* No GenesisConfig for Referenda
* Formatting
* Docs
* Docs
* Docs
* Per-class conviction voting
* New test & mock utils
* More tests
* Tests
* Tests finished 🎉
* Benchmarking stuff
* Fixes
* Test harness
* Test harness
* Benchmarks for Conviction=Voting
* Benchmarking pipeline complete
* Docs
* Formatting
* Remove unneeded warning
* Fix UI tests
* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_conviction_voting --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/conviction-voting/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* Docs
* Update frame/conviction-voting/src/vote.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* update sp-runtime version
* MEL Fixes for Referenda and Conviction Voting (#10725 )
* free maxencodedlen
* more maxencodedlen
* more MEL
* more mel
* disable storage info
* More Referenda Patches (#10760 )
* basic fixes
* fix benchmarking
* fix license
* prevent panic in curve math
* fmt
* bump crate versions
* Update mock.rs
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2022-02-06 12:51:12 +01: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
girazoki
074ff19dbc
maybe_total_supply in pallet-assets ( #10799 )
...
* maybe_total_supply in pallet-assets
* Update frame/assets/src/functions.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2022-02-05 11:06:44 +00:00
Alexander Gryaznov
d5c8593566
contracts: is_contract(address) and caller_is_origin() are added to API ( #10789 )
...
* is_contract() and caller_is_origin() added to Ext API
* is_contract() exposed in wasm runtime.rs
* + test for is_contract()
* + seal_is_contract benchmark
* caller_is_origin() exposed to wasm/runtime.rs and covered by a test
* + seal_caller_is_origin benchmark
* Update frame/contracts/src/exec.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* Update frame/contracts/src/exec.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* Update frame/contracts/src/exec.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* Update frame/contracts/src/wasm/runtime.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* Update frame/contracts/src/wasm/runtime.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* Update frame/contracts/src/wasm/runtime.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* Update frame/contracts/src/exec.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* identation fix for benchmark macroses; test cosmetic improvement
* benchmark fix
* + is_contract() wasm test
* + caller_is_origin() wasm test
* Apply suggestions from code review
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* is_contract() to borrow param instead of taking ownership
* phrasing improved
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* fixed wasm tests according to @athei feedback
* dead code warnings suppressed by unstable-interface attributes
* cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
Co-authored-by: Parity Bot <admin@parity.io >
2022-02-04 19:13:00 +00:00