Bastian Köcher
782c0264ac
Update Substrate & Polkadot ( #469 )
2021-06-03 19:50:18 +02:00
Martin Pugh
b63184e4ec
Bump version, substrate, beefy in prep for v0.9.4 ( #3169 )
...
* bump version, substrate, beefy
* bump substrate
2021-06-03 17:05:31 +02:00
Andronik Ordian
bd66121324
validator-discovery: some extra logs ( #3157 )
...
* remove duplicate logging
* validator-discovery: add extra logging
2021-06-03 14:17:24 +00:00
Bastian Köcher
258c1a86f6
Transaction pool: Ensure that we prune transactions properly ( #8963 )
...
* Transaction pool: Ensure that we prune transactions properly
There was a bug in the transaction pool that we didn't pruned
transactions properly because we called `prune_known`, instead of `prune`.
This bug was introduced by:
https://github.com/paritytech/substrate/pull/4629
This is required to have stale extrinsics being removed properly, so
that they don't fill up the tx pool.
* Fix compilation
* Fix benches
* ...
2021-06-03 16:04:29 +02:00
Gavin Wood
53de6871e0
Fix teleport accounting and add some events ( #3167 )
...
* Stuff to help inspect the DMP activity
* Fix teleport accounting
* Fixes
* Fixes
* Fixes
* Fixes
2021-06-03 15:39:08 +02:00
Shawn Tabrizi
f585bf1c1e
Add Call Filter That Prevents Nested batch_all ( #9009 )
...
* add filter preventing nested `batch_all`
* more tests
* fix test
* cargo run --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
Co-authored-by: Parity Bot <admin@parity.io >
2021-06-03 13:05:02 +00:00
Chevdor
24ddf1b0ce
Add srtool + subwasm workflow ( #462 )
...
Add github workflow to build the westmint and statemine runtimes with srtool and subwasm
Co-authored-by: Alexander Popiak <alexander.popiak@gmail.com >
2021-06-03 14:46:43 +02:00
Dmitry Kashitsyn
94717b93db
Removes unused import ( #9007 )
2021-06-03 11:25:02 +00:00
Gavin Wood
bf1ea96c66
Non-fungible token traits ( #8993 )
...
* Non-fungible token traits
* Docs
* Fixes
* Implement non-fungible trait for Uniques
* Update frame/uniques/src/impl_nonfungibles.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Update frame/uniques/src/impl_nonfungibles.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-06-03 13:20:34 +02:00
Bastian Köcher
ecb0478a49
Decrease log levels ( #464 )
...
It doesn't make sense to log them as a warning, especially when it could
happen that a parachain id could be reused over the lifetime of a relay
chain.
2021-06-03 12:48:28 +02:00
Shaun Wang
88e25f1669
Companion PR for Substrate #8824 (Migrate pallet-democracy to pallet attribute macro) ( #3030 )
...
* Add type parameter for democracy genesis config.
* update Substrate
Co-authored-by: parity-processbot <>
2021-06-03 06:28:00 -04:00
Andreas Doerr
ccb4e6a551
Add ecdsa::Pair::verify_prehashed() ( #8996 )
...
* Add ecdsa::Pair::verify_prehashed()
* turn verify_prehashed() into an associated function
* add Signature::recover_prehashed()
2021-06-03 09:46:43 +00:00
Shaun Wang
7ec6ebb627
Migrate pallet-democracy to pallet attribute macro ( #8824 )
...
* Migrate pallet-democracy to pallet attribute macro.
* Metadata fix.
* Trigger CI.
2021-06-03 08:30:21 +00:00
Alexander Popiak
a28d4a5c5d
XCM docs and tests ( #2948 )
...
* WIP
* add tests and docs for DoubleEncoded
* reformat parent_count
* add test for match_and_split
* fix append_with docs and add tests
* move Parachain enum variant to tuple
* Fix stuff
* add to append test
* simplify match
* formatting
* format and extend doc comments (including examples)
* fix typo
* add some doc comments
* add test for location inverter
* Add more tests/docs
* Fix build
* matches fungibles
* currency adapter.
* add more tests for location inverter
* extract max length magic number into constant
* adapters.
* Apply suggestions from code review
* Final touches.
* Repot and fixes
* Remove last todo
* Apply suggestions from code review
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update xcm/xcm-builder/src/barriers.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update xcm/xcm-builder/src/barriers.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update xcm/xcm-builder/src/currency_adapter.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update xcm/xcm-builder/src/filter_asset_location.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update xcm/xcm-builder/src/matches_fungible.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update xcm/xcm-executor/src/traits/conversion.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update xcm/xcm-executor/src/traits/conversion.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update xcm/xcm-executor/src/traits/transact_asset.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update xcm/xcm-executor/src/traits/should_execute.rs
Co-authored-by: Alexander Popiak <alexander.popiak@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-06-03 02:01:25 +00:00
Shaun Wang
512b366280
Update purchase pallet to FRAME v2 ( #3075 )
...
* Migrate purchase wrapper pallet to pallet attribute macro.
* Apply review suggestions.
* Update runtime/common/src/purchase.rs
* Update runtime/common/src/purchase.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-06-02 18:30:55 -04:00
Pierre Krieger
152587bcb9
Discard notifications if we have failed to parse handshake ( #8806 )
2021-06-02 20:41:21 +02:00
Bastian Köcher
2ab5f9aeca
Transactionpool: Make ready_at return earlier ( #8995 )
...
`ready_at` returns when we have processed the requested block. However,
on startup we already have processed the best block and there
are no transactions in the pool on startup anyway. So, we can set `updated_at`
to the best block on startup.
Besides that `ready_at` now returns early when there are no ready nor
any future transactions in the pool.
2021-06-02 18:13:47 +00:00
Alexander Popiak
50245e5add
Statemine Release Prep ( #460 )
...
* set default para id to 1000
* add genesis value generation script
* add statemine chain spec and genesis values
* add westmint chain spec and genesis values
* rename chain specs to _genesis to indicate that they are not usable for syncing the chain
* adjust chain names to reduce confusion
* add westmint chain spec
* set chain id to shell
* comment out statemine chain spec
* fix build
Co-authored-by: joepetrowski <joe@parity.io >
2021-06-02 16:27:46 +02:00
Bastian Köcher
ba81b0b56c
Do not require the collator key to be passed ( #459 )
2021-06-02 11:43:45 +02:00
Gavin Wood
3a06a47aa7
Bump XCM weight to something more conservative ( #458 )
2021-06-02 09:22:49 +02:00
Gavin Wood
fccdc2da9a
Add NFTs to Statemine ( #456 )
...
* Add NFTs to Statemine
* Update NFT deposits
* add_benchmark
* add feature flag
* std feature too
* add weights
* add `transfer_ownership` to `NonTransfer` blacklist
* fix merge
* add `approve_transfer` to `NonTransfer` blacklist
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-06-02 09:00:18 +02:00
joe petrowski
b60d1e36d2
add transfer_ownership to NonTransfer blacklist ( #457 )
2021-06-02 07:29:29 +02:00
Shawn Tabrizi
554a0cb274
also fix bounded vec ( #8987 )
2021-06-02 04:30:53 +00:00
Gavin Wood
cac84659a2
Bump Substrate ( #3153 )
2021-06-02 00:17:47 +02:00
MOZGIII
e63730b763
Convert another instance of Into impl to From in the macros ( #8986 )
...
* Convert another instance of Into impl to From in the macros
* Convert another location
2021-06-01 20:48:31 +00:00
Shaun Wang
22f076c6d3
Update para sudo wrapper pallet to FRAME v2 ( #3074 )
...
* Migrate para sudo wrapper pallet to pallet attribute macro.
* Apply review suggestions.
2021-06-01 20:34:47 +00:00
Shaun Wang
ca10e33788
Migrate registrar pallet to pallet attribute macro. ( #3063 )
2021-06-01 20:32:31 +00:00
Alexander Popiak
78d8482dac
use the Barrier type in XcmConfig ( #3154 )
2021-06-01 20:29:35 +00:00
Boiethios
29a7559fe3
Update WeakBoundedVec's remove and swap_remove ( #8985 )
...
Co-authored-by: Boiethios <felix-dev@daudre-vignier.fr >
2021-06-01 22:27:30 +02:00
Gavin Wood
eaa9f64671
Add Statemint ( #452 )
...
* Add Statemint
* Versioning.
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
* Benchmarking
* kick patch (paritytech/statemin#88 )
* Westmint Chain Spec (paritytech/statemint#90 )
* Tidy the common .toml
* Update weights
* add westmint sudo key comment
* Port consensus stuff
* fix typo
* fix typo ... again
* Recognise Westmint
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-06-01 21:31:03 +02:00
Gavin Wood
e819fd03f9
Uniques: An economically-secure basic-featured NFT pallet ( #8813 )
...
* Uniques: An economically-secure basic-featured NFT pallet
* force_transfer
* freeze/thaw
* team management
* approvals
* Fixes
* force_asset_status
* class_metadata
* instance metadata
* Fixes
* use nmap
* Fixes
* class metadata has information field
* Intiial mock/tests and a fix
* Remove impl_non_fungibles
* Docs
* Update frame/uniques/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Update frame/uniques/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Update frame/uniques/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Update frame/uniques/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Reserve, don't transfer.
* Fixes
* Tests
* Tests
* refresh_deposit
* Tests and proper handling of metdata destruction
* test burn
* Tests
* Update impl_fungibles.rs
* Initial benchmarking
* benchmark
* Fixes
* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_uniques --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/uniques/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* Attributes
* Attribute metadata
* Fixes
* Update frame/uniques/README.md
* Docs
* Docs
* Docs
* Simple metadata
* Use BoundedVec
* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_uniques --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/uniques/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* Update frame/uniques/src/lib.rs
Co-authored-by: Lohann Paterno Coutinho Ferreira <developer@lohann.dev >
* Update frame/uniques/src/lib.rs
Co-authored-by: Lohann Paterno Coutinho Ferreira <developer@lohann.dev >
* Update frame/uniques/src/lib.rs
Co-authored-by: Lohann Paterno Coutinho Ferreira <developer@lohann.dev >
* Update frame/uniques/src/lib.rs
Co-authored-by: Lohann Paterno Coutinho Ferreira <developer@lohann.dev >
* Update frame/uniques/src/lib.rs
Co-authored-by: Lohann Paterno Coutinho Ferreira <developer@lohann.dev >
* Fixes
* Update frame/uniques/README.md
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update frame/uniques/README.md
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update frame/uniques/README.md
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Docs
* Bump
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Lohann Paterno Coutinho Ferreira <developer@lohann.dev >
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
2021-06-01 18:03:13 +02:00
Ashley
c408515501
Revert "Use SpawnTaskHandles for spawning tasks in the tx pool ( #8958 )" ( #8983 )
...
This reverts commit 84e402389b .
2021-06-01 15:14:33 +00:00
radupopa2010
e6881457b8
Make script usable from both pipeline and localhost ( #3147 )
...
* Make script usable from both pipeline and localhost
* use the new argument --simnet-version=
* dummy, to trigger pipeline one more time
* CI: optimize the script
* No arg for help flag
* CI: comment and unneded parameter
Co-authored-by: Denis P <denis.pisarev@parity.io >
2021-06-01 16:52:15 +02:00
Sergei Shulepov
bf229f0ba4
Do not spend time on verifying the signatures before calling Runtime ( #8980 )
2021-06-01 14:43:29 +00:00
Ashley
84e402389b
Use SpawnTaskHandles for spawning tasks in the tx pool ( #8958 )
...
* Remove futures-diagnose
* Use `SpawnTaskHandle`s for spawning tasks in the tx pool
* Box the spawner
* Fix tests
* Use the testing task executor
2021-06-01 14:28:03 +00:00
Kian Paimani
ac3c88fd34
Inject hashed prefix for remote-ext ( #8960 )
...
* Inject for remote-ext
* Update utils/frame/remote-externalities/src/lib.rs
Co-authored-by: Zeke Mostov <32168567+emostov@users.noreply.github.com >
* Update utils/frame/remote-externalities/src/lib.rs
Co-authored-by: Zeke Mostov <32168567+emostov@users.noreply.github.com >
* Apply suggestions from code review
* Apply suggestions from code review
Co-authored-by: Zeke Mostov <32168567+emostov@users.noreply.github.com >
2021-06-01 13:49:06 +01:00
Bastian Köcher
ba52404a27
Dependabot use correct label ( #8973 )
2021-06-01 11:57:35 +00:00
Sergei Shulepov
2239b93d31
Companion for PR 8913 ( #3114 )
...
* Companion for PR 8913
polkadot companion: https://github.com/paritytech/substrate/pull/8913
* update Substrate
Co-authored-by: parity-processbot <>
2021-06-01 13:03:34 +02:00
Squirrel
c0dfe2c382
Spellling corrections (no code changes) ( #8971 )
...
* Spelling corrections
* As this might break let's do as a separate PR
2021-06-01 12:51:38 +02:00
Sergei Shulepov
7a284fcf1d
Update wasmtime to 0.27 ( #8913 )
...
* Update wasmtime to 0.27
A couple of notes:
- Now we are fair about unsafeness of runtime creation via an compiled artifact.
This change was prompted by the change in wasmtime which made
`deserialize` rightfully unsafe. Now `CodeSupplyMode` was hidden and
the `create_runtime` now takes the blob again and there is now a new
fn for creating a runtime with a compiled artifact.
- This is a big change for wasmtime. They switched to the modern backend
for code generation. While this can bring performance improvements, it
can also introduce some problems. In fact, 0.27 fixed a serious issue
that could lead to sandbox escape. Hence we need a proper burn in.
This would require a change to PVF validation host as well.
* Filter regalloc logging
2021-06-01 10:02:10 +00:00
Squirrel
dc88e6dd7e
Reduce cargo doc warnings ( #8947 )
...
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-06-01 10:26:10 +01:00
Keith Yeung
3b1c2f55b2
Allow usage of path in construct_runtime! ( #8801 )
...
* Allow usage of path in construct_runtime!
* Fix whitespace
* Fix whitespace
* Make expand_runtime_metadata accept slice instead of Iterator
* Include Call and Event in construct_runtime for testing
* Migrate impl_outer_event to proc macro
* Fix integrity_test_works
* Update UI test expectations
* Factor in module path while generating enum variant or fn names
* Use ParseStream::lookahead for more helpful error messages
* Remove generating outer_event_metadata
* Ensure pallets with different paths but same last path segment can coexist
* Remove unnecessary generated function
* Migrate decl_outer_config to proc macro
* Add default_filter test for expand_outer_origin
* Allow crate, self and super keywords to appear in pallet path
* Add UI test for specifying empty pallet paths in construct_runtime
2021-06-01 09:23:41 +00:00
Robert Klotzner
24d1eb40cc
Increase PoV timeout slightly. ( #3144 )
2021-05-31 22:12:18 -05:00
Alexander Popiak
fd14e6822f
add westmint as a trusted teleport to westend ( #3142 )
2021-05-31 14:25:44 -05:00
Robert Habermeier
963993d288
Reversion Safety tools for overseer and subsystems ( #3104 )
...
* guide: reversion safety
* guide: manage reversion safety in subsystems
* add leaf status to ActivatedLeaf
* add an LRU-cache to overseer for staleness detection
* update ActivatedLeaf usages in tests to contain status field
* add variant where missed accidentally
* add some helpers to LeafStatus
* address grumbles
2021-05-31 20:54:05 +02:00
dependabot[bot]
f85492dcbf
Bump getrandom from 0.2.2 to 0.2.3 ( #8952 )
...
Bumps [getrandom](https://github.com/rust-random/getrandom ) from 0.2.2 to 0.2.3.
- [Release notes](https://github.com/rust-random/getrandom/releases )
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/getrandom/compare/v0.2.2...v0.2.3 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-31 18:40:36 +00:00
Kian Paimani
58a6f31ccf
Add deserialize for TransactionValidityError in std. ( #8961 )
...
* Add deserialize for TransactionValidityError in std.
* Fix derives
2021-05-31 18:17:56 +00:00
Bastian Köcher
fa22eb7361
Optimize next_storage_key ( #8956 )
...
* Optimize `next_storage_key`
- Do not rely on recursion
- Use an iterator over the overlay to not always call the same method
* Fix bug
2021-05-31 20:17:15 +02:00
Roman Proskuryakov
587ea2549b
Refactor code a little bit ( #8932 )
2021-05-31 16:05:50 +00:00
Robert Habermeier
6b166a7a1f
fix approval-checking GRANDPA voting rule ( #3133 )
...
* fix approval-checking GRANDPA voting rule
a `None` return value implies to vote on the best, not to vote on the base.
this explicitly changes the logic to vote on the base
* refactor logic out and test
2021-05-31 10:45:16 -05:00