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

examples: upgrade neutron example to latest version #540

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
54 changes: 0 additions & 54 deletions examples/neutron/Makefile

This file was deleted.

8 changes: 1 addition & 7 deletions examples/neutron/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ In this repo we only spin up the infra, so tests can be run against this infra f
In the `examples/neutron` dir, run

```bash
make setup-deps ## Installs dependencies for Starship
yarn
```

### Manul install (alternate)
Expand All @@ -22,12 +22,6 @@ Alternatively to the setup script one can just install the deps directly:

## Connect to a kubernetes cluster
### Spinup local cluster
On Linux:
```bash
make setup-kind
```

On Mac:
Use Docker Desktop to setup kubernetes cluster: https://docs.docker.com/desktop/kubernetes/#turn-on-kubernetes

### Connect to a remote cluster (alternate)
Expand Down
29 changes: 19 additions & 10 deletions examples/neutron/configs/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: neutron-dev
version: 0.2.10

chains:
- id: neutron-1
name: neutron
numValidators: 1
numValidators: 1 # only support for single validator node for ics
faucet:
enabled: false
ics:
enabled: true
provider: cosmoshub-4
ports:
rest: 1313
rpc: 26653
Expand All @@ -15,13 +19,7 @@ chains:
memory: "200M"
- id: cosmoshub-4
name: cosmoshub
numValidators: 1
faucet:
type: cosmjs
concurrency: 2
resources:
cpu: "0.2"
memory: "200M"
numValidators: 1 # only support for single validator node for ics
ports:
rest: 1317
rpc: 26657
Expand All @@ -35,6 +33,19 @@ relayers:
- name: neutron-cosmos
type: hermes
replicas: 1
chains:
- neutron-1
- cosmoshub-4
ics:
enabled: true
consumer: neutron-1
provider: cosmoshub-4
resources:
cpu: "0.2"
memory: "200M"
- name: nqr-neutron-cosmos
type: neutron-query-relayer
replicas: 1
chains:
- neutron-1
- cosmoshub-4
Expand All @@ -46,8 +57,6 @@ registry:
enabled: true
ports:
rest: 8081
grpc: 9091
resources:
cpu: "0.1"
memory: "100M"

25 changes: 22 additions & 3 deletions examples/neutron/configs/devnet.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
name: neutron-dev
version: 0.2.10

chains:
- id: neutron-1
name: neutron
numValidators: 1
numValidators: 1 # only support for single validator node for ics
faucet:
enabled: false
ics:
enabled: true
provider: cosmoshub-4
ports:
rest: 1313
rpc: 26653
exposer: 38083
- id: cosmoshub-4
name: cosmoshub
numValidators: 4
numValidators: 1 # only support for single validator node for ics
ports:
rest: 1317
rpc: 26657
Expand All @@ -24,10 +30,23 @@ relayers:
chains:
- neutron-1
- cosmoshub-4
ics:
enabled: true
consumer: neutron-1
provider: cosmoshub-4
- name: nqr-neutron-cosmos
type: neutron-query-relayer
replicas: 1
chains:
- neutron-1
- cosmoshub-4

registry:
enabled: true
ports:
rest: 8081
grpc: 9091

explorer:
enabled: true
ports:
rest: 8080
20 changes: 16 additions & 4 deletions examples/neutron/configs/local.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
name: neutron-dev
version: 0.2.10

chains:
- id: neutron-1
name: neutron
numValidators: 1
numValidators: 1 # only support for single validator node for ics
faucet:
enabled: false
ics:
enabled: true
provider: cosmoshub-4
ports:
rest: 1313
rpc: 26653
exposer: 38083
- id: cosmoshub-4
name: cosmoshub
numValidators: 1
numValidators: 1 # only support for single validator node for ics
ports:
rest: 1317
rpc: 26657
Expand All @@ -26,10 +30,18 @@ relayers:
chains:
- neutron-1
- cosmoshub-4
ics:
enabled: true
consumer: neutron-1
provider: cosmoshub-4
- name: nqr-neutron-cosmos
type: neutron-query-relayer
replicas: 1
chains:
- neutron-1
- cosmoshub-4

registry:
enabled: true
ports:
rest: 8081
grpc: 9091

10 changes: 10 additions & 0 deletions examples/neutron/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "neutron",
"version": "1.0.0",
"description": "Neutron Starship example and integration",
"main": "index.js",
"license": "MIT",
"dependencies": {
"@starship-ci/cli": "^2.10.0"
}
}
68 changes: 0 additions & 68 deletions examples/neutron/scripts/dev-setup.sh

This file was deleted.

Loading