David
eeb80f9e0b
Upgrade jsonrpsee to v0.4.1 ( #10022 )
...
* Upgrade jsonrpsee to v0.4.1
* remove needless BlockT trait bound
* use default wss port in URL
* Fix try_runtime build
* Partially fix for "remote-tests" feature
* Review feedback
* fmt
* Sort out trait bounds for benches
* Fmt
* fmt again?
* fmt with nightly-2021-09-13
* Upgrade try-runtime as well
* fmt
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2021-11-11 11:29:28 +00:00
sander2
bb6aecee7a
expose substrate-cli service ( #10229 )
...
* expose substrate-cli service
* chore: undo change to new_full (since new_full_base is exposed already)
2021-11-11 08:23:34 +00:00
Benjamin Kampmann
2168a6d0c9
Intend to reactivate cargo-unleash check ( #10167 )
...
* Intend to reactivate cargo-unleash check
It appears the bug it was deactivated for has been resolved a while ago. Trying to reactivate the checks.
* adding missing cargo.toml metadata for BEEFY crates
* fix wrong version reference
* matching up versions
* disable faulty cache
* switching more versions to prerelease
* Revert "disable faulty cache"
This reverts commit 411a12ae444a9695a8bfea4458a868438d870b06.
* bump minor of sc-allocator to fix already-published-issue
* fixup another pre-released dependency problem
* temp switch to latest unleash
* fixing dependency version and features
* prometheus endpoint has also been changed
* fixing proposer metrics versioning
* fixing hex feature for beefy
* fix generate-bags feature selection
* fixup Cargo.lock
* upgrade prometheus dependencies
* missed one
* switch to latest release
2021-11-10 17:30:24 +01:00
Denis Pisarev
169f8caf7d
CI: build docs with deps ( #9884 )
2021-11-10 11:39:30 +01:00
Kian Paimani
60a50dabed
use CountedMap in pallet-bags-list ( #10179 )
...
* use CountedMap in pallet-bags-list
* Fix build
* Update frame/bags-list/src/list/mod.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* add a check as well
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2021-11-10 09:33:14 +00:00
Jimmy Chu
db59cfcf14
Move all example pallets under examples folder. ( #10215 )
...
* Put all examples under one folder
Signed-off-by: Jimmy Chu <jimmychu0807@gmail.com >
* Updated Cargo.toml
Signed-off-by: Jimmy Chu <jimmychu0807@gmail.com >
* updated for ci script
Signed-off-by: Jimmy Chu <jimmychu0807@gmail.com >
* update
Signed-off-by: Jimmy Chu <jimmychu0807@gmail.com >
* Added notes that example pallets are not meant to be used in production.
Signed-off-by: Jimmy Chu <jimmychu0807@gmail.com >
* updated
Signed-off-by: Jimmy Chu <jimmychu0807@gmail.com >
2021-11-10 08:11:28 +00:00
zjb0807
617e2cc75e
Upgrade wasm builder ( #10226 )
...
* add TypeInfo for DispatchTime
* upgrade wasm-builder to Rust 2021
* remove resolver
* revert resolver in virtual workspace
2021-11-10 08:03:52 +00:00
Squirrel
c4d903f945
upgrade ss58-registry with additional networks. ( #10224 )
...
* upgrade ss58-registry with additional networks.
* adding cargo lock
* Update primitives/core/Cargo.toml
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* turn on std
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-11-09 22:33:21 +00:00
Dan Shields
1286d5e00b
move wiki -> docs ( #10225 )
...
Co-authored-by: Dan Shields <danwshields@gmail.com >
2021-11-09 22:27:40 +01:00
Kian Paimani
e01edb0840
new remote-ext mode: ( #10192 )
2021-11-09 21:26:39 +00:00
Koute
59078fcf94
Add a block production benchmark ( #10104 )
...
* Add a block production benchmark
* Simplify the block production benchmark
* Cleanups; switch execution strategy to WASM
* Switch WASM execution to `Compiled`
* Reduce the setup cost of the benchmark
Creating all of those extrinsics takes up *a lot* of time, up to the point
where the majority of the time is actually spent *outside* of the code
which we want to benchmark here. So let's only do it once.
* Add a variant of the block production benchmark with proof recording
2021-11-09 13:38:31 +00:00
Arkadiy Paronyan
91b6d5970a
Bump parity-db ( #10218 )
...
* Bump parity-db
* Update cargo.lock
2021-11-09 13:08:34 +01:00
Koute
ef3eca4198
Bump wasmtime to 0.31.0 ( #10149 )
...
* Bump `wasmtime` to 0.31.0
* Bump `itoa` to 0.4.8
* sc-executor-wasmtime: fix `SandboxContext::invoke` which I've broke
* sc-executor-wasmtime: cargo fmt
2021-11-09 12:08:02 +00:00
Qinxuan Chen
5d5e685ebe
frame_support::pallet_prelude: Add scale_info::TypeInfo ( #10221 )
...
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
2021-11-09 12:59:55 +01:00
David
3c624174ff
Remove the RPC client example ( #10217 )
...
* Remove the RPC client example
Might be slightly contentious but I think we want to migrate this example to `subxt` and redirect the community to use that for things like this.
* Remove rpc-client example code from workspace
2021-11-08 21:06:53 +00:00
Bastian Köcher
24ee605dcf
Fix polkadot companion label CI check ( #10198 )
...
* Fix polkadot companion label CI check
* Update .github/workflows/polkadot-companion-labels.yml
2021-11-08 21:05:39 +00:00
Bastian Köcher
03e9c5afd4
Offchain-worker: Accessing time is not HTTP ( #10220 )
...
Accessing time related functionality is clearly not related to HTTP. So, this pr introduces a `TIME` capability.
2021-11-08 22:03:37 +01:00
Koute
a7e3d819f8
Refactor sp-sandbox; make sure both sandbox executors are always tested ( #10173 )
...
* sp-sandbox: convert executors into normal `mod`s instead of using `include!`
* sp-sandbox: run `cargo fmt` on `host_executor.rs`
* sp-sandbox: abstract away the executors behind traits
* sp_sandbox: always compile both executors when possible
* sc-executor: make sure all sandbox tests run on both sandbox executors
* sc-executor: fix brainfart: actually call into the sandbox through the trait
* sc-runtime-test: fix cargo fmt
* sc-runtime-test: deduplicate executor-specific sandbox test entrypoints
* sc-executor: test each sandbox executor in a separate test
* cargo fmt (Github's conflict resolving thingy broke indentation)
2021-11-08 12:52:11 +00:00
Arkadiy Paronyan
fe36fe85d1
Speedup block import ( #10211 )
2021-11-08 09:42:48 +00:00
dependabot[bot]
bc938cfb1a
Bump lru from 0.6.6 to 0.7.0 ( #10194 )
...
Bumps [lru](https://github.com/jeromefroe/lru-rs ) from 0.6.6 to 0.7.0.
- [Release notes](https://github.com/jeromefroe/lru-rs/releases )
- [Changelog](https://github.com/jeromefroe/lru-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/jeromefroe/lru-rs/compare/0.6.6...0.7.0 )
---
updated-dependencies:
- dependency-name: lru
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>
2021-11-08 00:31:11 +01:00
Liu-Cheng Xu
63d2ff0c36
Add serde support for Slot type ( #10204 )
...
Add serde support for the `Slot` type as we'd like to use it directly in our RPC.
2021-11-07 23:29:51 +00:00
Kian Paimani
937b6f246e
put TryInto and TryFrom in sp_std::prelude ( #10183 )
...
* Switch to Rust 2021
* Update trybuild to fix errors
* half baked
* fix
* remove unused import
* remove more warnings
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-11-08 00:24:53 +01:00
cheme
ca5b07243f
Fast sync child trie support. ( #9239 )
...
* state machine proofs.
* initial implementation
* Remove todo.
* Extend test and fix import.
* fix no proof, with proof ko.
* fix start at logic.
* Restore response size.
* Rework comments.
* Add explicit ref
* Use compact proof.
* ref change
* elaborato on empty change set condition.
* KeyValueState renaming.
* Do not add two time child trie with same root to sync reply.
* rust format
* Fix merge.
* fix warnings and fmt
* fmt
* update protocol id to V2
2021-11-07 13:13:02 +00:00
Alan Sapede
7827dbb73c
Adds block production time in logs ( #10205 )
2021-11-06 16:49:53 +00:00
dependabot[bot]
d99bb13ad9
Bump strum_macros from 0.21.1 to 0.22.0 ( #10200 )
...
Bumps [strum_macros](https://github.com/Peternator7/strum ) from 0.21.1 to 0.22.0.
- [Release notes](https://github.com/Peternator7/strum/releases )
- [Changelog](https://github.com/Peternator7/strum/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Peternator7/strum/commits )
---
updated-dependencies:
- dependency-name: strum_macros
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>
2021-11-06 05:48:41 +00:00
dependabot[bot]
27c1fe8718
Bump syn from 1.0.80 to 1.0.81 ( #10182 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.80 to 1.0.81.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.80...1.0.81 )
---
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>
2021-11-05 15:51:54 +01:00
Koute
8c2216c8cd
Remove unnecessary allocations when crossing WASM FFI boundary ( #10191 )
2021-11-05 12:52:34 +00:00
Florian Franzen
6b9d1176b1
Remove old Cargo.toml ( #10188 )
2021-11-05 11:26:49 +00:00
dependabot[bot]
823674314f
Bump wasmi from 0.9.0 to 0.9.1 ( #10116 )
...
Bumps [wasmi](https://github.com/paritytech/wasmi ) from 0.9.0 to 0.9.1.
- [Release notes](https://github.com/paritytech/wasmi/releases )
- [Commits](https://github.com/paritytech/wasmi/compare/v0.9.0...v0.9.1 )
---
updated-dependencies:
- dependency-name: wasmi
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-11-05 11:11:28 +00:00
dependabot[bot]
b48d721c12
Bump strum from 0.21.0 to 0.22.0 ( #10045 )
...
Bumps [strum](https://github.com/Peternator7/strum ) from 0.21.0 to 0.22.0.
- [Release notes](https://github.com/Peternator7/strum/releases )
- [Changelog](https://github.com/Peternator7/strum/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Peternator7/strum/commits )
---
updated-dependencies:
- dependency-name: strum
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>
2021-11-04 19:58:49 +00:00
Bastian Köcher
b08d3017a8
Switch to Rust 2021 ( #10170 )
...
* Switch to Rust 2021
* Update trybuild to fix errors
2021-11-04 19:54:48 +01:00
Dan Shields
9fb9d7b8f0
rm broken rustdoc-header.html ( #10091 )
2021-11-04 19:54:31 +01:00
Xiliang Chen
58a3ab2813
implement dispatch_as ( #9934 )
...
* implement dispatch_as
* fix
* fix
* weight for dispatch_as
* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_utility --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/utility/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* fix
* Update frame/utility/src/benchmarking.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* fix issues
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-11-04 15:34:29 +01:00
Dan Shields
acc835acd3
Update node-template construct_runtime! syntax ( #10155 )
...
* update `construct_runtime!` syntax
* fix build
2021-11-04 13:37:26 +00:00
Guillaume Thiolliere
2755a97fa3
handle doc on type_value ( #10132 )
2021-11-04 10:11:39 +00:00
dependabot[bot]
15406835a8
Bump linregress from 0.4.3 to 0.4.4 ( #10124 )
...
Bumps [linregress](https://github.com/n1m3/linregress ) from 0.4.3 to 0.4.4.
- [Release notes](https://github.com/n1m3/linregress/releases )
- [Changelog](https://github.com/n1m3/linregress/blob/master/CHANGELOG.md )
- [Commits](https://github.com/n1m3/linregress/compare/0.4.3...0.4.4 )
---
updated-dependencies:
- dependency-name: linregress
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-11-03 22:43:23 +00:00
dependabot[bot]
031630a028
Bump directories from 3.0.2 to 4.0.1 ( #10163 )
...
Bumps [directories](https://github.com/soc/directories-rs ) from 3.0.2 to 4.0.1.
- [Release notes](https://github.com/soc/directories-rs/releases )
- [Commits](https://github.com/soc/directories-rs/commits )
---
updated-dependencies:
- dependency-name: directories
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-03 19:52:41 +00:00
Alexander Samusev
a46fa8461b
Update CI image to the latest rustc ( #10142 )
...
* Update CI image to the latest rustc
* Update rustc error messages
* whitespace
* update test output
* updating compiler errors
* kid's finally learning to read and spots the TRYBUILD=overwrite message.
* undoing a little blessing
* imperfect error msg
* revert ci image to production
Co-authored-by: gilescope <gilescope@gmail.com >
2021-11-03 13:23:32 +01:00
dependabot[bot]
c448c23c6e
Bump prost-build from 0.8.0 to 0.9.0 ( #10162 )
...
Bumps [prost-build](https://github.com/tokio-rs/prost ) from 0.8.0 to 0.9.0.
- [Release notes](https://github.com/tokio-rs/prost/releases )
- [Commits](https://github.com/tokio-rs/prost/compare/v0.8.0...v0.9.0 )
---
updated-dependencies:
- dependency-name: prost-build
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>
2021-11-03 10:29:16 +00:00
Pierre Krieger
281d58cb0d
Add a trie_root_hash variant for chain specs genesis ( #10140 )
...
* Add a `hash` variant for chain specs
* Add doc
* Rename to TrieRootHash
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Rustfmt
* More cargo fmt I guess
* Ok I have to use nightly cargo fmt
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-11-03 10:12:50 +01:00
Arkadiy Paronyan
63289ce084
Bump parity-db ( #10151 )
2021-11-02 22:21:39 +01:00
Kian Paimani
fff22d9a34
add missing version to dependencies ( #10148 )
2021-11-02 20:24:00 +00:00
Guillaume Thiolliere
20c9afcdc1
Better error for when origin filter prevent the call to be dispatched ( #10134 )
...
* better error
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* remove unused
* fix error
* fmt
* fix tests
* fmt
* Update frame/contracts/src/exec.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* fix typo
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
2021-11-02 14:20:00 +00:00
Gavin Wood
977cf450b3
Spelling ( #10154 )
2021-11-02 14:09:40 +00:00
cheme
471e9cfbf1
Hashing proc macro utils ( #9875 )
...
* hashing macro
* fmt
* use in easy place, and fix blake sizes
* fix
* Fixes, docs.
Allow ident as input.
* fix doc tests
* update error in test (nmapkey and key are same type).
* hashing crates under sp_core
* Doc updates and format.
* use all existing hashing functions.
* return array of u8
* Update primitives/core/hashing/proc-macro/src/impls.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* ToTokeen for an array of u8
* fix
* re
* Improve impls
* complete doc tests
* fmt
* fix doctest format
* fix ui test (nmap key type alias)
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-11-02 09:35:23 +00:00
Albrecht
098815948a
don't panic if already migrated ( #10141 )
...
* don't panic if already migrated
* remove condition
2021-11-02 09:27:44 +00:00
Kian Paimani
bba9cfd8a2
introduce remote-tests for pallet-bags-list ( #10036 )
...
* make a few primitives in bags-list public
* push new stuff
* update
* update log target
* bring remote tests here
* revert pub
* Update frame/bags-list/remote-tests/Cargo.toml
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* some rev commnets
* Fix
* cleanup
* Update Cargo.lock
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-11-01 14:41:38 +00:00
icodezjb
7f1bff9462
Speed up big chainspec json(~1.5 GB) load ( #10137 )
...
* Speed up chainspec json load
* Update client/chain-spec/src/chain_spec.rs
* Update client/chain-spec/src/chain_spec.rs
* Update client/chain-spec/src/chain_spec.rs
* Load the chainspec through `mmap`
Co-authored-by: icodezjb <icodezjb@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Jan Bujak <jan@parity.io >
2021-11-01 12:58:18 +00:00
Arkadiy Paronyan
710265a4f8
Fix transaction pool rejection ( #10138 )
...
* Fix transaction rejection
* Update client/service/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-11-01 09:17:50 +00:00
Koute
8c2ea19085
Strip out control codes from the logged messages ( #10081 )
...
* Strip out control codes from the logged messages
* Also strip away C1 control codes
* Add extra comments
* Clear the buffer after flushing; rename `write` to `flush`
* Move control code stripping into its own function
* Also strip out control codes from panic messages
* Also strip out Unicode left-to-right/right-to-left control codes
2021-11-01 08:46:32 +00:00