Sergejs Kostjucenko
ee895b3986
fix gha set-output command ( #14312 )
2023-06-09 16:17:35 +03:00
Squirrel
41735589ee
it's always false... ( #13330 )
2023-06-09 12:11:25 +00:00
Juan
4afbff9763
Add Migrations to contracts config ( #2701 )
...
* add Migrations to contracts config
* update lockfile for {"substrate", "polkadot"}
---------
Co-authored-by: parity-processbot <>
2023-06-09 11:46:10 +00:00
Juan
112a0e7352
Move type Migrations to Config ( #14309 )
...
* move migrate sequence to config
* remove commented out code
* Update frame/contracts/src/lib.rs
Co-authored-by: PG Herveou <pgherveou@gmail.com >
* remove Migrations generic
* make runtime use noop migrations
* restrict is_upgrade_supported
* undo is_upgrade_supported change
* Update bin/node/runtime/src/lib.rs
Co-authored-by: PG Herveou <pgherveou@gmail.com >
* add rust doc example for `Migrations`
* feature gate NoopMigration
* fix example code
* improve example
---------
Co-authored-by: PG Herveou <pgherveou@gmail.com >
2023-06-09 11:04:31 +00:00
Squirrel
356620ba5c
tweak to integration tests ( #2713 )
...
* ump.ExecutedUpward -> messageQueue.Processed
* update lock file because
* use one line format
2023-06-09 10:36:59 +00:00
dependabot[bot]
ea3a668558
Bump docker/login-action from 2.1.0 to 2.2.0 ( #2705 )
...
Bumps [docker/login-action](https://github.com/docker/login-action ) from 2.1.0 to 2.2.0.
- [Release notes](https://github.com/docker/login-action/releases )
- [Commits](https://github.com/docker/login-action/compare/f4ef78c080cd8ba55a85445d5b36e214a81df20a...465a07811f14bebb1938fbed4728c6a1ff8901fc )
---
updated-dependencies:
- dependency-name: docker/login-action
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-06-09 09:43:06 +00:00
dependabot[bot]
f5327c1400
Bump ruby/setup-ruby from 1.150.0 to 1.151.0 ( #2717 )
...
Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby ) from 1.150.0 to 1.151.0.
- [Release notes](https://github.com/ruby/setup-ruby/releases )
- [Commits](https://github.com/ruby/setup-ruby/compare/8a45918450651f5e4784b6031db26f4b9f76b251...bc1dd263b68cb5626dbb55d5c89777d79372c484 )
---
updated-dependencies:
- dependency-name: ruby/setup-ruby
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-06-09 09:42:04 +00:00
eskimor
798a9bac70
Version independent import. ( #2708 )
...
Co-authored-by: eskimor <eskimor@no-such-url.com >
2023-06-09 10:57:40 +02:00
Robert La Ferla
2e43d25a4f
Fix max > T::MaxCandidates benchmark warning ( #2716 )
2023-06-09 00:25:28 +02:00
Squirrel
8d51961704
No need for AssetBalanceOf ( #14325 )
2023-06-08 20:49:25 +00:00
Ignacio Palacios
5a0f9d243c
add account nonce api to glutton ( #2714 )
2023-06-08 14:45:55 +02:00
Alexandru Gheorghe
56af2d4c68
av-store: Move prune on a separate thread ( #7263 )
...
* av-store: Move prune on a separate thread
There are situations where pruning of the data could take more than a few
seconds and that might make the whole subsystem unreponsive. To avoid this just
move the prune process on a separate thread.
See: https://github.com/paritytech/polkadot/issues/7237 , for more details.
Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io >
* av-store: Add log that prunning started
Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io >
* av-store: modify log severity
Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io >
---------
Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io >
2023-06-08 11:21:41 +00:00
Muharem Ismailov
f8cc95c6b9
Xcm Emulator: prepare XCMP on init ( #2711 )
...
* std for pallet-glutton
* fix xcm-emulator init
* headers for it tests
2023-06-08 11:09:48 +00:00
Squirrel
29fa722f38
Update integration tests following event rename ( #2700 )
...
* ump.ExecutedUpward -> messageQueue.Processed
* update lock file because
2023-06-08 10:02:11 +00:00
Egor_P
a6597ba645
[Backport] weights 9430 to master ( #2710 )
...
* [benchmarks] pr with weights (#2667 )
Co-authored-by: paritytech-ci <paritytech-ci@parity.io >
* [benchmarks] pr with weights (#2668 )
Co-authored-by: paritytech-ci <paritytech-ci@parity.io >
* [benchmarks] pr with weights (#2669 )
co-authored-by: paritytech-ci <paritytech-ci@parity.io >
---------
Co-authored-by: Paritytech CI <52199148+paritytech-ci@users.noreply.github.com >
Co-authored-by: paritytech-ci <paritytech-ci@parity.io >
2023-06-08 09:39:37 +00:00
Alexandru Gheorghe
ef6ae48508
metrics: Increase the resolution of histogram metrics ( #7335 )
...
* metrics: Increase the resolution of histogram metrics
These metrics are using the default histogram buckets:
```
pub const DEFAULT_BUCKETS: &[f64; 11] = &[
0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1.0, 2.5, 5.0, 10.0,
];
```
Which give us a resolution of 5ms, that's good, but there are some subsystems
where we process hundreds or even a few thousands of messages per second like
approval-voting or approval-distribution, so it makes sense to increse the
resoution of the bucket to better understand if the procesisng is in the range
of useconds.
The new bucket ranges will be:
```
[0.0001, 0.0004, 0.0016, 0.0064, 0.0256, 0.1024, 0.4096, 1.6384, 6.5536]
```
Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io >
* Use buckets with higher resolution
Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io >
---------
Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io >
2023-06-08 09:26:36 +00:00
Oliver Tale-Yazdi
4f2c748c73
Fix migrations ( #7340 )
...
Okay this was stupid 🤦
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-06-08 08:51:44 +00:00
yjh
ddb46a8aa0
refactor: define trait HashOutput for some Hash associate type ( #14220 )
...
* define trait `HashOutput`
* improve
* improve
* Update primitives/runtime/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* remove `Block::Hash: Ord`
* fmt
* add `MaybeFromStr`
* cleanup
* fix
* remove useless `HashOutput`
---------
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-06-08 02:02:13 +00:00
Sergejs Kostjucenko
ede7f65f19
fix gha set-output command ( #2697 )
2023-06-07 23:48:17 +03:00
Squirrel
c31c6a1a73
Remove native deps: openssl-sys, git2-sys, libssh2-sys ( #14302 )
...
* Remove native deps: openssl-sys, git2-sys, libssh2-sys
Enables substrate master compiles first time on more machines.
(E.g. not needing
OPENSSL_DEV_LIB to be correctly configured.)
* cargo fmt
* Remove newline
* Update utils/frame/generate-bags/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* remove trailing new line
---------
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-06-07 15:32:54 +00:00
Davide Galassi
3135baf75e
Finalize target block after warp sync ( #2696 )
...
* Finalize state after warp sync
* Update cargo.lock
* Apply code review suggestion
Co-authored-by: Sebastian Kunert <skunert49@gmail.com >
* Update lock
---------
Co-authored-by: Sebastian Kunert <skunert49@gmail.com >
2023-06-07 13:34:20 +02:00
dependabot[bot]
cab52dc1f4
Bump tempfile from 3.5.0 to 3.6.0 ( #2698 )
...
Bumps [tempfile](https://github.com/Stebalien/tempfile ) from 3.5.0 to 3.6.0.
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.5.0...v3.6.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-06-07 10:22:00 +00:00
Davide Galassi
b14238cb7d
Finalized should be before best ( #14308 )
...
* Finalized block should not be after best block
* Remove unwrap
* Apply code review suggestion
Co-authored-by: Koute <koute@users.noreply.github.com >
* Add test
---------
Co-authored-by: Koute <koute@users.noreply.github.com >
2023-06-07 11:17:45 +02:00
Bastian Köcher
c8416af829
Remove unused deps and upgrade fs_extra ( #2695 )
2023-06-06 14:41:00 +00:00
Kian Paimani
6f79a9e941
add pallet macro kitchensink example/template ( #14052 )
...
* add pallet macro kitchen-sink pallet
* update
* Adds benchmarking setup
* Updates APIs
* Fixes benchmark
* Uses derive_impl for frame_system
* Adds benchmarks
* Minor update
* Adds license
* Adds examples crate
* ".git/.scripts/commands/fmt/fmt.sh"
* Update frame/examples/kitchensink/src/tests.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/examples/kitchensink/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/examples/kitchensink/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Addresses review comments
* Addresses review comments
* ".git/.scripts/commands/fmt/fmt.sh"
---------
Co-authored-by: Nikhil Gupta <17176722+gupnik@users.noreply.github.com >
Co-authored-by: command-bot <>
Co-authored-by: command-bot <ci@gitlab.parity.io >
2023-06-06 13:47:34 +00:00
Muharem Ismailov
ce0dcd5741
Runtime: Polkadot Fellowship promotion/demotion periods, members activity and salaries ( #2607 )
...
* core fellowship
* core fellowship weights
* salary
* weights
* fellowship pot
* registration period 15 days
* use treasury account for salary pay, promotion origin
* decision period for tracks 30 days
* docs
* comment
* Couple of fixes and some refactoring
* Alter curves to be a bit more conservative
* Use `PayOverXcm` for fellowship salary payments
* Docs and remove unneeded code
* Fixes
* Move Fellowship stuff in line with whitepaper
* fix: induction by a single Fellow (not proficient)
* doc fix
* renames, pallet index, allow unpaid for salary pallet
* Fix budget units
* Fixes
* Test sovereign account for Fellowship salaries
* Nice address test
* Fixes
* test for PayOverXcm setup
* Update parachains/runtimes/collectives/collectives-polkadot/src/fellowship/mod.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
---------
Co-authored-by: Gav <gavin@parity.io >
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-06-06 11:48:15 +01:00
Achim Schneider
03490d5dd0
arkworks integration ( #13031 )
...
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix compression
* fix compression
* fix compression
* fix compression
* fix compression
* fix std leak
* fix std leak
* fix std leak
* merge master
* merge master
* cargo update
* cargo update
* cargo update
* cargo update
* cargo update
* use serialize_result
* cargo update
* cargo update
* cargo update
* cargo update
* reduce boilerplate code
* remove host function muls
* reduce boilerplate code
* remove patches
* uuse correct ark-substrate branch
* reduce boilerplate code
* cleanup
* cleanup
* proper error handling
* derive serialize for error
* proper error handling
* proper error handling
* proper error handling
* derive Debug for PairingError
* sp-arkworks path
* cargo update
* adopt tests to error handling
* fix tests
* cargo update
* remove results
* deserialize as G2Affine
* cargo update
* add codex index to PairingError
* replace Vec<Vec<u8>>
* replace Vec<Vec<u8>>
* use into_iter for chunks
* use chunks for scalars
* fix ersialized_size
* use into
* collect as vec
* collect as vec
* no collect Vec
* use into_iter
* import AffineRepr
* fix typo
* cargo update
* new serialization
* fix typo
* unwrap results
* unwrap results
* use correct deserialization
* fix bugs, cleanup
* correct len
* vec without capacity
* Revert "vec without capacity"
This reverts commit 2b1cd004f9f3f7cb1b0513c794f9ea781bb75ef1.
* Revert "correct len"
This reverts commit b85de8606364260c310f3c306b0a920e184e7e53.
* Revert "fix bugs, cleanup"
This reverts commit eef4c77ac99c0ed2e4b4857702e6ab5f1d2ce36c.
* Revert "use correct deserialization"
This reverts commit 9eacba93150bd41614e198cc6f2838d57d14f8db.
* Revert "unwrap results"
This reverts commit b0df1e1bdbd2518baa23040e0c6663ca69d2ba25.
* Revert "unwrap results"
This reverts commit de3cfbd04964dd66faeae5616b5763b1d30520e2.
* Revert "fix typo"
This reverts commit c12045d78f2468800be30ee1b31b12768aa7a786.
* Revert "new serialization"
This reverts commit e56a088be7612e4511382817afaf61f65b0c3aca.
* Revert "cargo update"
This reverts commit 15898da94677a5f19290a7f15fb15cb4cbd8f431.
* Revert "fix typo"
This reverts commit c89e96331f1d07e3b9b6a00ea9c89896553d67c6.
* Revert "import AffineRepr"
This reverts commit 5a103ac1b3506736181ddda040d896930bd8f83a.
* Revert "use into_iter"
This reverts commit 2e31d912bd4103529b40b250410f9f5b1a980ce4.
* Revert "no collect Vec"
This reverts commit db18dcac34fc3c3ddc20c3b42331f8d5fa7014b5.
* Revert "collect as vec"
This reverts commit dd3f809e965cec361a0feaab9abfae7115756e2c.
* Revert "collect as vec"
This reverts commit 9167d5984d8ecc3903d24f96d8c9fcac45c87bf7.
* Revert "use into"
This reverts commit 344cfffbd38fde130225df35f36259872754bd3a.
* Revert "fix ersialized_size"
This reverts commit c6a760986551cbbcaa3748564dd5e3c7630209c6.
* Revert "use chunks for scalars"
This reverts commit 67987ae0bbba7e3963ccba0dd9f1fbaa4c922d4f.
* Revert "use into_iter for chunks"
This reverts commit 1ddd6b89c2f8fb4e6dd26768be0edaca2d1be3f9.
* Revert "replace Vec<Vec<u8>>"
This reverts commit 4d3b13c02a9db0ea6bd130bda38c851f2371ec6e.
* cargo update
* cargo update
* Revert "replace Vec<Vec<u8>>"
This reverts commit 4389714068d939abc97288c5b06ee23d399a19ad.
* cargo update
* add error
* add error
* add error
* fix typo
* fix imports
* import coded
* import codec
* import PairingError
* fix patches
* sp-arkworks
* sp-arkworks
* use random values for multiplications
* cargo update
* fix imports
* fix imports
* add host functions
* re-add mul impls
* cargo update
* cargo update
* cargo update
* cargo update
* cargo update
* cargo update
* cargo update
* PairingError -> ()
* remove PairingError
* cargo update
* cargo update
* cargo update
* reduce boilerplate code
* cargo update
* update comments
* cargo update
* optimize code quality
* use ark_scale (#13954 )
* use ark_scale
* fix tests
* fix tests
* cleanup & comments
* use correct PR branch
* hazmat
* ed curves, use ArkScaleProjective
* Achimcc/arkworks integration remove affine hostcalls (#13971 )
* remove affine host-calls
* remove affine host-call impls, also in tests
* cargo update
* ark-substrate: use main branch
* cargo update
* Achimcc/arkworks integration bandersnatch (#13977 )
* use bandersnatch
* bandersnatch
* add abndersnatch sw msm
* use correct PR branch
* cargo update
* cargo update
* fix tests
* cleanup
* cleanup
* fix tests
* refactor tests
* cargo update
* cargo update
* cargo update
* refactor tests
* cleanup & update tests
* upgrade arkworks/algebra
* cargo update
* adopt tests
* versioning ark-substrate
* cargo update
* remove patched deps
* bump ark-scale
* use crates-io deps
* fix doc comments
* Cargo.toml, linebreaks at end
* reorgainze tests
* sp-arkworks -> sp-crypto-ec-utils
* move host functions to crypto-ec-utils
* fmt
* remove sp-ec-crypto-utils from io
* remove unwrap from te msm
* remove elliptic_curves references in test
* elliptic_curves references in test
* update doc comments
* remove warn missing docs
* fmt
* cargo update
* update doc comments
* cargo update
* cargo update, bump arkworks, codec versions
* bump runtime version in sp-crypto-ec-utils
* remove feature flag ec-utils-experimental
* crypto-ec-utils -> crypto/ec-utils
* tests/ -> test-data/
* update doc comments for signatures
* update comments
* update doc comments for signatures
* fix doc comments
* fix doc comments
* fix doc comments
* fix doc comments
* fix doc comments
* cleanup
* fix doc comments
* cargo update
* fix doc comments
* cargo update
2023-06-06 10:23:07 +00:00
Oliver Tale-Yazdi
1d395b6c99
Fix feature ( #2690 )
...
Mea culpa...
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-06-06 09:21:29 +00:00
Alexandru Gheorghe
8508c3ae57
approval-distribution: Add approvals/assignments spans on all paths ( #7317 )
...
* approval-distribution: Add approvals/assignments spans on all paths
The approval and assignment logic gets called from multiple paths, so make sure
we create a tracing span on all paths to make debugging easier and be able and
correlate with the spans from approval-voting.
Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io >
* Tag each label with a difference tracing name
Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io >
* Address review feedback
Use the source to determine the tag name
Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io >
---------
Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io >
2023-06-06 08:19:39 +00:00
dependabot[bot]
65d9ba170a
Bump url from 2.3.1 to 2.4.0 ( #2694 )
...
Bumps [url](https://github.com/servo/rust-url ) from 2.3.1 to 2.4.0.
- [Release notes](https://github.com/servo/rust-url/releases )
- [Commits](https://github.com/servo/rust-url/compare/v2.3.1...v2.4.0 )
---
updated-dependencies:
- dependency-name: url
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-06-05 22:42:32 +00:00
dependabot[bot]
8e13b8df9f
Bump clap from 4.3.1 to 4.3.2 ( #2691 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.3.1 to 4.3.2.
- [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/clap_complete-v4.3.1...v4.3.2 )
---
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-06-05 21:59:18 +00:00
Sam Johnson
35cc4162df
upgrade macro_magic to 0.3.5 ( #14303 )
2023-06-05 19:39:43 +00:00
Oliver Tale-Yazdi
884225d340
Fix feature ( #7333 )
...
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: parity-processbot <>
2023-06-05 17:39:02 +00:00
ordian
01a19b45e3
dispute-coordinator: past session dispute slashing ( #6811 )
...
* runtime/vstaging: unapplied_slashes runtime API
* runtime/vstaging: key_ownership_proof runtime API
* runtime/ParachainHost: submit_report_dispute_lost
* fix key_ownership_proof API
* runtime: submit_report_dispute_lost runtime API
* nits
* Update node/subsystem-types/src/messages.rs
Co-authored-by: Marcin S. <marcin@bytedude.com >
* revert unrelated fmt changes
* dispute-coordinator: past session dispute slashing
* encapsule runtime api call for submitting report
* prettify: extract into a function
* do not exit on runtime api error
* fix tests
* try initial zombienet test
* try something
* fix a typo
* try cumulus-based collator
* fix clippy
* build polkadot-debug images with fast-runtime enabled
* wip
* runtime/inclusion: fix availability_threshold
* fix wip
* fix wip II
* revert native provider
* propagate tx submission error
* DEBUG: sync=trace
* print key ownership proof len
* panic repro
* log validator index in panic message
* post merge fixes
* replace debug assertion with a log
* fix compilation
* Let's log the dispatch info in validate block.
* fix double encoding
* Revert "Let's log the dispatch info in validate block."
This reverts commit a70fbc51b464d7f4355dbada5e16cd83cf71eab4.
* Revert "Let's log the dispatch info in validate block."
This reverts commit a70fbc51b464d7f4355dbada5e16cd83cf71eab4.
* fix compilation
* update to latest zombienet and fix test
* lower finality lag to 11
* bump zombienet again
* add a workaround, but still does not work
* Update .gitlab-ci.yml
bump zombienet.
* add a comment and search logs on all nodes
---------
Co-authored-by: Marcin S. <marcin@bytedude.com >
Co-authored-by: Bastian Köcher <info@kchr.de >
Co-authored-by: Javier Viola <javier@parity.io >
2023-06-05 18:21:42 +02:00
Just van Stam
119604ed2d
companion for xcm alias origin ( #2680 )
...
* companion for xcm alias origin
* update lockfile for {"polkadot", "substrate"}
* add benchmark function for runtimes
---------
Co-authored-by: parity-processbot <>
2023-06-05 16:07:02 +00:00
Sebastian Kunert
c047ec900a
Add benchmarks for for import/validation/production ( #2579 )
...
* Add benchmarks
* Remove endowed accounts
* Fix group
* Remove duplicate code
* Comments
* Use execute_block instead of block import
* Apply suggestions from code review
Co-authored-by: Anton <anton.kalyaev@gmail.com >
* Add missing comments
* Clippy
* Reorganize utils
* Remove unused import
* Switch to compiled again
* Apply suggestions from code review
Co-authored-by: Davide Galassi <davxy@datawok.net >
* Refactor local_testnet
* Do not write wasm blob to file
* Remove unnecessary block
* Add comment fixes
* fmt
* lock
---------
Co-authored-by: Anton <anton.kalyaev@gmail.com >
Co-authored-by: Davide Galassi <davxy@datawok.net >
2023-06-05 16:41:20 +02:00
Keith Yeung
f2fe05a757
Implement AliasOrigin processing in XCVM ( #7245 )
...
* Implement AliasOrigin processing in XCVM
* add builder types and first test
* switch to more general builder types
* clone target for RemovePrefixAccountId32
* change builder types
* change AliasForeignAccountId32 and add test for AliasCase
* add Aliasers type to xcm configs
* add benchmark
* benchmark fix
* add benchmark function for runtimes
* fix alias_origin result types
* fix benchmark test
* add runtime-benchmarks feature in pallet-xcm-benchmarks
* fmt
* remove AliasCase, add test and fmt
* address feedback
* ".git/.scripts/commands/bench/bench.sh" xcm kusama pallet_xcm_benchmarks::generic
* ".git/.scripts/commands/bench/bench.sh" xcm westend pallet_xcm_benchmarks::generic
* ".git/.scripts/commands/bench/bench.sh" xcm rococo pallet_xcm_benchmarks::generic
* address feedback
* lock
* ".git/.scripts/commands/bench/bench.sh" xcm kusama pallet_xcm_benchmarks::generic
* ".git/.scripts/commands/bench/bench.sh" xcm westend pallet_xcm_benchmarks::generic
* ".git/.scripts/commands/bench/bench.sh" xcm rococo pallet_xcm_benchmarks::generic
* change doc
* fmt
---------
Co-authored-by: Just van Stam <just.van.stam@gmail.com >
Co-authored-by: Just van Stam <vstam1@users.noreply.github.com >
Co-authored-by: command-bot <>
2023-06-05 14:39:01 +00:00
PG Herveou
005b9d0989
Contracts: Use RuntimeUpgrade hooks instead of Hooks::on_runtime_upgrade ( #2570 )
...
* Fixes
* Remove on_runtime_upgrade hook
* remove upgrade_fn / add doc to Migration struct
* Add cumulus_pallet_*::migration to Migrations type
* add docstring
* fix
* Update parachain-template/runtime/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs
* Update pallets/parachain-system/src/migration.rs
---------
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-06-05 11:56:55 +00:00
Gavin Wood
2a4edaf39c
Companion for #7329 : XCM: Remove & replace Polkadot's Convert trait ( #2688 )
...
* Fixups for new Convert APIs
* update lockfile for {"polkadot", "substrate"}
---------
Co-authored-by: parity-processbot <>
2023-06-05 11:40:33 +00:00
Gavin Wood
c8f9b1b7a0
XCM: Remove & replace XCM Convert trait ( #7329 )
...
* Introduce an extensible location-to-hash-account
* Convert becomes RevFallRefConvert
* Use ConvertLocation trait
* Remove Convert usage
* Builds
* Fix warnings
* Remove unused types
* Bump lock
* No need for aliasing
* Remove unused
* Deprecate legacy conversion
* Fixes
* Fixes
* Update Cargo.toml
Co-authored-by: Muharem Ismailov <ismailov.m.h@gmail.com >
* Update xcm/xcm-builder/src/location_conversion.rs
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com >
* Update xcm/xcm-builder/src/location_conversion.rs
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com >
* Update xcm/xcm-builder/src/location_conversion.rs
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com >
* Update xcm/xcm-builder/src/location_conversion.rs
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com >
* Update xcm/xcm-builder/src/location_conversion.rs
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com >
* Update xcm/xcm-builder/src/location_conversion.rs
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com >
---------
Co-authored-by: Muharem Ismailov <ismailov.m.h@gmail.com >
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com >
2023-06-05 11:00:53 +00:00
Liam Aharon
c628742506
migration(tips): unreserve deposits ( #14241 )
...
* unreserve all tip funds migration
* improve test
* fix comment
* implement weights
* saturating_accrue
* remove unnecessary collect
* prefer ensure
* use assert
* use saturating_add
* use saturating_accrue
* test pre_upgrade and post_upgrade
* remove pallet_treasury bound
* resolve pr comments
* rename migration
* kick ci
* kick ci
2023-06-05 09:15:15 +00:00
Muharem Ismailov
429b1e4de7
descend first ( #7327 )
2023-06-05 06:50:33 +01:00
Squirrel
8ae7d6923c
Remove unrequired check ( #14298 )
...
* Remove unrequired check
The get_pool_account function no longer relies on a `_trucating` function,
and there is a test in place
should someone alter the function to create pool collisions.
* test needed in this case.
2023-06-04 21:17:51 +00:00
Bastian Köcher
57e6b21935
frame_system::remark: Allow any kind of origin ( #14260 )
...
* frame_system::remark: Allow any kind of origin
There should be no downside in allowing any kind of origin for `remark`.
* Fix tests
2023-06-04 23:15:16 +02:00
Gavin Wood
643f8d76cd
Frame: Introduce TryConvert and MaybeConvert family of traits ( #14297 )
...
* Frame: Introduce TryConvert and TryConvertBack
* Update primitives/runtime/src/traits.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update primitives/runtime/src/traits.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update primitives/runtime/src/traits.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update primitives/runtime/src/traits.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update primitives/runtime/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update primitives/runtime/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Add MaybeEquivalence
* Docs
---------
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-06-04 18:06:03 +01:00
Bastian Köcher
e7a27a31b1
sp-api: Remove requirement on Get*BlockType ( #14299 )
...
Remove the requirement on `GetNodeBlockType` and `GetRuntimeBlockType`. Actually this wasn't already
used anymore and only referenced in tests.
2023-06-04 09:55:53 +01:00
Bastian Köcher
15c49c49ee
Update Substrate & Polkadot ( #2687 )
...
This should hopefully fix companions checks in Substrate.
2023-06-04 07:58:25 +00:00
dependabot[bot]
cfa29bac8e
Bump clap from 4.3.0 to 4.3.1 ( #2682 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.3.0 to 4.3.1.
- [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/clap_complete-v4.3.0...clap_complete-v4.3.1 )
---
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-06-03 20:37:27 +01:00
Bastian Köcher
51c87d8525
sc-transaction-pool: Always use best block to check if we should skip enactment ( #14285 )
...
We will calculate the tree route always against the best block and thus, we also should use this one
to check if we should skip the checks.
2023-06-02 19:37:35 +01:00
PG Herveou
9dedddafad
frame-support Add translate_next ( #14043 )
...
* Frame Add translate_next
This works similarly to to `translate` but only translate a single entry.
This function will be useful in the context of multi-block migration.
* Add test
* add None return case
* fixes
* PR comment use `?`
2023-06-02 14:11:11 +00:00