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
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
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
Bastian Köcher
3bcd7f0fd8
Fix chain spec handling ( #438 )
...
Before when loading a chain spec from a file it was always using the
rococo parachains runtime genesis config. This leaded to problems when
trying to convert a shell chain spec json file to a raw chain spec.
2021-05-13 23:35:15 +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
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
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
96cb16c384
Companion for #3010 (Reserve Xfer extrinsic) ( #434 )
...
* Companion for #3010 (Reserve Xfer extrinsic)
* cargo update -p xcm
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-05-13 08:07:39 +02:00
Gavin Wood
23d04ceb3c
Companion for #3007 (Track teleported assets) ( #436 )
...
* Companion for #3007 : Track teleported assets
* Bump
* Try fix the breakage
Co-authored-by: Sergei Shulepov <sergei@parity.io >
2021-05-12 22:51:28 +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
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
Bastian Köcher
3194febb1f
Rename rococo-collator to polkadot-collator ( #435 )
...
* Rename `rococo-collator` to `polkadot-collator`
Also contains some other small changes.
* Test fixes and some further search&replace
2021-05-12 17:53:22 +02:00
Andreas Doerr
ea42f734dc
Use BeefyParams ( #3013 )
2021-05-12 14:03:48 +00:00
Sergei Shulepov
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
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
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
Shawn Tabrizi
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
Gavin Wood
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
Gavin Wood
8cd71668a3
Companion #2995 : Dispatchable for teleporting assets ( #431 )
...
* Companion #2995 : Dispatchable for teleporting assets
* Fixes
* Fixes
* Fixes
* Fixes
* Bump Substrate
* Bump Polkadot
* Fixes
2021-05-11 15:41:52 +02:00
Gavin Wood
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
Vladimir Istyufeev
f01606e6e0
Temporarily disable trigger-simnet job ( #3004 )
2021-05-10 23:02:14 +02:00
Sergei Shulepov
6f9bc19972
Make Allocator trait pub ( #8777 )
...
We need this in order to be able to assemble more fine grained host
function sets.
E.g. we don't want to use `SubstrateHostFunctions` for PVF. We would
better whitelist certain host functions. However, we cannot do that
because we cannot refer to the `Allocator` runtime interface.
I have not been able to find the reason why it wasn't made `pub` in the
first place, but do not see any reason why not to.
2021-05-10 17:42:55 +00:00
Andreas Doerr
aa51cddf47
Add --no-beefy CLI flag ( #2981 )
...
* Add --disable-beefy CLI flag
* Update cli/src/command.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
* Update node/test/service/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update parachain/test-parachains/adder/collator/src/main.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update cli/src/command.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* Update cli/src/cli.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* Update cli/src/cli.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update cli/src/cli.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
2021-05-10 17:13:21 +00:00
Robert Klotzner
1e5f193765
Fix flaky test ( #3002 )
...
* Reporting peer might come first
before trying to request data, depending on scheduler.
* Better test.
2021-05-10 15:16:08 +00:00
Gavin Wood
36b9d23923
Dispatchable for teleporting assets ( #2995 )
...
* Dispatchable for teleporting assets
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
* Update node/network/protocol/src/peer_set.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Update xcm/src/v0/traits.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-05-10 16:13:46 +02:00