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

Feat/recoil (WIP) #48

Draft
wants to merge 300 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
300 commits
Select commit Hold shift + click to select a range
0ec6a7a
fix error
yujulchen Aug 30, 2022
57c9dba
change default chain
liujun93 Aug 30, 2022
adfa1c8
remove text
yujulchen Aug 30, 2022
501cb37
Merge pull request #4 from cosmology-tech/template
pyramation Aug 30, 2022
6aa9610
chore(release): publish
pyramation Aug 30, 2022
5a3f75c
cosmoskit
pyramation Aug 30, 2022
b2f724a
cosmoskit
pyramation Aug 30, 2022
585fe3a
fixes
pyramation Aug 30, 2022
4af60c1
updates
pyramation Aug 30, 2022
b43fcba
fix isDisabled hover bg
yujulchen Sep 1, 2022
453a187
update style
yujulchen Sep 2, 2022
f72678f
landing
pyramation Sep 2, 2022
e3a28b1
shallow clone
pyramation Sep 2, 2022
19f9bcb
chore(release): publish
pyramation Sep 2, 2022
611c92e
fix
pyramation Sep 2, 2022
825fdaa
chore(release): publish
pyramation Sep 2, 2022
ba57520
fix
pyramation Sep 2, 2022
dc8ba85
chore(release): publish
pyramation Sep 2, 2022
ec15aa4
fix
pyramation Sep 2, 2022
34a7b3f
chore(release): publish
pyramation Sep 2, 2022
6dc2c3a
readme
pyramation Sep 8, 2022
5b973c1
chore(release): publish
pyramation Sep 8, 2022
7f37f50
readme
pyramation Sep 8, 2022
70a2daa
chore(release): publish
pyramation Sep 8, 2022
f4dd097
telescope
pyramation Sep 11, 2022
479bca6
chore(release): publish
pyramation Sep 11, 2022
6c7fbfb
Merge remote-tracking branch 'origin/main' into template
liujun93 Sep 16, 2022
6de1da6
using new cosmos-kit
liujun93 Sep 17, 2022
c6a05ad
Merge pull request #9 from cosmology-tech/template
liujun93 Sep 20, 2022
fbb02f8
update
liujun93 Sep 22, 2022
c63ac42
Merge pull request #10 from cosmology-tech/template
liujun93 Sep 22, 2022
7970d0e
update
liujun93 Sep 22, 2022
1f16f9d
Merge pull request #11 from cosmology-tech/template
liujun93 Sep 22, 2022
cb97d87
pkg bump
pyramation Sep 22, 2022
8b98728
chore(release): publish
pyramation Sep 22, 2022
047f337
updates
pyramation Sep 22, 2022
ce49e55
chore(release): publish
pyramation Sep 22, 2022
573e0ac
yarn
pyramation Sep 22, 2022
e66ffec
pkg
pyramation Sep 22, 2022
1edb66c
chore(release): publish
pyramation Sep 22, 2022
fdbb854
landing
pyramation Sep 22, 2022
db328c5
chore(release): publish
pyramation Sep 22, 2022
4b28181
upgrades
pyramation Sep 23, 2022
2b58b90
chore(release): publish
pyramation Sep 23, 2022
a1b854c
index
pyramation Sep 23, 2022
8651081
readme
pyramation Sep 23, 2022
8df917d
chore(release): publish
pyramation Sep 23, 2022
e9186db
readme
pyramation Sep 23, 2022
c4a79b2
chore(release): publish
pyramation Sep 23, 2022
37601fd
readme
pyramation Sep 23, 2022
d93e017
readme
pyramation Sep 23, 2022
284ce43
Update README.md
pyramation Sep 23, 2022
fa146ae
main
pyramation Sep 23, 2022
c13b919
readme
pyramation Sep 23, 2022
6d711ac
readme
pyramation Sep 23, 2022
a52c41f
readme
pyramation Sep 24, 2022
8b4215c
readme
pyramation Sep 24, 2022
dd2cbe9
chore(release): publish
pyramation Sep 24, 2022
07bc384
readme
pyramation Sep 24, 2022
fd20d12
send tokens example
pyramation Sep 24, 2022
b12c90d
updates
pyramation Sep 24, 2022
3a57af7
updates
pyramation Sep 25, 2022
e781191
format
pyramation Sep 25, 2022
45a8494
templates
pyramation Sep 25, 2022
201b80a
chore(release): publish
pyramation Sep 25, 2022
01384b0
examples
pyramation Sep 25, 2022
f3512c7
chore(release): publish
pyramation Sep 25, 2022
c257d36
readme
pyramation Sep 25, 2022
8a797d4
chore(release): publish
pyramation Sep 25, 2022
f9d4cbd
readme
pyramation Sep 25, 2022
8bc0834
chore(release): publish
pyramation Sep 25, 2022
a96de60
readme
pyramation Sep 25, 2022
45e9285
chore(release): publish
pyramation Sep 25, 2022
9d37c12
types
pyramation Sep 25, 2022
b3c637c
chore(release): publish
pyramation Sep 25, 2022
0832a55
Create tailwindcss example
josefleventon Sep 27, 2022
8a54696
Merge pull request #12 from josefleventon/main
pyramation Sep 27, 2022
a7e6113
cleanup
pyramation Sep 27, 2022
a89a586
tailwind
pyramation Sep 27, 2022
f0735c7
Merge branch 'add-tailwind'
pyramation Sep 27, 2022
5865d7e
wasm app
pyramation Sep 29, 2022
20aee6c
Merge branch 'wasm-app'
pyramation Sep 30, 2022
3e1777a
chore(release): publish
pyramation Sep 30, 2022
33f7903
apps
pyramation Sep 30, 2022
9e4b506
chore(release): publish
pyramation Sep 30, 2022
d44f590
readme
pyramation Sep 30, 2022
6847a77
pkg
pyramation Sep 30, 2022
b051962
pkg
pyramation Sep 30, 2022
584b5d6
chore(release): publish
pyramation Sep 30, 2022
24d1a18
upgrade
liujun93 Sep 30, 2022
89bdbd5
Merge pull request #14 from cosmology-tech/develop
liujun93 Sep 30, 2022
e2855ea
update templates: eslint + code modification
liujun93 Sep 30, 2022
f37b08e
update examples eslint + code modifications
liujun93 Sep 30, 2022
d252c4e
Merge pull request #15 from cosmology-tech/develop
liujun93 Sep 30, 2022
0a32ff2
lock
pyramation Sep 30, 2022
1361ef1
cosmos-kit suggestChain update
pyramation Sep 30, 2022
91154c2
chore(release): publish
pyramation Sep 30, 2022
d31ae01
osmosis cosmwasm example
pyramation Oct 1, 2022
e7fbc1c
Finished tailwindcss integration
josefleventon Oct 1, 2022
0acfa6e
Completely remove chakra-ui and react-icons in favor of tailwindcss a…
josefleventon Oct 1, 2022
a6ce2a9
Yarnlock upgrade
josefleventon Oct 1, 2022
981b67a
Fix yarn conflict & update _app
josefleventon Oct 1, 2022
d40346c
Revert to using chain-infos
josefleventon Oct 1, 2022
2ed58f0
Fix wallets data
josefleventon Oct 1, 2022
76a98ee
lint
pyramation Oct 1, 2022
d1302ed
gitignore
pyramation Oct 1, 2022
6c0b396
use RPC
pyramation Oct 1, 2022
4228cc7
readme
pyramation Oct 1, 2022
7e0aacd
cli
pyramation Oct 1, 2022
70f49be
chore(release): publish
pyramation Oct 1, 2022
c2321f9
readme
pyramation Oct 1, 2022
d258826
chore(release): publish
pyramation Oct 1, 2022
830784a
assets
pyramation Oct 1, 2022
c6bc1a4
Cleaup and separate
jonator Oct 3, 2022
6907024
Merge pull request #16 from jonator/feat/cleanup-osmowasm
pyramation Oct 3, 2022
a7600df
codegen
pyramation Oct 3, 2022
84a493d
upgrades
pyramation Oct 3, 2022
4e5ab1c
chore(release): publish
pyramation Oct 3, 2022
8a660d2
modify event handler
liujun93 Oct 10, 2022
46011c0
update
liujun93 Oct 11, 2022
75441b6
Merge branch 'main' of github.com:cosmology-tech/create-cosmos-app in…
liujun93 Oct 11, 2022
828a93f
readme
pyramation Oct 12, 2022
dc58552
update target
liujun93 Oct 12, 2022
a5bc6d8
Merge branch 'main' of github.com:cosmology-tech/create-cosmos-app in…
liujun93 Oct 12, 2022
a0ef640
update
liujun93 Oct 13, 2022
9c9913c
Merge pull request #19 from cosmology-tech/develop
liujun93 Oct 13, 2022
93d044c
upgrades
pyramation Oct 13, 2022
0d9f7c2
upgrades
pyramation Oct 15, 2022
cca6065
readme
pyramation Oct 15, 2022
b7add79
chore(release): publish
pyramation Oct 15, 2022
d79ee69
cli
pyramation Oct 15, 2022
8b546d5
chore(release): publish
pyramation Oct 15, 2022
b63498c
cli
pyramation Oct 15, 2022
af0af7f
chore(release): publish
pyramation Oct 15, 2022
dfa18d3
cli
pyramation Oct 15, 2022
f838378
chore(release): publish
pyramation Oct 15, 2022
d67dd89
cli
pyramation Oct 15, 2022
9dd1fd7
chore(release): publish
pyramation Oct 15, 2022
bf5ec00
cli
pyramation Oct 15, 2022
75f09d3
chore(release): publish
pyramation Oct 15, 2022
8d251e9
update
Oct 17, 2022
793a77e
Merge branch 'main' into develop
liujun93 Oct 17, 2022
0ce1b48
Merge pull request #23 from cosmology-tech/develop
liujun93 Oct 17, 2022
6b8d7e9
tailwind and yarn.lock
pyramation Oct 17, 2022
1ea846b
no need to truncate actual address
Oct 18, 2022
8988193
Merge pull request #25 from 0xArbi/fix/tailwind-copy-address
pyramation Oct 18, 2022
ff87ee9
format send tokens style
yujulchen Oct 19, 2022
53cca18
add fetch loading
yujulchen Oct 19, 2022
e0481d0
remove tests
pyramation Oct 20, 2022
76c5fa0
Merge pull request #26 from cosmology-tech/feat/foramt-simple-style
pyramation Oct 20, 2022
2d955b3
upgrades
pyramation Oct 20, 2022
1212330
Merge branch 'feat/upgrades'
pyramation Oct 20, 2022
8582a6d
sendcards
pyramation Oct 21, 2022
eef92e3
defaults
pyramation Oct 24, 2022
c2c6410
readme
pyramation Oct 24, 2022
567bdfd
chore(release): publish
pyramation Oct 24, 2022
21cb628
Update defaults.ts
pyramation Oct 24, 2022
6b6f4e2
add HackCw20 style
yujulchen Oct 24, 2022
2d07579
Merge branch 'main' into feat/foramt-simple-style
yujulchen Oct 24, 2022
e3561d7
Merge pull request #29 from cosmology-tech/feat/foramt-simple-style
pyramation Oct 24, 2022
82eb463
wasm
pyramation Oct 24, 2022
4fc5631
add balance
yujulchen Oct 24, 2022
0fe9f4e
cosmwasm
pyramation Oct 24, 2022
6043335
chore(release): publish
pyramation Oct 24, 2022
6f487b7
cosmwasm
pyramation Oct 24, 2022
815519c
chore(release): publish
pyramation Oct 24, 2022
94cb11c
upgrades
pyramation Oct 26, 2022
143f3cf
chore(release): publish
pyramation Oct 26, 2022
c61f207
readme
pyramation Oct 26, 2022
3af016b
upgrades
pyramation Oct 27, 2022
e52d6e1
chore(release): publish
pyramation Oct 27, 2022
6441a9e
upgrade osmojs
pyramation Oct 27, 2022
84a4d94
upgrade
pyramation Nov 1, 2022
b170476
locks
pyramation Nov 1, 2022
44e6a4a
locks
pyramation Nov 1, 2022
f1ccea3
upgrades
pyramation Nov 1, 2022
da0badc
Merge pull request #31 from cosmology-tech/feat/use-locks
pyramation Nov 1, 2022
399cad6
chore(release): publish
pyramation Nov 1, 2022
c39062e
pkg
pyramation Nov 1, 2022
3457646
chore(release): publish
pyramation Nov 1, 2022
f930640
add locks:remove to workspace
pyramation Nov 2, 2022
eb44ac0
readme
pyramation Nov 2, 2022
a42ecf3
upgrade
liujun93 Nov 4, 2022
d6ff80e
Merge pull request #32 from cosmology-tech/develop
liujun93 Nov 4, 2022
0fd1507
upgrades
pyramation Nov 5, 2022
18439c7
chore(release): publish
pyramation Nov 5, 2022
bc5ce1f
locks
pyramation Nov 5, 2022
a98208f
chore(release): publish
pyramation Nov 5, 2022
1c30c07
upgrades
pyramation Nov 5, 2022
6fabf10
chore(release): publish
pyramation Nov 5, 2022
e571ca4
upgrades
pyramation Nov 8, 2022
43a3ff1
chore(release): publish
pyramation Nov 8, 2022
61a0596
upgrades
pyramation Nov 9, 2022
9816760
chore(release): publish
pyramation Nov 9, 2022
092ef74
modify astronaut and getRpcEndpoint
liujun93 Nov 9, 2022
28a61de
Merge pull request #34 from cosmology-tech/develop
liujun93 Nov 9, 2022
8d62d6b
debug
liujun93 Nov 9, 2022
7ddf487
Merge pull request #35 from cosmology-tech/develop
liujun93 Nov 9, 2022
94b7e25
modify ui
liujun93 Nov 9, 2022
d3b6de2
Merge pull request #36 from cosmology-tech/develop
liujun93 Nov 10, 2022
ccdc51b
upgrades
pyramation Nov 10, 2022
ee4620f
chore(release): publish
pyramation Nov 10, 2022
a088139
fix wrong space issue
yujulchen Nov 10, 2022
8db0b88
Merge pull request #37 from cosmology-tech/feat/new-template
yujulchen Nov 10, 2022
1f9caa2
pkg
pyramation Nov 14, 2022
7d7faa7
chore(release): publish
pyramation Nov 14, 2022
d1c79e7
add cosmostation and leap
pyramation Nov 15, 2022
d72b869
chore(release): publish
pyramation Nov 15, 2022
c82fb08
merge origin
liujun93 Nov 15, 2022
a614d10
Merge branch 'main' of github.com:cosmology-tech/create-cosmos-app in…
liujun93 Nov 15, 2022
5153b55
update version
liujun93 Nov 15, 2022
9c19b77
Merge pull request #39 from cosmology-tech/develop
liujun93 Nov 15, 2022
1692b5f
update client options
pyramation Nov 17, 2022
4ea6e09
Merge pull request #40 from cosmology-tech/fix/client-opts
liujun93 Nov 17, 2022
41a3481
update version
liujun93 Nov 17, 2022
e3ba136
Merge pull request #41 from cosmology-tech/develop
liujun93 Nov 17, 2022
67c6ae2
update address card
liujun93 Nov 17, 2022
2cf4045
Merge branch 'main' of github.com:cosmology-tech/create-cosmos-app in…
liujun93 Nov 17, 2022
33675bf
update address card
liujun93 Nov 17, 2022
ba48412
Merge pull request #42 from cosmology-tech/develop
liujun93 Nov 17, 2022
27dfb0f
updates
pyramation Nov 17, 2022
fadbe39
locks
pyramation Nov 17, 2022
e263225
chore(release): publish
pyramation Nov 17, 2022
6534077
yarn
pyramation Nov 17, 2022
a0f0d52
chore(release): publish
pyramation Nov 17, 2022
49dd100
upgrade telescope example
pyramation Nov 17, 2022
b39f279
remove old codegen
pyramation Nov 17, 2022
3af54f0
codegen
pyramation Nov 17, 2022
ea15be1
pkg
pyramation Nov 18, 2022
078062d
react-query hook
pyramation Nov 18, 2022
a475f57
bundle
pyramation Nov 18, 2022
42f9bcc
add test
pyramation Nov 18, 2022
47242ce
typed
pyramation Nov 18, 2022
4a09086
req
pyramation Nov 18, 2022
bcdfcbe
test
pyramation Nov 18, 2022
f5b9d64
Update react-query example with hook factory
adairrr Nov 18, 2022
95a8161
Merge pull request #44 from adairrr/react-query-example
pyramation Nov 18, 2022
0ab7afc
rpc
pyramation Nov 19, 2022
55ddecd
hooks for hooks
pyramation Nov 19, 2022
aadf8d4
ts
pyramation Nov 19, 2022
a692577
exp
pyramation Nov 19, 2022
b969890
upgrades
pyramation Nov 21, 2022
5cc5405
chore(release): publish
pyramation Nov 21, 2022
58b6901
updates
pyramation Nov 23, 2022
7eb7cbd
react-query
pyramation Nov 24, 2022
993ae43
upgrades
pyramation Nov 25, 2022
1965363
chore(release): publish
pyramation Nov 25, 2022
a592f14
begin recoil (WIP)
pyramation Nov 25, 2022
8999c30
async
pyramation Nov 25, 2022
b5fc420
wip
pyramation Nov 26, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
29 changes: 0 additions & 29 deletions .github/workflows/run-tests.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# .prettierrc or .prettierrc.yaml
singleQuote: true
196 changes: 195 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,195 @@
# create-cosmos-app
# create-cosmos-app

