Skip to content

Commit

Permalink
upgrade starship to v1 and cli
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol1696 committed Jan 30, 2025
1 parent c4fc28c commit c9289ac
Show file tree
Hide file tree
Showing 11 changed files with 119 additions and 353 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run-e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ jobs:
# - Port forward all ports to localhost for next steps to connect
- name: infra
id: starship-action
uses: cosmology-tech/starship-action@0.2.12
uses: cosmology-tech/starship-action@0.5.8
with:
values: packages/starship/configs/local-config.yaml
port-forward: true
version: 0.1.48-rc12
version: 1.0.0
- name: e2e
run: cd ./packages/starship && yarn run e2e:test
2 changes: 1 addition & 1 deletion packages/starship/__tests__/v0/token.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ describe('Token transfers', () => {
chainInfo: cosmosChainInfo,
getStargateClient: cosmosGetStargateClient,
getRpcEndpoint: cosmosRpcEndpoint
} = useChain('cosmos');
} = useChain('cosmoshub');

// Initialize wallet address for cosmos chain
const cosmosWallet = await DirectSecp256k1HdWallet.fromMnemonic(
Expand Down
2 changes: 1 addition & 1 deletion packages/starship/__tests__/v1/authz.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe("Authz testing", () => {

beforeAll(async () => {
({ chainInfo, getCoin, getRpcEndpoint, creditFromFaucet } =
useChain("cosmos"));
useChain("cosmoshub"));
denom = getCoin().base;

// Initialize wallet
Expand Down
2 changes: 1 addition & 1 deletion packages/starship/__tests__/v1/token.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ describe("Token transfers", () => {
chainInfo: cosmosChainInfo,
getStargateClient: cosmosGetStargateClient,
getRpcEndpoint: cosmosRpcEndpoint,
} = useChain("cosmos");
} = useChain("cosmoshub");

// Initialize wallet address for cosmos chain
const cosmosWallet = await DirectSecp256k1HdWallet.fromMnemonic(
Expand Down
13 changes: 9 additions & 4 deletions packages/starship/configs/config.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
name: starship-devnet
version: 1.0.0

chains:
- name: osmosis-1
type: osmosis
- id: osmosis-1
name: osmosis
numValidators: 1
ports:
rest: 1317
rpc: 26657
faucet: 8007
- name: cosmos-2
type: cosmos
- id: cosmos-2
name: cosmoshub
numValidators: 1
faucet:
type: starship
ports:
rest: 1313
rpc: 26653
Expand Down
13 changes: 9 additions & 4 deletions packages/starship/configs/local-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: starship-devnet
version: 1.0.0

chains:
- name: osmosis-1
type: osmosis
- id: osmosis-1
name: osmosis
numValidators: 1
ports:
rest: 1317
Expand All @@ -9,9 +12,11 @@ chains:
resources:
cpu: "0.2"
memory: "200M"
- name: cosmos-2
type: cosmos
- id: cosmos-2
name: cosmoshub
numValidators: 1
faucet:
type: starship
ports:
rest: 1313
rpc: 26653
Expand Down
17 changes: 7 additions & 10 deletions packages/starship/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,10 @@
"lint": "eslint .",
"format": "eslint . --fix",
"clean": "rimraf ./types && rimraf ./src/codegen && rimraf ./src/codegen1",
"e2e": "npm run e2e:test",
"e2e:deps": "make setup",
"e2e:kind": "make setup-kind",
"e2e:start": "make install",
"e2e:port": "make port-forward",
"e2e:test": "jest --testPathPattern=starship/ --verbose",
"e2e:debug": "jest --testPathPattern=starship/ --runInBand --verbose --bail",
"e2e:stop": "make stop",
"e2e:clean": "make stop clean"
"starship": "starship --config configs/config.yaml",
"starship:test": "jest --config ./jest.starship.config.js --verbose --bail",
"starship:debug": "jest --config ./jest.starship.config.js --runInBand --verbose --bail",
"starship:watch": "jest --watch --config ./jest.starship.config.js"
},
"jest": {
"preset": "ts-jest",
Expand Down Expand Up @@ -94,7 +89,9 @@
"sinon": "14.0.2",
"ts-jest": "^29.1.0",
"ts-node": "10.9.1",
"typescript": "^5.0.4"
"typescript": "^5.0.4",
"@starship-ci/cli": "^3.0.0",
"starshipjs": "^3.0.0"
},
"dependencies": {
"@cosmjs/amino": "^0.32.0",
Expand Down
69 changes: 0 additions & 69 deletions packages/starship/scripts/dev-setup.sh

This file was deleted.

125 changes: 0 additions & 125 deletions packages/starship/scripts/install.sh

This file was deleted.

Loading

0 comments on commit c9289ac

Please sign in to comment.