Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sunset polkadot-launch with zombienet #30

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
35 changes: 35 additions & 0 deletions .github/resources/dolphin.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[settings]
timeout = 300

[relaychain]
default_command = "{{PolkadotBinary}}"
chain = "rococo-local"

[[relaychain.nodes]]
name = "alice"
validator = true

[[relaychain.nodes]]
name = "bob"
validator = true

[[parachains]]
id = 2084
chain = "{{MantaPay_V1}}"
cumulus_based = true
add_to_genesis = true
default_args = [
"--unsafe-ws-external",
"--unsafe-rpc-external",
"--rpc-cors=all",
"--rpc-methods=unsafe",
"--",
"--execution=wasm"
]

[parachains.collator]
name = "dolphin"
validator = true
command = "{{MantaBinary}}"
ws_port = 9800
rcp_port = 9967
26 changes: 9 additions & 17 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: borales/actions-yarn@v3.0.0
- uses: actions/checkout@v2
with:
repository: paritytech/polkadot-launch
path: polkadot-launch
- name: Get zombienet
run: |
curl -L -o ${{ github.workspace }}/.github/resources/zombienet-linux https://github.com/paritytech/zombienet/releases/download/v1.3.18/zombienet-linux
chmod +x ${{ github.workspace }}/.github/resources/zombienet-linux
- name: Install pm2
run: npm install -g pm2
- name: Get polkadot
Expand All @@ -33,20 +33,12 @@ jobs:
chmod +x ${{ github.workspace }}/.github/resources/manta
- name: Start Relaychain Network with Dolphin
run: |
cd ${{ github.workspace }}/polkadot-launch
curl -L -o ${{ github.workspace }}/.github/resources/mantapay-v0.json https://manta-ops.s3.amazonaws.com/v3.4.3-bfa08d6/fork.json
cat ${{ github.workspace }}/.github/resources/dolphin.json | \
jq \
--arg relaychain_bin ${{ github.workspace }}/.github/resources/polkadot \
--arg parachains_bin ${{ github.workspace }}/.github/resources/manta \
--arg parachains_chain ${{ github.workspace }}/.github/resources/mantapay-v0.json \
'.relaychain.bin = $relaychain_bin
| .parachains[0].bin = $parachains_bin
| .parachains[0].chain = $parachains_chain
' > ${{ github.workspace }}/.github/resources/dolphin-ci.json
yarn
yarn build
pm2 start dist/cli.js --name polkadot-launch -- ${{ github.workspace }}/.github/resources/dolphin-ci.json
export MantaPay_V1=${{ github.workspace }}/.github/resources/mantapay-v0.json
export PolkadotBinary=${{ github.workspace }}/.github/resources/polkadot
export MantaBinary=${{ github.workspace }}/.github/resources/manta
pm2 start --name ${{ github.workspace }}/.github/resources/zombienet-linux \
spawn --provider native ${{ github.workspace }}/.github/resources/dolphin.toml
- name: Build and Start Indexer
run: |
cd ${{ github.workspace }}
Expand Down