Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into DIVE-197-Localnet-set…
Browse files Browse the repository at this point in the history
…up-for-Interlay-Polkadot
  • Loading branch information
shanithkk committed Oct 27, 2023
2 parents 9baf9f3 + b974c3e commit 6c20361
Show file tree
Hide file tree
Showing 25 changed files with 599 additions and 137 deletions.
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Bug
about: Describes a bug
title: ''
labels: ''
assignees: ''

---

## Overview
A clear and concise description of what the bug is.

## Steps to Reproduce
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

## Expected Behavior
A clear and concise description of what you expected to happen.

## Screenshots
If applicable, add screenshots to help explain your problem.

## Device Information

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

## Additional Context
Add any other context about the problem here.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: true
27 changes: 27 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## Description:

### Commit Message

```bash
type: commit message
```

see the [guidelines](https://github.com/icon-project/community/blob/main/guidelines/technical/software-development-guidelines.md#commit-messages) for commit messages.

### Changelog Entry

```bash
version: <log entry>
```

## Checklist:

- [ ] I have performed a self-review of my own code
- [ ] I have documented my code in accordance with the [documentation guidelines](https://github.com/icon-project/community/blob/main/guidelines/technical/software-development-guidelines.md#documentation)
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] I have run the unit tests
- [ ] I only have one commit (if not, squash them into one commit).
- [ ] I have a descriptive commit message that adheres to the [commit message guidelines](https://github.com/icon-project/community/blob/main/guidelines/technical/software-development-guidelines.md#commit-messages)

> Please review the [CONTRIBUTING.md](/CONTRIBUTING.md) file for detailed contributing guidelines.
31 changes: 31 additions & 0 deletions .github/release-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: '🚀 Features'
labels:
- 'feature'
- 'enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bugfix'
- 'bug'
- title: '🧰 Maintenance'
label: 'chore'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
major:
labels:
- 'major'
minor:
labels:
- 'minor'
patch:
labels:
- 'patch'
default: patch
template: |
## Changes
$CHANGES
18 changes: 18 additions & 0 deletions .github/workflows/lint-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Lint PR
on:
pull_request_target:
types:
- opened
- edited
- synchronize
jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
validateSingleCommit: true
validateSingleCommitMatchesPrTitle: true
14 changes: 1 addition & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1 @@

## Package

### Usage

- local:

`kurtosis run . '{"name":"local"}' --enclave polkadot`

- single node:
`kurtosis run . '{"name":"westend-dev"}' --enclave polkadot` <- Dev westend node

`kurtosis run . '{"name":"westend"}' --enclave polkadot` <- westend testnet node
# Polkadot Kurtosis Package
13 changes: 6 additions & 7 deletions main.star
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@

polkadot_parachain = import_module("./parachain/polkadot_parachain.star")
parachain = import_module("./parachain/parachain.star")
relay_chain = import_module("./relaychain/relay-chain.star")

def run(plan, args):
plan.upload_files(src = "./parachain/output", name = "output")
if args["chain-type"] == "local":
relay_chain.spawn_multiple_relay(plan,2)
polkadot_parachain.run(plan, args)
plan.upload_files(src = "./parachain/static_files/configs", name = "configs")
if args["chain-type"] == "local":
relay_chain.spawn_multiple_relay(plan, 2)
parachain.run(plan, args)
else:
relay_chain.start_relay_chain(plan, args)
relay_chain.start_relay_chain(plan, args)
19 changes: 19 additions & 0 deletions parachain/acala.star
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
def run_acala(plan):
exec_command = ["--chain=/app/acala-raw.json", "--collator", "--rpc-external", "--rpc-cors=all", "--rpc-methods=unsafe", "--tmp", "--instant-sealing"]

acala_service_config = ServiceConfig(
image = "acala/acala-node:latest",
files = {
"/app": "configs",
},
ports = {
"9944": PortSpec(9944, transport_protocol = "TCP"),
"9933": PortSpec(9933, transport_protocol = "TCP"),
},
public_ports = {
"9944": PortSpec(9432, transport_protocol = "TCP"),
"9933": PortSpec(9431, transport_protocol = "TCP"),
},
cmd = exec_command,
)
plan.add_service(name = "acala-node", config = acala_service_config)
15 changes: 15 additions & 0 deletions parachain/ajuna.star
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
def run_ajuna(plan, args):
exec_command = ["--base-path=/data", "--chain=/app/bajun-raw.json", "--port=40335", "--ws-port=8846", "--unsafe-ws-external", "--rpc-cors=all", "--", "--execution=wasm", "--chain=/app/rococo-local.json", "--port=30345", "--ws-port=9979"]
plan.add_service(
name = "ajun-node",
config = ServiceConfig(
image = "ajuna/parachain-bajun:latest",
files = {
"/app": "output",
},
ports = {
"parachain": PortSpec(8846, transport_protocol = "TCP"),
},
cmd = exec_command,
),
)
15 changes: 15 additions & 0 deletions parachain/bifrost.star
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
def run_bifrost(plan):
exec_command = ["bin/sh", "-c", "/usr/local/bin/bifrost --base-path=/data --chain=/app/bifrost-local-2001.json --ws-external --rpc-external --rpc-cors=all --name=parachain-2001-0 --collator --rpc-methods=unsafe --force-authoring --execution=wasm --alice --node-key=15f888e12fe354ac310399c7126ff43db1a58453784ea1784e26edc0bee3c965 --listen-addr=/ip4/0.0.0.0/tcp/30333 -- --chain=/app/rococo-local.json --execution=wasm"]
plan.add_service(
name = "parachain",
config = ServiceConfig(
image = "bifrostnetwork/bifrost:bifrost-v0.9.66",
files = {
"/app": "configs",
},
ports = {
"parachain": PortSpec(9944, transport_protocol = "TCP"),
},
entrypoint = exec_command,
),
)
28 changes: 28 additions & 0 deletions parachain/centriguge.star
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
def run_centriguge(plan, args):
exec_command = [
"--chain=/app/centrifuge-raw-spec.json",
"--collator",
"--rpc-external",
"--rpc-cors=all",
"--rpc-methods=unsafe",
"--tmp",
"--",
"--chain=/app/rococo-local.json",
"--execution=wasm",
]
centifuge_service_config = ServiceConfig(
image = "centrifugeio/centrifuge-chain:test-main-latest",
files = {
"/app": "output",
},
ports = {
"9944": PortSpec(9944, transport_protocol = "TCP"),
"9933": PortSpec(9933, transport_protocol = "TCP"),
},
public_ports = {
"9944": PortSpec(9432, transport_protocol = "TCP"),
"9933": PortSpec(9431, transport_protocol = "TCP"),
},
cmd = exec_command,
)
plan.add_service(name = "centrifuge-node", config = centifuge_service_config)
15 changes: 15 additions & 0 deletions parachain/frequency.star
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
def run_frequency(plan):
exec_command = ["/bin/bash", "-c", "/frequency/target/release/frequency --chain=frequency-rococo-local --alice --base-path=/data --wasm-execution=compiled --force-authoring --port 30333 --rpc-port 9944 --rpc-external --rpc-cors all --rpc-methods=Unsafe --trie-cache-size 0 -- --wasm-execution=compiled --chain=/app/rococo-local.json"]
plan.add_service(
name = "frequency-node",
config = ServiceConfig(
image = "frequencychain/collator-node-local:latest",
files = {
"/app": "configs",
},
ports = {
"parachain": PortSpec(9944, transport_protocol = "TCP"),
},
entrypoint = exec_command,
),
)
18 changes: 18 additions & 0 deletions parachain/integritee.star
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
def run_integritee(plan, args):
exec_command = ["--chain=/app/integritee-raw-spec.json", "--", "--rpc-external", "--rpc-cors=all", "--rpc-methods=unsafe", "--tmp", "--", "--chain=/app/rococo-local.json", "--execution=wasm"]
integritee_service_config = ServiceConfig(
image = "integritee/parachain",
files = {
"/app": "output",
},
ports = {
"9944": PortSpec(9944, transport_protocol = "TCP"),
"9933": PortSpec(9933, transport_protocol = "TCP"),
},
public_ports = {
"9944": PortSpec(9432, transport_protocol = "TCP"),
"9933": PortSpec(9431, transport_protocol = "TCP"),
},
cmd = exec_command,
)
plan.add_service(name = "intigreeti-node", config = integritee_service_config)
2 changes: 2 additions & 0 deletions parachain/parachain.star
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def run(plan, args):
plan.print("hello")
56 changes: 0 additions & 56 deletions parachain/polkadot_parachain.star

This file was deleted.

File renamed without changes.
75 changes: 75 additions & 0 deletions parachain/static_files/configs/bajun-raw.json

Large diffs are not rendered by default.

File renamed without changes.
Loading

0 comments on commit 6c20361

Please sign in to comment.