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
Andrew Jones
31f9593324
Bump version of pallet-contracts-primitives for release ( #14288 )
...
* Bump version of `pallet-contracts-primitives` for release
* Cargo.lock
2023-06-02 15:01:45 +01:00
Squirrel
28afa48006
asset-conversion pallet: Generalise integrity test ( #14289 )
...
* integrity test was only working for u32 asset ids.
* cargo fmt
* Update frame/asset-conversion/src/lib.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
---------
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-06-02 12:54:01 +00:00
Squirrel
7f2c72395a
Support westend integration tests ( #2649 )
...
* mostly there with westend
* add network
* initial way to set host api version
* 3 tests all passing
* Remove duplication
* fix runtime-benchmarks
* Fix typo
---------
Co-authored-by: joepetrowski <joe@parity.io >
2023-06-02 12:36:34 +00:00
jserrat
50d5b94225
add test locking removed when amount is zero ( #14284 )
...
* add test locking removed when amount is zero
* add test set lock with withdraw reasons empty removes lock
* fix test set lock with withdraw reasons
2023-06-02 12:07:05 +00:00
Marcin S
5bbb87c46b
PVF: Instantiate wasm in pre-checking ( #7246 )
...
* PVF: Instantiate wasm in pre-checking
* Move `runtime_construction_check` to prepare thread, use bytes
* [minor] Update comment
* Fix compile error
* Update Cargo.lock
* Update docs
* Add some missing docs!
2023-06-02 12:04:04 +00:00
joe petrowski
6007549589
Rename Statemint to Asset Hub ( #2633 )
...
* change dir names
* cargo toml updates
* fix crate imports for build
* change chain spec names and PR review rule
* update cli to accept asset-hub
* find/replace benchmark commands
* integration tests
* bridges docs
* more integration tests
* AuraId
* other statemint tidying
* rename statemint mod
* chain spec mod
* rename e2e test dirs
* one more Runtime::Statemine
* benchmark westmint
* rename chain spec name and id
* rename chain spec files
* more tidying in scripts/docs/tests
* rename old dir if exists
* Force people to manually do the move.
(Safer as there could be additional considerations with their setup)
* review touchups
* more renaming
* Update polkadot-parachain/src/command.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* better error message
* do not break on-chain spec_name
* log info message that path has been renamed
* better penpal docs
---------
Co-authored-by: gilescope <gilescope@gmail.com >
Co-authored-by: Bastian Köcher <git@kchr.de >
Co-authored-by: parity-processbot <>
2023-06-02 09:58:19 +00:00
Oliver Tale-Yazdi
2d73e39d2f
Fix XCM benchmark template ( #7320 )
...
* Fix XCM benchmark template
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Keep function pub
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* ".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
* Fix test
* Actually fix test
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: command-bot <>
2023-06-02 08:52:06 +00:00
Bastian Köcher
cad48b7136
Adds missing features ( #2677 )
2023-06-02 08:21:49 +00:00
Gavin Wood
2651dce9fd
XCM: Utility struct for AccountId conversion ( #7321 )
...
* XCM: Utility struct for AccountId conversion
* Update conversion.rs
2023-06-02 09:10:07 +01:00
cuteolaf
0a62a31eff
pallet-uniques: remove #[transactional] macro for buy_item ( #14277 )
...
* remove #[transactional] macro for buy_item
* ".git/.scripts/commands/fmt/fmt.sh"
---------
Co-authored-by: command-bot <>
2023-06-02 02:15:49 +01:00
Aten Jin
b09017ca5e
print error info for database error ( #14248 )
2023-06-02 00:45:48 +01:00
Alexandru Vasile
49356f411a
docs: Ensure the CI passes for docs ( #2666 )
...
* Fix docs
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update client/relay-chain-rpc-interface/src/reconnecting_ws_client.rs
Co-authored-by: Davide Galassi <davxy@datawok.net >
* Update cargo.lock with substrate
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Update Cargo.lock for polkadot
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
Co-authored-by: Davide Galassi <davxy@datawok.net >
Co-authored-by: parity-processbot <>
2023-06-02 00:45:16 +01:00
Michal Kucharczyk
2493375159
doc fix ( #2676 )
...
fixing error:
```
warning: unresolved link to `well_known_keys::CODE`
--> pallets/parachain-system/src/lib.rs:560:12
|
560 | #[pallet::storage]
| ^^^^^^^
|
= note: the link appears in this line:
" As soon as the relay chain gives us the go-ahead signal, we will overwrite the [`:code`][well_known_keys::CODE]"
^^^^^^^^^^^^^^^^^^^^^
= note: no item named `well_known_keys` in scope
= note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
```
2023-06-02 00:23:50 +01:00
Michal Kucharczyk
26116ef702
Serialize/Deserialize trait implemented in no-std for numerous types ( #2660 )
...
* Serialize/Deserialize trait implemented in no-std for numerous types
* Cargo.lock updated
* update lockfile for {"substrate", "polkadot"}
---------
Co-authored-by: parity-processbot <>
2023-06-01 18:50:24 +02:00
Michal Kucharczyk
a767358122
Serialize/Deserialize trait implemented in no-std for numerous types ( #7312 )
...
* ParaId: Serialize/Deserialize trait implemented in no-std
* Serialize/Deserialize trait implemented in no-std for more types
* serde in deps enabled
* fix
* missing types added
* update lockfile for {"substrate"}
* ".git/.scripts/commands/fmt/fmt.sh"
---------
Co-authored-by: parity-processbot <>
2023-06-01 16:17:49 +00:00
Gavin Wood
feb0f45d21
Runtime: Add common morph utility types ( #14281 )
2023-06-01 17:11:53 +01:00
Alexandru Vasile
0910390b25
frame/support: Link call documentation only in prod-modes ( #14283 )
...
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
2023-06-01 16:08:25 +00:00
Michal Kucharczyk
dc7161276d
frame: support for serde added ( #14261 )
...
* frame: support for serde added
- enabled `serde` features in dependent crates, no gate feature introduced, linker should do the job and strip unused code.
- frame::staking: added impl of `serde::Serialize, serde::Deserialize` for `enum Forcing`
- primitives::runtime: impl_opaque_keys macro provides `Serialize/Deserialize` impl if `serde` is enabled
- primitives::staking: added impl of `serde::Serialize`, `serde::Deserialize` for `enum StakerStatus`
* frame::support: serde for pallets' GenesisConfig enabled in no-std
* Cargo.lock updated
* Update primitives/staking/Cargo.toml
Co-authored-by: Bastian Köcher <git@kchr.de >
* fix
* Cargo.lock update + missed serde/std in beefy
---------
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-06-01 15:35:34 +00:00
Sam Johnson
3b426928ec
bump serde to 1.0.163 ( #2661 )
...
* bump serde to 1.0.163
* bump bounded-collections to v0.1.7 for compatibility with substrate
2023-06-01 14:43:00 +00:00
Bastian Köcher
372708d7a2
sp-api: Make the generated code act based on std in sp-api ( #14267 )
...
* sp-api: Make the generated code act based on `std` in `sp-api`
Instead of letting the macro generate code that checks if the `std` feature is enabled, it will now
generate code that checks if the `std` feature is enabled for the `sp-api` crate. The old
implementation basically required that the crate in which the macro was used, had a `std` feature.
Now we don't have this requirement anymore and act accordingly the feature in `sp-api` directly.
* Missing feature!
---------
Co-authored-by: parity-processbot <>
2023-06-01 15:29:32 +01:00