Skip to content

Commit

Permalink
fix polkadex for xcm
Browse files Browse the repository at this point in the history
  • Loading branch information
BuddyGlas committed Jun 25, 2024
1 parent 7092505 commit 9ea8cb1
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
19 changes: 18 additions & 1 deletion .baedeker/xcm-unique.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,23 @@ local astar = {
},
};

local polkadex = {
name: 'polkadex',
bin: 'bin/polkadex',
paraId: 1006,
spec: {Genesis:{
chain: 'mainnet',
modify:: m.genericPara($),
}},
nodes: {
[name]: {
bin: $.bin,
wantedKeys: 'para',
},
for name in ['alice', 'bob']
},
};

local hydraDx = {
name: 'hydraDx',
bin: 'bin/hydradx',
Expand All @@ -141,6 +158,6 @@ local hydraDx = {
relay + {
parachains: {
[para.name]: para,
for para in [unique, acala, moonbeam, statemint, astar, hydraDx]
for para in [unique, acala, moonbeam, statemint, astar, polkadex, hydraDx]
},
}
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ACALA_BUILD_BRANCH=2.25.0
MOONBEAM_BUILD_BRANCH=runtime-2901
ASTAR_BUILD_BRANCH=v5.39.1
HYDRADX_BUILD_BRANCH=v27.0.0
#POLKADEX_BUILD_BRANCH=v1.1.0 #repository in archive and switched to cumulus
POLKADEX_BUILD_BRANCH=v6.0.0
UNIQUE_MAINNET_BRANCH=release-v10030070
UNIQUE_REPLICA_FROM=wss://ws.unique.network:443

Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/xcm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,17 @@ jobs:
password: ${{ secrets.CORE_DOCKERHUB_TOKEN }}
tag: ${{ matrix.astar_version }}

- name: Check and pull POLKADEX image
id: polkadex
uses: cloudposse/github-action-docker-image-exists@main
with:
registry: registry.hub.docker.com
organization: polkadex
repository: mainnet
login: ${{ secrets.CORE_DOCKERHUB_USERNAME }}
password: ${{ secrets.CORE_DOCKERHUB_TOKEN }}
tag: ${{ matrix.polkadex_version }}

- name: Prepare Hydradx
uses: ./.github/actions/buildContainer
id: hydradx
Expand Down Expand Up @@ -192,6 +203,7 @@ jobs:
snippet:(import 'baedeker-library/ops/rewrites.libsonnet').rewriteNodePaths({'bin/moonbeam':{dockerImage:'${{ steps.moonbeam.outputs.image }}:${{ steps.moonbeam.outputs.tag }}'}})
snippet:(import 'baedeker-library/ops/rewrites.libsonnet').rewriteNodePaths({'bin/assethub':{dockerImage:'${{ steps.assethub.outputs.image }}:${{ steps.assethub.outputs.tag }}'}})
snippet:(import 'baedeker-library/ops/rewrites.libsonnet').rewriteNodePaths({'bin/astar':{dockerImage:'${{ steps.astar.outputs.image }}:${{ steps.astar.outputs.tag }}'}})
snippet:(import 'baedeker-library/ops/rewrites.libsonnet').rewriteNodePaths({'bin/polkadex':{dockerImage:'${{ steps.polkadex.outputs.image }}:${{ steps.polkadex.outputs.tag }}'}})
snippet:(import 'baedeker-library/ops/rewrites.libsonnet').rewriteNodePaths({'bin/hydradx':{dockerImage:'${{ steps.latest.outputs.name }}'}})
- name: Upload network config
Expand Down

0 comments on commit 9ea8cb1

Please sign in to comment.