Branislav Kontur
68d2363701
Update bridges subtree ( #1944 )
2023-10-19 16:30:17 +03:00
Branislav Kontur and Francisco Aguirre
5cdd819ed2
[xcm] Small enhancements for NetworkExportTable and xcm-builder ( #1848 )
...
## Summary
This PR introduces several enhancements.
The current implementation of `NetworkExportTable` lacks remote location
filtering support beyond `NetworkId` lookup. To provide more control and
granularity, it's essential to allow configuration for bridging to
different consensus `NetworkId` while restricting access e.g. to
particular remote parachains.
Additionally, the `StartsWith` and `Equals` and
`StartsWithExplicitGlobalConsensus` helper functions, which are in
active use, are moved to the `xcm-builder` and `frame_support` modules
for better code organization.
Adds a new `LocationWithAssetFilters` filter to enable location-based
and asset-related filtering. This filter is useful for configuring the
`pallet_xcm` filter for
[XcmTeleportFilter](https://github.com/paritytech/polkadot-sdk/blob/master/polkadot/xcm/pallet-xcm/src/lib.rs#L212 )
and
[XcmReserveTransferFilter](https://github.com/paritytech/polkadot-sdk/blob/master/polkadot/xcm/pallet-xcm/src/lib.rs#L216 )
to restrict specific assets.
Furthermore, the `BridgeMessage` fields are not accessible outside of
`xcm-builder`, limiting the ability to create custom logic dependent on
it.
---------
Co-authored-by: Francisco Aguirre <franciscoaguirreperez@gmail.com >
2023-10-17 11:11:03 +02:00
Branislav Kontur and Ignacio Palacios
cfb29254f7
Xcm emulator nits ( #1649 )
...
# Desription
## Summary
This PR introduces several nits and tweaks to xcm emulator tests for
system parachains.
## Explanation
**Deduplicate `XcmPallet::send(` with root origin code**
- Introduced `send_transact_to_parachain` which could be easily reuse
for scenarios like _governance call from relay chain to parachain_.
**Refactor `send_transact_sudo_from_relay_to_system_para_works`**
- Test covered just one use-case which was moved to the
`do_force_create_asset_from_relay_to_system_para`, so now we can extend
this test with more _governance-like_ senarios.
- Renamed to
`send_transact_as_superuser_from_relay_to_system_para_works`.
**Remove `send_transact_native_from_relay_to_system_para_fails` test**
- This test and/or description is kind of misleading, because system
paras support Native from relay chain by `RelayChainAsNative` with
correct xcm origin.
- It tested only sending on relay chain which should go directly to the
relay chain unit-tests (does not even need to be in xcm emulator level).
## Future directions
Check restructure parachains integration tests
[issue](https://github.com/paritytech/polkadot-sdk/issues/1389 ) and [PR
with more TODOs](https://github.com/paritytech/polkadot-sdk/pull/1693 ).
---------
Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com >
2023-10-11 10:32:49 +02:00
Branislav Kontur and command-bot
e3c97e4860
[xcm] Use Weight::MAX for reserve_asset_deposited, receive_teleported_asset benchmarks ( #1726 )
...
# Description
## Summary
Previously, the `pallet_xcm::do_reserve_transfer_assets` and
`pallet_xcm::do_teleport_assets` functions relied on weight estimation
for remote chain execution, which was based on guesswork derived from
the local chain. This approach led to complications for runtimes that
did not provide or support specific [XCM
configurations](https://github.com/paritytech/polkadot-sdk/blob/7cbe0c76ef8fd2aabf9f07de0156941ce3ed44b0/polkadot/xcm/xcm-executor/src/config.rs#L43-L47 )
for `IsReserve` or `IsTeleporter`. Consequently, such runtimes had to
resort to implementing hard-coded weights for XCM instructions like
`reserve_asset_deposited` or `receive_teleported_asset` to support
extrinsics such as `pallet_xcm::reserve_transfer_assets` and
`pallet_xcm::teleport_assets`, which depended on remote weight
estimation.
The issue of remote weight estimation was addressed and resolved by
[Pull Request
#1645 ](https://github.com/paritytech/polkadot-sdk/pull/1645 ), which
removed the need for remote weight estimation.
## Solution
As a continuation of this improvement, the current PR proposes further
cleanup by removing unnecessary hard-coded values and rectifying
benchmark results with `Weight::MAX` that previously used
`T::BlockWeights::get().max_block` as an override for unsupported XCM
instructions like `ReserveAssetDeposited` and `ReceiveTeleportedAsset`.
## Questions
- [x] Can we remove now also `Hardcoded till the XCM pallet is fixed`
for `deposit_asset`? E.g. for AssetHubKusama
[here](https://github.com/paritytech/polkadot-sdk/blob/7cbe0c76ef8fd2aabf9f07de0156941ce3ed44b0/cumulus/parachains/runtimes/assets/asset-hub-kusama/src/weights/xcm/mod.rs#L129-L134 )
- [x] Are comments like
[this](https://github.com/paritytech/polkadot-sdk/blob/7cbe0c76ef8fd2aabf9f07de0156941ce3ed44b0/polkadot/runtime/kusama/src/weights/xcm/mod.rs#L94 )
`// Kusama doesn't support ReserveAssetDeposited, so this benchmark has
a default weight` still relevant? Shouldnt be removed/changed?
## TODO
- [x] `bench bot` regenerate xcm weights for all runtimes
- [x] remove hard-coded stuff from system parachain weight files
- [ ] when merged, open `polkadot-fellow/runtimes` PR
## References
Fixes #1132
Closes #1132
Old polkadot repo [PR](https://github.com/paritytech/polkadot/pull/7546 )
---------
Co-authored-by: command-bot <>
2023-10-10 13:26:22 +02:00
Branislav Kontur
d569e728ca
"Common good" vs "System" parachain clean up ( #1406 )
...
## Summary
The term "common good parachain" has been abandoned in favor of "system
parachain" - e.g. [Joe's speech at
Decoded2023](https://youtu.be/CSO-ERHK2gY?t=456 ). This pull request
tries to fix and align code with this vision.
## Impact
The important change is implementation of `trait IsSystem` for `Id`
[here](https://github.com/paritytech/polkadot-sdk/pull/1406/files#diff-0b7b4f5b962a18ce980354592b55ab2a27b5a2e9f6f8089ec803ca73853e8583R225-R229 )
where we changed condition from `< 1000` to `<= 1999`, which means that
all parachain IDs bellow 1999 (included) are considered as "system
parachain" IDs. This change has a direct impact on the following
components:
####
[ChildSystemParachainAsSuperuser](https://github.com/paritytech/polkadot-sdk/blob/master/polkadot/xcm/xcm-builder/src/origin_conversion.rs#L72-L88 )
This origin converter is used for allowing to process XCM `Transact`
from "system parachain" on the relay chain - e.g. see [configuration for
Kusama](https://github.com/paritytech/polkadot-sdk/blob/master/polkadot/runtime/kusama/src/xcm_config.rs#L92-L101 ).
Only configured for Kusama, Westend, Rococo runtimes.
**No need for this feature anymore.** See
[comment](https://github.com/paritytech/polkadot-sdk/pull/1406#issuecomment-1708218715 ).
####
[IsChildSystemParachain](https://github.com/paritytech/polkadot-sdk/blob/master/polkadot/xcm/xcm-builder/src/barriers.rs#L310-L317 )
`IsChildSystemParachain` is used with `AllowExplicitUnpaidExecutionFrom`
barrier for checking XCM programs (they have to start with
`UnpaidExecution` instruction).
Only configured for Kusama, Westend, Rococo runtimes.
**Overall the impact is low or mostly ok because it only allows unpaid
execution for "system parachains" (e.g. AssetHub, BridgeHub...) on the
relay chain.**
####
[SiblingSystemParachainAsSuperuser](https://github.com/paritytech/polkadot-sdk/blob/master/polkadot/xcm/xcm-builder/src/origin_conversion.rs#L94-L114 )
Not used anywhere in `polkadot-sdk` repo.
## Unresolved Questions
- [ ] constants `LOWEST_USER_ID` and `LOWEST_PUBLIC_ID` seem to express
the same thing now, do we want to keep them both or deprecated one of
them? If so, which one?
- [x] determine impact for `ChildSystemParachainAsSuperuser`
## TODO
- [ ] when merged here, open PR to the `polkadot-fellows`
## Related Material
https://youtu.be/CSO-ERHK2gY?t=456
https://forum.polkadot.network/t/polkadot-protocol-and-common-good-parachains/866
https://wiki.polkadot.network/docs/learn-system-chains
2023-09-18 11:11:08 +02:00
Branislav Kontur
11088bcfc0
Added xcmp_queue_send_xcm_works test ( #1422 )
...
This PR adds test case for successful `send_xcm` for `XcmpQueue`
according to the opened HRMP channel to the sibling parachain.
2023-09-15 11:30:20 +03:00
Branislav Kontur
76724ce947
[xcm_builder]: Do not consume msg on NotApplicable for remote exporters ( #1519 )
...
## Summary
Implementations of `SendXcm`'s `validate` should not consume `dest`
and/or `msg` parameters in case of `NotApplicable` error.
This commit aligns expected behavior for `UnpaidRemoteExporter` and
`SovereignPaidRemoteExporter`.
## Testing
Added `remote_exporters_does_not_consume_dest_or_msg_on_not_applicable`
test which checks two possible cases:
- `dest` is local
- no configured exporter for `dest`
2023-09-14 10:00:52 +02:00
Branislav Kontur
bf5d0e2847
Forgotten polkadot-core-primitives/std ( #1440 )
...
* Forgotten `polkadot-core-primitives/std`
* Reorder
2023-09-07 11:34:53 +03:00
15cb0af58c
Added short-benchmarks for cumulus ( #1183 )
...
* Added short-benchmarks for cumulus
* Added `--bin` flag for short-benchmarks
* fix dependency for short-benchmark-cumulus
* Fixed benchmark with new XCM::V3 `MAX_INSTRUCTIONS_TO_DECODE`
* Fixed benchmark for bridge messages pallets
---------
Co-authored-by: alvicsam <alvicsam@gmail.com >
Co-authored-by: Javier Viola <javier@parity.io >
Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com >
2023-09-01 14:27:18 +03:00
Branislav Kontur
33046b6e32
xcm-emulator mini fix ( #3031 )
2023-08-18 11:55:02 +00:00
Branislav Kontur and command-bot
061eee1382
Bridges subtree sync ( #3022 )
...
* Squashed 'bridges/' changes from edf33a2c85..277f0d5496
277f0d5496 Dynamic fees for bridges-v1 (#2294 )
b1c51f7dd2 Finality loop refactoring (#2357 )
620db2b10f Add equivocation detector crate and implement clients (#2348 ) (#2353 )
3fe4b13eb4 Add basic equivocation detection pipeline schema (#2338 ) (#2341 )
git-subtree-dir: bridges
git-subtree-split: 277f0d54961c800b231d8123c6445f378b1deb89
* [dynfees] Rococo/Wococo does not need congestion and dynamic fees (for now)
* Fix
* ".git/.scripts/commands/fmt/fmt.sh"
* Forgotten bridges/Cargo.lock
---------
Co-authored-by: command-bot <>
2023-08-17 07:15:24 +00:00
Branislav Kontur
dcbb5f4df7
PriceForSiblingDelivery replaced by runtime::common::PriceForParachainDelivery (#3012 )
2023-08-15 07:03:19 +00:00
Branislav Kontur
e077bdd99f
Bridges subtree sync ( #2991 )
...
* Squashed 'bridges/' changes from 0417308a48..278119fec2
278119fec2 Grandpa: Store the authority set changes (#2336 ) (#2337 )
19f9c8ffdb remove message sender origin (#2322 )
3c7c271d2e GRANDPA module: store accepted justifications (#2298 ) (#2301 )
fb7d12e793 GRANDPA justifications: equivocation detection primitives (#2295 ) (#2297 )
d03a2ed450 More backports from Cumulus subtree to polkadot-staging (#2283 )
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: 278119fec2b45990cf1271999b0c21befe7003d9
* Subtree update
* Squashed 'bridges/' changes from 278119fec2..edf33a2c85
edf33a2c85 Backport fix (for wasm `std` env) (#2339 )
git-subtree-dir: bridges
git-subtree-split: edf33a2c85399d366e008228f2d9e63e8a492d95
2023-08-10 09:24:53 +00:00
Branislav Kontur
ab217ba8e9
[asset-conversion] nits: removed unnecessary clone ( #14726 )
2023-08-08 08:02:20 +00:00
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 and parity-processbot
a4ae46b743
Companion for Polkadot#7563 ( #2956 )
...
* `XcmContext` to `buy_weight / refund_weight`
* Fix tests
* Fix more tests
* update lockfile for {"substrate", "polkadot"}
---------
Co-authored-by: parity-processbot <>
2023-08-01 12:14:34 +00:00
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
Branislav Kontur and command-bot
7995da0460
[xcm ] Compatibility fix for xcm benchmarks ( #2934 )
...
* Compatibility fix for xcm benchmarks (cause of missing companion)
* ".git/.scripts/commands/bench/bench.sh" --subcommand=xcm --runtime=asset-hub-polkadot --runtime_dir=assets --target_dir=cumulus --pallet=pallet_xcm_benchmarks::fungible
* Fix for reserve_asset_deposited (https://github.com/paritytech/cumulus/issues/1974 )
* Revert back hard-coded 1_000_000_000_u64 for `reserve_asset_deposited` with TODOs
* ".git/.scripts/commands/bench/bench.sh" --subcommand=xcm --runtime=asset-hub-kusama --runtime_dir=assets --target_dir=cumulus --pallet=pallet_xcm_benchmarks::fungible
---------
Co-authored-by: command-bot <>
2023-07-26 12:49:10 +00:00
Branislav Kontur
794b8454a4
Build just polkadot-parachain binary for build-short-benchmark ( #2928 )
2023-07-24 14:50:10 +00:00
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
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
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
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
Branislav Kontur
e913579d97
Added construct_benchmark_partials for BridgeHubs ( #2901 )
2023-07-19 08:55:19 +00:00
d3c42b2e8d
Fix refund benchmark for pallet_assets ( #14561 )
...
* Fix refund benchmark for pallet_assets
* Update frame/assets/src/benchmarking.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Re-added docs
* Another "fix"
---------
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
Co-authored-by: parity-processbot <>
2023-07-12 13:41:46 +00:00
Branislav Kontur
f3ada7b81f
Removed --execution wasm ( #2857 )
2023-07-12 09:33:24 +00:00
Branislav Kontur
9e68861cad
Bump substrate (because of failing asset-hub-westend benchmarks) ( #2853 )
...
* Bump substrate (because of failing asset-hub-westend benchmarks)
* Cargo.lock
* Update to compatible substrate vs polkadot
2023-07-11 21:22:25 +00:00
Branislav Kontur
5d1de99799
BridgeHub subtree update ( #2820 )
...
* BH subtree master -> polkadot-staging by default
* Squashed 'bridges/' changes from c9dd8b9dfc..0417308a48
0417308a48 Update docs (#2242 )
1a0d3b55f3 Nits for subtree (#2241 )
18fca2e122 Ensure that the origin is signed for submit_parachain_heads and submit_finality_proof calls (#2239 )
fab51067e7 minor doc fix (#2207 )
4feb721d32 backport cumulus changes to polkadot-staging (#2167 )
433741942a fix testnet argocd deploy (#2151 ) (#2152 )
ff9eadc7dc Updated BHR/W version + codegen (#2148 )
git-subtree-dir: bridges
git-subtree-split: 0417308a489096979ed3e08d0f8caafbfca6e7e9
* Fix deps
2023-07-04 15:18:26 +00:00
Branislav Kontur and parity-processbot
2b3486c1b6
[xcm] BridgeBlobDispatcher - prepend bridge instance discriminator. ( #2798 )
...
* [xcm] BridgeBlobDispatcher - prepend bridge instance discriminator.
* PR review fix
* update lockfile for {"polkadot", "substrate"}
---------
Co-authored-by: parity-processbot <>
2023-07-03 13:43:21 +00:00
Branislav Kontur
77ef85b04d
[xcm] BridgeBlobDispatcher - prepend bridge instance discriminator. ( #7438 )
2023-07-03 13:03:47 +00:00
Branislav Kontur and parity-processbot
9486fe9704
Companion for substrate#14435 (BenchmarkHelper for frame-system) ( #2766 )
...
* Temporary fix for frame_system::set_code benchmark
* Removed temprary fix
* BenchmarkHelper for frame-system (TODO: add stuff for ParachainSystem OnSetCode)
* BenchmarkHelper for frame-system (TODO: add stuff for ParachainSystem OnSetCode)
* Glutton
* Fix benchmarks for `set_code`
* Changed dummy values to non-zero
* update lockfile for {"polkadot", "substrate"}
---------
Co-authored-by: parity-processbot <>
2023-06-23 12:34:54 +00:00
Branislav Kontur and command-bot
3e2c73dfad
Adds ability to prepare/initialize before running set_code benchmark ( #14435 )
...
* Adds ability to prepare/initialize before running `set_code` benchmark
* Fix
* ".git/.scripts/commands/bench/bench.sh" pallet dev frame-system
* Replaced BenchmarkHelper with function
* Fix
* Introduced `set_code_data` for benchmark with default value
* ".git/.scripts/commands/bench/bench.sh" pallet dev frame-system
* (Hope) Final adjustment (because system parachains generates ValidationFunctionStored instead of CodeUpdated)
* ".git/.scripts/commands/bench/bench.sh" pallet dev frame-system
* ".git/.scripts/commands/bench-vm/bench-vm.sh" pallet dev frame-system
---------
Co-authored-by: command-bot <>
2023-06-23 12:02:13 +00:00
Branislav Kontur and parity-processbot
43c9a94969
AssetHubs - split weights for pallet_assets ( #2743 )
...
* AssetHubs - split weights for pallet_assets
* ".git/.scripts/commands/bench/bench.sh" pallet asset-hub-kusama assets pallet_assets
* ".git/.scripts/commands/bench/bench.sh" pallet asset-hub-kusama assets pallet_assets
* ".git/.scripts/commands/bench/bench.sh" pallet asset-hub-westend assets pallet_assets
* ".git/.scripts/commands/bench/bench.sh" pallet asset-hub-polkadot assets pallet_assets
* ".git/.scripts/commands/bench/bench.sh" pallet asset-hub-westend assets pallet_assets
* ".git/.scripts/commands/bench/bench.sh" pallet asset-hub-polkadot assets pallet_assets
* Rename weight file for pallet_assets instances (polkadot)
* ".git/.scripts/commands/bench/bench.sh" pallet asset-hub-polkadot assets pallet_assets
* Rename weight file for pallet_assets instances (kusama/westend)
* ".git/.scripts/commands/bench/bench.sh" pallet asset-hub-kusama assets pallet_assets
* ".git/.scripts/commands/bench/bench.sh" pallet asset-hub-westend assets pallet_assets
* Changed `pallet_assets_remote` -> `pallet_assets_foreign`
* fmt
* ".git/.scripts/commands/bench/bench.sh" pallet asset-hub-kusama assets pallet_assets
* ".git/.scripts/commands/bench/bench.sh" pallet asset-hub-westend assets pallet_assets
* ".git/.scripts/commands/bench/bench.sh" pallet asset-hub-polkadot assets pallet_assets
---------
Co-authored-by: parity-processbot <>
2023-06-20 15:48:25 +00:00
Branislav Kontur
4f62a41a33
Bump substrate ( #2741 )
2023-06-15 11:01:20 +02:00
Branislav Kontur and command-bot
4057ef1554
Fix for pallet_assets::create benchmark ( #14384 )
...
* Fix for `pallet_assets::create` benchmark
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet-assets
---------
Co-authored-by: command-bot <>
2023-06-14 20:03:37 +00:00
Branislav Kontur
2dbba10f6e
Add TransactionPaymentCallApi to Bridge Hubs ( #2729 )
2023-06-14 11:53:29 +00:00
Branislav Kontur and Squirrel
286f727705
Updated README.md for bridges ( #2629 )
...
* Updated README.md
* Update BRIDGES.md
Co-authored-by: Squirrel <gilescope@gmail.com >
---------
Co-authored-by: Squirrel <gilescope@gmail.com >
2023-05-24 10:51:30 +00:00
Branislav Kontur
45e4370a27
Change SA for Rococo/Statemine_1000 + removed CheckedExtrinsic ( #2627 )
2023-05-23 21:32:47 +02:00
Branislav Kontur
8425e2a5c0
Removed Cargo.lock from subtreee ( #2604 )
2023-05-19 15:00:38 +00:00
Branislav Kontur
a622388c3c
Bump bridges ( #2602 )
...
* Squashed 'bridges/' changes from 0f6091d481..c9dd8b9dfc
c9dd8b9dfc expose test utilities to be used in BH paras (#2142 )
334df22361 Ws-port argument has been repalced with rpc-port (#2140 )
106173cb91 fix nodes startup (#2138 )
git-subtree-dir: bridges
git-subtree-split: c9dd8b9dfc8b48014d119153032589ac39c18c9a
* tmp
2023-05-19 14:11:27 +00:00
Branislav Kontur
ba216c1a18
Bump polkadot ( #2589 )
2023-05-17 10:19:38 +00:00
Branislav Kontur
750579aab0
Forgotten pub reexport for GlobalConsensusParachainConvertsFor ( #7238 )
2023-05-17 04:53:57 +00:00
Branislav Kontur
17b2e1b300
BridgeHubRococo/Wococo nits + updated subtree ( #2572 )
...
* Nits (merge before separatelly)
* Small cosmetics for Rococo/Wococo bridge local run
* Squashed 'bridges/' changes from 04b3dda6aa..5fc377ab34
5fc377ab34 Support for kusama-polkadot relaying (#2128 )
01f4b7f1ba Fix clippy warnings (#2127 )
696ff1c368 BHK/P alignments (#2115 )
2a66aa3248 Small fixes (#2126 )
7810f1a988 Cosmetics (#2124 )
daf250f69c Remove some `expect()` statements (#2123 )
1c5fba8274 temporarily remove balance guard (#2121 )
3d0e547361 Propagate message receival confirmation errors (#2116 )
1c33143f07 Propagate message verification errors (#2114 )
b075b00910 Bump time from 0.3.20 to 0.3.21
51a3a51618 Bump serde from 1.0.160 to 1.0.162
da88d044a6 Bump clap from 4.2.5 to 4.2.7
cdca322cd6 Bump sysinfo from 0.28.4 to 0.29.0
git-subtree-dir: bridges
git-subtree-split: 5fc377ab34f7dfd3293099c5feec49255e827812
* Fix
* Allow to change storage constants (DeliveryReward, RequiredStakeForStakeAndSlash) + tests
* Clippy
* New SA for RO/WO
* Squashed 'bridges/' changes from 5fc377ab34..0f6091d481
0f6091d481 Bump polkadot/substrate (#2134 )
9233f0a337 Bump tokio from 1.28.0 to 1.28.1
a29c1caa93 Bump serde from 1.0.162 to 1.0.163
git-subtree-dir: bridges
git-subtree-split: 0f6091d48184ebb4f75cb3089befa6b92cf37335
2023-05-16 22:33:30 +00:00
a5f4c2dfea
[xcm] Foreign global consensus parachain LocationToAccountId converter ( #7016 )
...
* **Foreign** global consensus parachain LocationToAccount converter
* Review fix
* Added `UniversalLocation` + `ensure_is_remote` handling
* Added unique id to encoding
* Update xcm/xcm-builder/src/location_conversion.rs
Co-authored-by: Gavin Wood <gavin@parity.io >
* Re-export `ensure_is_remote`
* Test
* fmt
* Update xcm/xcm-builder/src/location_conversion.rs
* Update xcm/xcm-builder/src/universal_exports.rs
Co-authored-by: Gavin Wood <gavin@parity.io >
---------
Co-authored-by: parity-processbot <>
Co-authored-by: Gavin Wood <gavin@parity.io >
2023-05-16 08:37:31 +00:00
39aec7c14f
BridgeHub Rococo/Wococo runtimes ( #2111 )
...
* Fixes
* Fixes
* Fixes
* cargo fmt
* Fixes
* Fixes
* Fixes
* Fixes
* Update BridgeHub runtime version
* Fixes
* Zombienet for bridge-hub setup
* Fixes
* Remove unused import
* Fixes for gav-xcm-v3 (#1835 )
* Fix for FungiblesAdapter - trait changes: Contains -> AssetChecking
* Fix for missing weight for `fn unpaid_execution()`
* Used NonLocalMint for all NonZeroIssuance
* Fix
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
* Fix tests
* Fixes
* Trying to fix sed expression?
* Trying to fix sed expression?
* Use the `relay-headers-and-messages` command (#1913 )
* Bridge hubs readme: fixes and additions
* Use the relay-headers-and-messages command
* cargo fmt
* Fix README.md + zombienet
* Parachain ID update of bridge-hub-wococo
* Update bridge-hub-wococo chainspec
* Squashed 'bridges/' content from commit 062554430
git-subtree-dir: bridges
git-subtree-split: 0625544309ff299307f7e110f252f04eac383102
* Add SafeCallFilter
* Add missing config items
* Add TODO
* Fixes (xcm Superuser + DispatchLevelResult)
* Fix cargo
* Change runtime version
* Unit-tests for dispatch bridging messages and XCM routing on BridgeHubs + HRMP
* Removed Sudo pallet
* Use () as the PriceForParentDelivery
* Fixes
* Fixes
* Fixes
* Fixes
* Update transact_origin to transact_origin_and_runtime_call
* Add ReachableDest config item to XCM pallet
* Add BridgeRejectObsoleteHeadersAndMessages to bridge hubs (#1972 )
* Update SafeCallFilter to allow remark_with_event in runtime benchmarks
* cargo fmt
* Update substrate
* Fix worst_case_holding
* Fix DMQ queue unit tests
* Remove unused label
* cargo fmt
* Actually process incoming XCMs
* Fixes
* Fixes
* Fixes
* Fixes - return back Weightless
* Simplify local run + readme
* Added measured benchmarks for `pallet_xcm` (#1968 )
* Fix
Fix
Fix
* Fix
* Fixes for transact benchmark
* Fixes add pallet_xcm to benchmarks
* Revert remark_with_event
* ".git/.scripts/bench-bot.sh" xcm statemine assets pallet_xcm_benchmarks::generic
* Fixes
* TMP
* Fix for reserve_asset_deposited
* ".git/.scripts/bench-bot.sh" pallet statemine assets pallet_xcm
* Fix
* ".git/.scripts/bench-bot.sh" pallet statemint assets pallet_xcm
* Fix
* ".git/.scripts/bench-bot.sh" pallet westmint assets pallet_xcm
* Fix westmint
* ".git/.scripts/bench-bot.sh" xcm statemine assets pallet_xcm_benchmarks::generic
* Fix
* ".git/.scripts/bench-bot.sh" xcm westmint assets pallet_xcm_benchmarks::generic
* ".git/.scripts/bench-bot.sh" xcm statemint assets pallet_xcm_benchmarks::generic
* ".git/.scripts/bench-bot.sh" pallet collectives-polkadot collectives pallet_xcm
* Fix for collectives
* ".git/.scripts/bench-bot.sh" pallet bridge-hub-kusama bridge-hubs pallet_xcm
* ".git/.scripts/bench-bot.sh" pallet bridge-hub-rococo bridge-hubs pallet_xcm
* Fixes for bridge-hubs
* Fixes - return back Weightless
* Fix - removed MigrateToTrackInactive for contracts-rococo
Co-authored-by: command-bot <>
* cargo fmt
* Fix benchmarks
* Bko gav xcm v3 (#1993 )
* Fix
* ".git/.scripts/bench-bot.sh" xcm statemint assets pallet_xcm_benchmarks::fungible
* ".git/.scripts/bench-bot.sh" xcm statemine assets pallet_xcm_benchmarks::fungible
* ".git/.scripts/bench-bot.sh" xcm westmint assets pallet_xcm_benchmarks::fungible
* ".git/.scripts/bench-bot.sh" xcm statemine assets pallet_xcm_benchmarks::generic
* ".git/.scripts/bench-bot.sh" xcm statemint assets pallet_xcm_benchmarks::generic
* ".git/.scripts/bench-bot.sh" xcm westmint assets pallet_xcm_benchmarks::generic
* ".git/.scripts/bench-bot.sh" pallet statemine assets pallet_xcm
* ".git/.scripts/bench-bot.sh" pallet westmint assets pallet_xcm
* ".git/.scripts/bench-bot.sh" pallet statemint assets pallet_xcm
* ".git/.scripts/bench-bot.sh" pallet collectives-polkadot collectives pallet_xcm
* ".git/.scripts/bench-bot.sh" pallet bridge-hub-kusama bridge-hubs pallet_xcm
* ".git/.scripts/bench-bot.sh" pallet bridge-hub-rococo bridge-hubs pallet_xcm
Co-authored-by: command-bot <>
* Change AllowUnpaidExecutionFrom to be explicit
* Turn on more xcm logs for parachains
* Added polkadot-parachain-mint binary instructions
* xcm-v3 benchmarks, weights, fixes for bridge-hubs (#2035 )
* Dumy weights to get compile
* Change UniversalLocation according to https://github.com/paritytech/polkadot/pull/4097 (Location Inversion Removed)
* Fix bridge-hubs weights
* ".git/.scripts/bench-bot.sh" pallet statemine assets pallet_xcm
* ".git/.scripts/bench-bot.sh" pallet statemint assets pallet_xcm
* ".git/.scripts/bench-bot.sh" pallet collectives-polkadot collectives pallet_xcm
* ".git/.scripts/bench-bot.sh" pallet westmint assets pallet_xcm
* ".git/.scripts/bench-bot.sh" xcm bridge-hub-kusama bridge-hubs pallet_xcm_benchmarks::generic
* ".git/.scripts/bench-bot.sh" xcm bridge-hub-kusama bridge-hubs pallet_xcm_benchmarks::fungible
* ".git/.scripts/bench-bot.sh" pallet bridge-hub-kusama bridge-hubs pallet_xcm
* ".git/.scripts/bench-bot.sh" pallet bridge-hub-rococo bridge-hubs pallet_xcm
* ".git/.scripts/bench-bot.sh" xcm bridge-hub-rococo bridge-hubs pallet_xcm_benchmarks::fungible
* ".git/.scripts/bench-bot.sh" xcm bridge-hub-rococo bridge-hubs pallet_xcm_benchmarks::generic
* Change NetworkId to Option<NetworkId>
Co-authored-by: command-bot <>
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* remove shift session manager from bridge-hub-rococo (#2047 )
* remove shift session manager from bridge-hub-rococo
* also remove from Cargo.toml
* Add event for showing the hash of an UMP sent message (#1228 )
* Add UpwardMessageSent event in parachain-system
* additional fixes
* Message Id
* Fix errors from merge
* fmt
* more fmt
* Remove todo
* more formatting
* Fixes
* Fixes
* Fixes
* Fixes
* Updated README.md and scripts/bridges_rococo_wococo.sh for sending messages (local, live)
* Allow explicit unpaid executions from the relay chains for system parachains (#2060 )
* Allow explicit unpaid executions from the relay chains for system parachains
* Put origin-filtering barriers into WithComputedOrigin
* Use ConstU32<8>
* Small nits
* formatting
* cargo fmt
* Align laneId to 00000001
* Allow receiving XCMs from any relay chain plurality
* Fixes
* Use Rococo/Wococo runtime APIs defined in bridge primitives (#2080 )
* Patched dependencies (polkadot, substrate) for xcm-v3 (compiles + tests work)
* Replace serial_test and fix with thread_local
* Very init of script for bumping bridges repo
* Squashed 'bridges/' changes from 062554430..984749ba0
984749ba0 Define separate signed extension for BHR/BHW (#1776 )
72b03d463 update Substrate/Polkadot/Cumulus deps to master (#1775 )
3065c7903 Added crate-level docs for the parachains pallet (#1772 )
a0f41b2d8 added/updated pallet level docs to grandpa and messages pallets (#1771 )
6d69d1f4d docs: add Security Policy doc (#1770 )
ff8c0f727 Fix cargo deny issues (#1769 )
6fc931d07 Bump xcm-v3 + substrate (#1767 )
5840197c3 Define method for checking message lane weights (#1766 )
881af0219 increase MAX_UNREWARDED_RELAYERS_IN_CONFIRMATION_TX and MAX_UNCONFIRMED_MESSAGES_IN_CONFIRMATION_TX for RBH/WBH (#1765 )
41d91e961 fixed receive_delivery_proof_for_two_messages_by_two_relayers (#1764 )
ac0cf7b78 Fix some cargo-deny issues (#1763 )
6d9dc6367 `cargo machete` removed unused deps (#1761 )
c265b5430 Remove sp-version dependency from bin-substrate (#1758 )
1327c9d97 Set `R/WococoBridgeHub` bundle runtime version (#1756 )
a3a2a06ae Expose relay version metric (#1750 )
13f4a0164 Use indirect runtime calls for RialtoParachain (#1753 )
9563f9eee fix nightly clippy again (#1752 )
21b75b893 no-grafana-startup-delay option in run.sh (#1751 )
a5fe0dfc4 Remove TODO (#1749 )
6c826a6c3 Deduplicate pallet call structs used for indirect runtime calls (#1744 )
e575269e5 fix nightly clippy (#1746 )
209cba353 Update project level docs (#1734 )
b05cef5b4 Improve relayer initialization behaviour (#1743 )
c7b6bae9d Make debug display of LaneId compatible with its previous version (#1740 )
221e4e80c Remove CliChain::KeyPair (#1741 )
3d9d2907f Use TypedLaneId instead of LaneId (#1738 )
6683b8136 Simplify read_client_state() (#1739 )
3f7353b82 Expose metrics of on-demand relay chain headers sync from with-parachain complex relays (#1737 )
ab65d84e0 Handle `SIGTERM` for the docker containers + relay (#1735 )
b9050e90c Replace `BATCH_CALL_SUPPORTED` (#1733 )
c28b3ff66 Updated db weights and some experiments (#1732 )
023689c6c Do not require new headers if lane is empty (#1725 )
bddf1fa19 remove messages pallet owner relay argument (#1728 )
ef55226c6 more traces + remove signer override (#1727 )
4d50df6ed remove BatchDeliveryTransaction::new and BatchConfirmationTransaction::new to avoid expects (#1726 )
15244e53e Batch transactions in complex relays (#1669 )
c209bb9ac fix pallet names at bridge hubs (#1722 )
036e6696e tests (#1720 )
3d56e2089 Check origin? (#1718 )
af9abbeb8 Remove SOURCE_PARACHAIN_PARA_ID (#1716 )
d1cb5d1a8 fix parachains benchmarks (#1717 )
84bdf864b Changed docker image name for substrate-relay (#1714 )
5698fb465 Remove WeightToFee (#1713 )
9f4106bc1 Fix bridge hub rococo/wococo weights (#1712 )
114b1502f Only store header state root (pallet-bridge-parachains) (#1701 )
92e86f07b New relayer rewards scheme integration (#1652 )
8649d12af Signed extension to refund relayer at the target chain (#1657 )
ec6bafaf0 DeliveryConfirmationPayments trait for paying relayer rewards at the source chain (#1653 )
fab2344f4 only store header state root (pallet-bridge-grandpa) (#1699 )
b5e916f64 fixed benchmarks of relayers pallet (#1700 )
5cce3e86d fix clippy (#1698 )
f78e8867b removed MintReward and added PayLaneRewardFromAccount (#1693 )
0c19db305 added version guards to RBH<>WBH GRANDPA finality (and complex) relay (#1697 )
c003b951d removed ESTIMATE_MESSAGE_FEE_METHOD (#1696 )
4903b7929 refund_pay_dispatch_fee removed (#1695 )
61c3b22ca Replace const parameters types (#1691 )
git-subtree-dir: bridges
git-subtree-split: 984749ba021b5b8ec16f65cd1e50b234640d838b
* Fixes after merge
* Fixes
* Use auto runtime version for local runs (#2113 )
* Squashed 'bridges/' changes from 984749ba0..fb3c5ef5d
fb3c5ef5d Add integrity check for signed extensions (#1780 )
3959628ff add try-runtime feature to pallets (#1779 )
be36ff00c Default impl for some methods in messages benchmarking pallet config (#1777 )
68344e329 Relayer reward metric (#1742 )
6b455597b Crate-level documentation on finality relays and relayers pallet (#1773 )
git-subtree-dir: bridges
git-subtree-split: fb3c5ef5dae42553522c7eff37678de9bf4f6c67
* Fixed try-runtime
* Fix cargo.lock
* Fix BridgePalletIsNotInitialized (#2114 )
* Squashed 'bridges/' changes from fb3c5ef5d..e2e9fa7f9
e2e9fa7f9 Expose EXTRA_STORAGE_PROOF_SIZE in bp-bridge-hub-cumulus (#1788 )
ba85532b1 Removed unecesserry test + substrate/polkadot (#1787 )
git-subtree-dir: bridges
git-subtree-split: e2e9fa7f94d2f105c1816402a9ae4b85bfc34145
* Fix cargo.toml
* Squashed 'bridges/' changes from e2e9fa7f9..d5f95c14a
d5f95c14a use wss to connect to the Rialto node in test deployments (#1809 )
722d47b06 fix compilation
a48732676 Bump sysinfo from 0.15.9 to 0.27.7
9a6e8bb1d Bump env_logger from 0.8.4 to 0.10.0
89c5e7981 Bump async-trait from 0.1.61 to 0.1.62
ddd0a5742 Bump fixed-hash from 0.7.0 to 0.8.0
e8b0b8192 Bump impl-serde from 0.3.2 to 0.4.0
c5227460f Bump jsonpath_lib from 0.2.6 to 0.3.0
9f4771d38 Bump parking_lot from 0.11.2 to 0.12.1
dab5d72ae Bump backoff from 0.2.1 to 0.4.0
d7dd3acce Bump strum from 0.21.0 to 0.24.1
c49799017 Bump tokio from 1.24.1 to 1.24.2
db614681e Bump clap from 4.1.0 to 4.1.1
3c155214d update ignored dependencies for dependabot (#1790 )
4c791472c No wildcard patterns in Cargo.toml (#1789 )
33632313d Remove chain-specific dependencies from crates that will be used in Cumulus (#1783 )
git-subtree-dir: bridges
git-subtree-split: d5f95c14a2771d7ad51db95670d08a5d0da526a0
* Fix `send-remark-local` script because of new xcm-v3
* Refactor haul/dispatch xcm stuff
* Add Rococo <> Wococo integrity tests (#1975 )
* Remove 1 integrity test
In sync with https://github.com/paritytech/parity-bridges-common/pull/1816
* use TargetHeaderChainAdapter and SourceHeaderChainAdapter
* Rococo <-> Wococo integrity tests
* Add message lane weights tests
* Add signed extension integrity test
* Bridge benchmarks for bridge hub rococo/wococo (#2107 )
* fix benchmarks compilation and add bridges benchmarks (prototype) to RBH/WBH
* post-merge fixes
* remove duplicate "pallet-collator-selection/runtime-benchmarks"
* ".git/.scripts/commands/bench/bench.sh" pallet bridge-hub-rococo bridge-hubs pallet_bridge_grandpa
* ".git/.scripts/commands/bench/bench.sh" pallet bridge-hub-rococo bridge-hubs pallet_bridge_parachains
* remove methods that are no longer required
* fixed helpers used in bridge hub messages palelt benchmarks
* unused imports
* compilation
* compilation
* benchmarks-ci.sh
* ".git/.scripts/commands/bench/bench.sh" pallet bridge-hub-rococo bridge-hubs pallet_bridge_messages
* use generated weights in pallets configuration
* add mod for new weights
* impl WeightInfoExt
Co-authored-by: command-bot <>
* Ensure governance can call `initialize` with `xcm:Transact` bridge grandpa pallets
* Just in case changed spec_version
* Some scripts for enabling asset transfer on local statemine->westmint
* script
* Squashed 'bridges/' changes from d5f95c14a..b39cb0dea
b39cb0dea MaxValues limit for storage maps in the pallet-bridge-grandpa (#1861 )
11b3a611d fixed TODOs for weights v2 (#1860 )
5a44f9fea Message delivery transaction is not free!!! (#1859 )
59a42bd58 fixed BEEFY genesis (#1858 )
ab7c7ad0f Use parity-util-mem 0.12.0 (#1856 )
8fd346e5a changed some tests for weights v2 (#1855 )
c438b9f74 Add separate Cargo.lock for `tools/runtime-codegen` (#1854 )
fc55a97d7 Fix `HeadersToKeep` and `MaxBridgedAuthorities` in Millau benchmarks (#1851 )
72e64a3d7 Decrease number of GRANDPA authorities in Polkadot-like chains from 100_000 to 2_048 (#1852 )
d60a331ed Update Substrate/Polkadot/Cumulus dependencies + weights v2 (#1850 )
61b229b65 Bump async-trait from 0.1.63 to 0.1.64
366333108 Bump serde_json from 1.0.91 to 1.0.92 (#1845 )
4d917bb3a Bump trie-db from 0.24.0 to 0.25.0
8d919eac9 Bump anyhow from 1.0.68 to 1.0.69
ef9364dd0 Bump proc-macro2 from 1.0.49 to 1.0.51
9ddeebed5 Bump futures from 0.3.25 to 0.3.26
e02eb7573 connect using wss under flag condition (#1843 )
99754a07f remove extra tracing on test deployments (#1842 )
bdb84cea6 Add tool for auto generating runtime code from metadata (#1812 )
86662f263 fix bridge-runtime-common build (#1839 )
f656ac77d Change some macro names (#1837 )
50f2980e9 Verify partial repo build on CI (#1832 )
f70f8231b fix bridge hubs blocks interval (#1836 )
ddbe5cddf [ci] change runners (#1833 )
45a68ad39 Fix on demand parachains relay when no parachain head at target (#1834 )
6dbce7258 Use GitLab env vars to get git commit (#1831 )
b1a8161e8 bump bridge hub versions (#1830 )
e909595e0 Use specific error for case when para head is missing from the bridge pallet (#1829 )
d517da8a2 Do not read parachain heads from ancient relay headers (#1827 )
217bc72f5 Reconnect source client (#1826 )
47bf5f693 Bump tokio from 1.24.2 to 1.25.0
6b307b48a Bump clap from 4.1.3 to 4.1.4
90bc29a17 Use named parameters for indirect calls (#1823 )
986eeb556 Fix: typos (#1822 )
450823b01 docs: fix broken link and minor nits (#1821 )
3ed01ae31 do not call best_finalized_para_block_at_source for ancient block (#1819 )
001956290 Functions to benchmark messages pallet with linked to parachain (#1817 )
e9b0a1c48 Remove InboundPayload check (#1816 )
873ea4e40 Bump clap from 4.1.1 to 4.1.3
97eccaa8b also ignore the base xcm crate (#1798 )
2d3dcd00b Update bundled runtime version for bridge hub r/wococo (#1814 )
7167c0067 Bump bumpalo from 3.10.0 to 3.12.0 in /fuzz/storage-proof
067687520 Bump async-trait from 0.1.62 to 0.1.63 (#1811 )
git-subtree-dir: bridges
git-subtree-split: b39cb0dea5751847ea73ab9946667003625eaf1a
* Squashed 'bridges/' changes from b39cb0dea..4c4a7eae1
4c4a7eae1 Small stuff from Cumulus integration (#1865 )
git-subtree-dir: bridges
git-subtree-split: 4c4a7eae1503aa63a84fb65d56d67599d362d645
* Squashed 'bridges/' changes from 4c4a7eae1..dcaec27aa
dcaec27aa RefundRelayerForMessagesFromParachain improvements (#1879 )
5457f0672 clippy fixes (#1880 )
29e8a305c MaxValues for OutboundLanes map (#1871 )
5219b56f8 More tests for message pallet weights (#1870 )
c4c0c7a1b Bump signal-hook from 0.3.14 to 0.3.15
0ff597b96 Bump serde_json from 1.0.92 to 1.0.93
1c5132eb1 Bump subxt from `20adb19` to `9e2acff`
adb07816b update parachains relay doc (#1874 )
972ef3133 Update README.md (#1872 )
94648061b MaxValues for maps in parachain maps (#1868 )
662267a6f "refund" proof size in GRANDPa pallet (#1863 )
git-subtree-dir: bridges
git-subtree-split: dcaec27aaa6f41070fbdfbfd4fde2029697eb85f
* Squashed 'bridges/' changes from dcaec27aa..91e66cfb9
91e66cfb9 Fix clippy issues (#1884 )
0bd77f457 Reject storage proofs with unused nodes: begin (#1878 )
77a3672f9 Refund extra proof bytes in message delivery transaction (#1864 )
git-subtree-dir: bridges
git-subtree-split: 91e66cfb99c1a7b247e435515dd0f62b4058974e
* Fix tests
* Squashed 'bridges/' changes from 91e66cfb9..d39f563be
d39f563be Make `weights::WeightInfo` pub (#1886 )
c67d06aa5 ChainWithGrandpa in primitives (#1885 )
git-subtree-dir: bridges
git-subtree-split: d39f563bea57528c16763f458af3036842a0ea5f
* Merge fix
* Squashed 'bridges/' changes from d39f563be..78e3357c0
78e3357c0 RefundRelayerForMessagesFromParachain improvements (#1895 )
131b17359 optimize justification before submit (#1887 )
5bc279ebb use complex transactions on RBH/WBH bridge hubs (#1893 )
8f0c09ab9 Bump clap from 4.1.4 to 4.1.6
66429b06a Bump sysinfo from 0.27.7 to 0.28.0
8b329ee8f Bump trie-db from 0.25.0 to 0.25.1
635cfccfd Bump time from 0.3.17 to 0.3.19
git-subtree-dir: bridges
git-subtree-split: 78e3357c0387c95317b8c3e5c4d9316f3a9f3ef4
* Squashed 'bridges/' changes from 78e3357c0..5b5627e90
5b5627e90 Rewards refund for relaying BridgeHubRococo/BridgeHubWococo (#1894 )
git-subtree-dir: bridges
git-subtree-split: 5b5627e9081640ed5691eb2891182843563fb99a
* Rewards for relayers setup (#2194 )
* Rewards for relayers setup
* ".git/.scripts/commands/bench/bench.sh" pallet bridge-hub-rococo bridge-hubs pallet_bridge_relayers
* Setup weight for relayer
* Setup `DeliveryConfirmationPayments` + `RefundRelayerForMessagesFromParachain`
* No need to have more than one collator per parachain
* Setup multi refund signed extensions
* Rewards sign ext test
* test
* fixes
---------
Co-authored-by: command-bot <>
* Squashed 'bridges/' changes from 5b5627e90..3c15c3645
3c15c3645 get rid of ChainWithMessages::WeightInfo, because we can't have exact weights for "external chains" (#1899 )
8ccaa0213 Wrap confirmation and finality transactions into batch_all in Millau -> RialtoParachain bridge (#1898 )
9b7285edb Weight+size limits for bridge GRANDPA pallet calls (#1882 )
git-subtree-dir: bridges
git-subtree-split: 3c15c36455f2ad944df6a492a8d82f7e0aaf7e9f
* Squashed 'bridges/' changes from 3c15c3645..d05a98473
d05a98473 Refund messages confirmation tx (#1904 )
e2e8a7198 Relayers pallet: extend payment source id (#1907 )
cccf73b3f fix nightly clippy issues (#1915 )
a33a91e79 Bump tempfile from 3.3.0 to 3.4.0
1df768a2e Bump time from 0.3.17 to 0.3.20
cf17b424f Bump sysinfo from 0.28.0 to 0.28.1
0b6276b41 Bump jsonrpsee from 0.15.1 to 0.16.2
328dde02b Bump rand from 0.7.3 to 0.8.5
2f302a4b6 Bump trie-db from 0.25.1 to 0.26.0
b5d5d03ab CI add jobs to publish Docker images description to hub.docker.com (#1906 )
db5168f18 Do not stall on lost transaction (#1903 )
2d83d6389 Fix init-bridge (#1900 )
git-subtree-dir: bridges
git-subtree-split: d05a98473dc933cfed9e5f59023efa2ec811f03c
* Rewards adjustments
* Update RBH/WBH spec version
* Squashed 'bridges/' changes from d05a98473..ce7cf9a49
ce7cf9a49 Removed deprecated `#[pallet::generate_store(pub(super) trait Store)]` according to latest Cumulus (#1964 )
897b1c0b2 Bump substrate/polkadot/cumulus (#1962 )
7b946da2d Backport xcm bridging extensions to the bridge repo (#1813 )
88c1114ec Bump futures from 0.3.26 to 0.3.27
8668f73bf Bump serde from 1.0.152 to 1.0.155
3df8823e1 Bump subxt from `a7b45ef` to `d4545de`
ef1b1bcd0 Some error improvements (#1956 )
434c5e014 optimize justifications before they're included into complex transaction (#1949 )
7bac365a6 Actually clone client data by reference when cloning the client (#1941 )
764ddd4a8 remove lock file after checks are done (#1942 )
c18a758f8 Fix invalid messages relay delivery transactions (#1940 )
8ad152b06 fix nightly benchmarks test (#1939 )
d451b4f84 Bump tokio from 1.25.0 to 1.26.0
8019c50aa Bump async-trait from 0.1.64 to 0.1.66
aa055fcee Bump serde_json from 1.0.93 to 1.0.94
ec2ef31c4 Bump subxt from `1c5faf3` to `a7b45ef`
20026366f Bump sysinfo from 0.28.1 to 0.28.2
fe246d1e3 Bump thiserror from 1.0.38 to 1.0.39
c95e0cf02 Fix deploy step in CI (#1931 )
15b41c2dd Improve some relay errors readability (#1930 )
792deae5e Added deploy Job (#1929 )
d86c3ce21 Reconnect on-demand clients from MessagesSource::reconnect and MessagesTarget::reconnect (#1927 )
4161b51f0 get rid of obsolete weight functions (#1926 )
9b3b00e0f cargo update -p clap@4.1.6 (#1925 )
13ab28c37 Bump subxt from `9e2acff` to `1c5faf3`
bb6171a05 Remove subxt dependency features (#1924 )
66d200abb Verify with-parachain message benchmarks on CI (#1923 )
b6af2116f Update BHR and BHW spec version (#1922 )
d464e78d9 Fix benchmarks (#1919 )
74574d53e fix master compilation (#1920 )
1b373dff9 Fix multiple parachain headers submission for single message delivery (#1916 )
git-subtree-dir: bridges
git-subtree-split: ce7cf9a4977fe614d35b6a7a84d5057e2c4ccaf5
* fixed npm install call (#2323 )
* New weights (#2315 )
* New weights
* Fix compile benchmarks
* Fix import
* Fix all weights
* Remove bridge_common_config replaced by bridges impl
* Cargo.lock
* fixed bridge pallets compilation
* Cargo.lock
* fix bridge pallets compilation after substrate+polkadot bump
* BridgeHubs: XCM ExportMessage benchmark - just Rococo now
* bench export_message()
* include Bridge::haul_blob() weight in ExportMessage weight
* fix import
* more build fixes
* Squashed 'bridges/' changes from ce7cf9a49..6343a7d37
6343a7d37 bump substrate+polkadot refs and fix builds (#1989 )
8efc2b3cc Added receive_single_message_proof_with_dispatch benchmark (#1990 )
6540f74dc Remove deprecated code from bridge-runtime-common (#1983 )
c4f368be3 minor cosmetic updates (#1985 )
bef11ac43 remove invalid weight, returned by send_message (#1984 )
28cf5c957 Kusama <> Polkadot relay prototype (#1982 )
b195223d1 Bump serde from 1.0.156 to 1.0.157
70caa75d7 ignore binary-merkle-tree (#1980 )
3dc640d30 Bump thiserror from 1.0.39 to 1.0.40
8a2729101 Bump subxt from `d4545de` to `ae63d3d`
40937e8a3 Bump clap from 4.1.8 to 4.1.11
d72394c4e Bump finality-grandpa from 0.16.1 to 0.16.2
54147603d Bump serde from 1.0.155 to 1.0.156
b513193e6 Bump anyhow from 1.0.69 to 1.0.70
20867abd9 Bump sysinfo from 0.28.2 to 0.28.3
4d9a45305 Bump async-trait from 0.1.66 to 0.1.67
8a88a7536 Bump trie-db from 0.26.0 to 0.27.1
0add06edd move signed extension stuff from prolkadot-core primitives to bridge-hub-cumulus-primitives (#1968 )
7481ce6eb added UpdatedBestFinalizedHeader event to pallet-bridge-grandpa (#1967 )
6787cd0cb RBH <> WBH dashboards and alerts (#1966 )
036f7be76 enable relayer rewards metrics at bridge hubs (#1965 )
a3f07d5dd Fix invalid batch transaction (#1957 )
git-subtree-dir: bridges
git-subtree-split: 6343a7d37c32191413be91afb537b8bc6c770285
* dispatch message weight for bridge messages (#2378 )
Co-authored-by: Svyatoslav Nikolsky <svyatonik@gmail.com >
* Fixes
* Squashed 'bridges/' changes from 6343a7d37..c1d5990e8
c1d5990e8 Try check-rustdoc pipeline (#1782 )
git-subtree-dir: bridges
git-subtree-split: c1d5990e840b8ee4981beb61a8099271ee629ae5
* Removed imports
* Fix compile
* fixed benchmarks compilation
* fix rustdoc
* Squashed 'bridges/' changes from c1d5990e8..ecddd4a31
ecddd4a31 Rust cargo doc for all features (#1995 )
e0997c14d Fix gitlab-check (#1994 )
5284850ef Bump clap from 4.1.11 to 4.1.13
743cd60df Bump sysinfo from 0.28.3 to 0.28.4
dc322bae2 Bump async-trait from 0.1.67 to 0.1.68
git-subtree-dir: bridges
git-subtree-split: ecddd4a315470d85135aafbdb96753af9b07b854
* Updated scripts for transfer assets
* Cargo.lock
* Script updates for `ping-via-bridge-from-statemine-rococo`
* Added `transfer-asset-from-statemine-rococo`
* Finished scripts
* README.md
* Compile fix + log xcm trace all
* Initial version of bridges pallet as subtree of https://github.com/paritytech/parity-bridges-common
Added `Bridges subtree files` pr review rule
* Squashed 'bridges/' changes from ecddd4a31..d30927c08
d30927c08 Revert dispatch-results (#2048 )
fa454c3b4 Remove unneeded files (#2044 )
956a2c687 Bump clap from 4.2.1 to 4.2.2
91951583a Bump serde_json from 1.0.95 to 1.0.96
fcf462051 Bump h2 from 0.3.16 to 0.3.17 in /tools/runtime-codegen
b751fb24f Bump h2 from 0.3.16 to 0.3.17
0bf31ab78 update refs (#2041 )
a490ecbd3 Fix CI build (#2039 )
01139ebbc Define `RangeInclusiveExt` (#2037 )
2db2f3fe3 Impl review suggestions from #2021 (#2036 )
36292760f fix build step on CI (#2034 )
3a2311b7a refund extra weight in receive_messages_delivery_proof call (#2031 )
77f1641d1 Boost message delivery transaction priority (#2023 )
c23c4e441 Reject delivery transactions with at least one obsolete message (#2021 )
68ba699b7 Reintroduce msg dispatch status reporting (#2027 )
d1e852cc3 Bump hex-literal from 0.4.0 to 0.4.1
16f25d613 Relay node down alert (#2002 )
4bb1a6406 only refund if all bundled messages have been delivered (#2019 )
b9acf52bc fail with InsufficientDispatchWeight if dispatch_weight doesn't cover weight of all bundled messages (#2018 )
e10097fe2 Remove unneeded error debug strings (#2017 )
f5e38f057 enable metrics on all validator nodes (#2016 )
c35f1a187 Bump scale-info from 2.4.0 to 2.5.0
04c56977c Bump clap from 4.1.13 to 4.2.1
481371f3c Bump hex-literal from 0.3.4 to 0.4.0
6b9c1400d Bump serde from 1.0.158 to 1.0.159
e71877a2e Bump futures from 0.3.27 to 0.3.28
c019f4faa Bump tempfile from 3.4.0 to 3.5.0
2e6e79ef6 Bump serde_json from 1.0.94 to 1.0.95
0698b1ff9 Bump tokio from 1.26.0 to 1.27.0
35b149830 fix test step on CI (#2003 )
0c3acc858 cleanup removed lane traces (#2001 )
8bf81749e bump BridgeHubRococo/BridgeHubWococo versions (#2000 )
e53bb7f36 MaxRequests -> MaxFreeMandatoryHeadersPerBlock in pallet-bridge-grandpa (#1997 )
dfcc09043 Run tests for `runtime-benchmarks` feature only (#1998 )
efcc8db17 Run benchmarks for mock runtimes (#1996 )
git-subtree-dir: bridges
git-subtree-split: d30927c089bd9e73092d1ec1a62895603cb277a3
* Fixes
* Squashed 'bridges/' content from commit d30927c08
git-subtree-dir: bridges
git-subtree-split: d30927c089bd9e73092d1ec1a62895603cb277a3
* Updated REAMDE.md and BRIDGES.md (inspired by original https://github.com/paritytech/polkadot/blob/d22eb62fe40e55e15eb91d375f48cc540d83a47e/BRIDGES.md )
* Squashed 'bridges/' changes from d30927c08..d3970944b
d3970944b Small simplifications (#2050 )
git-subtree-dir: bridges
git-subtree-split: d3970944b0cfc4ea5226225e1ca07dab234c3556
* Squashed 'bridges/' changes from d3970944b..2180797fb
2180797fb Removed CODEOWNERS (#2051 )
git-subtree-dir: bridges
git-subtree-split: 2180797fbf8a990490c67853dcffd81bc8dd083c
* Reused `teleports_for_native_asset_works` test to all bridge-hub runtime
Extract runtime_para_id for test
Fix test
Typos
Added helper for `execute_as_governance`
* Added test case `initialize_bridge_by_governance_works`
* Added test case `handle_export_message_from_system_parachain_to_outbound_queue_works`
fix script
Removed BridgeGrandpaRococoInstance
* Added test-case `message_dispatch_routing_works`
* Squashed 'bridges/' changes from 2180797fbf..4850aac8ce
4850aac8ce Removed relayer_account: &AccountId from MessageDispatch (#2080 )
8c8adafd54 Revert "Fix max-size messages at test chains (#2064 )" (#2077 )
c01a63efd8 Fixed off-by-one when confirming rewards in messages pallet (#2075 )
a298be96aa Update subxt dependencies (#2072 )
c0eef51eab Fix max-size messages at test chains (#2064 )
3a658e3697 Messages relay fixes (#2073 )
0022b5ab22 Slash relayers for invalid transactions (#2025 )
198104007f Bump enumflags2 from 0.7.5 to 0.7.7
9229b257e5 [ci] Fix rules for docker build (#2069 )
660d791390 [ci] Update buildah command and version (#2058 )
e4535c0ca4 fix the way latest_confirmed_nonce_at_source is "calculated" (#2067 )
dbc2d37590 select nothing if we have already selected nonces to submit or have submitted something (#2065 )
a7eedd21fe [relay-substrate-client] Bump jsonrpsee (#2066 )
8875d5aeae Bump clap from 4.2.2 to 4.2.4
25f9cf55e2 Another use of RangeInclusiveExt::checked_len() (#2060 )
4942c12a5f submit lane unblock transactions from relay (#2030 )
c0325d3c9c Test deployments fixes (#2057 )
fc7b9b7ed7 Use the new matrix server (#2056 )
63bcb5c10b Fixed delivery alert rule (#2052 )
git-subtree-dir: bridges
git-subtree-split: 4850aac8ce6c34e5ca6246b88cd14c873a879cba
* Fmt
* Squashed 'bridges/' changes from 4850aac8ce..66aaf0dd23
66aaf0dd23 Nits (#2083 )
git-subtree-dir: bridges
git-subtree-split: 66aaf0dd239dde40b64264061a77c921e2c82568
* Cleaning
* bridge-hub-rococo: minor fixes
Signed-off-by: Adrian Catangiu <adrian@parity.io >
* Squashed 'bridges/' changes from 66aaf0dd23..557ecbcecc
557ecbcecc Fix sized messages (Follow-up on #2064 ) (#2103 )
54f587a066 Add weight of refund extension post_dispatch to the weights of messages pallet (#2089 )
5b1626f8c4 fix pallet param for nightly benchmarks check (#2099 )
ae44c6b7a1 Add millau specific messages weights (#2097 )
6ad0bd1f1e Add integrity tests to rialto parachain runtiime (#2096 )
6919556de5 Bump tokio from 1.27.0 to 1.28.0
58795fcb75 Bump clap from 4.2.4 to 4.2.5
01bf31085b Bump scale-info from 2.5.0 to 2.6.0
8fe383240d Bump anyhow from 1.0.70 to 1.0.71
8d94e82ad5 deployments: add new BEEFY metrics and alarms (#2090 )
e9a4749e7e Bump wasmtime from 6.0.1 to 6.0.2
9d9936c0d9 Bump wasmtime from 6.0.1 to 6.0.2 in /tools/runtime-codegen
5d77cd7bee Add more logs to relayer and message pallets (#2082 )
75fbb9d3ef Update comment (#2081 )
9904d09cf6 Benchmarks for new relayers pallet calls (#2040 )
git-subtree-dir: bridges
git-subtree-split: 557ecbcecc585547b744a5ac9fb8d7f3b9de4521
* fmt
* Fix compile
* Fix benchmark
* Squashed 'bridges/' changes from 557ecbcecc..04b3dda6aa
04b3dda6aa Remove from subtree (#2111 )
f8ff15e7e7 Add `MessagesPalletInstance` for integrity tests (#2107 )
92ccef58e6 Use generated runtimes for BHR/BHW (#2106 )
b33e0a585b Fix comment (#2105 )
git-subtree-dir: bridges
git-subtree-split: 04b3dda6aa38599e612ff637710b6d2cff275ef3
* Fix
* ".git/.scripts/commands/fmt/fmt.sh"
* ".git/.scripts/commands/bench/bench.sh" pallet bridge-hub-rococo bridge-hubs pallet_bridge_grandpa
* ".git/.scripts/commands/bench/bench.sh" pallet bridge-hub-rococo bridge-hubs pallet_bridge_parachains
* ".git/.scripts/commands/bench/bench.sh" pallet bridge-hub-rococo bridge-hubs pallet_bridge_messages
* ".git/.scripts/commands/bench/bench.sh" pallet bridge-hub-rococo bridge-hubs pallet_bridge_relayers
---------
Signed-off-by: Adrian Catangiu <adrian@parity.io >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
Co-authored-by: Anthony Lazam <xlzm.tech@gmail.com >
Co-authored-by: Serban Iorga <serban300@gmail.com >
Co-authored-by: Svyatoslav Nikolsky <svyatonik@gmail.com >
Co-authored-by: girazoki <gorka.irazoki@gmail.com >
Co-authored-by: parity-processbot <>
Co-authored-by: Serban Iorga <serban@parity.io >
Co-authored-by: acatangiu <adrian@parity.io >
2023-05-04 07:08:05 +00:00
Branislav Kontur and parity-processbot
d810f65044
Initial version of bridging pallets as git subtree ( #2458 )
...
* Initial version of bridges pallet as subtree of https://github.com/paritytech/parity-bridges-common
Added `Bridges subtree files` pr review rule
* Squashed 'bridges/' content from commit d30927c08
git-subtree-dir: bridges
git-subtree-split: d30927c089bd9e73092d1ec1a62895603cb277a3
* Updated REAMDE.md and BRIDGES.md (inspired by original https://github.com/paritytech/polkadot/blob/d22eb62fe40e55e15eb91d375f48cc540d83a47e/BRIDGES.md )
* Squashed 'bridges/' changes from d30927c08..d3970944b
d3970944b Small simplifications (#2050 )
git-subtree-dir: bridges
git-subtree-split: d3970944b0cfc4ea5226225e1ca07dab234c3556
* Squashed 'bridges/' changes from d3970944b..2180797fb
2180797fb Removed CODEOWNERS (#2051 )
git-subtree-dir: bridges
git-subtree-split: 2180797fbf8a990490c67853dcffd81bc8dd083c
* Squashed 'bridges/' changes from 2180797fbf..4850aac8ce
4850aac8ce Removed relayer_account: &AccountId from MessageDispatch (#2080 )
8c8adafd54 Revert "Fix max-size messages at test chains (#2064 )" (#2077 )
c01a63efd8 Fixed off-by-one when confirming rewards in messages pallet (#2075 )
a298be96aa Update subxt dependencies (#2072 )
c0eef51eab Fix max-size messages at test chains (#2064 )
3a658e3697 Messages relay fixes (#2073 )
0022b5ab22 Slash relayers for invalid transactions (#2025 )
198104007f Bump enumflags2 from 0.7.5 to 0.7.7
9229b257e5 [ci] Fix rules for docker build (#2069 )
660d791390 [ci] Update buildah command and version (#2058 )
e4535c0ca4 fix the way latest_confirmed_nonce_at_source is "calculated" (#2067 )
dbc2d37590 select nothing if we have already selected nonces to submit or have submitted something (#2065 )
a7eedd21fe [relay-substrate-client] Bump jsonrpsee (#2066 )
8875d5aeae Bump clap from 4.2.2 to 4.2.4
25f9cf55e2 Another use of RangeInclusiveExt::checked_len() (#2060 )
4942c12a5f submit lane unblock transactions from relay (#2030 )
c0325d3c9c Test deployments fixes (#2057 )
fc7b9b7ed7 Use the new matrix server (#2056 )
63bcb5c10b Fixed delivery alert rule (#2052 )
git-subtree-dir: bridges
git-subtree-split: 4850aac8ce6c34e5ca6246b88cd14c873a879cba
* Squashed 'bridges/' changes from 4850aac8ce..66aaf0dd23
66aaf0dd23 Nits (#2083 )
git-subtree-dir: bridges
git-subtree-split: 66aaf0dd239dde40b64264061a77c921e2c82568
* Squashed 'bridges/' changes from 66aaf0dd23..557ecbcecc
557ecbcecc Fix sized messages (Follow-up on #2064 ) (#2103 )
54f587a066 Add weight of refund extension post_dispatch to the weights of messages pallet (#2089 )
5b1626f8c4 fix pallet param for nightly benchmarks check (#2099 )
ae44c6b7a1 Add millau specific messages weights (#2097 )
6ad0bd1f1e Add integrity tests to rialto parachain runtiime (#2096 )
6919556de5 Bump tokio from 1.27.0 to 1.28.0
58795fcb75 Bump clap from 4.2.4 to 4.2.5
01bf31085b Bump scale-info from 2.5.0 to 2.6.0
8fe383240d Bump anyhow from 1.0.70 to 1.0.71
8d94e82ad5 deployments: add new BEEFY metrics and alarms (#2090 )
e9a4749e7e Bump wasmtime from 6.0.1 to 6.0.2
9d9936c0d9 Bump wasmtime from 6.0.1 to 6.0.2 in /tools/runtime-codegen
5d77cd7bee Add more logs to relayer and message pallets (#2082 )
75fbb9d3ef Update comment (#2081 )
9904d09cf6 Benchmarks for new relayers pallet calls (#2040 )
git-subtree-dir: bridges
git-subtree-split: 557ecbcecc585547b744a5ac9fb8d7f3b9de4521
* fmt
* Squashed 'bridges/' changes from 557ecbcecc..04b3dda6aa
04b3dda6aa Remove from subtree (#2111 )
f8ff15e7e7 Add `MessagesPalletInstance` for integrity tests (#2107 )
92ccef58e6 Use generated runtimes for BHR/BHW (#2106 )
b33e0a585b Fix comment (#2105 )
git-subtree-dir: bridges
git-subtree-split: 04b3dda6aa38599e612ff637710b6d2cff275ef3
* ".git/.scripts/commands/fmt/fmt.sh"
---------
Co-authored-by: parity-processbot <>
2023-05-04 06:36:58 +00:00
4e3f0857ab
Align BridgeHub runtimes with other SP runtimes + reused test for teleport native tokens + some nits ( #2449 )
...
* Align BridgeHub runtimes with other SP runtimes
* Reused `teleports_for_native_asset_works` test to all bridge-hub runtime
* Fix import vs doc
* Removed unnecessery deps
* DealWithFees + ToAuthor->ToStakingPot for BH according to the other runtimes
* Update parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/xcm_config.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update parachains/runtimes/bridge-hubs/bridge-hub-polkadot/src/xcm_config.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update parachains/runtimes/bridge-hubs/bridge-hub-kusama/src/xcm_config.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Align all desc
* Extract runtime_para_id for test
* Fix test
---------
Co-authored-by: parity-processbot <>
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
2023-04-24 13:43:16 +00:00
Branislav Kontur
58c18348c5
[xcm] Added UnpaidExecution instruction to UnpaidRemoteExporter ( #7091 )
2023-04-18 11:31:36 +02:00
Branislav Kontur
ae2905df87
Changed query_account_balances return type ( #2455 )
2023-04-17 17:01:40 +02:00
Branislav Kontur
d89e4c36fd
Updated bridge-hub-polkadot.json ( #2435 )
2023-04-06 08:55:42 +00:00
e225e54dc7
Companion for #6986 ( #2416 )
...
* refactor: apply substrate/pull/13610
* Added `origin` to config for `universal_origin` benchmark
* update lockfile for {"polkadot", "substrate"}
* Update
---------
Co-authored-by: William Freudenberger <w.freude@icloud.com >
Co-authored-by: parity-processbot <>
Co-authored-by: Bastian Köcher <info@kchr.de >
2023-04-04 09:32:03 +00:00
Branislav Kontur
3f67c93dd1
Added origin to config for universal_origin benchmark ( #6986 )
2023-04-04 07:34:56 +00:00
Branislav Kontur
583223c275
Enabled polkadot-parachain build for runtime-benchmarks, e.g.: ( #2324 )
...
`cargo build --locked --profile=production -p polkadot-parachain-bin --features runtime-benchmarks`
2023-03-15 14:21:04 +00:00
Branislav Kontur
77338c99d8
Bump polkadot ( #2269 )
...
* Bump polkadot
* Bump substrate
2023-03-03 13:30:44 +00:00
Branislav Kontur
837d7748ad
Forgotten re-export for MatchedConvertedConcreteId ( #6815 )
2023-03-03 12:14:24 +01:00
Branislav Kontur
cf3ddb831c
Update polkadot with one more commit: from 54bcee1d5615f53781d5172fcce6700dbf35dad2 -> 3dd8331414c92f5d01d6a470eae43049099d7aa9 ( #2266 )
...
* Update polkadot with one commit: from 54bcee1d5615f53781d5172fcce6700dbf35dad2 -> 3dd8331414c92f5d01d6a470eae43049099d7aa9
* Fix test
* Fix test better
* typo
2023-03-03 10:02:49 +01:00
Branislav Kontur and parity-processbot
c5637bda91
[XCM] Multiple FungiblesAdapters support + WeightTrader::buy_weight more accurate error ( #6739 )
...
* Change ParaId->Sibling for `SiblingParachainConvertsVia`
* [XCM] Multiple `FungiblesAdapter`s support + `WeightTrader::buy_weight` more accurate error
* Added test for `ConvertedConcreteId` with `AsPrefixedGeneralIndex`
* Solution 3. - new MatchedConvertedConcreteId with matching capabilities
* Review fixes
* Renamed `AssetNotFound` -> `AssetNotHandled`
---------
Co-authored-by: parity-processbot <>
2023-03-02 16:50:12 +01:00
Branislav Kontur
9e0a837696
Added bootNodes/invulnerables/session.keys to the polkadot genesis chain_spec script ( #2171 )
2023-02-08 12:06:15 +01:00
Branislav Kontur and command-bot
a7bde3b984
Added new empty shell runtime for BridgeHubPolkadot (without bridging stuff) for onboarding parachain on Polkadot ( #2137 )
...
* Added new empty shell runtime for `BridgeHubPolkadot` (without bridging stuff) for onboarding parachain on Polkadot
* Fix benchmarks/try-runtime
* ".git/.scripts/commands/bench/bench.sh" pallet bridge-hub-polkadot bridge-hubs frame_system
* ".git/.scripts/commands/bench/bench.sh" pallet bridge-hub-polkadot bridge-hubs pallet_balances
* ".git/.scripts/commands/bench/bench.sh" pallet bridge-hub-polkadot bridge-hubs pallet_multisig
* ".git/.scripts/commands/bench/bench.sh" pallet bridge-hub-polkadot bridge-hubs pallet_xcm
* Fixes
* ".git/.scripts/commands/bench/bench.sh" pallet bridge-hub-polkadot bridge-hubs pallet_session
* ".git/.scripts/commands/bench/bench.sh" pallet bridge-hub-polkadot bridge-hubs pallet_utility
* ".git/.scripts/commands/bench/bench.sh" pallet bridge-hub-polkadot bridge-hubs pallet_timestamp
* ".git/.scripts/commands/bench/bench.sh" pallet bridge-hub-polkadot bridge-hubs pallet_collator_selection
* ".git/.scripts/commands/bench/bench.sh" pallet bridge-hub-polkadot bridge-hubs cumulus_pallet_xcmp_queue
* PR fixes
* Rebase fix
* Fix new runtime api
* ".git/.scripts/commands/bench/bench.sh" xcm bridge-hub-polkadot bridge-hubs pallet_xcm_benchmarks::fungible
* ".git/.scripts/commands/bench/bench.sh" xcm bridge-hub-polkadot bridge-hubs pallet_xcm_benchmarks::generic
* Updated aura/bootNodes in `create_bridge_hub_polkadot_spec.sh`
---------
Co-authored-by: command-bot <>
2023-02-02 10:35:11 +00:00
Branislav Kontur
593727d90b
Removed forgotten unused pub Ancestry: MultiLocation ( #2124 )
2023-01-24 10:48:54 +01:00
Branislav Kontur
de7378efe7
Added HaulBlobError to pub re-exports ( #6579 )
2023-01-18 18:26:25 +01:00
Branislav Kontur
a714040a0d
BHK + BH-Westend release backport ( #2083 )
...
* Runtime code according to the released runtime bridge-hub-kusama_runtime-v9360.compact.compressed.wasm
* Add chains spec for westend with generated by `./scripts/create_bridge_hub_westend_spec.sh ~/Downloads/upload/bridge-hub-kusama_runtime-v9360.compact.compressed.wasm 1002`
* fmt
2023-01-13 22:37:22 +01:00
Branislav Kontur and command-bot
0c836d3e5a
Bridge hub kusama fine-tuning before release ( #1999 )
...
* Fix benchmarks-ci.sh - missing pallet_utility/pallet_multisig
* Missing ParentAsSuperuser for bridge-hubs
* Fixed missing stuff in benchmarks.yml
* Added MigrateToTrackInactive + CheckingAccount (for completness as other runtimes)
* Measured xcm weights for bridge-hubs
* Fix for fungible benchmarks
* ".git/.scripts/bench-bot.sh" xcm bridge-hub-kusama bridge-hubs pallet_xcm_benchmarks::fungible
* ".git/.scripts/bench-bot.sh" xcm bridge-hub-rococo bridge-hubs pallet_xcm_benchmarks::generic
* ".git/.scripts/bench-bot.sh" xcm bridge-hub-rococo bridge-hubs pallet_xcm_benchmarks::fungible
* ".git/.scripts/bench-bot.sh" xcm bridge-hub-kusama bridge-hubs pallet_xcm_benchmarks::generic
* Reverting migrations - no need for them
* script for generate genesis spec/head/wasm
* Adding invulnerables and session.keys to the script
(https://github.com/paritytech/devops/issues/2196 )
* update chainspec with cmd: ./scripts/create_bridge_hub_kusama_spec.sh ./target/release/wbuild/bridge-hub-kusama-runtime/bridge_hub_kusama_runtime.compact.compressed.wasm 1003
* para_id 1003 -> 1002, cmd: ./scripts/create_bridge_hub_kusama_spec.sh ./target/release/wbuild/bridge-hub-kusama-runtime/bridge_hub_kusama_runtime.compact.compressed.wasm 1002
Co-authored-by: command-bot <>
2022-12-21 09:59:00 +01:00
Branislav Kontur and command-bot
c3df7db394
BridgeHubKusama - initial setup - (chain_spec + basic runtime without any bridging pallets) ( #1764 )
...
* [BridgeHub] Setup Rococo backbone parachain
* [BridgeHub] Setup Wococo parachain backbone (reused from Rococo)
[Bridge-Backport] Rebase-fix
BridgeHub] Added zombienet startup tomls for Rococo/Wococo
Fix typo
* [BridgeHub] Added chain_spec for live Rococo/Wococo
* [BridgeHub] Clean bridge-hub-rococo runtime
* [BridgeHub] Add bridge-hub-rococo to CI pipelines
* [BridgeHub] Added bridge-hub-kusama - empty runtime/chain_spec setup
* Fixes
* Fixes for BH
* Fixes for other runtimes - align all
* Fixes - const
* Fixes const
* Fixes
* Fix kusama-local
* Sample zombienet runs
* Fixes
* Fixes for benchmarking
* Fixes CI
* Fixes
* ".git/.scripts/bench-bot.sh" pallet bridge-hub-kusama bridge-hubs frame_system
* ".git/.scripts/bench-bot.sh" pallet bridge-hub-kusama bridge-hubs pallet_collator_selection
* ".git/.scripts/bench-bot.sh" pallet bridge-hub-kusama bridge-hubs pallet_balances
* ".git/.scripts/bench-bot.sh" pallet bridge-hub-kusama bridge-hubs pallet_session
* Fixes name
* Fixes readme
* ".git/.scripts/bench-bot.sh" pallet bridge-hub-kusama bridge-hubs pallet_timestamp
* ".git/.scripts/bench-bot.sh" pallet bridge-hub-kusama bridge-hubs cumulus_pallet_xcmp_queue
* ".git/.scripts/bench-bot.sh" pallet bridge-hub-kusama bridge-hubs pallet_collator_selection
* Fixes
* Fixes
* rustfmt
* Fixes
* Added pallet_utility/pallet_multisig
* Blind try for regex pr-custom-review.yml (added bridge-hub-kusama + collectives-polkadot)
* Fixes
* Fixes
* ".git/.scripts/bench-bot.sh" pallet bridge-hub-kusama bridge-hubs pallet_utility
* ".git/.scripts/bench-bot.sh" pallet bridge-hub-kusama bridge-hubs pallet_multisig
* Trying to fix sed expression?
* Added license headers + correct "DAG:" desc
Co-authored-by: command-bot <>
2022-12-02 14:06:39 +01:00
Branislav Kontur
aad3912924
Allow Sufficient Assets for XCM Fee Payment on Statemint #1884 ( #1910 )
...
* Allow Sufficient Assets for XCM Fee Payment on Statemint #1884
* Revert of removed payment.clone().into()
* Fixes
* Bring AssetFeeAsExistentialDepositMultiplier to test_asset_xcm_trader
* Fixes
2022-11-28 17:04:30 +01:00
Branislav Kontur
f8a7f81e76
Fix for xcm weight benchmarks generation ( #1872 )
2022-11-15 13:49:59 +01:00
Branislav Kontur
910e21847f
Skip unexpected metric type
...
* Dump more info for `unexpected metric type`
* Skip `unexpected metric type`
2022-10-06 10:03:34 +02:00
Branislav Kontur
fd5571647c
Removed unused deps with cargo machete ( #1680 )
...
* Removed unused deps with `cargo machete`
* Removed unused deps with `cargo machete` for parachain-template
2022-09-29 13:44:08 +02:00
Branislav Kontur
86bdaec2ea
Small cosmetic nits ( #1679 )
2022-09-23 14:53:31 +02:00
Branislav Kontur
ffe19fd0b7
Removed dependance on rococo_parachain_runtime for unrelated stuff ( #1500 )
...
* Clean misleading imports `rococo_parachain_runtime::{AccountId, AuraId}`
* Remove dependance on `rococo_parachain_runtime` for unrelated stuff
* fmt + rebase fix
* Addressing review comments
* Addressing review comments
* Fix for `purge_chain_works` works now with `rococo-local` and purge command needs to allow `rococo-native`
2022-08-16 12:22:22 +02:00
Branislav Kontur
b3bd5cee54
Fix for 'note_applied_extrinsic' - consider also 'extract_actual_pays_fee' ( #11849 )
2022-07-23 18:01:57 +00:00
Branislav Kontur
c623784f13
Typo + some clippy stuff (unnecessary clone/to_string/refs) + fmt ( #1437 )
2022-07-11 11:05:40 +00:00