Francisco Aguirre
85115402ac
Add tests for PayOverXcm ( #7319 )
...
* PayOverXcm: Add test skeleton
* PayOverXcm: Add tests checking PayOverXcm generates correct message
* Add PayOverXcm and salary pallet integration test
* Fix XCM execution issue
* Fix documentation issues
* Add missing period at the end of comment
* Fix mock problems
* Add missing licenses
* Fix lints
* Fix more lints
* Add docs to mock
* Add transfer assertions
* Remove magic numbers
---------
Co-authored-by: parity-processbot <>
2023-08-19 13:39:43 +00:00
Gavin Wood
747957fd8a
Polkadot gets topic-based message IDs ( #7301 )
...
* Polkadot gets topics
* Formatting
* Fixes
---------
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2023-08-17 11:06:39 +00:00
Oliver Tale-Yazdi
d501d92176
Fix clippy warnings ( #7625 )
...
* Fix clippy check
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Autofix clippy
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix trivial
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fmt
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* suppress warnings
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Quiet clippy 😌
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-08-16 12:20:31 +00:00
Aaro Altonen
a0f83eb992
Revert "[Substrate companion] update libp2p to 0.52.0 ( #7472 )" ( #7583 )
...
* Revert "[Substrate companion] update libp2p to 0.52.0 (#7472 )"
This reverts commit 7a1d96e1ce .
* Update dependencies
* update lockfile for {"substrate"}
---------
Co-authored-by: parity-processbot <>
2023-08-16 11:39:40 +00:00
Keith Yeung
e9c6c72f5a
XCM: Rename Instruction instructions to Command instructions ( #7593 )
...
Co-authored-by: parity-processbot <>
2023-08-14 21:30:12 +00:00
Lulu
1a07354f5c
Don't publish test crates ( #7588 )
2023-08-14 17:31:13 +02:00
Oliver Tale-Yazdi
342d720573
Use same fmt and clippy configs as in Substrate ( #7611 )
...
* Use same rustfmt.toml as Substrate
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* format format file
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Format with new config
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add Substrate Clippy config
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Print Clippy version in CI
Otherwise its difficult to reproduce locally.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Make fmt happy
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update node/core/pvf/src/error.rs
Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io >
* Update node/core/pvf/src/error.rs
Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io >
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io >
2023-08-14 14:29:29 +00:00
Xiliang Chen
eb36cd7468
update weight file template ( #7589 )
2023-08-08 14:16:42 +00:00
Keith Yeung
0f90a667bd
Document non-uniqueness of SetTopic IDs ( #7579 )
...
* Document non-uniqueness of SetTopic IDs
* More comments on WithUniqueTopic
2023-08-07 16:13:36 +00:00
PG Herveou
ed7a0b87eb
Remove xcm on_runtime_upgrade pallet hook ( #7235 )
...
* move migration stuffs
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <git@kchr.de >
* Fix test
* fix
* lint
* fix lint
* rm extra space
* fix lint
* PR review
* fixes
* use saturating_accrue in fn
* fix test
---------
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-08-05 16:09:21 +00:00
Lulu
0142a01353
Add license to crates ( #7578 )
...
* Add license to crates
This is required to publish to crates.io
* Add more licenses
2023-08-04 18:33:05 +02:00
Branislav Kontur
ee54e62c90
[xcm] GlobalConsensusConvertsFor for remote relay chain (based on pevious GlobalConsensusParachainConvertsFor) ( #7517 )
...
* [xcm] `GlobalConsensusConvertsFor` for remote relay chain (based on previous GlobalConsensusParachainConvertsFor)
* Typo
* PR fix (constants in test)
* Re-export of `GlobalConsensusConvertsFor`
* assert to panic
* Update xcm/src/v3/multiasset.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update xcm/xcm-builder/src/location_conversion.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update xcm/xcm-builder/src/location_conversion.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Review fixes
---------
Co-authored-by: parity-processbot <>
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
2023-08-03 08:32:49 +00:00
Branislav Kontur
4980b64497
XcmContext to buy_weight / refund_weight (#7563 )
...
* added XcmContext to WeightTrader trait
* cargo fmt
* make xcm context optional
* make compile
* fix compile
* `XcmContext` to `buy_weight / refund_weight`
---------
Co-authored-by: Patricio Napoli <hi@patricionapoli.dev >
Co-authored-by: Giles Cope <gilescope@gmail.com >
Co-authored-by: parity-processbot <>
2023-08-01 11:04:52 +00:00
Anton
7a1d96e1ce
[Substrate companion] update libp2p to 0.52.0 ( #7472 )
...
* update tinyvec to 1.6.0
* update once_cell to 1.18.0
* update data-encoding to 2.4.0
* update libc
* update js-sys
* update wasm-bindgen-futures
* update pin-project
* update tokio
* update syn
* p2p protocol now contains `PeerId`
not multihash
* update arrayvec to 0.7.4
* update sha2
* update smallvec
* updates to Cargo.lock after merge
* redo dep updates
* update lru
in attempt to compile polkadot
* update lockfile for {"substrate"}
---------
Co-authored-by: parity-processbot <>
2023-07-25 14:24:59 +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
Xiliang Chen
79341dd40f
add missing feature flag ( #7537 )
2023-07-22 20:21:39 +00: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
André Silva
eb9b414644
Companion for substrate#14471 ( #7432 )
...
* Companion for substrate#14471
* add missing MaxNominators constant
* missing MaxNominators in test-runtime
* missing MaxNominators in runtime/integration_tests
* Dont use deprecated functions
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fixup
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* update lockfile for {"substrate"}
* Update Substrate dep
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: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: parity-processbot <>
2023-07-18 16:03:38 +00:00
Juan
b95cc76d7c
Replace Index for Nonce ( #7374 )
...
* replace Index for Nonce
* remove extra Nonce
* update lockfile for {"substrate"}
---------
Co-authored-by: parity-processbot <>
2023-07-14 08:13:39 +00:00
gupnik
2802414473
Moves Block to frame_system instead of construct_runtime and removes Header and BlockNumber ( #7431 )
...
* Companion for substrate
* Minor update
* Formatting
* Fixes for cumulus
* Fixes tests in polkadot-runtime-parachains
* Minor update
* Removes unused import
* Fixes tests in polkadot-runtime-common
* Minor fix
* Update roadmap/implementers-guide/src/runtime/configuration.md
Co-authored-by: ordian <write@reusable.software >
* ".git/.scripts/commands/fmt/fmt.sh"
* update lockfile for {"substrate"}
---------
Co-authored-by: ordian <write@reusable.software >
Co-authored-by: command-bot <>
2023-07-13 12:37:50 +00:00
Liam Aharon
bfaec080cc
fix migrations (also companion for #14421 ) ( #7454 )
...
* fix migrations
* use society versioned runtime upgrade
* simplify usage of versionedruntimeupgrade
* use society experimental feature
* improve usage of experimental flag
* doc comment
* Merge branch 'master' of github.com:paritytech/polkadot into liam-fix-migrations
* Revert "Merge branch 'master' of github.com:paritytech/polkadot into liam-fix-migrations"
This reverts commit 41ab0621811ead11b0a7f91338b0895208feef77.
* doc comment
* westend experimental feature
* Revert "westend experimental feature"
This reverts commit 42f4f1b76655ef509a92c324d18d635a1b913dcb.
* feature gate experimental xcm migration
* update lockfile for {"substrate"}
---------
Co-authored-by: parity-processbot <>
2023-07-13 10:39:01 +00:00
Michal Kucharczyk
95ba849ee6
GenesisBuild<T,I> deprecated. BuildGenesisConfig added (#7397 )
...
* GenesisBuild<T,I> deprecated. BuildGenesisConfig added
* fmt
* fixes
* more fixes
* more fixes
* fixes
* update lockfile for {"substrate"}
* fix
---------
Co-authored-by: parity-processbot <>
2023-07-12 11:04:15 +00:00
Bastian Köcher
0ff60f7da1
Companion for removal of execution strategies ( #7443 )
...
* Companion for removal of execution strategies
https://github.com/paritytech/substrate/pull/14387
* Fix some tests
* 🤦
* Adapt to latest changes
* Start supporting the offchain transaction pool
* Fix tests
* FMT
* Remove patches
* Update Substrate
* update lockfile for {"substrate"}
* Fix parachain upgrade smoke test
* Fix test
* Rewrite all tests to use `MockSubstemClient`
---------
Co-authored-by: parity-processbot <>
2023-07-11 21:55:43 +00:00
Branislav Kontur
77ef85b04d
[xcm] BridgeBlobDispatcher - prepend bridge instance discriminator. ( #7438 )
2023-07-03 13:03:47 +00:00
Gavin Wood
1492a454e9
Revert "Introduce Tinkernet multisig XCM configs to Kusama/Rococo through xcm-builder ( #7165 )" ( #7446 )
...
This reverts commit af99520569 .
2023-06-30 12:38:21 +00:00
Gabriel Facco de Arruda
af99520569
Introduce Tinkernet multisig XCM configs to Kusama/Rococo through xcm-builder ( #7165 )
...
* Introduce Tinkernet multisig XCM configs
* fmt fix
* overflow handling, comments, clippy fixes
* Adding Tinkernet XCM configs to xcm-builder
* switching spaces to tab
* remove derivation.rs in favor of location_conversion.rs
* replace hardcoded literals with constants
* autoformat
* Fix for the unit test
* replacing expect with an error and renaming constants
* Resolving clippy warning
---------
Co-authored-by: parity-processbot <>
2023-06-28 17:42:25 +00:00
Oliver Tale-Yazdi
e377e4becd
Co #14318 : pallet-message-queue: add queue pausing ( #7433 )
...
* Increase recusive limit to 512 for macro expansions
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Increase limit to 1024
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Adjust comment
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Increase more limits
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Add QueuePausedQuery
* ... on westend
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* update lockfile for {"substrate"}
* update lockfile for {"substrate"}
* Add QueuePausedQuery
* ... on westend
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix test error
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* CI buggy
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
---------
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Alexandru Vasile <alexandru.vasile@parity.io >
Co-authored-by: parity-processbot <>
2023-06-28 12:17:15 +00:00
Gavin Wood
35413b4657
Remove Unwrappable ( #7415 )
...
* Remove
* rm trait
2023-06-25 13:46:31 +02:00
Koute
8eda0a039f
Bump parity-scale-codec to 3.6.1 ( #7382 )
2023-06-21 19:24:24 +09:00
Gavin Wood
a846d00866
Runtime: Kusama gets Society v2 ( #7356 )
...
* Remove println
* Kusama gets the new society
* Integrate migration
* Formatting
* Add Society weights
* Remive diener
* Fixes
* Update Cargo.toml
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com >
* Add real historical payment info for Society.
* Fixes
* Bump Substrate
---------
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com >
2023-06-18 18:54:31 +02:00
Juan
ced77b3d30
Companion for Soft deprecate GenesisConfig ( #7288 )
...
* update genesis config
* fix wrong RuntimeGenesisConfig name
* update lockfile for {"substrate"}
---------
Co-authored-by: parity-processbot <>
2023-06-16 11:34:50 +00:00
Keith Yeung
9e31bcdc00
[XCM] Make NetworkId and Junction versioned ( #7376 )
...
* [XCM] Make NetworkId and Junction versioned
* Fixes
---------
Co-authored-by: parity-processbot <>
2023-06-15 18:22:35 +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
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
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
Muharem Ismailov
429b1e4de7
descend first ( #7327 )
2023-06-05 06:50:33 +01: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
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
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
Sam Johnson
7f5f3bb20a
bump serde to 1.0.163 ( #7315 )
...
* bump serde to 1.0.163
* bump ci
* update lockfile for {"substrate"}
---------
Co-authored-by: parity-processbot <>
2023-05-31 17:41:43 +00:00
Francisco Aguirre
a0e2aaad78
XCM: PayOverXcm config ( #6900 )
...
* Move XCM query functionality to trait
* Fix tests
* Add PayOverXcm implementation
* fix the PayOverXcm trait to compile
* moved doc comment out of trait implmeentation and to the trait
* PayOverXCM documentation
* Change documentation a bit
* Added empty benchmark methods implementation and changed docs
* update PayOverXCM to convert AccountIds to MultiLocations
* Implement benchmarking method
* Change v3 to latest
* Descend origin to an asset sender (#6970 )
* descend origin to an asset sender
* sender as tuple of dest and sender
* Add more variants to the QueryResponseStatus enum
* Change Beneficiary to Into<[u8; 32]>
* update PayOverXcm to return concrete errors and use AccountId as sender
* use polkadot-primitives for AccountId
* fix dependency to use polkadot-core-primitives
* force Unpaid instruction to the top of the instructions list
* modify report_outcome to accept interior argument
* use new_query directly for building final xcm query, instead of report_outcome
* fix usage of new_query to use the XcmQueryHandler
* fix usage of new_query to use the XcmQueryHandler
* tiny method calling fix
* xcm query handler (#7198 )
* drop redundant query status
* rename ReportQueryStatus to OuterQueryStatus
* revert rename of QueryResponseStatus
* update mapping
* Update xcm/xcm-builder/src/pay.rs
Co-authored-by: Gavin Wood <gavin@parity.io >
* Updates
* Docs
* Fix benchmarking stuff
* Destination can be determined based on asset_kind
* Tweaking API to minimise clones
* Some repotting and docs
---------
Co-authored-by: Anthony Alaribe <anthonyalaribe@gmail.com >
Co-authored-by: Muharem Ismailov <ismailov.m.h@gmail.com >
Co-authored-by: Anthony Alaribe <anthony.alaribe@parity.io >
Co-authored-by: Gavin Wood <gavin@parity.io >
2023-05-31 11:09:44 +01:00
Sam Johnson
8d117412dc
bump to quote 1.0.28 ( #7306 )
2023-05-29 18:13:28 +00:00
Michal Kucharczyk
4f019c4e5b
bounded-collections bump to 0.1.7 ( #7305 )
...
* bounded-collections bump to 0.1.7
Companion for: paritytech/substrate#14225
* update lockfile for {"substrate"}
---------
Co-authored-by: parity-processbot <>
2023-05-29 17:24:14 +00:00
Francisco Aguirre
aac5b1e364
XCM: Fix issue with RequestUnlock ( #7278 )
...
* XCM: Fix issue with RequestUnlock
* Leave API changes for v4
* Fix clippy errors
* Fix tests
---------
Co-authored-by: parity-processbot <>
2023-05-26 16:41:10 -03:00
Michal Kucharczyk
3d008cd074
pallets: implement Default for GenesisConfig in no_std ( #7271 )
...
* pallets: implement Default for GenesisConfig in no_std
This change is follow-up of: https://github.com/paritytech/substrate/pull/14108
It is a step towards: https://github.com/paritytech/substrate/issues/13334
* Cargo.lock updated
* update lockfile for {"substrate"}
---------
Co-authored-by: parity-processbot <>
2023-05-25 22:26:02 +00:00
Michal Kucharczyk
6efbc1a438
xcm-builder: remove clone for clippy ( #7291 )
...
fix for:
```
error: using `clone` on type `[u8; 32]` which implements the `Copy`
trait
--> xcm/xcm-builder/src/routing.rs:44:28
|
44 | message.0.push(SetTopic(unique_id.clone()));
| ^^^^^^^^^^^^^^^^^ help: try
removing the `clone` call: `unique_id`
|
= help: for further information visit
https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
= note: `-D clippy::clone-on-copy` implied by `-D clippy::complexity`
```
2023-05-25 16:14:59 +02:00
Gavin Wood
85dfadff2c
XCM: Tools for uniquely referencing messages ( #7234 )
...
* Tools for unique topic references
* Formatting
* Naming
* Repot into routing.rs.
* More things done
* Universal Exporter supports topic-as-reference
* Some tests for the topic routing
* More tests
* Paid bridge tests
* Add message ID to sending events
* Formatting
* fix and integrate into test nets
* Move DenyThenTry and friend from Cumulus
* Append SetTopic rather than prepend
* Docs
* Docs
* Work with new ProcessMessage ID API
* Formatting
* Fix build
* Fixes
* Formatting
* Update xcm/xcm-builder/src/barriers.rs
Co-authored-by: Francisco Aguirre <franciscoaguirreperez@gmail.com >
* Update xcm/xcm-builder/src/routing.rs
Co-authored-by: Francisco Aguirre <franciscoaguirreperez@gmail.com >
* Docs
* Rename message_hash
* Formatting
* ".git/.scripts/commands/fmt/fmt.sh"
* Rename
* Another Rename
* ".git/.scripts/commands/fmt/fmt.sh"
* ".git/.scripts/commands/fmt/fmt.sh"
* Update xcm/xcm-builder/src/routing.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
---------
Co-authored-by: Francisco Aguirre <franciscoaguirreperez@gmail.com >
Co-authored-by: command-bot <>
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2023-05-25 07:57:32 +01:00
Bastian Köcher
28de4f1337
Companion: Substrate#13869 ( #7119 )
...
* Companion: Substrate#13869
https://github.com/paritytech/substrate/pull/13869
* update lockfile for {"substrate"}
* ".git/.scripts/commands/fmt/fmt.sh"
---------
Co-authored-by: parity-processbot <>
2023-05-24 22:36:56 +00:00
Sergej Sakac
2b6f0b0194
Try-runtime proper return types ( #7146 )
...
* Try-runtime proper return types
* update
* oops
* use ensure
* update lockfile for {"substrate"}
---------
Co-authored-by: parity-processbot <>
2023-05-23 07:40:37 +00:00
Gavin Wood
0d3f4837e8
Companion to #14183 : FRAME: Allow message ID to be mutated in ProcessMessage ( #7262 )
...
* Work with new ProcessMessage ID API
* Enable new ProcessMessage API
* Formatting
* Fixes
* Bump
* cargo update -p sp-io
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-05-22 00:47:16 +01:00