Skip to content

Commit

Permalink
telescope wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Oct 30, 2024
1 parent 124c42f commit c46df44
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
11 changes: 11 additions & 0 deletions simapp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,20 @@ explorer:

.PHONY: generate-webapp
generate-webapp:
ifeq (, $(shell which create-cosmos-app))
# $(error "No create-cosmos-app in $(PATH), consider doing apt-get install lzop")
sudo npm install --global create-cosmos-app
endif
cca --name web -e spawn

.PHONY: generate-typescript
generate-typescript:
ifeq (, $(shell which telescope))
sudo npm install -g @cosmology/telescope
endif
echo "TODO: Run telescope here"


help:
@echo "Usage: make <target>"
@echo ""
Expand Down
25 changes: 25 additions & 0 deletions simapp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,28 @@ Generate the template base with spawn. Requires [npm](https://nodejs.org/en/down
- `make generate-webapp` *[Cosmology Webapp Template](https://github.com/cosmology-tech/create-cosmos-app)*

Start the testnet with `make testnet`, and open the webapp `cd ./web && yarn dev`

## Typescript Client

<https://cosmology.zone/learn/telescope/overview-of-telescope>

```bash

# Install Telescope

telescope generate # the chainname-js
cd chainname-js

telescope install # amino, cosmos, cosmos_proto, gogoproto, google, ibc
# attempt 2: cosmos, cosmos_proto, gogoproto, ibc

cp -r ../proto/* ./proto # I dislike this step, why? Can't I use the parent package for my custom modules, but then relative for the installed ones?

telescope transpile

# install pacakge in
yarn

# publish
npm publish
```

0 comments on commit c46df44

Please sign in to comment.