Gavin Wood
ec73e6e34e
Statemint can teleport into Kusama ( #3042 )
...
* Statemint can teleport into Kusama
* Bump
* Fixes
* Fixes
2021-05-18 17:52:11 +02:00
Andreas Doerr
ed39290f91
Add CryptoStore::ecdsa_sign_prehashed() ( #8838 )
...
* Pair::sign_prehashed()
* add CryptoStore::ecdsa_sign_prehashed()
* add test for testing keystore
* address review comments
2021-05-18 16:07:45 +02:00
b5f23bfd1c
Ensure election offchain workers don't overlap ( #8828 )
...
* Initial version, well tested, should work fine.
* Add one last log line
* Update frame/election-provider-multi-phase/src/unsigned.rs
Co-authored-by: Gavin Wood <gavin@parity.io >
* Update frame/election-provider-multi-phase/src/unsigned.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Update frame/election-provider-multi-phase/src/unsigned.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Fix a few more things
* fix build
* rewrite the whole thing with a proper lock
* clean
* clean some nits
* Add unit tests.
* Update primitives/runtime/src/offchain/storage_lock.rs
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Fix test
* Fix tests
Co-authored-by: Gavin Wood <gavin@parity.io >
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-05-18 12:22:06 +00:00
Sergei Shulepov
bee5c2dd71
Emit wasm sections only when compiling to wasm ( #8845 )
2021-05-18 12:06:35 +00:00
Shaun Wang
8d30172a8f
Update auctions pallet to FRAME v2 ( #3031 )
...
* Migrate auctions pallet to pallet attribute macro.
* Rename extra constants.
2021-05-18 11:40:15 +00:00
stanly-johnson and Keith Yeung
2b8be8cf1e
Migrate pallet-scheduler to pallet attribute macro ( #8769 )
...
* migrate to pallet!
* fixes
* fix genesis
* code review fixes
* Update frame/scheduler/src/lib.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Update frame/scheduler/src/lib.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Update frame/scheduler/src/lib.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Update frame/scheduler/src/lib.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Update frame/scheduler/src/lib.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* fix metadata
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2021-05-18 08:52:17 +00:00
Andreas Doerr and Bastian Köcher
a68ed7c3d8
[clippy] Fix clippy issues for crate sp-core ( #8809 )
...
* Fix clippy issues for crate sp-core
* Update primitives/core/benches/bench.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update primitives/core/src/ed25519.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Remove clippy attributes
* Missed a clippy attribute
* remove clippy attributes for bechmarks as well
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-05-18 09:38:56 +02:00
Bernhard Schuster
2a6f460e4c
reword error: channel is _terminated and_ empty ( #3041 )
2021-05-18 07:51:46 +02:00
KingFishDev
72a2ad4f4f
fix: add Debug to token traits ( #8830 )
2021-05-17 17:55:19 +00:00
Guillaume Thiolliere and Peter Goodspeed-Niklaus
9bf62ef65d
Allow to specify some max number of values for storages in pallet macro. ( #8735 )
...
* implement max_values + storages info
* some formatting + doc
* rename StoragesInfo -> PalletStorageInfo
* merge both StorageInfoTrait and PalletStorageInfo
I think it is more future proof. In the future some storage could make
use of multiple prefix. Like one to store how much value has been
inserted, etc...
* Update frame/support/procedural/src/storage/parse.rs
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
* Update frame/support/procedural/src/storage/storage_struct.rs
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
* Fix max_size using hasher information
hasher now expose `max_len` which allows to computes their maximum len.
For hasher without concatenation, it is the size of the hash part,
for hasher with concatenation, it is the size of the hash part + max
encoded len of the key.
* fix tests
* fix ui tests
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
2021-05-17 13:44:24 +00:00
Denis Pisarev
e9615fc9df
CI: remove unnecessary jobs while simnet is under work ( #3043 )
2021-05-17 15:31:38 +02:00
Martin Pugh
fa4f91fbed
[CI][WIP] Fix check_labels ( #3039 )
...
* fix check_labels
* runtime change test. revert me
* Revert "runtime change test. revert me"
This reverts commit 6bec7e34f522555f9ac84332721c191d547bdf16.
2021-05-17 12:46:56 +02:00
Frederik Schulz
59f34ab8bc
Extends ChildStateBackend and ChildStateAPI with ReadProofs ( #8812 )
...
* Extends ChildStateBackend and ChildStateAPI with ReadProofs
The following changes integrate the existing `read_child_proof`
from the `ProofProvider` into the ChildStateBackend, so that a
read proof can be generated from a full client via an rpc call.
* Cleanup formatting
2021-05-17 09:59:10 +00:00
Keith Yeung
fcf83c0278
Use StorageNMap for Approvals in assets pallet ( #8816 )
...
* Use StorageNMap for Approvals in assets pallet
* Use EncodeLike on HashKeyPrefix trait bounds
* Add comments clarifying AccountId roles
* Properly document the keys in the Approvals storage
* Fix line width
2021-05-17 06:27:06 +00:00
Ayush Mishra
c28ab1fcac
Improve match statement ( #8817 )
2021-05-15 21:43:58 +02:00
Pierre Krieger
eaccde2ddc
Add names to offchain worker threads ( #8820 )
...
* Add names to offchain worker threads
* Compilation
2021-05-15 12:21:16 +00:00
Andronik Ordian
22c60a63d6
frame/session/benchmarking: fix invalid feature declaration ( #8818 )
2021-05-15 14:08:52 +02:00
Xiliang Chen and Sergei Shulepov
d4072c652f
Fix ArtifactId::path ( #3027 )
...
* issue with ArtifactId::path
* fix artifacts path
* Wrap an overly long line
Co-authored-by: Sergei Shulepov <s.pepyakin@gmail.com >
2021-05-15 14:04:09 +02:00
Pierre Krieger
78b87c47a8
Grab stream of networking events earlier ( #3025 )
2021-05-14 17:51:44 +02:00
Pierre Krieger
d849110c6b
Small improvement to network log line ( #8811 )
...
* Small improvement to network log line
* Use {:?} for the set_id
2021-05-14 14:31:03 +00:00
Pierre Krieger
3b1b339b80
Add more debug_assert to networking ( #8807 )
...
* Add more debug_assertsudo dnf update to networking
* Swap the lines
2021-05-14 14:17:10 +00:00
Pierre Krieger
1712dfc9fd
Update Substrate in Polkadot ( #3023 )
2021-05-14 12:14:07 +02:00
Keith Yeung and Shawn Tabrizi
033d8289f0
Implement StorageNMap ( #8635 )
...
* Implement StorageNMap
* Change copyright date to 2021
* Rewrite keys to use impl_for_tuples instead of recursion
* Implement prefix iteration on StorageNMap
* Implement EncodeLike for key arguments
* Rename KeyGenerator::Arg to KeyGenerator::KArg
* Support StorageNMap in decl_storage and #[pallet::storage] macros
* Use StorageNMap in assets pallet
* Support migrate_keys in StorageNMap
* Reduce line characters on select files
* Refactor crate imports in decl_storage macros
* Some more line char reductions and doc comment update
* Update UI test expectations
* Revert whitespace changes to untouched files
* Generate Key struct instead of a 1-tuple when only 1 pair of key and hasher is provided
* Revert formatting changes to unrelated files
* Introduce KeyGeneratorInner
* Add tests for StorageNMap in FRAMEv2 pallet macro
* Small fixes to unit tests for StorageNMap
* Bump runtime metadata version
* Remove unused import
* Update tests to use runtime metadata v13
* Introduce and use EncodeLikeTuple as a trait bound for KArg
* Add some rustdocs
* Revert usage of StorageNMap in assets pallet
* Make use of ext::PunctuatedTrailing
* Add rustdoc for final_hash
* Fix StorageNMap proc macro expansions for single key cases
* Create associated const in KeyGenerator for hasher metadata
* Refactor code according to comments from Basti
* Add module docs for generator/nmap.rs
* Re-export storage::Key as NMapKey in pallet prelude
* Seal the EncodeLikeTuple trait
* Extract sealing code out of key.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-05-14 09:44:29 +00:00
Shawn Tabrizi
10685f836d
Check Parachain is Fully Registered Before Starting a Crowdloan ( #3018 )
...
* Add check that parachain is fully registered before starting crowdloan
* fix tests
* fix benchmarks
2021-05-14 10:59:12 +02:00
Roman Proskuryakov
c6b1240e51
Fix warning: trait objects without an explicit dyn are deprecated ( #8798 )
2021-05-13 22:16:32 +02:00
Alexander Theißen
1ac95b6ba6
contracts: Move Schedule from Storage to Config ( #8773 )
...
* Move `Schedule` from Storage to Config
* Updated CHANGELOG
* Fix nits from review
* Fix migration
* Print the debug buffer as tracing message
* Use `debug` instead of `trace` and update README
* Add additional assert to test
* Rename `schedule_version` to `instruction_weights_version`
* Fixed typo
* Added more comments to wat fixtures
* Add clarification for the `debug_message` field
2021-05-13 19:56:11 +00:00
Hernando Castano and Tomasz Drwięga
9507266960
Add Bridge Header Sync to Rococo Runtime ( #2983 )
...
* Add bridges code to workspace
* Add Rococo and Wococo bridge instances to Rococo runtime
* Add Rococo and Wococo runtime APIs
* Add GenesisConfig parameters for bridge pallet
* Update Rococo spec_version used by bridge relayer
* Add scripts for running Rococo and Wococo dev nodes
* Add scripts for running Rococo<>Wococo header sync
* Apply patch for build artifact location
* Remove bridges crates from workspace
* Downgrade async related dependencies
* Change bridge pallet owner to be `root_key`
* Bump number of `MaxRequests` allowed
* Revert changes in `bridges` subtree folder
* Use correct account for Sudo
* Add comment explaining duplicate bridge pallets
* Remove WeightInfo comment.
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
2021-05-13 15:09:17 +00:00
Andronik Ordian and Vladimir Istyufeev
87264b7b0b
bump spec versions in kusama, polkadot and westend again II ( #3021 )
...
* bump spec versions in kusama, polkadot and westend again II
* Don't build artifacts for the downstream simnet job as it's disabled now
* uncomment rococo-v1 publishing job
Co-authored-by: Vladimir Istyufeev <vladimir@parity.io >
2021-05-13 16:13:01 +02:00
Arkadiy Paronyan
3c0270fe57
Maintain fork_targets ( #8791 )
...
* Maintain fork_targets
* Added a test
2021-05-13 13:53:30 +00:00
Sergei Shulepov
d326c3431e
Narrow the set of available host functions for PVF ( #3005 )
2021-05-13 12:15:46 +02:00
Andronik Ordian
60fbca3c2a
validator_discovery: simplification ( #3009 )
...
* validator_discovery: simplification
* compilation fixes
* compilation fixes II
* compilation fixes III
* compilation fixes IV
2021-05-13 11:31:15 +02:00
Sergei Shulepov
0e6c96a8b6
Support opening HRMP channels in genesis ( #3003 )
2021-05-13 10:54:30 +02:00
Gavin Wood
dcae333e82
Introduce reserve-asset transfer extrinsic ( #3010 )
...
* Introduce reserve-asset transfer extrinsic
* Fixes
2021-05-12 21:07:20 +02:00
stanly-johnson and Guillaume Thiolliere
d48243344c
Migrate pallet-offences to pallet attribute macro ( #8763 )
...
* update to pallet macro
* fixes
* fix tests
* remove unwanted generic
* fix conflict
* Fix storage and tabs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2021-05-12 16:38:46 +00:00
Andrew Jones
8e2b7b7c25
Remove grandpa StoredPendingChange shim ( #8788 )
...
* Remove grandpa StoredPendingChange shim
* Unused import
2021-05-12 16:35:33 +00:00
Andreas Doerr
ea42f734dc
Use BeefyParams ( #3013 )
2021-05-12 14:03:48 +00:00
0849bcce0e
Embed runtime version as a custom section ( #8688 )
...
* emit a custom section from impl_runtime_apis!
This change emits a custom section from the impl_runtime_apis! proc macro.
Each implemented API will result to emitting a link section `runtime_apis`.
During linking all sections with this name will be concatenated and
placed into the final wasm binary under the same name.
* Introduce `runtime_version` proc macro
This macro takes an existing `RuntimeVersion` const declaration, parses
it and emits the version information in form of a linking section.
Ultimately such a linking section will result into a custom wasm
section.
* Parse custom wasm section for runtime version
* Apply suggestions from code review
Co-authored-by: David <dvdplm@gmail.com >
* Fix sc-executor integration tests
* Nits
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Refactor apis section deserialization
* Fix version decoding
* Reuse uncompressed value for CallInWasm
* Log on decompression error
* Simplify if
* Reexport proc-macro from sp_version
* Merge ReadRuntimeVersionExt
* Export `read_embedded_version`
* Fix test
* Simplify searching for custom section
Co-authored-by: David <dvdplm@gmail.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-05-12 13:39:08 +00:00
Shaun Wang
4f7c1df31e
Migrate pallet-recovery to pallet attribute macro ( #8761 )
...
* Migrate pallet-recovery to pallet attribute macro.
* Fix metadata inconsistency.
* Use DispatchResult as call returns.
* Apply review suggestions.
2021-05-12 12:50:22 +00:00
Nikolay Volf
31c5ddc1ce
update environmental ( #8789 )
2021-05-12 14:48:01 +02:00
Shaun Wang
6e11dd18fb
Migrate pallet-lottery to pallet attribute macro ( #8762 )
...
* Migrate pallet-lottery to pallet attribute macro.
* Fix metadata inconsistency.
* fix
* Use DispatchResult in call returns.
2021-05-12 12:44:19 +00:00
Shaun Wang
ad584733e9
frame system: add event util functions for tests. ( #8734 )
...
* frame system: add event util functions for tests.
* URemove unused fn.
* Apply review suggestions.
2021-05-12 12:17:03 +00:00
Shawn Tabrizi and Gavin Wood
32c21b6a6f
Enable Para Registration on Kusama ( #3014 )
...
* enable registration on kusama
* Update runtime/westend/src/lib.rs
Co-authored-by: Gavin Wood <gavin@parity.io >
2021-05-12 07:32:25 -04:00
Gavin Wood and Shawn Tabrizi
41a93127a9
Check out/in assets when teleporting to maintain total issuance ( #3007 )
...
* Check out/in assets when teleporting to maintain total issuance
* Fixes
* Fixes
* Fixes
* Fixes
* Update xcm/xcm-executor/src/traits/transact_asset.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Docs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-05-12 08:39:16 +02:00
Dan Shields
d89a01cd96
revert changes: InspectKeyCmd back to InspectCmd where appropriate ( #8787 )
2021-05-12 07:47:10 +02:00
c68903f3bb
Add Auctions and Crowdloans to Kusama and Westend ( #2999 )
...
* add to westend
* fixes
* fix runtime tests
* add to kusama
* 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
* fix auctions benchmarks
* add benchmark to kusama
* update weights
* 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=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
* update to use weights
* 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
* Initiate auctions with 2/3 council
* add check and docs
* update crowdloan deposits
* move tests
* move other tests
* update ending period
* 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
* fix origin
* 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
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Gavin Wood <gavin@parity.io >
2021-05-11 22:29:01 +02:00
b55344819f
Extrinsic for reserving a parachain ID ( #3008 )
...
* Extrinsic for reserving a parachain ID
* Fixes
* Fixes
* Docs
* 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
* Update runtime/common/src/paras_registrar.rs
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
* 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
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
2021-05-11 22:28:37 +02:00
bc6efb0480
Initial integration of Gilts pallet (Kusama) ( #2587 )
...
* Initial integration of Gilts pallet (Kusama)
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_gilt --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
* Use real weights
* Update lock
* Merge
* Fixes
* Add working.
* Add proper curve arithmetic
* Fixes
* Fixes
* Make build
* Fixes
* Fixes
* Fix build
* remove dep.
* undo dep.
* upadte substrate
* Fix
* Bump Substrate
* Fixes
* Fixes
* Fix test
* Remove cap and some tests
* Fixes
* Fixes
* Update runtime/kusama/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* bump the lock file
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
Co-authored-by: kianenigma <kian@parity.io >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-05-11 15:40:24 +02:00
Martin Pugh
25cd67436c
Bump version to v0.9.1 and spec_version to v9010 ( #3001 )
...
* bump version and spec_version
* fix generate_release_text.rb
* Revert "fix generate_release_text.rb"
This reverts commit 9e01e0ae4f6db2155d123f69063db7d7564588e0.
* fix publish_draft_release
* fix publish_draft_release
* update target cache
2021-05-11 15:27:52 +02:00
Wei Tang
a5b2e7786e
pow: fix docs on mining worker ( #8759 )
...
* pow: fix docs on mining worker
* typo: miner -> mining
* Switch to proper Rust intra-doc link
2021-05-11 11:25:50 +00:00
Pierre Krieger
d443a0b929
Don't remove addresses from known_external_addresses ( #8778 )
...
* Don't remove addresses from known_external_addresses
* Remove `remove`
2021-05-11 10:34:35 +00:00