Just van Stam
ae018a01a4
changes to nfts pallet for xcm integration ( #14395 )
...
* Use Incrementable from frame_support::traits
* Chore
* make incremental fallible and new nfts function for custom collection ids
* fmt
* fix benchmark tests nfts
* add test
* fmt
* add safety comment to CollectionId
* fmt
* add comments to Incrementable
* line wrapping
* rewrap comments
* address feedback
* fmt
* change unwrap for expect
---------
Co-authored-by: Jegor Sidorenko <jegor@parity.io >
Co-authored-by: parity-processbot <>
2023-07-25 08:02:39 +00:00
Sam Johnson
5e6bbfa0a6
upgrade to macro_magic 0.4.2 ( #14627 )
...
* upgrade to macro_magic 0.4.2
* also change in Cargo.toml
2023-07-24 21:03:52 +00:00
Gonçalo Pestana
9ac344e694
Removes incorrect try-state check in staking ( #14186 )
...
Co-authored-by: parity-processbot <>
2023-07-24 18:59:44 +00:00
Michal Kucharczyk
53cbda1de6
test-runtime: GenesisBuilder runtime API impl + tests (#14310 )
...
* test-runtime: GenesisBuilder runtime API impl + tests
This PR provides implementation of `GenesisBuilder` API for `substrate-test-runtime`, can be considered as reference imiplementation for other runtimes.
The `GenesisBuilder` implementation is gated by `gensis-config` feature.
Tested scenarios:
- default `GenesisConfig` to JSON blob,
- deserialization of `GenesisConfig` from custom JSON, and storing its keys into the Storage (genesis storage creation).
- creation of genesis storage using partial JSON definition,
- checking if invalid/renamed JSON files causes the runtime to panic,
* missing file added
* client: GenesisBuilder helper added
* feature renamed: genesis-config -> genesis-builder
* Update Cargo.toml
* Update Cargo.toml
* Update Cargo.toml
* Update Cargo.toml
* redundant function removed
* genesis builder helper: introduced RuntimeGenesisBuild
* test-runtime: get rid of unused T
* redundant bound removed
* helper: use GenesisBuild again
* tests adjusted for on_genesis
* test-runtime: support for BuildGenesisConfig
* helper: BuildGenesisConfig support
* Update client/genesis-builder/src/lib.rs
Co-authored-by: Davide Galassi <davxy@datawok.net >
* Update test-utils/runtime/src/test_json/readme.md
Co-authored-by: Davide Galassi <davxy@datawok.net >
* Update test-utils/runtime/src/test_json/readme.md
Co-authored-by: Davide Galassi <davxy@datawok.net >
* Update test-utils/runtime/src/genesismap.rs
Co-authored-by: Davide Galassi <davxy@datawok.net >
* jsons are now human-friendly
* fix
* improvements
* jsons fixed
* helper: no_defaults added
* test-runtime: no_defaults added
* test-runtime: patching fn removed
* helper: patching fn removed
* helper: moved to frame_support
* test-runtime: fixes
* Cargo.lock updated
* fmt + naming
* test-runtime: WasmExecutor used
* helper / test-runtime: struct removed
* test-runtime: merge fixes
* Cargo.lock + test-utils/runtime/Cargo.toml updated
* doc fixed
* client/rpc: test fixed (new rt api)
* client/rpc-spec-v2: test fix
* doc fix
* test-runtime: disable-genesis-builder feature
* fix
* fix
* ".git/.scripts/commands/fmt/fmt.sh"
* test-runtime: rerun added to build script
---------
Co-authored-by: Davide Galassi <davxy@datawok.net >
Co-authored-by: parity-processbot <>
2023-07-24 16:12:52 +00:00
Liam Aharon
f79b75c6c2
ci: always run runtime migration checks ( #7422 )
...
* add rococo test and run ci every pr
* remove debug logging from ci output
* fix run command
* Update scripts/ci/gitlab/pipeline/check.yml
Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com >
* make --checks explicit
* fix checks
* kick ci
* kick ci
* kick ci
* kick ci
---------
Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com >
2023-07-24 15:10:55 +00:00
Branislav Kontur
794b8454a4
Build just polkadot-parachain binary for build-short-benchmark ( #2928 )
2023-07-24 14:50:10 +00:00
Sacha Lansky
7fdcb83117
[fix lint warnings: Uniques pallet] fix clippy::doc_markdown warnings ( #14592 )
...
* Fix clippy::doc_markdown warnings
* Remove accidental commit of script
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_uniques
* Some more backticks
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_uniques
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: command-bot <>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-07-24 14:39:15 +00:00
Branislav Kontur
cd263ace19
BHs readme nits ( #2754 )
...
* Correct BH readme
* Zombienet renaming
* TOC
* Apply suggestions from code review
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Updated REAMDE.md
* Alice -> Bob for e2e
---------
Co-authored-by: Adrian Catangiu <adrian@parity.io >
Co-authored-by: parity-processbot <>
2023-07-24 14:16:08 +00:00
Sacha Lansky
187059860d
[fix lint warnings: Uniques pallet] fix clippy::missing_docs_in_private_items warnings ( #14591 )
...
* Fix clippy::missing_docs_in_private_items
* Fix clippy::missing_docs_in_private_items
---------
Co-authored-by: parity-processbot <>
2023-07-24 13:07:11 +00:00
Gonçalo Pestana
9f92437c8c
Do not include voters that have zero voter weight in the election snapshot ( #14245 )
...
Co-authored-by: parity-processbot <>
2023-07-24 12:32:42 +00:00
Egor_P
0b79443be3
Fix PR name ( #2926 )
2023-07-24 11:33:05 +00:00
Squirrel
1f54333732
We count the teleported assets ( #7528 )
...
This brings the `limited_teleport_assets` weight into line with the
`teleport_assets` weight.
2023-07-24 08:42:10 +00:00
Aaro Altonen
f008e06985
Accept only --in-peers many inbound full nodes in SyncingEngine ( #14603 )
...
* Accept only `--in-peers` many inbound full nodes in `SyncingEngine`
Due to full and light nodes being stored in the same set, it's possible
that `SyncingEngine` accepts more than `--in-peers` many inbound full
nodes which leaves some of its outbound slots unoccupied.
`ProtocolController` still tries to occupy these slots by opening
outbound substreams. As these substreams are accepted by the remote peer,
the connection is relayed to `SyncingEngine` which rejects the node
because it's already full. This in turn results in the substream being
inactive and the peer getting evicted.
Fixing this properly would require relocating the light peer slot
allocation away from `ProtocolController` or alternatively moving entire
the substream validation there, both of which are epic refactorings and
not necessarily in line with other goals. As a temporary measure, verify
in `SyncingEngine` that it doesn't accept more than the specified amount
of inbound full peers.
* Fix tests
* Apply review comments
2023-07-24 07:47:37 +00:00
Kian Paimani
5b268d4417
minor updates to the substrate doc crate ( #14614 )
2023-07-23 14:32:05 -07:00
Xiliang Chen
79341dd40f
add missing feature flag ( #7537 )
2023-07-22 20:21:39 +00:00
dependabot[bot]
543b35a30f
Bump anyhow from 1.0.71 to 1.0.72 ( #2906 )
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.71 to 1.0.72.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.71...1.0.72 )
---
updated-dependencies:
- dependency-name: anyhow
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-07-22 15:49:45 +00:00
dependabot[bot]
56d225c281
Bump async-trait from 0.1.71 to 0.1.72 ( #2920 )
...
Bumps [async-trait](https://github.com/dtolnay/async-trait ) from 0.1.71 to 0.1.72.
- [Release notes](https://github.com/dtolnay/async-trait/releases )
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.71...0.1.72 )
---
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>
2023-07-22 15:49:26 +00:00
dependabot[bot]
bb4e989a91
Bump num-traits from 0.2.15 to 0.2.16 ( #2921 )
...
Bumps [num-traits](https://github.com/rust-num/num-traits ) from 0.2.15 to 0.2.16.
- [Changelog](https://github.com/rust-num/num-traits/blob/master/RELEASES.md )
- [Commits](https://github.com/rust-num/num-traits/compare/num-traits-0.2.15...num-traits-0.2.16 )
---
updated-dependencies:
- dependency-name: num-traits
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-07-22 13:52:11 +00:00
dependabot[bot]
55218f8133
Bump thiserror from 1.0.43 to 1.0.44 ( #2922 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.43 to 1.0.44.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.43...1.0.44 )
---
updated-dependencies:
- dependency-name: thiserror
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-07-22 13:50:44 +00:00
jserrat
3f8c34547e
add tests to worker common thread ( #7372 )
...
* add tests to worker common thread
* fix formatting
* move worker commons unit test from integration tests to worker file and do some improvements
* fix import on it/worker_common
* move worker commons unit test to test module
* cargo fmt
* move cpu_time_monitor_loop to test outside of thread module
* change worker thread unit test to use assert_eq
* fix formatting
* adding new methods to WaitOucome, fix pvf worker unit test
* fix formatting
* remove is_finished and is_timeout methods from WaitOutcome
* fix wait_for_threads_with_timeout_returns_outcome test
* ".git/.scripts/commands/fmt/fmt.sh"
* add common worker cond_notify_on_done_should_update_wait_outcome_when_panic test
---------
Co-authored-by: Marcin S <marcin@realemail.net >
Co-authored-by: command-bot <>
2023-07-22 12:17:26 +00:00
Branislav Kontur
bb04175303
Run all benchmarks "as tests" in short setup on every PR ( #2846 )
...
* Run all benchmarks "as tests" in short setup on every PR
* Fix
* Update scripts/ci/gitlab/pipeline/short-benchmarks.yml
Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com >
* Updated TODO
* Removed `--execution wasm`
* [asset-conv] Unused Balances type
* [asset-conv] native asset change
* Dedicated `AssetBalance` type for `pallet_assets` instances
* Improved local vs foreign asset handling + test for not allowing pool_assets in pool
* Removed `into_multiasset_id`
* Fix
* Refactor
* Fixed create_pool for benchmark with LocalAndForeignAssets (finally found it)
* Revert
* fmt
* Migrates pools with `MultiLocation { parents: 0, interior: Here }` to `MultiLocation { parents: 1, interior: Here }`
* Allow `set_storage` for `AllowMultiAssetPools` / `LiquidityWithdrawalFee`
* Benchmarks work
* Removed comment + more defensive migration
* `T::Currency::transfer` -> `Balances::transfer_all` in migration
* Change pool_id in migration
---------
Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com >
Co-authored-by: parity-processbot <>
2023-07-22 06:30:28 +00:00
Bastian Köcher
b16976053e
Do some cleanups ( #14608 )
...
* Do some cleanups
Found them while looking over the code.
* More
* Fix
2023-07-21 23:54:01 +02:00
Branislav Kontur
8171890f9b
Asset conversion nits ( #2860 )
...
* [asset-conv] Unused Balances type
* [asset-conv] native asset change
* Dedicated `AssetBalance` type for `pallet_assets` instances
* Improved local vs foreign asset handling + test for not allowing pool_assets in pool
* Removed `into_multiasset_id`
* Fix
* Refactor
* Fixed create_pool for benchmark with LocalAndForeignAssets (finally found it)
* ".git/.scripts/commands/fmt/fmt.sh"
* Revert
* fmt
* Migrates pools with `MultiLocation { parents: 0, interior: Here }` to `MultiLocation { parents: 1, interior: Here }`
* Allow `set_storage` for `AllowMultiAssetPools` / `LiquidityWithdrawalFee`
* Benchmarks work
* Removed comment + more defensive migration
* `T::Currency::transfer` -> `Balances::transfer_all` in migration
* Change pool_id in migration
* Update parachains/runtimes/assets/asset-hub-westend/src/lib.rs
* Bump substrate (manually)
* Bump polkadot
* Fixes from polkadot + clippy
* Fix for xcm-emulator tests (thank you Nacho)
---------
Co-authored-by: command-bot <>
Co-authored-by: Jegor Sidorenko <5252494+jsidorenko@users.noreply.github.com >
2023-07-21 23:53:51 +02:00
Gautham
98304ee957
Update logging from error to trace ( #14604 )
...
This annoying!
2023-07-21 22:07:36 +02:00
Sergej Sakac
ac253c7139
Add NetworkBridgeEvent::UpdatedAuthorityIds ( #6227 )
...
* Add NetworkBridgeEvent::UpdatedAuthorityIds
* update collator
* informing subsystems
* remove outdated authority data
* docs
* remove accidentally added line
* update docs
* emit event on session change
* emit
* check for update and update
* Update node/network/gossip-support/src/lib.rs
Co-authored-by: Andronik <write@reusable.software >
* Update node/network/approval-distribution/src/lib.rs
Co-authored-by: Andronik <write@reusable.software >
* Update node/network/bitfield-distribution/src/lib.rs
Co-authored-by: Andronik <write@reusable.software >
* Update node/network/bridge/src/rx/mod.rs
Co-authored-by: Andronik <write@reusable.software >
* Update node/network/collator-protocol/src/validator_side/mod.rs
Co-authored-by: Andronik <write@reusable.software >
* Update node/network/collator-protocol/src/collator_side/mod.rs
Co-authored-by: Andronik <write@reusable.software >
* Update node/network/bridge/src/rx/mod.rs
Co-authored-by: Andronik <write@reusable.software >
* Update node/subsystem-types/src/messages.rs
Co-authored-by: Andronik <write@reusable.software >
* Update node/subsystem-types/src/messages.rs
Co-authored-by: Andronik <write@reusable.software >
* Update node/network/statement-distribution/src/lib.rs
Co-authored-by: Andronik <write@reusable.software >
* Update node/network/statement-distribution/src/lib.rs
Co-authored-by: Andronik <write@reusable.software >
* Update node/subsystem-types/src/messages/network_bridge_event.rs
Co-authored-by: Andronik <write@reusable.software >
* Update node/subsystem-types/src/messages.rs
Co-authored-by: Andronik <write@reusable.software >
* fixes
* merge fixes
* make clippy happy again
* fix
---------
Co-authored-by: Andronik <write@reusable.software >
2023-07-21 13:48:15 -05:00
Alexandru Vasile
1fef5ee4a4
chainHead_storage: Backport queries for value types ( #14551 )
...
* chainHead/events: Add storage params and events
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* chainHead/tests: Check storage events serialization / deserialization
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* chainHead/error: Add error for invalid WaitForContinue storage call
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* chainHead/storage: Use new items params
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* chainHead/tests: Adjust storage tests to the new API
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* chainHead/events: Generalize StorageQuery by provided key
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* chain_head: Add dedicated ChainHeadStorage client for queries
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* chainHead/storage: Implement queries for hashes of values
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* chainHead/tests: Check storage queries for hashes of values
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* chainHead: Improve API documentation wrt multiple entries
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* chainHead/event: Rename StorageQueue ty to queue_ty
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* chianHead: Add helper to encode chainHead results as hex str
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update client/rpc-spec-v2/src/chain_head/error.rs
Co-authored-by: Sebastian Kunert <skunert49@gmail.com >
* chainHead: Change the `queryResult` to a plain `Result`
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* chainHead: Stop producing events after the first error
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* chainHead: Change child_key to child_trie API param
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
Co-authored-by: Sebastian Kunert <skunert49@gmail.com >
2023-07-21 19:56:40 +03:00
Branislav Kontur
649be3aaaa
Asset conversion get_pool_id fix (Ord does not count with is_native flag) ( #14572 )
...
* Asset conversion `get_pool_id` fix (`Ord` does not count with `is_native` flag)
* Removed unnecessery clones + added `pool_account` to `PoolCreated` event
* Fix bench compile
* Fix bench
* Improved `MultiAssetIdConverter::try_convert`
* Removed `into_multiasset_id` from converter and moved to `BenchmarkHelper`
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_asset_conversion
* Fixed doc
* Typo
* Removed `NativeOrAssetId` (test/mock) impl from types.rs to mock.rs...
* Typo + 0u32 -> 0
* Update frame/asset-conversion/src/benchmarking.rs
Co-authored-by: Jegor Sidorenko <5252494+jsidorenko@users.noreply.github.com >
* Typo
* ".git/.scripts/commands/fmt/fmt.sh"
* Fix from Jegor
* Try to fix the other failing benchmark
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_asset_conversion
* Update frame/asset-conversion/src/lib.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update frame/asset-conversion/src/types.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update frame/transaction-payment/asset-conversion-tx-payment/src/mock.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update frame/asset-conversion/src/mock.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update bin/node/runtime/src/impls.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update frame/asset-conversion/src/lib.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update bin/node/runtime/src/impls.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Reverted NativeOrAssetId
---------
Co-authored-by: command-bot <>
Co-authored-by: Jegor Sidorenko <5252494+jsidorenko@users.noreply.github.com >
Co-authored-by: Jegor Sidorenko <jegor@parity.io >
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
2023-07-21 13:06:32 +00:00
dependabot[bot]
849964bf18
Bump clap from 4.3.16 to 4.3.17 ( #2908 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.3.16 to 4.3.17.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.3.16...v4.3.17 )
---
updated-dependencies:
- dependency-name: clap
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-07-21 14:42:56 +02:00
PG Herveou
e71cca3c0d
Contracts: Enabled signed extension ( #14565 )
...
* Contracts enable signed extension
* Add test
* fix
* xx
* Update frame/contracts/fixtures/sign_extension.wat
Co-authored-by: Sasha Gryaznov <hi@agryaznov.com >
* move tests
---------
Co-authored-by: Sasha Gryaznov <hi@agryaznov.com >
2023-07-21 11:39:40 +00:00
dependabot[bot]
559e301f06
Bump parity-scale-codec from 3.6.3 to 3.6.4 ( #2909 )
...
Bumps [parity-scale-codec](https://github.com/paritytech/parity-scale-codec ) from 3.6.3 to 3.6.4.
- [Release notes](https://github.com/paritytech/parity-scale-codec/releases )
- [Changelog](https://github.com/paritytech/parity-scale-codec/blob/master/CHANGELOG.md )
- [Commits](https://github.com/paritytech/parity-scale-codec/compare/v3.6.3...parity-scale-codec-v3.6.4 )
---
updated-dependencies:
- dependency-name: parity-scale-codec
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-07-21 09:57:00 +02:00
dependabot[bot]
2b8662def7
Bump tempfile from 3.6.0 to 3.7.0 ( #2912 )
...
Bumps [tempfile](https://github.com/Stebalien/tempfile ) from 3.6.0 to 3.7.0.
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.6.0...v3.7.0 )
---
updated-dependencies:
- dependency-name: tempfile
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-07-20 23:14:46 +02:00
PG Herveou
99ad485101
Contracts: Tweak test ( #14579 )
2023-07-20 16:43:35 +00:00
Dmitry Markin
0b2e7d4df5
Fix crash when --in-peers & --out-peers both 0 ( #14598 )
2023-07-20 18:19:19 +03:00
Michal Kucharczyk
14b086263e
chain-spec-builder: redundant file removed src/main.rs (#14600 )
...
* chain-spec-builder: redundant functions removed from main
* src/main.rs removed
2023-07-20 12:22:29 +00:00
georgepisaltu
9ec80090f5
Use benchmarking::v2 in collator selection pallet ( #2904 )
...
* Use benchmarking v2 in collator selection pallet
Signed-off-by: georgepisaltu <george.pisaltu@parity.io >
* Use extrinsic_call syntax
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Replace `block` with `extrinsic_call` syntax
Signed-off-by: georgepisaltu <george.pisaltu@parity.io >
---------
Signed-off-by: georgepisaltu <george.pisaltu@parity.io >
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-07-20 12:09:12 +00:00
Aaro Altonen
6ee66e9895
Improve logging for the request-response protocol ( #14596 )
...
Co-authored-by: parity-processbot <>
2023-07-20 10:40:52 +03:00
Andrei Sandu
a200d4c9d7
uncompressed pov metrics ( #7524 )
...
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
2023-07-20 07:40:47 +00:00
Oliver Tale-Yazdi
daa9ecf77d
Introduce Pallet paged-list ( #14120 )
...
* Prototype StoragePagedList
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add drain
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove stale docs
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add fuzzer tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Review
Co-authored-by: Koute <koute@users.noreply.github.com >
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fmt
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Docs and clippy
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Sum docs
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Cleanup
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Undo WIP
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add pallet-paged-list
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Move code to pallet
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Move fuzzer
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Cleanup
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fmt
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* docs
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Rename Appendix -> Appender
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Rename clear -> delete
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Feature gate testing stuff
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Docs review
Co-authored-by: Koute <koute@users.noreply.github.com >
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Cleanup
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* doc review
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Review renames
Co-authored-by: Koute <koute@users.noreply.github.com >
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add docs
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix fuzzer
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Docs + examples
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove hasher
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove empty Event and Call
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove MaxPages
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix docs
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Test eager page removal
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Cleanup
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update frame/paged-list/src/paged_list.rs
Co-authored-by: Koute <koute@users.noreply.github.com >
* Fix docs
Co-authored-by: Koute <koute@users.noreply.github.com >
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove as_*_vec
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update versions
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Rename ValuesPerPage -> ValuesPerNewPage
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update lockfile
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix mock
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: Koute <koute@users.noreply.github.com >
Co-authored-by: parity-processbot <>
2023-07-19 20:14:56 +00:00
tugy
86f3f640bf
add missing syscalls ( #7521 )
2023-07-19 21:42:52 +02:00
Kian Paimani
817c97d65d
add doc-only substrate entry point crate ( #14581 )
...
* add doc-only substrate entry point crate
* document a few more things
* add more
* fix width
* Update primitives/io/src/lib.rs
Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com >
* add link
* update cargo toml file
* fix sp-io docs
* improve
* small update
* add license
* satisfy license job
* add a line about FRAME
* CI happy now
* make CI more happy
* Let the check run for the whole workspace
* Forward the substrate node again as default run
* update binary names
* upate verison test
* Fix fix fix
* Fix
* rename to substrate-node in more places
* Revert "rename to substrate-node in more places"
This reverts commit 66960f84a1b6f1f7c638b4040e28e9fbabb8adf5.
* fix
* Fix build pipeline
* Fix properly plus add some docs
---------
Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com >
Co-authored-by: Bastian Köcher <info@kchr.de >
2023-07-19 18:36:50 +00:00
Svyatoslav Nikolsky
948f80733e
Update bridges subtree ( #2903 )
...
* Squashed 'bridges/' changes from 0417308a48..3c4ada921b
3c4ada921b Update dependecies (#2277 ) (#2281 )
3e195c9e76 GRANDPA: optimize votes_ancestries when needed (#2262 ) (#2264 )
7065bbabc6 Implement RuntimeDebug for GrandpaJustification (#2254 )
8c9e59bcbc Define generate_grandpa_key_ownership_proof() (#2247 ) (#2248 )
0b46956df7 Deduplicate Grandpa consensus log reading logic (#2245 ) (#2246 )
96c9701710 Fix deps from Cumulus (#2244 )
git-subtree-dir: bridges
git-subtree-split: 3c4ada921bbdbdba945c3aa85d76ce316f7baab3
* removed extra files
* post-merge fixes
* also post-merge fixes
2023-07-19 19:29:12 +03:00
dependabot[bot]
913b789416
Bump dyn-clone from 1.0.11 to 1.0.12 ( #2897 )
...
Bumps [dyn-clone](https://github.com/dtolnay/dyn-clone ) from 1.0.11 to 1.0.12.
- [Release notes](https://github.com/dtolnay/dyn-clone/releases )
- [Commits](https://github.com/dtolnay/dyn-clone/compare/1.0.11...1.0.12 )
---
updated-dependencies:
- dependency-name: dyn-clone
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-07-19 17:53:54 +02:00
dependabot[bot]
781b9326da
Bump quote from 1.0.30 to 1.0.31 ( #2895 )
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.30 to 1.0.31.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.30...1.0.31 )
---
updated-dependencies:
- dependency-name: quote
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-07-19 16:34:09 +02:00
Francisco Aguirre
cc9f8129af
Change Fixed to WeightInfoBounds for Polkadot ( #7077 )
...
* Add polkadot XCM benchmarks
* Add temp
* ".git/.scripts/commands/bench/bench.sh" xcm polkadot pallet_xcm_benchmarks::fungible
* ".git/.scripts/commands/bench/bench.sh" xcm polkadot pallet_xcm_benchmarks::generic
* Add weights to XCM on Polkadot
* Make CI fail on old files
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update template
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add reserve_asset_deposited benchmark
* ".git/.scripts/commands/bench/bench.sh" xcm kusama pallet_xcm_benchmarks::generic
* Update weights
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Change initiate_reserve_deposit in runtime weights
* Update weights
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove trusted reserves from runtimes
* Fix pallet-xcm-benchmarks mock
* Fix test
* Change pallet xcm weigher in kusama
* Fix
* Remove merge conflict artifact
* Remove initiate_reserve_withdraw from generic benchmarks
* Add missing implementation to XCM benchmark
* Fix failing karura test
* Remove dbg!
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Fix fmt
* Revert "Fix fmt"
This reverts commit 676f2d8db07d7427750c79f95494d4988d06fda5.
* Fix fmt
* Remove duplicated template code
* Add back part of the template
* ".git/.scripts/commands/bench-vm/bench-vm.sh" xcm polkadot pallet_xcm_benchmarks::fungible
* Don't skip reserve asset deposited benchmark
* Remove call to non-generated benchmark yet
* Underscore unused parameter
* Skip not supported benchmarks and hardcode value
* Remove ReserveAssetDeposited benchmark
* ".git/.scripts/commands/bench-vm/bench-vm.sh" xcm polkadot pallet_xcm_benchmarks::fungible
* Add back ReserveAssetDeposited
* ".git/.scripts/commands/bench-vm/bench-vm.sh" xcm polkadot pallet_xcm_benchmarks::fungible
* Use default benchmark for ReserveAssetDeposited
* Add missing parameter
* Revert reserve asset deposited benchmark
* ".git/.scripts/commands/bench-vm/bench-vm.sh" xcm kusama pallet_xcm_benchmarks::fungible
* ".git/.scripts/commands/bench-vm/bench-vm.sh" xcm westend pallet_xcm_benchmarks::fungible
* ".git/.scripts/commands/bench/bench.sh" xcm rococo pallet_xcm_benchmarks::fungible
* Add 'real' benchmarks
* Add TrustedReserve to actual XcmConfig
* Add TrustedReserve to actual XcmConfig (fix)
* Whitelist from benchmarking XCM storage keys read each block (#6871 )
* Whitelist from benchmarking XCM storage keys read each block
* ".git/.scripts/commands/bench/bench.sh" runtime polkadot pallet_xcm
* ".git/.scripts/commands/bench/bench.sh" runtime polkadot pallet_xcm
* ".git/.scripts/commands/bench/bench.sh" runtime westend pallet_xcm
* ".git/.scripts/commands/bench/bench.sh" runtime rococo pallet_xcm
* Remove XcmPallet SupportedVersion from the benchmark whitelist
* ".git/.scripts/commands/bench/bench.sh" runtime polkadot pallet_xcm
* ".git/.scripts/commands/bench/bench.sh" runtime kusama pallet_xcm
* ".git/.scripts/commands/bench/bench.sh" runtime westend pallet_xcm
* ".git/.scripts/commands/bench/bench.sh" runtime rococo pallet_xcm
* WIP
* Add necessary traits, remove unnecessary whitelisted keys
* Fix tests
* Remove unused file
* Remove unused import
---------
Co-authored-by: command-bot <>
* ".git/.scripts/commands/bench/bench.sh" xcm kusama pallet_xcm_benchmarks::fungible
* ".git/.scripts/commands/bench/bench.sh" xcm kusama pallet_xcm_benchmarks::fungible
* ".git/.scripts/commands/bench/bench.sh" xcm kusama pallet_xcm_benchmarks::fungible
* ".git/.scripts/commands/bench/bench.sh" xcm rococo pallet_xcm_benchmarks::fungible
* ".git/.scripts/commands/bench/bench.sh" xcm westend pallet_xcm_benchmarks::fungible
* Fix spellchecker issues
* Remove unused migration code
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: command-bot <>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2023-07-19 14:18:03 +00:00
Chris Sosnin
c63b557e50
paras: count upgrade delay from inclusion ( #7486 )
...
* paras: count upgrade delay from inclusion
* fix warning
* rename check cause block number field
* rename inclusion_parent -> included_at
2023-07-19 12:06:58 +00:00
Sebastian Kunert
5b5942ef60
Use trie-cache for validate_block ( #2813 )
...
* Simple cache
* Fix node insertion
* Switch to hashbrown hashmap
* Remove unused phantomdata
* Return error when fetch_node fails
* Remove cargo patches
* Move trie cache to extra module
* Add ReadOnceBackend
* Add readonlybackend
* Improve naming and get_or_insert
* Stylistic improvements
* Improve naming, add docs
* Revert unwanted changes
* Remove unused dependencies
* Improve docs
* Use RefCell
* lockfile
* Remove ReadOnceBackend
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <git@kchr.de >
* Code review
* Do not use value cache when calculating storage roots
* Apply suggestions from code review
Co-authored-by: Davide Galassi <davxy@datawok.net >
* Remove hash-db dep
* Update pallets/parachain-system/src/validate_block/trie_cache.rs
Co-authored-by: Anton <anton.kalyaev@gmail.com >
---------
Co-authored-by: Bastian Köcher <git@kchr.de >
Co-authored-by: Davide Galassi <davxy@datawok.net >
Co-authored-by: Anton <anton.kalyaev@gmail.com >
2023-07-19 11:46:58 +00:00
Oliver Tale-Yazdi
3bbb336ea7
Remove Executed Migrations ( #7495 )
...
* Polkadot is at .42
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Kusama is on .43
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Westend is at .43
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Rococo is at .42
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Make UMP limits migration more idempotentish
Already 100% idempotent per design, but not it wont try to schedule
an unneeded upgrade. Note that the case that the new upgrade is
already scheduled is not checked. In that case it will still upgrade
the same thing again, but should be no problem.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Clippy
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Delete old migration code
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fmt
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove old tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Polkadot is at .43
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove a ton of shit
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove more
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove unused code
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Rococo is NOT yet at .43, but remove anyway
Rococo is the only runtime that is not yet at .43, but keeping
the migration code just for it is not worth it since devops
can just apply it at any time.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove old test
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-07-19 13:04:11 +02:00
dependabot[bot]
18340b304b
Bump paste from 1.0.13 to 1.0.14 ( #2896 )
...
Bumps [paste](https://github.com/dtolnay/paste ) from 1.0.13 to 1.0.14.
- [Release notes](https://github.com/dtolnay/paste/releases )
- [Commits](https://github.com/dtolnay/paste/compare/1.0.13...1.0.14 )
---
updated-dependencies:
- dependency-name: paste
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-07-19 11:48:09 +02:00
dependabot[bot]
70151644c6
Bump clap from 4.3.14 to 4.3.16 ( #2898 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.3.14 to 4.3.16.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.3.14...v4.3.16 )
---
updated-dependencies:
- dependency-name: clap
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-07-19 11:45:30 +02:00
Tsvetomir Dimitrov
a1eadbff3b
Bump HostConfig storage version to 7 ( #7516 )
2023-07-19 09:37:20 +00:00