<p align="center" width="100%">
<img height="148" src="https://user-images.githubusercontent.com/545047/186589196-e75c9540-86a7-4a71-8096-207be9a4216f.svg" />
</p>

<p align="center" width="100%">
<a href="https://www.npmjs.com/package/create-cosmos-app"><img height="20" src="https://img.shields.io/npm/dt/create-cosmos-app"></a>
<a href="https://github.com/cosmology-tech/create-cosmos-app/blob/main/LICENSE"><img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"></a>
<a href="https://www.npmjs.com/package/create-cosmos-app"><img height="20" src="https://img.shields.io/github/package-json/v/cosmology-tech/create-cosmos-app?filename=packages%2Fcreate-cosmos-app%2Fpackage.json"></a>
</p>

Set up a modern Cosmos app by running one command ⚛️

## Demo

https://user-images.githubusercontent.com/545047/192061992-f0e1106d-f4b2-4879-ab0a-896f22ee4f49.mp4

## Overview

```
# install
npm install -g create-cosmos-app

# run one command
create-cosmos-app

> name: my-app
cd my-app
yarn && yarn dev

# now your app is running on localhost:3000!
```

### Get Started Immediately

You don’t need to install or configure cosmjs, keplr, nextjs, webpack or Babel.

Everything is preconfigured, ready-to-go, so you can focus on your code!

