Skip to content

Commit

Permalink
Chore/update scripts (#1941)
Browse files Browse the repository at this point in the history
* bump to version 200

* update config file

* Update Makefile

* Update srtool.yml

* Update Cargo.lock

* add more heiko assetRegistry

* update to xcm-v3 multication

* Revert "Update srtool.yml"

This reverts commit ddf1a41.
  • Loading branch information
mclyk committed Jul 7, 2023
1 parent a07f78d commit 9657827
Show file tree
Hide file tree
Showing 10 changed files with 385 additions and 328 deletions.
647 changes: 337 additions & 310 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ members = ['node/*', 'pallets/*', 'runtime/*', 'support', 'precompiles/*','integ
[workspace.package]
authors = ['Parallel Team']
repository = 'https://github.com/parallel-finance/parallel'
version = '1.9.8'
version = '2.0.0'

[workspace.dependencies]
# Substrate dependencies
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PARA_ID := 2085
CHAIN := vanilla-dev
RELAY_CHAIN := kusama-local
RUNTIME := vanilla-runtime
PARA_ID := 2012
CHAIN := kerria-dev
RELAY_CHAIN := polkadot-local
RUNTIME := kerria-runtime
BLOCK_AT := 0x0000000000000000000000000000000000000000000000000000000000000000
URL := ws://localhost:9948
KEYSTORE_PATH := keystore
Expand Down
6 changes: 3 additions & 3 deletions config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
relaychain:
image: parallelfinance/polkadot:v0.9.42
chain: kusama-local
chain: polkadot-local
env:
RUST_LOG: xcm=trace
flags:
Expand All @@ -16,11 +16,11 @@ relaychain:
parachains:
- image: parallelfinance/parallel:latest
chain:
base: vanilla-dev
base: kerria-dev
collators:
- alice
sudo: dave
id: 2085
id: 2012
parachain: true
flags:
- --rpc-methods=unsafe
Expand Down
2 changes: 1 addition & 1 deletion runtime/heiko/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("heiko"),
impl_name: create_runtime_str!("heiko"),
authoring_version: 1,
spec_version: 198,
spec_version: 200,
impl_version: 33,
apis: RUNTIME_API_VERSIONS,
transaction_version: 17,
Expand Down
2 changes: 1 addition & 1 deletion runtime/kerria/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("kerria"),
impl_name: create_runtime_str!("kerria"),
authoring_version: 1,
spec_version: 198,
spec_version: 200,
impl_version: 33,
apis: RUNTIME_API_VERSIONS,
transaction_version: 17,
Expand Down
2 changes: 1 addition & 1 deletion runtime/parallel/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("parallel"),
impl_name: create_runtime_str!("parallel"),
authoring_version: 1,
spec_version: 198,
spec_version: 200,
impl_version: 33,
apis: RUNTIME_API_VERSIONS,
transaction_version: 17,
Expand Down
2 changes: 1 addition & 1 deletion runtime/vanilla/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("vanilla"),
impl_name: create_runtime_str!("vanilla"),
authoring_version: 1,
spec_version: 198,
spec_version: 200,
impl_version: 33,
apis: RUNTIME_API_VERSIONS,
transaction_version: 17,
Expand Down
36 changes: 33 additions & 3 deletions scripts/helper/src/config/heiko.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"paraDeposit": "0",
"crowdloanDeposit": "500000000000000",
"location": {"parents":0, "interior":{"X1":{"Parachain": 2085}}},
"xcmVersion": "2",
"xcmVersion": "3",
"assets": [
{
"name": "Kusama Unbonding",
Expand Down Expand Up @@ -376,7 +376,7 @@
"assetsRegistry":[
{
"assetId": 0,
"assetType": {"Xcm":{"parents":1, "interior":{"X2":[{"Parachain": 2085},{"GeneralKey": "HKO"}]}}},
"assetType": {"Xcm":{"parents":1, "interior":{"X2":[{"Parachain": 2085},{"GeneralKey": {"length":3,"data":"0x484b4f0000000000000000000000000000000000000000000000000000000000"}}]}}},
"unitsPerSecond":"485908649173955"
},
{
Expand All @@ -391,8 +391,38 @@
},
{
"assetId": 107,
"assetType": {"Xcm":{"parents":1, "interior":{"X2":[{"Parachain": 2000},{"GeneralKey": "0x0080"}]}}},
"assetType": {"Xcm":{"parents":1, "interior":{"X2":[{"Parachain": 2000},{"GeneralKey": {"length":2,"data":"0x0080000000000000000000000000000000000000000000000000000000000000"}}]}}},
"unitsPerSecond":"123456790123456"
},
{
"assetId": 109,
"assetType": {"Xcm":{"parents":1, "interior":{"X2":[{"Parachain": 2000},{"GeneralKey": {"length":2, "data": "0x0083000000000000000000000000000000000000000000000000000000000000"}}]}}},
"unitsPerSecond":"6638783774812"
},
{
"assetId": 113,
"assetType": {"Xcm":{"parents":1, "interior":{"X2":[{"Parachain": 2023},{"PalletInstance": 10}]}}},
"unitsPerSecond":"3159557661927330300"
},
{
"assetId": 115,
"assetType": {"Xcm":{"parents":1, "interior":{"X1":{"Parachain": 2004}}}},
"unitsPerSecond":"418235048097030"
},
{
"assetId": 119,
"assetType": {"Xcm":{"parents":1, "interior":{"X2":[{"Parachain": 2092},{"GeneralKey": {"length":2, "data": "0x000c000000000000000000000000000000000000000000000000000000000000"}}]}}},
"unitsPerSecond":"27724638886578"
},
{
"assetId": 121,
"assetType": {"Xcm":{"parents":1, "interior":{"X2":[{"Parachain": 2092},{"GeneralKey": {"length":2, "data": "0x000b000000000000000000000000000000000000000000000000000000000000"}}]}}},
"unitsPerSecond":"172577"
},
{
"assetId": 1000,
"assetType": {"Xcm":{"parents":1, "interior":{"X3":[{"Parachain": 2085},{"PalletInstance": 6},{"GeneralIndex": 1000}]}}},
"unitsPerSecond":"731957253696"
}
]
}
6 changes: 3 additions & 3 deletions scripts/helper/src/config/parallel.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"paraDeposit": "0",
"crowdloanDeposit": "50000000000000",
"location": {"parents":0, "interior":{"X1":{"Parachain": 2012}}},
"xcmVersion": "2",
"xcmVersion": "3",
"assets": [
{
"name": "Polkadot Unbonding",
Expand Down Expand Up @@ -429,7 +429,7 @@
"assetsRegistry":[
{
"assetId": 1,
"assetType": {"Xcm":{"parents":1, "interior":{"X2":[{"Parachain": 2012},{"GeneralKey": "PARA"}]}}},
"assetType": {"Xcm":{"parents":1, "interior":{"X2":[{"Parachain": 2012},{"GeneralKey": {"length":4,"data":"0x5041524100000000000000000000000000000000000000000000000000000000"}}]}}},
"unitsPerSecond":"1883239171374764"
},
{
Expand All @@ -444,7 +444,7 @@
},
{
"assetId": 108,
"assetType": {"Xcm":{"parents":1, "interior":{"X2":[{"Parachain": 2000},{"GeneralKey": "0x0000"}]}}},
"assetType": {"Xcm":{"parents":1, "interior":{"X2":[{"Parachain": 2000},{"GeneralKey": {"length":2,"data":"0x0000000000000000000000000000000000000000000000000000000000000000"}}]}}},
"unitsPerSecond":"196078431372549"
}
]
Expand Down

0 comments on commit 9657827

Please sign in to comment.