Zeke Mostov
8c3ad4300a
Small syntax changes for staking and elections code ( #9688 )
...
* Simplify stake map creation in `OnChainSequentialPhragmen::elect`
* Use or_else
* More or_else
* trivial;
* revert
2021-09-04 06:56:34 +00:00
Robert Habermeier
5596170bfb
comment out bridges runtime modules (broken) and update Rococo chain-spec ( #3780 )
...
* comment out bridges runtime modules (broken)
* finish commenting out bridges stuff
* more tweaks
* update rococo.json
2021-09-03 16:46:18 -05:00
Chevdor
d260b0e14f
Add script and dockerfile to build an injected docker image for the polkadot-collator binary ( #591 )
...
* remove exec flag on json file
* fix dockerignore filter to allow building the injected docker image
* Update docker/injected.Dockerfile
* Update docker/scripts/build-injected-image.sh
Co-authored-by: Martin Pugh <pugh@s3kr.it >
Co-authored-by: Denis Pisarev <denis.pisarev@parity.io >
2021-09-03 15:30:12 +02:00
Xiliang Chen
1bdede0da4
Add VoteLocking config ( #3734 )
...
* update
* Update runtime/kusama/src/lib.rs
* Update runtime/polkadot/src/lib.rs
* cargo update -p sp-io
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-09-03 11:06:37 +00:00
Michael Müller
69a453ebd5
Clean up node-template ( #9667 )
...
* Remove dead file
* Remove leftover license header
2021-09-03 01:32:30 +00:00
Lldenaurois
84d89475a5
Enable disputes on rococo ( #3764 )
2021-09-02 16:51:00 -05:00
Xiliang Chen
cd3e3043b0
Add VoteLocking config ( #9641 )
...
* Add VoteLocking config
Co-authored-by: Alexander Popiak <alexander.popiak@gmail.com >
2021-09-02 19:53:57 +01:00
Andreas Doerr
cfe3490007
Use coherent prost crate versions ( #9676 )
2021-09-02 19:50:27 +01:00
Gavin Wood
82ffe7dd17
XCM: Automatic Version Negotiation ( #3736 )
...
* XCM: Automatic Version Negotiation
* Introduce the version instructions and subscription trait
* Notification and subscription data migration
* Version change subscriptions
* Fixes
* Formatting
* Spelling
* Fixes
* Fixes
* Automatic unsubscription
* Formatting
* Expose remote origin in VM and ensure it is unchanged from actual origin in subscription instructions.
* Barrier
* Unsubscription extrinsic
* Remove top_level param
* Formatting
* Fixes
* Automatic subscription
* Formatting
* Spelling
* Unit tests for XCM executor
* Formatting
* Spellin
* Unit test for XCM pallet subscriber side
* Formatting
* More tests
* Formatting
* Fixes
* Subscription-side tests
* Formatting
* Unit tests for XCM pallet
* Formatting
* Update roadmap/implementers-guide/src/types/overseer-protocol.md
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Remove commented code
* Grumbles
* Multi-stage XCM version migration
* Formatting
* v1 subscriptions backport
* Warning
* Spelling
* Fix grumbles
* Formatting
* Avoid running through old notifications
* Formatting
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-09-02 18:47:38 +02:00
Guillaume Thiolliere
1309adf247
remove unused origin ( #9679 )
2021-09-02 15:14:41 +00:00
Andronik Ordian
446aa6777e
dependabot: ignore yet another git dep ( #3759 )
2021-09-02 11:47:57 +02:00
dependabot[bot]
7721b2b373
Bump serde_json from 1.0.66 to 1.0.67 ( #3767 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.66 to 1.0.67.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.66...v1.0.67 )
---
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>
2021-09-02 09:21:29 +00:00
dependabot[bot]
1274b3df4b
Bump syn from 1.0.74 to 1.0.75 ( #3710 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.74 to 1.0.75.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.74...1.0.75 )
---
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-09-02 09:18:54 +00:00
Keith Yeung
01c60ddeab
Companion for substrate #9371 ( #3487 )
...
* Add MaxAuthorities to aura pallet config
* update Substrate
Co-authored-by: parity-processbot <>
2021-09-02 06:56:56 +00:00
Keith Yeung
886825a5c0
Generate storage info for aura pallet ( #9371 )
...
* Generate storage info for aura pallet
* Add MaxAuthorities to node-template aura pallet config
* Fix compilation errors on node-template
* Use WeakBoundedVec instead of BoundedVec
* Improve comment on BoundedSlice's EncodeLike impl
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Bump MaxAuthorities count to 32 for node template
* cargo fmt
* cargo fmt
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2021-09-02 01:24:08 +00:00
Bastian Köcher
7fe40d4c90
Remove some browser leftovers ( #9636 )
...
As we have removed the feature for now, we don't need this here as well.
Co-authored-by: Giles Cope <gilescope@gmail.com >
2021-09-01 21:04:25 +01:00
Robert Klotzner
ffcde1e5e7
Fixes/improvements for disputes ( #3753 )
...
* More debugging output.
* Fix chain selection in case of disputes.
* Fix flaky test.
2021-09-01 14:25:56 -05:00
Squirrel
72adb1d858
Update contrib docs to reflect simplified process ( #9465 )
...
* Update contrib docs to reflect simplified process
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-09-01 17:58:53 +01:00
Bernhard Schuster
bff0ed532f
chore: test helper arbitrary ordering for 2 ( #3762 )
...
* chore: add arbitrary order macro for more resilient subsystem tests
* move to subsystem-test-helpers
2021-09-01 18:52:59 +02:00
Bernhard Schuster
b85586619f
disputes: fix relay chain selection sanity check ( #3750 )
...
* Fix off-by-one bug in approval voting and adjust tests
* Address feedback
* Remove default disputes
* Remove spaces
* cargo +nightly fmt
Co-authored-by: Lldenaurois <Ljdenaurois@gmail.com >
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-09-01 16:09:13 +00:00
Guillaume Thiolliere
16e4c8bc28
technical committee is using the weight of council, but should have its own generated weight instead ( #3511 )
...
* collectives have different weight
* fix path
* fix typo
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_collective --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_collective --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
* add description for technical committee
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_collective --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
* use unique names
* makes compiling weights result
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_collective_council --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/
* Revert "cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_collective_council --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/"
This reverts commit 690fdb65af58d5413fb16d4da82aff83977d3454.
* revert unique names
* cargo update -p sp-io
* fix
* cargo update -p sp-io
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_collective --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_collective --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-09-01 13:37:14 +00:00
Shawn Tabrizi
62f3759351
new proxy for auctions, crowdloans, registrar, slots ( #3683 )
2021-08-31 14:33:57 +00:00
Chevdor
6c2d9566df
doc: subkey documentation ( #9639 )
...
* doc: convert the adoc to md
* add ref to UncheckedExtrinsic
* Add references to the SS58 format
* Add details about the inspect command
* removing command that is no longer available
* reorder display so ss58 representations show up next to each other
* remove deprecated section
* Add doc about the password option
* fix fmt
* minor fixes
fix #6613
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Squirrel <gilescope@gmail.com >
Co-authored-by: David <dvdplm@gmail.com >
2021-08-31 15:24:37 +02:00
Guillaume Thiolliere
6c8946ae21
fix tracker repeat writes ( #9653 )
2021-08-31 12:41:44 +00:00
Nazar Mokrynskyi
2fa683da0e
Fix clippy warnings ( #9649 )
2021-08-31 04:13:41 +00:00
Alexander Theißen
9da28d87c4
Fix compilation issue of pallet_contracts ( #9652 )
2021-08-31 04:11:50 +00:00
dependabot[bot]
2755cf801f
Bump libc from 0.2.100 to 0.2.101 ( #3726 )
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.100 to 0.2.101.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.100...0.2.101 )
---
updated-dependencies:
- dependency-name: libc
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-08-30 18:56:41 +00:00
Squirrel
80f8c5106e
Removed unneeded deps ( #3658 )
...
* Removed unneeded deps (except under bridge)
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-08-30 18:18:33 +01:00
dependabot[bot]
2c1e9da46c
Bump serde from 1.0.127 to 1.0.130 ( #3739 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.127 to 1.0.130.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.130 )
---
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>
2021-08-30 13:42:07 +00:00
Qinxuan Chen
847d264c33
Add methods param for RPC state_traceBlock ( #9642 )
...
* Add methods param for RPC state_traceBlock
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* rename event_values_filter arg
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Add some doc
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Add some doc
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix doc
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* format
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
2021-08-30 11:52:26 +00:00
Georges
0b5117f818
Companion for Generate storage info for pallet authority_discovery #9428 ( #3517 )
...
* Fixing Polkadot after substrate changes
moving Vec to BoundedVec
* Removing changes to pallet aura
bumping bitflags version
* update Substrate
Co-authored-by: parity-processbot <>
2021-08-30 06:49:10 +00:00
Georges
ac2468c47b
Generate storage info for pallet authority_discovery ( #9428 )
...
* Migrate Aura pallet to BoundedVec
Implementing issue #8629
* Fixed aura tests after BoundedVec change
* Moved Vec to BoundedVec in authority-discovery
* Merging into the main branch
* Added MaxEncodedLen to crypto
Need this without full_crypto to be able to add generate_store_info
* Add generate_store_info for aura
* Adding changes to Slot to add MaxEncodedLen
* Adding generate_store_info to authority discovery
* fmt
* removing panics in runtime if vec size too large
* authority-discovery: Remove panics in runtime
Can happen if vec size is too large, so truncate the vec in that case
* Adding logging when I truncate Vecs
* Got the sign the other way around
* Reverting pallet_aura changes
This is already being addressed by PR #9371
* Change BoundedVec to WeakBoundedVec
More robust implementation following @thiolliere recommendation.
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-08-30 06:11:59 +00:00
Xiliang Chen
03c7b11244
improve decode for UncheckedExtrinsic ( #9646 )
...
* improve decode for UncheckedExtrinsic
* fmt
2021-08-29 06:43:50 +00:00
Gavin Wood
e3e6855490
Bump Tokio to 1.10 ( #592 )
...
* Bump Tokio to 1.10
* Missed one
2021-08-28 14:33:56 +00:00
Gavin Wood
9cc277834c
Companion for #3629 (XCM v2) ( #571 )
...
* Update .gitignore and bring into line with XCM v2's SendError
* type
* Some work
* Weighed responses
* extra fields to xcm pallet
* Fixes
* Bump
2021-08-28 15:51:49 +02:00
Keith Yeung
64cbeab3b3
Return a Result in invert_location ( #3730 )
...
* Return a Result in invert_location
* Add invertible to spellcheck dictionary
* Fix Some -> Ok
2021-08-28 02:17:51 +02:00
Gavin Wood
636d0b030f
XCM: Allow reclaim of assets dropped from holding ( #3727 )
...
* XCM: Introduce AssetTrap
* Revert reversions
* Remove attempts at weighing and add test
* Less storage use for asset trapping
* Add missing file
* Fixes
* Fixes
* Formatting
* Fixes
* Docs
* Filter types to allow runtimes to dictate which assets/origins should be trapped
* Formatting
* Tests
* Formatting
* Fixes
* Docs
2021-08-28 02:09:36 +02:00
Robert Klotzner
e56efb82d9
Further improved availability recovery ( #3711 )
...
* WiP.
* Things compile.
* cargo fmt
* Passing tests + fix warnings.
* Metrics for availability recovery.
* Basic test.
* Fix typos and actually check for overflow.
* cargo fmt
* Register metrics.
* More tests.
* Fix warning.
* cargo +nightly fmt
* Fix metrics
* Get rid of unsafe.
* tabify
* spellcheck
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-08-27 18:59:23 +02:00
Lldenaurois
353cfc8e37
node/service: Update finality target to fix disputes tests ( #3732 )
2021-08-27 11:59:09 -04:00
Guillaume Thiolliere
a44527b288
Fix benchmark writer ( #9626 )
...
* fix benchmark writer
* update doc to show the more general implementation
2021-08-27 13:43:01 +00:00
Guillaume Thiolliere
10268c5b76
fix perthing add ( #9638 )
2021-08-27 13:07:26 +00:00
Chevdor
47c75122d1
staking-miner: remove need of a file to pass the seed ( #3680 )
...
* staking-miner: remove need of a file to pass the seed
* cleanup
* linting round
* fix linting
* fix naming and remove unused field
2021-08-27 11:29:17 +02:00
Qinxuan Chen
a636b7a512
rpc-api: use thiserror instead of derive_more for error handling ( #9631 )
...
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
2021-08-27 07:50:36 +02:00
Karel L. Kubat
328cfbe633
implement Add, Sub, CheckedAdd, CheckedSub, SaturatingAdd, Saturating… ( #9594 )
...
* implement Add, Sub, CheckedAdd, CheckedSub, SaturatingAdd, SaturatingSub for Perthings
* ifx inner >= max bug
* move arithmetic impl to main macro block
* implement CheckedMul for Perthings
* incorporate feedback
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-08-27 01:44:39 +00:00
Joshy Orndorff
bc47cfeefb
remove crate visibility limitation ( #9565 )
2021-08-26 16:24:14 +00:00
Shawn Tabrizi
07301bd693
Companion for 9619 (Private Events) ( #3712 )
...
* update runtime api
* use storage_prefix
* update read_events_no_consensus
* update Substrate
Co-authored-by: parity-processbot <>
2021-08-26 14:34:45 +00:00
Shawn Tabrizi
2c91f3a464
Make System Events Private from the Runtime ( #9619 )
...
* make events private
* "i know what i am doing"
* feedback
2021-08-26 13:55:41 +00:00
ferrell-code
1d7e0e6b35
Fix Try-Runtime ( #3725 )
...
* compile try-runtime
* cargo fmt lol
2021-08-26 13:36:07 +02:00
Gavin Wood
8b80b283d4
XCM v2: Scripting, Query responses, Exception handling and Error reporting ( #3629 )
...
* Intoduce XCM v2
Also some minor fix for v0/v1
* Minor version cleanup
* Minor version cleanup
* Introduce SendError for XcmSend trait to avoid cycles with having Outcome in Xcm
* comment
* Corrent type
* Docs
* Fix build
* Fixes
* Introduce the basic impl
* Docs
* Add function
* Basic implementation
* Weighed responses and on_report
* Make XCM more script-like
* Remove BuyExecution::orders
* Fixes
* Fixes
* Fixes
* Formatting
* Initial draft and make pallet-xcm build
* fix XCM tests
* Formatting
* Fixes
* Formatting
* spelling
* Fixes
* Fixes
* spelling
* tests for translation
* extra fields to XCM pallet
* Formatting
* Fixes
* spelling
* first integration test
* Another integration test
* Formatting
* fix tests
* all tests
* Fixes
* Fixes
* Formatting
* Fixes
* Fixes
* Formatting
* Bump
* Remove unneeded structuring
* add instruction
* Fixes
* spelling
* Fixes
* Fixes
* Formatting
* Fixes
* Fixes
* Formatting
* Introduce and use VersionedResponse
* Introduce versioning to dispatchables' params
* Fixes
* Formatting
* Rest of merge
* more work
* Formatting
* Basic logic
* Fixes
* Fixes
* Add test
* Fixes
* Formatting
* Fixes
* Fixes
* Fixes
* Nits
* Simplify
* Spelling
* Formatting
* Return weight of unexecuted instructions in case of error as surplus
* Formatting
* Fixes
* Test for instruction count limiting
* Formatting
* Docs
2021-08-26 12:41:16 +02:00
dependabot[bot]
4193f05fa3
Bump async-trait from 0.1.50 to 0.1.51 ( #3721 )
...
Bumps [async-trait](https://github.com/dtolnay/async-trait ) from 0.1.50 to 0.1.51.
- [Release notes](https://github.com/dtolnay/async-trait/releases )
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.50...0.1.51 )
---
updated-dependencies:
- dependency-name: async-trait
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-08-26 12:19:22 +02:00