* ⚡️ Connect easily to keplr + keplr mobile via wallet connect
* ⚛️ Sign and broadcast with [cosmjs](https://github.com/cosmos/cosmjs) stargate + cosmwasm signers
* 🛠 Render pages with [next.js](https://nextjs.org/) hybrid static & server rendering
* 🎨 Build awesome UI with [Cosmos Kit](https://github.com/cosmology-tech/cosmos-kit) and [Chakra UI](https://chakra-ui.com/docs/components)
* 📝 Leverage [chain-registry](https://github.com/cosmology-tech/chain-registry) for Chain and Asset info for all Cosmos chains
## Education & Resources

🎥 [Checkout our videos](https://cosmology.tech/learn) to learn to learn more about `create-cosmos-app` and tooling for building frontends in the Cosmos!

Checkout [cosmos-kit](https://github.com/cosmology-tech/cosmos-kit) for more docs as well as [cosmos-kit/react](https://github.com/cosmology-tech/cosmos-kit/tree/main/packages/react#signing-clients) for getting cosmjs stargate and cosmjs signers.

## Creating an App

To create a new app, you may choose one of the following methods:

### global install

```sh
npm install -g create-cosmos-app
```

Then run the command:

```sh
create-cosmos-app
```

we also made an alias `cca` if you don't want to type `create-cosmos-app`:

```sh
cca
```

### npx

```sh
npx create-cosmos-app
```
### npm

```sh
npm init cosmos-app
```
### Yarn

```sh
yarn create cosmos-app
```
## Examples

Explore examples!

```
cca --example
```

### Send Tokens

<p align="center" width="100%">
<img height="48" src="https://user-images.githubusercontent.com/545047/186589196-e75c9540-86a7-4a71-8096-207be9a4216f.svg" />
</p>

```
cca --name cca-sendtokens --example --template send-tokens
```

### Osmosis

<p align="center" width="100%">
<img height="48" src="https://user-images.githubusercontent.com/545047/184519024-2d34bf20-2440-4837-943f-4915a46409f5.svg" />
</p>

uses [osmojs](https://github.com/osmosis-labs/osmojs)

```
cca --name myosmoapp --example --template osmosis
```

or the cosmwasm example:

```
cca --name osmowasm --example --template osmosis-cosmwasm
```

### Juno

<p align="center" width="100%">
<img height="48" src="https://user-images.githubusercontent.com/545047/184516834-4b8190b0-0721-4778-b4fb-fa19ed3f9279.svg" />
</p>

uses [juno-network](https://github.com/CosmosContracts/typescript)


```
cca --name myjunoapp --example --template juno
```

### Stargaze

<p align="center" width="100%">
<img height="48" src="https://user-images.githubusercontent.com/545047/184694732-f4a3d397-14fb-415a-9562-a532f510f812.png" />
</p>

uses [stargazejs](https://github.com/cosmology-tech/stargazejs)

```
cca --name mystarsapp --example --template stargaze
```

### CosmWasm

<p align="center" width="100%">
<img height="48" src="https://user-images.githubusercontent.com/545047/197502724-4cb0f898-116c-4c14-89c8-3358e89eab70.svg" />
</p>



```
cca --name mywasmapp --example --template cosmwasm
```

### Tailwind

```
cca --name cca-tailwind --example --template tailwindcss
```

## Development

Because the nature of how template boilerplates are generated, we generate `yarn.lock` files inside of nested packages so we can fix versions to avoid non-deterministic installations.

When adding packages, yarn workspaces will use the root `yarn.lock`. It could be ideal to remove it while adding packages, and when publishing or pushing new changes, generating the nested lock files.

In the root, to remove all nested lock files:

```
yarn locks:remove
```

When you need to remove/generate locks for all nested packages, simply run `yarn locks` in the root:

```
yarn locks
```

## Credits

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

Code built with the help of these related projects:

* [@cosmwasm/ts-codegen](https://github.com/CosmWasm/ts-codegen) for generated CosmWasm contract Typescript classes
* [@osmonauts/telescope](https://github.com/osmosis-labs/telescope) a "babel for the Cosmos", Telescope is a TypeScript Transpiler for Cosmos Protobufs.
* [chain-registry](https://github.com/cosmology-tech/chain-registry) Cosmos chain registry and chain info.
* [cosmos-kit](https://github.com/cosmology-tech/cosmos-kit) A wallet connector for the Cosmos.
36 changes: 36 additions & 0 deletions examples/contracts/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
Loading