Skip to content

Commit

Permalink
chore: starship js merge into monorepo (#434)
Browse files Browse the repository at this point in the history
* 🚀

* workflow

* proxy

* port forward

* snaps and logs

* client

* simpler names

* cleanup and docs

* chore(release): publish

 - @starship-ci/[email protected]
 - [email protected]

* readme

* chore(release): publish

 - @starship-ci/[email protected]
 - [email protected]

* ensure config exists

* chore(release): publish

 - @starship-ci/[email protected]

* readme

* readme

* chore(release): publish

 - @starship-ci/[email protected]
 - [email protected]

* workflow

* link

* remove `yq` as a dependency

* chore(release): publish

 - @starship-ci/[email protected]
 - [email protected]

* repo

* chore(release): publish

 - @starship-ci/[email protected]
 - [email protected]

* readme

* chore(release): publish

 - @starship-ci/[email protected]
 - [email protected]

* readme

* deps

* readme

* deps

* test

* CLI

* README

* readme

* main readme

* readme

* readme

* chore(release): publish

 - @starship-ci/[email protected]
 - @starship-ci/[email protected]
 - [email protected]

* readme

* deps

* chore(release): publish

 - @starship-ci/[email protected]

* remove stub

* chore(release): publish

 - @starship-ci/[email protected]

* ports

* chore(release): publish

 - @starship-ci/[email protected]
 - @starship-ci/[email protected]

* add installer

* pids

* chore(release): publish

 - @starship-ci/[email protected]
 - @starship-ci/[email protected]

* starshipjs

* chore(release): publish

 - [email protected]

* readme

* readme

* recommended usage

* chore(release): publish

 - @starship-ci/[email protected]
 - @starship-ci/[email protected]
 - [email protected]

* readme

* chore(release): publish

 - @starship-ci/[email protected]
 - @starship-ci/[email protected]
 - [email protected]

* readme

* chore(release): publish

 - @starship-ci/[email protected]

* config

* chore(release): publish

 - [email protected]

* cmds

* chore(release): publish

 - @starship-ci/[email protected]
 - @starship-ci/[email protected]

* tty

* chore(release): publish

 - @starship-ci/[email protected]

* readme

* chore(release): publish

 - @starship-ci/[email protected]

* readme

* chore(release): publish

 - [email protected]

* readme

* chore(release): publish

 - @starship-ci/[email protected]
 - @starship-ci/[email protected]

* readme

* readme

* snaps

* readme

* chore(release): publish

 - @starship-ci/[email protected]
 - @starship-ci/[email protected]
 - [email protected]

* readme

* chore(release): publish

 - @starship-ci/[email protected]
 - @starship-ci/[email protected]

* proxy

* readme

* chore(release): publish

 - @starship-ci/[email protected]
 - @starship-ci/[email protected]
 - [email protected]

* prepare for monorepo merge

* rename root folder to match monorepo

* change dir for running starshipjs tests

* rename run-tests workflows for js clients

* set working dir in ci workflow

* use defaults, update symlink workspace

* inquirerer

* chore(release): publish

 - @starship-ci/[email protected]
 - @starship-ci/[email protected]

* prepare for monorepo merge

* rename root folder to match monorepo

* rename clients/js/starshipjs to clients/js

* update urls to use starship instead of starshipjs repo

---------

Co-authored-by: Dan Lynch <[email protected]>
  • Loading branch information
Anmol1696 and pyramation authored May 2, 2024
1 parent 1de8c0f commit fffb0c3
Show file tree
Hide file tree
Showing 119 changed files with 20,346 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/run-client-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Run Client Tests

on:
push:
branches:
- main
- release/*
pull_request:
types: [opened, reopened]

workflow_dispatch:

jobs:
starshipjs-tests:
runs-on: ubuntu-latest

defaults:
run:
working-directory: clients/js

steps:
- name: Checkout Repository 🛎️
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'

- name: Install Dependencies
run: yarn install

- name: Build Project
run: yarn build

- name: Test @starship-ci/client
run: cd ci/client && yarn test

# - name: Test starshipjs
# run: cd js/starshipjs && yarn test

39 changes: 39 additions & 0 deletions clients/js/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"env": {
"browser": true,
"es2021": true,
"node": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"overrides": [],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "simple-import-sort", "unused-imports"],
"rules": {
"simple-import-sort/imports": 1,
"simple-import-sort/exports": 1,
"unused-imports/no-unused-imports": 1,
"@typescript-eslint/no-unused-vars": [
1,
{
"argsIgnorePattern": "React|res|next|^_"
}
],
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-var-requires": 0,
"no-console": 0,
"@typescript-eslint/ban-ts-comment": 0,
"prefer-const": 0,
"no-case-declarations": 0,
"no-implicit-globals": 0,
"@typescript-eslint/no-unsafe-declaration-merging": 0
}
}
43 changes: 43 additions & 0 deletions clients/js/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# General files for the project
pkg/*
*.pyc
bin/*
**bin/
.project
/.bin
/_test/secrets/*.json
build/

# OSX leaves these everywhere on SMB shares
._*

# OSX trash
.DS_Store

# Files generated by JetBrains IDEs, e.g. IntelliJ IDEA
.idea/
*.iml
.ijwb/

# Vscode files
.vscode

# Emacs save files
*~
\#*\#
.\#*

# Vim-related files
[._]*.s[a-w][a-z]
[._]s[a-w][a-z]
*.un~
Session.vim
.netrwhist

# Chart dependencies
**/charts/*.tgz

.history

# Ignore docs site created
**/site/
6 changes: 6 additions & 0 deletions clients/js/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": false
}
21 changes: 21 additions & 0 deletions clients/js/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Anmol

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
67 changes: 67 additions & 0 deletions clients/js/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Starship

