Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

BridgeHub Rococo/Wococo runtimes #2111

Merged
merged 363 commits into from
May 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
363 commits
Select commit Hold shift + click to select a range
196ad14
Fixes
KiChjang Nov 22, 2022
331b21e
Fixes
KiChjang Nov 22, 2022
b613a35
Fixes
KiChjang Nov 22, 2022
930b988
cargo fmt
KiChjang Nov 22, 2022
cd1452b
Fixes
KiChjang Nov 22, 2022
a0865d8
Fixes
KiChjang Nov 22, 2022
d953b60
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Nov 22, 2022
e80d39b
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Nov 22, 2022
3fdf078
Fixes
KiChjang Nov 22, 2022
d6d1a7d
Fixes
KiChjang Nov 22, 2022
05985d7
Update BridgeHub runtime version
lazam Nov 17, 2022
18a3ea9
Fixes
bkontur Nov 22, 2022
1a68129
Zombienet for bridge-hub setup
bkontur Nov 23, 2022
fa505c0
Fixes
bkontur Nov 23, 2022
2d4603d
Remove unused import
KiChjang Nov 28, 2022
3647b74
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Nov 28, 2022
c6f8c3d
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Nov 29, 2022
db18833
Fixes for gav-xcm-v3 (#1835)
bkontur Nov 29, 2022
61c1cdf
Fixes
KiChjang Nov 29, 2022
d30d218
Fixes
KiChjang Nov 29, 2022
2a8678d
Fixes
KiChjang Nov 29, 2022
b1e8b37
Fixes
KiChjang Nov 29, 2022
fad4c13
Fixes
KiChjang Nov 29, 2022
f1e7e18
Fix tests
KiChjang Nov 29, 2022
4829edb
Fixes
KiChjang Nov 29, 2022
d14dfd2
Trying to fix sed expression?
bkontur Nov 24, 2022
ac92420
Trying to fix sed expression?
bkontur Nov 25, 2022
ffa4172
Use the `relay-headers-and-messages` command (#1913)
serban300 Nov 25, 2022
a46ab39
Fix README.md + zombienet
bkontur Nov 28, 2022
fa2cf8b
Parachain ID update of bridge-hub-wococo
lazam Nov 29, 2022
7f86dcf
Update bridge-hub-wococo chainspec
lazam Nov 30, 2022
d2b7ee2
Squashed 'bridges/' content from commit 062554430
bkontur Dec 1, 2022
fcc1574
Merge commit 'd2b7ee2575c5132ef050e2523955382e1fae00ec' as 'bridges'
bkontur Dec 1, 2022
8afc224
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Dec 3, 2022
6057952
Add SafeCallFilter
KiChjang Dec 3, 2022
33404f2
Add missing config items
KiChjang Dec 3, 2022
ff25026
Add TODO
KiChjang Dec 3, 2022
9982003
Fixes (xcm Superuser + DispatchLevelResult)
bkontur Dec 5, 2022
46858d6
Fix cargo
bkontur Dec 5, 2022
0d69b25
Change runtime version
bkontur Dec 5, 2022
96b567a
Unit-tests for dispatch bridging messages and XCM routing on BridgeHu…
bkontur Dec 5, 2022
a2d2a5c
Removed Sudo pallet
bkontur Dec 5, 2022
080c7f0
Use () as the PriceForParentDelivery
KiChjang Dec 6, 2022
a9a359b
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Dec 6, 2022
9bad64e
Fixes
KiChjang Dec 6, 2022
9ad8152
Fixes
KiChjang Dec 6, 2022
f366c7f
Fixes
KiChjang Dec 6, 2022
92ace05
Fixes
KiChjang Dec 6, 2022
d2684b2
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Dec 7, 2022
ffc7926
Update transact_origin to transact_origin_and_runtime_call
KiChjang Dec 8, 2022
cb1dd01
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Dec 8, 2022
7c25f95
Add ReachableDest config item to XCM pallet
KiChjang Dec 8, 2022
d42acfd
Add BridgeRejectObsoleteHeadersAndMessages to bridge hubs (#1972)
serban300 Dec 8, 2022
b144b78
Update SafeCallFilter to allow remark_with_event in runtime benchmarks
KiChjang Dec 9, 2022
2719c7a
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Dec 9, 2022
06c43f5
cargo fmt
KiChjang Dec 9, 2022
7f0e710
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Dec 10, 2022
fef449a
Update substrate
KiChjang Dec 10, 2022
e3a6bc6
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
bkontur Dec 11, 2022
1fcb5d5
Fix worst_case_holding
KiChjang Dec 12, 2022
dd74806
Fix DMQ queue unit tests
KiChjang Dec 12, 2022
97d8c80
Remove unused label
KiChjang Dec 12, 2022
36a767c
cargo fmt
KiChjang Dec 12, 2022
1d6f7ae
Actually process incoming XCMs
KiChjang Dec 12, 2022
90b7e77
Fixes
KiChjang Dec 12, 2022
838656a
Fixes
KiChjang Dec 12, 2022
a50aed6
Fixes
KiChjang Dec 12, 2022
2b2d90e
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
bkontur Dec 13, 2022
ccb74d9
Fixes - return back Weightless
bkontur Dec 13, 2022
88a3e29
Simplify local run + readme
bkontur Dec 13, 2022
221d6be
Added measured benchmarks for `pallet_xcm` (#1968)
bkontur Dec 13, 2022
27f9798
cargo fmt
bkontur Dec 13, 2022
bb821eb
Fix benchmarks
KiChjang Dec 14, 2022
c70a11f
Bko gav xcm v3 (#1993)
bkontur Dec 14, 2022
5cf2a72
Change AllowUnpaidExecutionFrom to be explicit
KiChjang Dec 15, 2022
1d53b51
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Dec 21, 2022
5841747
Turn on more xcm logs for parachains
bkontur Dec 22, 2022
14e3f86
Added polkadot-parachain-mint binary instructions
bkontur Dec 22, 2022
2f39d75
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Dec 22, 2022
5cdc48a
xcm-v3 benchmarks, weights, fixes for bridge-hubs (#2035)
bkontur Dec 23, 2022
7f3727f
Merge branch 'master' into gav-xcm-v3
KiChjang Dec 29, 2022
28a6040
remove shift session manager from bridge-hub-rococo (#2047)
svyatonik Jan 2, 2023
e2a3354
Add event for showing the hash of an UMP sent message (#1228)
girazoki Jan 3, 2023
b7970c3
Merge branch 'master' into gav-xcm-v3
KiChjang Jan 3, 2023
63a18c2
Fixes
KiChjang Jan 3, 2023
f9a0390
Fixes
KiChjang Jan 3, 2023
893bc5c
Fixes
KiChjang Jan 3, 2023
e303fb2
Fixes
KiChjang Jan 3, 2023
9f39173
Updated README.md and scripts/bridges_rococo_wococo.sh for sending me…
bkontur Jan 5, 2023
8fe432b
Allow explicit unpaid executions from the relay chains for system par…
KiChjang Jan 7, 2023
e28ef3c
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
KiChjang Jan 7, 2023
9bf5a7e
Align laneId to 00000001
bkontur Jan 9, 2023
87e0ea1
Allow receiving XCMs from any relay chain plurality
KiChjang Jan 10, 2023
146c742
Fixes
KiChjang Jan 10, 2023
5835109
Use Rococo/Wococo runtime APIs defined in bridge primitives (#2080)
serban300 Jan 12, 2023
d5787aa
Merge remote-tracking branch 'origin/master' into gav-xcm-v3
bkontur Jan 13, 2023
71b357b
Merge remote-tracking branch 'origin/gav-xcm-v3' into bridge-hub-base
bkontur Jan 15, 2023
f6e1b01
Patched dependencies (polkadot, substrate) for xcm-v3 (compiles + tes…
bkontur Jan 15, 2023
6419dad
Replace serial_test and fix with thread_local
bkontur Jan 16, 2023
d261629
Merge remote-tracking branch 'origin/bridge-hub-base' into bridge-hub…
bkontur Jan 17, 2023
d43353b
Merge remote-tracking branch 'origin/master' into bridge-hub-rococo-w…
bkontur Jan 17, 2023
97b56a9
Very init of script for bumping bridges repo
bkontur Jan 17, 2023
d3c0763
Squashed 'bridges/' changes from 062554430..984749ba0
bkontur Jan 18, 2023
92b6824
updating bridges subtree
bkontur Jan 18, 2023
f93bde1
Fixes after merge
bkontur Jan 18, 2023
6318193
Merge remote-tracking branch 'origin/master' into bridge-hub-rococo-w…
bkontur Jan 18, 2023
4496728
Fixes
bkontur Jan 18, 2023
e845023
Use auto runtime version for local runs (#2113)
serban300 Jan 19, 2023
677abb1
Squashed 'bridges/' changes from 984749ba0..fb3c5ef5d
bkontur Jan 19, 2023
f78433d
updating bridges subtree
bkontur Jan 19, 2023
30f2866
Fixed try-runtime
bkontur Jan 19, 2023
026ef01
Merge remote-tracking branch 'origin/master' into bridge-hub-rococo-w…
bkontur Jan 19, 2023
b743f6c
Fix cargo.lock
bkontur Jan 19, 2023
7c1752c
Fix BridgePalletIsNotInitialized (#2114)
serban300 Jan 19, 2023
380ff9f
Merge remote-tracking branch 'origin/master' into bridge-hub-rococo-w…
bkontur Jan 19, 2023
2f1438c
Squashed 'bridges/' changes from fb3c5ef5d..e2e9fa7f9
bkontur Jan 19, 2023
0385b80
updating bridges subtree
bkontur Jan 19, 2023
c15f226
Fix cargo.toml
bkontur Jan 19, 2023
690ece3
Merge remote-tracking branch 'origin/master' into bridge-hub-rococo-w…
bkontur Jan 21, 2023
791cf61
Squashed 'bridges/' changes from e2e9fa7f9..d5f95c14a
bkontur Jan 21, 2023
3fdd1e7
updating bridges subtree
bkontur Jan 21, 2023
8e24c8c
Fix `send-remark-local` script because of new xcm-v3
bkontur Jan 22, 2023
1a1a4f5
Refactor haul/dispatch xcm stuff
bkontur Jan 23, 2023
5ad38a1
Add Rococo <> Wococo integrity tests (#1975)
serban300 Jan 25, 2023
34e8e97
Bridge benchmarks for bridge hub rococo/wococo (#2107)
svyatonik Jan 26, 2023
7e4b1ca
Ensure governance can call `initialize` with `xcm:Transact` bridge gr…
bkontur Jan 26, 2023
ad9d24e
Just in case changed spec_version
bkontur Jan 26, 2023
f0657da
Some scripts for enabling asset transfer on local statemine->westmint
bkontur Jan 21, 2023
35561ed
Merge remote-tracking branch 'origin/master' into bridge-hub-rococo-w…
bkontur Feb 7, 2023
f84df6c
script
bkontur Feb 8, 2023
591a68f
Squashed 'bridges/' changes from d5f95c14a..b39cb0dea
bkontur Feb 8, 2023
411cfe3
Merge commit '591a68f6f64dd31afe886fdf21f35da9e13ca9cf' into bridge-h…
bkontur Feb 8, 2023
46c6dc0
Merge commit '97f2ab29bf650bba3884abafaa480850d64f8278' into bridge-h…
bkontur Feb 8, 2023
97f2ab2
Squashed 'bridges/' changes from b39cb0dea..4c4a7eae1
bkontur Feb 8, 2023
3cfaac4
Merge remote-tracking branch 'origin/master' into bridge-hub-rococo-w…
Feb 15, 2023
be711f1
Squashed 'bridges/' changes from 4c4a7eae1..dcaec27aa
bkontur Feb 15, 2023
a793253
Merge commit 'be711f15f622a1e358ea43cd814e6a902a5c6bda' into bridge-h…
bkontur Feb 15, 2023
1bb5161
Squashed 'bridges/' changes from dcaec27aa..91e66cfb9
bkontur Feb 16, 2023
aeb6f21
Merge commit '1bb5161ff259a280a672be3fe1e13d30eecbde1c' into bridge-h…
bkontur Feb 16, 2023
3c155c2
Fix tests
bkontur Feb 16, 2023
2f8cce7
Squashed 'bridges/' changes from 91e66cfb9..d39f563be
bkontur Feb 16, 2023
cb5a592
Merge commit '2f8cce7d9edafc3e4ee80f1930637d4c0831b7e9' into bridge-h…
bkontur Feb 16, 2023
1cb249d
Merge fix
bkontur Feb 17, 2023
11f1ba1
Merge remote-tracking branch 'origin/master' into bridge-hub-rococo-w…
Feb 17, 2023
d6149f2
Squashed 'bridges/' changes from d39f563be..78e3357c0
bkontur Feb 21, 2023
d982963
Merge commit 'd6149f20e4525c32c9d00972994e4c63d201c125' into bridge-h…
bkontur Feb 21, 2023
1afb13d
Squashed 'bridges/' changes from 78e3357c0..5b5627e90
bkontur Feb 21, 2023
dba6f86
Merge commit '1afb13d3da0818381a00bedf89217e202504fadc' into bridge-h…
bkontur Feb 21, 2023
22ad782
Rewards for relayers setup (#2194)
bkontur Feb 22, 2023
aebd151
Merge remote-tracking branch 'origin/master' into bridge-hub-rococo-w…
bkontur Feb 22, 2023
0fda54d
Squashed 'bridges/' changes from 5b5627e90..3c15c3645
bkontur Feb 22, 2023
b0d56a5
Merge commit '0fda54d9325708dc3d9d5e254721483fdf2b5638' into bridge-h…
bkontur Feb 22, 2023
5c29781
Squashed 'bridges/' changes from 3c15c3645..d05a98473
serban300 Feb 28, 2023
e84f7b9
Merge commit '5c29781bfebdb34628ca58aacbd4547e1cfe2c45' into bridge-h…
serban300 Feb 28, 2023
6c63ece
Rewards adjustments
serban300 Feb 28, 2023
9c652c3
Update RBH/WBH spec version
serban300 Mar 1, 2023
fa0beaa
Merge remote-tracking branch 'origin/master' into bridge-hub-rococo-w…
bkontur Mar 14, 2023
f6a606b
Squashed 'bridges/' changes from d05a98473..ce7cf9a49
bkontur Mar 14, 2023
30dcc22
Merge commit 'f6a606b1e417589b64d02e5954a3fc886acecb80' into bridge-h…
bkontur Mar 14, 2023
1392b9d
fixed npm install call (#2323)
svyatonik Mar 15, 2023
9e81c9f
New weights (#2315)
bkontur Mar 15, 2023
bf98c88
Remove bridge_common_config replaced by bridges impl
bkontur Mar 15, 2023
5aeea8d
Merge remote-tracking branch 'origin/master' into bridge-hub-rococo-w…
Mar 15, 2023
3dae8ee
Cargo.lock
bkontur Mar 15, 2023
5b3ed05
fixed bridge pallets compilation
svyatonik Mar 16, 2023
c94162a
Cargo.lock
bkontur Mar 16, 2023
a90c1bd
Merge remote-tracking branch 'origin/master' into bridge-hub-rococo-w…
bkontur Mar 23, 2023
130c9c0
Merge remote-tracking branch 'origin/master' into bridge-hub-rococo-w…
bkontur Mar 23, 2023
07a5b10
fix bridge pallets compilation after substrate+polkadot bump
acatangiu Mar 23, 2023
fa78c96
BridgeHubs: XCM ExportMessage benchmark - just Rococo now
acatangiu Mar 20, 2023
b99b103
bench export_message()
acatangiu Mar 21, 2023
5b5ac53
include Bridge::haul_blob() weight in ExportMessage weight
acatangiu Mar 22, 2023
44e9280
fix import
acatangiu Mar 22, 2023
c876914
more build fixes
acatangiu Mar 23, 2023
e2f4041
Merge remote-tracking branch 'origin/master' into bridge-hub-rococo-w…
bkontur Mar 24, 2023
b120660
Squashed 'bridges/' changes from ce7cf9a49..6343a7d37
bkontur Mar 24, 2023
ad69246
Merge commit 'b120660a689acb25af0cd701322e172d01b5f215' into bridge-h…
bkontur Mar 24, 2023
5b61c2d
dispatch message weight for bridge messages (#2378)
bkontur Mar 24, 2023
b0ac4fe
Fixes
bkontur Mar 24, 2023
1c733cf
Squashed 'bridges/' changes from 6343a7d37..c1d5990e8
bkontur Mar 24, 2023
656cd1a
Merge commit '1c733cfda8ceab052ad6e9e7edb0a5c4d29aab66' into bridge-h…
bkontur Mar 24, 2023
6283a06
Removed imports
bkontur Mar 24, 2023
0cdf9af
Fix compile
bkontur Mar 24, 2023
ff63023
fixed benchmarks compilation
svyatonik Mar 27, 2023
8c48e4d
fix rustdoc
svyatonik Mar 27, 2023
3084c90
Merge remote-tracking branch 'origin/master' into bridge-hub-rococo-w…
Mar 27, 2023
245daaf
Squashed 'bridges/' changes from c1d5990e8..ecddd4a31
bkontur Mar 27, 2023
01304fd
Cargo.lock
bkontur Mar 27, 2023
a4188ea
Merge remote-tracking branch 'origin/master' into bridge-hub-rococo-w…
Mar 31, 2023
2b4467c
Updated scripts for transfer assets
bkontur Mar 27, 2023
d8d5781
Merge branch 'master' into bridge-hub-rococo-wococo
bkontur Apr 5, 2023
25b7b44
Cargo.lock
bkontur Apr 5, 2023
dcedafb
Script updates for `ping-via-bridge-from-statemine-rococo`
bkontur Apr 11, 2023
a9a6c30
Added `transfer-asset-from-statemine-rococo`
bkontur Apr 12, 2023
8252d87
Finished scripts
bkontur Apr 12, 2023
c70f503
README.md
bkontur Apr 12, 2023
977587b
Merge remote-tracking branch 'origin/master' into bridge-hub-rococo-w…
Apr 13, 2023
f776496
Merge remote-tracking branch 'origin/master' into bridge-hub-rococo-w…
bkontur Apr 14, 2023
6a12724
Compile fix + log xcm trace all
bkontur Apr 14, 2023
795fe4e
Initial version of bridges pallet as subtree of https://github.com/pa…
bkontur Apr 14, 2023
f891b32
Merge remote-tracking branch 'origin/master' into bridge-hub-rococo-w…
bkontur Apr 17, 2023
3a8b6ea
Squashed 'bridges/' changes from ecddd4a31..d30927c08
bkontur Apr 17, 2023
4156016
Merge commit '3a8b6ea5290368cb0dbf39e76555d15d380fc194' into bridge-h…
bkontur Apr 17, 2023
20f7a55
Fixes
bkontur Apr 17, 2023
a9e2773
Squashed 'bridges/' content from commit d30927c08
bkontur Apr 17, 2023
71a1d47
Merge commit 'a9e27730296e3269b82cd315aed9d635610f076c' as 'bridges'
bkontur Apr 17, 2023
8f67dc5
Merge branch 'bridge-hub-subtree' into bridge-hub-rococo-wococo
bkontur Apr 17, 2023
1e489dd
Updated REAMDE.md and BRIDGES.md (inspired by original https://github…
bkontur Apr 17, 2023
0670d9f
Squashed 'bridges/' changes from d30927c08..d3970944b
bkontur Apr 17, 2023
71aad1e
Merge commit '0670d9fa5ae67f6f01028440318a723d1b330720' into bridge-h…
bkontur Apr 17, 2023
5b20c4e
Merge branch 'bridge-hub-subtree' into bridge-hub-rococo-wococo
bkontur Apr 17, 2023
f2277b6
Squashed 'bridges/' changes from d3970944b..2180797fb
bkontur Apr 18, 2023
873f5cc
Merge commit 'f2277b6f81208bd38a15cb74ebd535c4cd851b32' into bridge-h…
bkontur Apr 18, 2023
8f2b30d
Merge remote-tracking branch 'origin/master' into bridge-hub-subtree
bkontur Apr 18, 2023
6ffe4f3
Merge remote-tracking branch 'origin/bridge-hub-subtree' into bridge-…
bkontur Apr 18, 2023
ad6bfdf
Merge remote-tracking branch 'origin/master' into bridge-hub-subtree
bkontur Apr 27, 2023
20647a6
Reused `teleports_for_native_asset_works` test to all bridge-hub runtime
bkontur Apr 13, 2023
c7e5556
Added test case `initialize_bridge_by_governance_works`
bkontur Apr 20, 2023
1dba38d
Added test case `handle_export_message_from_system_parachain_to_outbo…
bkontur Apr 24, 2023
e6fedb9
Added test-case `message_dispatch_routing_works`
bkontur Apr 27, 2023
9c5701c
Squashed 'bridges/' changes from 2180797fbf..4850aac8ce
bkontur Apr 27, 2023
a6bf890
Merge commit '9c5701c8ccafd307cae9abff43e8a3f86e855f47' into bridge-h…
bkontur Apr 27, 2023
1f3d70e
Merge remote-tracking branch 'origin/bridge-hub-subtree' into bridge-…
bkontur Apr 27, 2023
a7b7f39
Fmt
bkontur Apr 27, 2023
6c29018
Merge commit 'fd69d9414cdc2586be3e26d7599dc50b587c7428' into bridge-h…
bkontur Apr 27, 2023
fd69d94
Squashed 'bridges/' changes from 4850aac8ce..66aaf0dd23
bkontur Apr 27, 2023
3d2a818
Merge remote-tracking branch 'origin/bridge-hub-subtree' into bridge-…
bkontur Apr 27, 2023
4f7c913
Merge remote-tracking branch 'origin/master' into bridge-hub-subtree
Apr 27, 2023
4e100ec
Merge remote-tracking branch 'origin/bridge-hub-subtree' into bridge-…
bkontur Apr 27, 2023
6c5bec5
Cleaning
bkontur Apr 27, 2023
70b426b
bridge-hub-rococo: minor fixes
acatangiu May 2, 2023
17fc1c1
Merge remote-tracking branch 'origin/master' into bridge-hub-subtree
bkontur May 3, 2023
8b62a00
Squashed 'bridges/' changes from 66aaf0dd23..557ecbcecc
bkontur May 3, 2023
00e45c5
Merge commit '8b62a005717fbe976832504b1f0c39eee19ac0a6' into bridge-h…
bkontur May 3, 2023
b93712d
fmt
bkontur May 3, 2023
ca6e8ac
Merge remote-tracking branch 'origin/bridge-hub-subtree' into bridge-…
bkontur May 3, 2023
8afd1fb
Fix compile
bkontur May 3, 2023
6612cae
Fix benchmark
bkontur May 3, 2023
e6497d4
Merge remote-tracking branch 'origin/master' into bridge-hub-subtree
bkontur May 3, 2023
65ee2dc
Squashed 'bridges/' changes from 557ecbcecc..04b3dda6aa
bkontur May 3, 2023
6dd9e36
Merge commit '65ee2dc77f5c0832f48b5331371483ff5c3c2574' into bridge-h…
bkontur May 3, 2023
6f7e193
Merge remote-tracking branch 'origin/bridge-hub-subtree' into bridge-…
bkontur May 3, 2023
a93f995
Fix
bkontur May 3, 2023
1a986c5
".git/.scripts/commands/fmt/fmt.sh"
May 3, 2023
499d9a2
Merge remote-tracking branch 'origin/bridge-hub-subtree' into bridge-…
May 3, 2023
e6b02ea
".git/.scripts/commands/bench/bench.sh" pallet bridge-hub-rococo brid…
May 3, 2023
22d1f8e
".git/.scripts/commands/bench/bench.sh" pallet bridge-hub-rococo brid…
May 3, 2023
68cd27a
".git/.scripts/commands/bench/bench.sh" pallet bridge-hub-rococo brid…
May 3, 2023
0f20894
".git/.scripts/commands/bench/bench.sh" pallet bridge-hub-rococo brid…
May 3, 2023
5367ae3
Merge remote-tracking branch 'origin/master' into bridge-hub-rococo-w…
bkontur May 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
118 changes: 115 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions pallets/parachain-system/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1042,6 +1042,30 @@ impl<T: Config> Pallet<T> {
pub fn set_custom_validation_head_data(head_data: Vec<u8>) {
CustomValidationHeadData::<T>::put(head_data);
}

/// Open HRMP channel for using it in benchmarks.
///
/// The caller assumes that the pallet will accept regular outbound message to the sibling
/// `target_parachain` after this call. No other assumptions are made.
#[cfg(feature = "runtime-benchmarks")]
pub fn open_outbound_hrmp_channel_for_benchmarks(target_parachain: ParaId) {
RelevantMessagingState::<T>::put(MessagingStateSnapshot {
dmq_mqc_head: Default::default(),
relay_dispatch_queue_size: Default::default(),
ingress_channels: Default::default(),
egress_channels: vec![(
target_parachain,
cumulus_primitives_core::AbridgedHrmpChannel {
max_capacity: 10,
max_total_size: 10_000_000_u32,
max_message_size: 10_000_000_u32,
msg_count: 5,
total_size: 5_000_000_u32,
mqc_head: None,
},
)],
})
}
}

pub struct ParachainSetCode<T>(sp_std::marker::PhantomData<T>);
Expand Down
2 changes: 1 addition & 1 deletion parachains/chain-specs/bridge-hub-rococo.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@
"childrenDefault": {}
}
}
}
}
2 changes: 1 addition & 1 deletion parachains/chain-specs/bridge-hub-wococo.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@
"childrenDefault": {}
}
}
}
}
2 changes: 2 additions & 0 deletions parachains/runtimes/assets/test-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ sp-core = { git = "https://github.com/paritytech/substrate", default-features =
# Cumulus
cumulus-pallet-parachain-system = { path = "../../../../pallets/parachain-system", default-features = false }
cumulus-pallet-xcmp-queue = { path = "../../../../pallets/xcmp-queue", default-features = false }
cumulus-pallet-dmp-queue = { path = "../../../../pallets/dmp-queue", default-features = false }
pallet-collator-selection = { path = "../../../../pallets/collator-selection", default-features = false }
parachains-common = { path = "../../../common", default-features = false }
assets-common = { path = "../common", default-features = false }
Expand Down Expand Up @@ -69,4 +70,5 @@ std = [
"xcm-executor/std",
"pallet-xcm/std",
"cumulus-pallet-xcmp-queue/std",
"cumulus-pallet-dmp-queue/std",
]
27 changes: 26 additions & 1 deletion parachains/runtimes/assets/test-utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use sp_core::Encode;
use sp_runtime::{Digest, DigestItem};
use xcm::{
latest::{MultiAsset, MultiLocation, XcmContext, XcmHash},
prelude::{Concrete, Fungible, Outcome, XcmError, XcmVersion},
prelude::*,
};
use xcm_executor::{traits::TransactAsset, Assets};

Expand Down Expand Up @@ -252,6 +252,31 @@ impl<Runtime: pallet_xcm::Config + cumulus_pallet_parachain_system::Config> Runt
}
}

impl<Runtime: cumulus_pallet_dmp_queue::Config + cumulus_pallet_parachain_system::Config>
RuntimeHelper<Runtime>
{
pub fn execute_as_governance(call: Vec<u8>, require_weight_at_most: Weight) -> Outcome {
// prepare xcm as governance will do
let xcm = Xcm(vec![
UnpaidExecution { weight_limit: Unlimited, check_origin: None },
Transact {
origin_kind: OriginKind::Superuser,
require_weight_at_most,
call: call.into(),
},
]);

// execute xcm as parent origin
let hash = xcm.using_encoded(sp_io::hashing::blake2_256);
<<Runtime as cumulus_pallet_dmp_queue::Config>::XcmExecutor>::execute_xcm(
MultiLocation::parent(),
xcm,
hash,
Self::xcm_max_weight(XcmReceivedFrom::Parent),
)
}
}

pub enum XcmReceivedFrom {
Parent,
Sibling,
Expand Down
6 changes: 3 additions & 3 deletions parachains/runtimes/assets/test-utils/src/test_cases.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ pub fn create_and_manage_foreign_assets_for_local_consensus_parachain_assets_wor
additional_checks_before();

// execute XCM with Transacts to create/manage foreign assets by foreign governance
// prepapre data for xcm::Transact(create)
// prepare data for xcm::Transact(create)
let foreign_asset_create = runtime_call_encode(pallet_assets::Call::<
Runtime,
ForeignAssetsPalletInstance,
Expand All @@ -1106,7 +1106,7 @@ pub fn create_and_manage_foreign_assets_for_local_consensus_parachain_assets_wor
admin: foreign_creator_as_account_id.clone().into(),
min_balance: 1.into(),
});
// prepapre data for xcm::Transact(set_metadata)
// prepare data for xcm::Transact(set_metadata)
let foreign_asset_set_metadata = runtime_call_encode(pallet_assets::Call::<
Runtime,
ForeignAssetsPalletInstance,
Expand All @@ -1116,7 +1116,7 @@ pub fn create_and_manage_foreign_assets_for_local_consensus_parachain_assets_wor
symbol: Vec::from(ASSET_SYMBOL),
decimals: 12,
});
// prepapre data for xcm::Transact(set_team - change just freezer to Bob)
// prepare data for xcm::Transact(set_team - change just freezer to Bob)
let foreign_asset_set_team = runtime_call_encode(pallet_assets::Call::<
Runtime,
ForeignAssetsPalletInstance,
Expand Down
Loading