yjh
271d65eae7
chore: remove duplicated arc ( #13871 )
2023-04-11 12:42:49 +02:00
Liam Aharon
a53110f929
remove unused import ( #13868 )
2023-04-10 23:25:12 +02:00
yjh
d5e460b3bf
refactor(sc-executor): use wasm executor builder instead of old apis ( #13740 )
...
* refactor: use builder api for all executors
* improve a lot
* remove unused args
* cleanup deps
* fix inconsistency about heap alloc
* add `heap_pages` back to try-runtime
* fix
* chore: reduce duplicated code for sc-service-test
* cleanup code
* fmt
* improve test executor
* improve
* use #[deprecated]
* set runtime_cache_size: 4
* fix and improve
* refactor builder
* fix
* fix bench
* fix tests
* fix warnings
* fix warnings
* fix
* fix
* update by suggestions
* update name
2023-04-09 23:48:40 +00:00
Muharem Ismailov
fd2f200265
The Polkadot Fellowship import ( #2236 )
...
* Fellowship into Collectives
* cargo.lock
* tracks alias
* allow to send Fellows origin over XCM
* update todos, remove duplication of type
* use Collectives location for Fellows body
* alias for ranks constants
* benchmarks
* proxy for Fellowship
* docs
* correct copyright date
* Apply suggestions from code review
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* rustfmt
* remove council, update origins
* renames
* remove tech committee from promote origin
* renames
* Fellowship import
* test
* rename mod
* fix import
* updated addresses (only ss58 version)
* update addresses
* doc nits
* weights with new api
* update addresses
* fix try runtime
* update addresses
* use pallet api to import the members
* merge fix
* hex-literal version
* add Bradley to the 1 rank
---------
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
Co-authored-by: parity-processbot <>
2023-04-09 10:26:12 +00:00
s0me0ne-unkn0wn
64660ee8d2
Remove years from copyright notes ( #7034 )
...
* Happy New Year!
* Remove year entierly
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove years from copyright notice in the entire repo
---------
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-04-08 20:38:35 +00:00
Sergej Sakac
f4d079a723
Warn if pallet provided to try-state does not exist ( #13858 )
...
* Warn if pallet does not exist in try-state
* unwrap_or_default
2023-04-09 03:20:13 +10:00
Tsvetomir Dimitrov
63a805baba
Onchain scraper in dispute-coordinator will scrape SCRAPED_FINALIZED_BLOCKS_COUNT blocks before finality ( #7013 )
...
* Onchain scraper in `dispute-coordinator` will scrape `SCRAPED_FINALIZED_BLOCKS_COUNT` blocks before finality
The purpose is to make the availability of a `CandidateReceipt` for finalized candidates more likely.
For details see: https://github.com/paritytech/polkadot/issues/7009
* Fix off by one error
* Replace `SCRAPED_FINALIZED_BLOCKS_COUNT` with `DISPUTE_CANDIDATE_LIFETIME_AFTER_FINALIZATION`
2023-04-07 20:34:09 +00:00
Marcin S
bfd43dbce5
WASM executor: add OutputExceedsBounds variant to Error ( #13841 )
...
* WASM executor: add `OutputExceedsBounds` variant to `Error`
Previously this was a `WasmError`, which is intended for runtime construction errors. However this
led to confusion as output-exceeds-bounds occurs due to execution of `validate_block`.
* Fix warning
2023-04-07 10:35:41 +00:00
Marcin S
5889119fc9
PVF: Minor refactor in workers code ( #7012 )
...
* Move version check to `worker_event_loop`
* More minor refactors
- More consistent use of `format_invalid` and `format_internal`.
- Fix a doc error.
- Fix some poorly-named local variables.
2023-04-07 10:14:53 +00:00
Aaro Altonen
e77099c1a6
Make blocks per request configurable ( #13824 )
...
* Make blocks per request configurable
* Correct type
* Update docs
* Update client/cli/src/params/network_params.rs
2023-04-07 08:20:17 +00:00
alexd10s
23de70a536
Update the frame-weight-template to use PhantomData from core ( #13844 )
...
* update weights template and recalculate weights from pallet template
* update template file in benchmarking-cli
2023-04-06 16:19:46 +00:00
Chris Kerr
b0d99a084a
Fix typos ( #13842 )
...
* Fix typo
GRANPA -> GRANDPA
* Fix capitalisation
Fixed words capitalised in the middle of sentences.
2023-04-06 18:06:15 +02:00
Liam Aharon
5cd939bda1
RemovePallet migration utility struct (#13835 )
...
* remove pallet utility struct
* Update frame/support/src/remove_pallet.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update frame/support/src/remove_pallet.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* make removepallet a module of migrations
* fix rust doc lint
---------
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-04-07 00:27:25 +10:00
alexd10s
0d7402eb8c
Use proper weights in the pallet-template ( #13817 )
...
* benchmarking to generate weights file
* add the calculated weights in the extrinsics
* use benchmarking v2 syntax to generate the weights
* minor syntax change when benchmarking
* added WeightInfo in the mock to pass tests
* minor cargo fmt format changes
2023-04-06 11:27:43 +00:00
Liam Aharon
0b3444c51d
Fix try-runtime follow-chain, try-runtime upgrade tuple tests, cli test utils ( #13794 )
...
* new test for try-runtime tuple stuff
* fix
* remove development comment
* formatting
* remove todo comment
* follow-chain working test
* refactor common cli testing utils
* fix comment
* revert Cargo.lock changes
* update Cargo.lock
* improve doc comment
* fix error typo
* update Cargo.lock
* feature gate try-runtime test
* build_substrate cli test util
* feature gate follow_chain tests
* move fn start_node to test-utils
* improve test pkg name
* use tokio Child and Command
* remove redundant import
* fix ci
* fix ci
* don't leave hanging processes
* improved child process cleanup
* use existing KillChildOnDrop
* remove redundant comment
* Update test-utils/cli/src/lib.rs
Co-authored-by: Koute <koute@users.noreply.github.com >
---------
Co-authored-by: kianenigma <kian@parity.io >
Co-authored-by: Koute <koute@users.noreply.github.com >
2023-04-06 19:49:53 +10:00
Branislav Kontur
d89e4c36fd
Updated bridge-hub-polkadot.json ( #2435 )
2023-04-06 08:55:42 +00:00
Keith Yeung
38f3b053d7
Add HoldReason to the NIS pallet ( #13823 )
...
* Add HoldReason to the NIS pallet
* Rename composable_enum to composite_enum
* Add encoding test
* Add more doc comments
2023-04-06 06:24:45 +00:00
Liam Aharon
3ace2f50c5
remove duplicate sync option documentation ( #13828 )
2023-04-06 07:28:21 +02:00
s0me0ne-unkn0wn
8fd05b62bc
Expose WASM bulk memory extension in execution environment parameters ( #7008 )
2023-04-05 22:01:31 +00:00
dependabot[bot]
1a2af1f0ee
Bump hex-literal from 0.4.0 to 0.4.1 ( #2434 )
...
Bumps [hex-literal](https://github.com/RustCrypto/utils ) from 0.4.0 to 0.4.1.
- [Release notes](https://github.com/RustCrypto/utils/releases )
- [Commits](https://github.com/RustCrypto/utils/compare/hex-literal-v0.4.0...hex-literal-v0.4.1 )
---
updated-dependencies:
- dependency-name: hex-literal
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>
2023-04-05 21:57:14 +00:00
Bastian Köcher
fa8e323231
ProofRecorder: Implement transactional support ( #13769 )
...
* TrieRecorder: Start adding support for transactions
* Adds `transactions` functions and some test
* More tests
* Docs
* Ensure that we rollback failed transactions in the storage proof
* FMT
* Update primitives/trie/src/recorder.rs
Co-authored-by: Dmitry Markin <dmitry@markin.tech >
* Review comments
* Update primitives/trie/src/recorder.rs
Co-authored-by: Sebastian Kunert <skunert49@gmail.com >
* ".git/.scripts/commands/fmt/fmt.sh"
* For the holy clippy!
* Update primitives/trie/src/recorder.rs
Co-authored-by: Anton <anton.kalyaev@gmail.com >
---------
Co-authored-by: Dmitry Markin <dmitry@markin.tech >
Co-authored-by: Sebastian Kunert <skunert49@gmail.com >
Co-authored-by: command-bot <>
Co-authored-by: Anton <anton.kalyaev@gmail.com >
2023-04-05 14:43:17 +00:00
Gonçalo Pestana
06f84830b6
Mention on_idle round-robin logic to trait Hooks cargo doc ( #13797 )
...
* Adds on_idle round-robin logic to trait Hooks docs
* Makes the docs more concise
* Update frame/support/src/traits/hooks.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* fmt
---------
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-04-05 13:14:46 +00:00
Bastian Köcher
495773f96d
Move registration of ReadRuntimeVersionExt to ExecutionExtension ( #13820 )
...
Instead of registering `ReadRuntimeVersionExt` in `sp-state-machine` it is moved to
`ExecutionExtension` which provides the default extensions.
2023-04-05 14:27:26 +02:00
Egor_P
2e967de04e
[Backport] version bumps 9400 ( #2424 )
...
* Bump crate versions
* Bump spec_version to 9400
* bump transaction versions (#2364 )
2023-04-05 11:08:13 +00:00
Sasha Gryaznov
d3f5c70dde
update links to ink! ( #13819 )
2023-04-05 04:34:42 +00:00
Oliver Tale-Yazdi
aa567e0d5b
Co #13699 : Remove old calls ( #2431 )
...
* Remove old calls
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* update lockfile for {"substrate", "polkadot"}
* Ignore warning in pallet ping
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Ignore more warnings...
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* ...
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: parity-processbot <>
2023-04-04 20:31:39 +00:00
Oliver Tale-Yazdi
a57f3ae4c1
Co #13699 : Remove old calls ( #7003 )
...
* Remove old calls
Companion for https://github.com/paritytech/substrate/pull/13699
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* update lockfile for {"substrate"}
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: parity-processbot <>
2023-04-04 19:29:56 +00:00
Oliver Tale-Yazdi
36957d6760
Deprecate V1 Weights ( #13699 )
...
* Remove deprecated pallet calls
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Deprecate old weight
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update Runtime API
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Delete shitty code
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix doctest
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update frame/alliance/src/lib.rs
Co-authored-by: Koute <koute@users.noreply.github.com >
* Add doc
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* contracts: Use u64 as old weight type
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update frame/contracts/src/lib.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Koute <koute@users.noreply.github.com >
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
Co-authored-by: parity-processbot <>
2023-04-04 18:57:21 +00:00
s0me0ne-unkn0wn
b47d5ee23b
Companion for paritytech/substrate#13811 ( #6998 )
...
* Companion for paritytech/substrate#13811
* Add comment
* update lockfile for {"substrate"}
* Update Substrate
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix pallet weight warnings
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: parity-processbot <>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-04-04 18:53:13 +00:00
s0me0ne-unkn0wn
0766072393
Expose WASM extensions in executor semantics ( #13811 )
...
* Expose WASM extensions in executor semantics
* Fix benches
* Remove redundant extensions
2023-04-04 15:10:27 +00:00
Sebastian Kunert
6c896b1ee6
Cleanup: Remove polkadot-service dependency from minimal node ( #2430 )
...
* Remove polkadot-service dependency from minimal-node
* Clean up error handline
* Remove unwanted changes
* Unused deps
2023-04-04 15:05:38 +00:00
Muharem Ismailov
f06ad48a4c
PR review rules, include all rs files except weights ( #6990 )
2023-04-04 16:10:13 +02:00
Egor_P
eaf6c45445
[backport] weights 9400 ( #2425 )
...
* [benchmarks] pr with weights (#2373 )
Co-authored-by: paritytech-ci <paritytech-ci@parity.io >
* [benchmarks] pr with weights (#2374 )
Co-authored-by: paritytech-ci <paritytech-ci@parity.io >
* [benchmarks] pr with weights (#2375 )
Co-authored-by: paritytech-ci <paritytech-ci@parity.io >
* Proof size in test wasn't sufficient
(due to updated weights.)
---------
Co-authored-by: Paritytech CI <52199148+paritytech-ci@users.noreply.github.com >
Co-authored-by: paritytech-ci <paritytech-ci@parity.io >
Co-authored-by: Giles Cope <gilescope@gmail.com >
2023-04-04 14:00:05 +00:00
Keith Yeung
1a55f961c6
Implement #[pallet::composite_enum] ( #13722 )
...
* Implement #[pallet::hold_reason]
* Appease clippy
* cargo fmt
* Update test expectations
* Update test expectations
* Support composite_enum attribute instead
* Update test expectations
* Change hold_reason to composite_enum
* Add UI test for unsupported identifier when using composite_enum
* Fix comment
* Add documentation for pallet::composable_enum
* More docs
* cargo fmt
2023-04-04 12:28:46 +00:00
Fredrik Simonsson
c268f3d3c8
Update documentation for uniques (This PR renames classes and instances to collections and items in the Uniques pallet in order to follow the commonly accepted NFTs terminology.) ( #13322 )
...
* Update documentation for uniques
The documentation was outdated after merge of #11389
Using the widely spread term collections and item instead
of the previous class and instance.
* Update README.md
---------
Co-authored-by: Jegor Sidorenko <5252494+jsidorenko@users.noreply.github.com >
Co-authored-by: Jegor Sidorenko <jegor@parity.io >
2023-04-04 11:42:46 +00:00
Oliver Tale-Yazdi
07dcd47d59
Uniform pallet warnings ( #13798 )
...
* Use proc-macro-warning crate
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fixup
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix pallet_ui tests
Also renamed some of the odd-named ones.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update dep
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Ignore hardcoded weight warning
To be fixed in https://github.com/paritytech/substrate/issues/13813
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix test pallet
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix more tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: parity-processbot <>
2023-04-04 11:32:10 +00:00
Bastian Köcher
2354161f57
Substrate companion: Remove deprecated batch verification ( #6999 )
...
* Substrate companion: Remove deprecated batch verification
* update lockfile for {"substrate"}
---------
Co-authored-by: parity-processbot <>
2023-04-04 10:33:07 +00:00
Bastian Köcher
846ec8cd01
Remove deprecated batch verification ( #13799 )
...
This removes the deprecated batch verification. This was actually never really activated.
Nevertheless, we need to keep the host functions around to support old runtimes which may import
these host functions. However, we do not give access to these functions anymore. This means that any new
runtime can not call them anymore. The host function implementations we keep will not do batch verification and will
instead fall back to the always existing option of directly verifying the passed signature.
`finish_batch_verification` will return the combined result of all the batch verify calls.
This removes the `TaskExecutorExt` which only existed to support the batch verification. So, any
code that used this extension can just remove the registration of them. It also removes
`SignatureBatching` that was used by `frame-executive` to control the batch verification.
However, there wasn't any `Verify` implementation that called the batch verification functions.
2023-04-04 10:02:47 +00:00
Branislav Kontur
e225e54dc7
Companion for #6986 ( #2416 )
...
* refactor: apply substrate/pull/13610
* Added `origin` to config for `universal_origin` benchmark
* update lockfile for {"polkadot", "substrate"}
* Update
---------
Co-authored-by: William Freudenberger <w.freude@icloud.com >
Co-authored-by: parity-processbot <>
Co-authored-by: Bastian Köcher <info@kchr.de >
2023-04-04 09:32:03 +00:00
William Freudenberger
74bbae6901
refactor: inconsistent BalanceConversion fn ( #13610 )
...
* refactor: inconsistent BalanceConversion fn
* Revert "refactor: inconsistent BalanceConversion fn"
This reverts commit 1177877631a11b64df6f019b5390a8a7018e3a3f.
* refactor: rename BalanceConversion trait
* feat: add ConversionFromAssetBalance
2023-04-04 07:40:30 +00:00
Branislav Kontur
3f67c93dd1
Added origin to config for universal_origin benchmark ( #6986 )
2023-04-04 07:34:56 +00:00
dependabot[bot]
cfc9cb1804
Bump hex-literal from 0.3.4 to 0.4.0 ( #2426 )
...
Bumps [hex-literal](https://github.com/RustCrypto/utils ) from 0.3.4 to 0.4.0.
- [Release notes](https://github.com/RustCrypto/utils/releases )
- [Commits](https://github.com/RustCrypto/utils/compare/hex-literal-v0.3.4...hex-literal-v0.4.0 )
---
updated-dependencies:
- dependency-name: hex-literal
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>
2023-04-03 21:53:58 +00:00
dependabot[bot]
d963fa0735
Bump syn from 2.0.12 to 2.0.13 ( #2428 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.12 to 2.0.13.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.12...2.0.13 )
---
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>
2023-04-03 21:51:47 +00:00
Tsvetomir Dimitrov
3ab60efc26
Cache SessionInfo on new activated leaf in dispute-distribution ( #6993 )
...
* Cache `SessionInfo` on new activated leaf in `dispute-distribution`
* Update node/network/dispute-distribution/src/sender/mod.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* fmt
* Decrease log level
---------
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-04-03 18:51:31 +02:00
Koute
795fcf0484
Disable sign-ext WASM feature when building runtimes ( #13804 )
...
Co-authored-by: parity-processbot <>
2023-04-03 12:00:31 +00:00
Muharem Ismailov
e524bf0e30
Scheduler pre block limit note ( #13231 )
...
Co-authored-by: parity-processbot <>
2023-04-03 10:59:01 +00:00
Bastian Köcher
5e3da634a0
Update Substrate & Polkadot ( #2422 )
2023-04-03 10:55:29 +00:00
Bastian Köcher
88a0b303d5
Update Substrate to fix Substrate companions ( #6994 )
2023-04-03 12:55:09 +02:00
Bastian Köcher
7e3e3db282
Force upgrade snow to 0.9.2 ( #13806 )
...
This fixes the compilation on master for the node template that was not pulling the latest release
as part of its build.
2023-04-03 11:37:18 +02:00
Damian Straszak
77fbb82b6b
Adjustments to RPC-query docstrings. ( #13698 )
...
* Changes in RPC docs.
* ".git/.scripts/commands/fmt/fmt.sh"
---------
Co-authored-by: command-bot <>
2023-04-03 10:36:28 +02:00