<p align="center" width="100%">
<img height="148" src="https://user-images.githubusercontent.com/10805402/242348990-c141d6cd-e1c9-413f-af68-283de029c3a4.png" />
</p>

<p align="center" width="100%">
<a href="https://github.com/cosmology-tech/starship/actions/workflows/run-client-tests.yml">
<img height="20" src="https://github.com/cosmology-tech/starship/actions/workflows/run-client-tests.yml/badge.svg" />
</a><a href="https://github.com/cosmology-tech/starship/blob/main/LICENSE"><img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"></a>
</p>

Universal interchain development environment in k8s. The vision of this project
is to have a single easy to use developer environment with full testing support
for multichain use cases

## Installation
In order to get started with starship, one needs to install the following
* `kubectl`: https://kubernetes.io/docs/tasks/tools/
* `kind`: https://kind.sigs.k8s.io/docs/user/quick-start/#installation
* `helm`: https://helm.sh/docs/intro/install/
* `jq`: https://stedolan.github.io/jq/download/
* `yq`: https://github.com/mikefarah/yq/#install

## Getting started
Follow the steps here: https://docs.cosmology.zone/starship

## Using helm chart
In order to use the helm chart externally without this repo.
```bash
helm repo add starship https://cosmology-tech.github.io/starship
helm repo update

helm search repo starship/devnet
```
Fetch the values.yaml file and update them before installing the chart
```bash
helm show values starship/devnet > custom-values.yaml
# change custom-values.yaml file

helm install -f custom-values.yaml starship/devnet --generate-name
```

**NOTE: It is recommended to still copy the Makefile from the repo to use the handy commands**

## Related

Checkout these related projects:

* [@cosmology/telescope](https://github.com/cosmology-tech/telescope) Your Frontend Companion for Building with TypeScript with Cosmos SDK Modules.
* [@cosmwasm/ts-codegen](https://github.com/CosmWasm/ts-codegen) Convert your CosmWasm smart contracts into dev-friendly TypeScript classes.
* [chain-registry](https://github.com/cosmology-tech/chain-registry) Everything from token symbols, logos, and IBC denominations for all assets you want to support in your application.
* [cosmos-kit](https://github.com/cosmology-tech/cosmos-kit) Experience the convenience of connecting with a variety of web3 wallets through a single, streamlined interface.
* [create-cosmos-app](https://github.com/cosmology-tech/create-cosmos-app) Set up a modern Cosmos app by running one command.
* [interchain-ui](https://github.com/cosmology-tech/interchain-ui) The Interchain Design System, empowering developers with a flexible, easy-to-use UI kit.
* [starship](https://github.com/cosmology-tech/starship) Unified Testing and Development for the Interchain.

## Credits

🛠 Built by Cosmology — if you like our tools, please consider delegating to [our validator ⚛️](https://cosmology.zone/validator)


## Disclaimer

AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED “AS IS”, AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.

No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value.
36 changes: 36 additions & 0 deletions clients/js/__fixtures__/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
chains:
- name: osmosis-1
type: osmosis
image: pyramation/osmosis:v16.1.0
numValidators: 1
ports:
rest: 1317
rpc: 26657
faucet: 8007

- name: cosmos-2
type: cosmos
numValidators: 1
ports:
rest: 1313
rpc: 26653
faucet: 8003

relayers:
- name: osmos-cosmos
type: hermes
replicas: 1
chains:
- osmosis-1
- cosmos-2

# explorer:
# enabled: true
# ports:
# rest: 8080

registry:
enabled: true
ports:
rest: 8081
grpc: 9091
52 changes: 52 additions & 0 deletions clients/js/__fixtures__/local-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
chains:
- name: osmosis-1
type: osmosis
image: pyramation/osmosis:v16.1.0
numValidators: 1
ports:
rest: 1317
rpc: 26657
faucet: 8007
resources:
cpu: "0.2"
memory: "200M"
- name: cosmos-2
type: cosmos
numValidators: 1
ports:
rest: 1313
rpc: 26653
faucet: 8003
resources:
cpu: "0.2"
memory: "200M"

relayers:
- name: osmos-cosmos
type: hermes
replicas: 1
chains:
- osmosis-1
- cosmos-2
resources:
cpu: "0.1"
memory: "100M"

registry:
enabled: true
ports:
rest: 8081
grpc: 9091
resources:
cpu: "0.1"
memory: "100M"

exposer:
resources:
cpu: "0.1"
memory: "100M"

faucet:
resources:
cpu: "0.1"
memory: "100M"
5 changes: 5 additions & 0 deletions clients/js/__fixtures__/starship-context-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
helmFile: ./config.yaml
helmRepo: starship
helmRepoUrl: https://cosmology-tech.github.io/starship/
helmChart: devnet
helmVersion: v0.1.38
16 changes: 16 additions & 0 deletions clients/js/__output__/custom-pod-ports.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
explorer:
rest: 8080
registry:
grpc: 9090
rest: 8080
chains:
defaultPorts:
rpc: 26657
rest: 1317
exposer: 8081
faucet: 8000
osmosis:
exposer: 98988
faucet: 1000000
grpc: 909090
rest: 6767676
11 changes: 11 additions & 0 deletions clients/js/__output__/default-pod-ports.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
explorer:
rest: 8080
registry:
grpc: 9090
rest: 8080
chains:
defaultPorts:
rpc: 26657
rest: 1317
exposer: 8081
faucet: 8000
Loading

0 comments on commit fffb0c3

Please sign in to comment.