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

fix assets #22

Open
wants to merge 191 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
191 commits
Select commit Hold shift + click to select a range
52974b9
Merge pull request #1 from cosmology-tech/template
pyramation Aug 24, 2022
50ac561
remove placeholders
pyramation Aug 24, 2022
338da98
remove lock
pyramation Aug 24, 2022
17288b4
cleanup
pyramation Aug 24, 2022
854dd09
templates
pyramation Aug 24, 2022
79f3d97
landing
pyramation Aug 24, 2022
63813a9
landing
pyramation Aug 24, 2022
d9be7b8
landing
pyramation Aug 24, 2022
16e46a1
landing
pyramation Aug 24, 2022
319eb66
cmd
pyramation Aug 24, 2022
4757048
Merge branch 'main' into template
yujulchen Aug 24, 2022
16a63ba
replace userInfoCard
yujulchen Aug 24, 2022
856c99b
updates
pyramation Aug 24, 2022
e723cd3
chore(release): publish
pyramation Aug 24, 2022
6f1088b
readme
pyramation Aug 24, 2022
d2dfe74
chore(release): publish
pyramation Aug 24, 2022
f6ad6c9
readme
pyramation Aug 24, 2022
c9e6a39
chore(release): publish
pyramation Aug 24, 2022
b7611d2
readme
pyramation Aug 24, 2022
f0b80d6
chore(release): publish
pyramation Aug 24, 2022
596100f
lint
pyramation Aug 25, 2022
0ec9668
examples
pyramation Aug 25, 2022
07a9918
chore(release): publish
pyramation Aug 25, 2022
a2f26d3
ex
pyramation Aug 25, 2022
134389b
chore(release): publish
pyramation Aug 25, 2022
d335675
examples
pyramation Aug 25, 2022
b980ddd
chore(release): publish
pyramation Aug 25, 2022
c5d23a7
examples
pyramation Aug 25, 2022
28d4622
chore(release): publish
pyramation Aug 25, 2022
2175574
protos
pyramation Aug 25, 2022
0c9f5c8
chakra
pyramation Aug 25, 2022
541da38
chore(release): publish
pyramation Aug 25, 2022
c53218a
readme
pyramation Aug 25, 2022
046bff8
chore(release): publish
pyramation Aug 25, 2022
246775d
replace multi style
yujulchen Aug 26, 2022
376388a
remove unused import
yujulchen Aug 26, 2022
882c48d
cli
pyramation Aug 27, 2022
98019df
chore(release): publish
pyramation Aug 27, 2022
7779c1a
links
pyramation Aug 27, 2022
95ad171
chore(release): publish
pyramation Aug 27, 2022
2760645
layout
pyramation Aug 27, 2022
75dcda0
chore(release): publish
pyramation Aug 27, 2022
0ca57fe
simplify
pyramation Aug 27, 2022
1951c16
chore(release): publish
pyramation Aug 27, 2022
deb7d4a
defaults
pyramation Aug 28, 2022
3072cdf
lint
pyramation Aug 28, 2022
4cbd16d
connect-chain add address card
liujun93 Aug 29, 2022
02fd547
delete extra codes
liujun93 Aug 29, 2022
5b3737b
delete extra codes
liujun93 Aug 29, 2022
5641f64
Merge branch 'main' into template
yujulchen Aug 30, 2022
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
7348c35
fix assets
pyramation Oct 17, 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
  •  
  •  
  •  
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
165 changes: 164 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,164 @@
# 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://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 cosmwsam 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
```

### Tailwind

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

## 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
136 changes: 136 additions & 0 deletions examples/contracts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.0.2](https://github.com/cosmology-tech/create-cosmos-app/compare/@cosmonauts/[email protected]...@cosmonauts/[email protected]) (2022-10-15)

**Note:** Version bump only for package @cosmonauts/connect-chain-with-telescope-and-contracts





## [1.0.1](https://github.com/cosmology-tech/create-cosmos-app/compare/@cosmonauts/[email protected]...@cosmonauts/[email protected]) (2022-10-03)

**Note:** Version bump only for package @cosmonauts/connect-chain-with-telescope-and-contracts





# [1.0.0](https://github.com/cosmology-tech/create-cosmos-app/compare/@cosmonauts/[email protected]...@cosmonauts/[email protected]) (2022-10-01)

**Note:** Version bump only for package @cosmonauts/connect-chain-with-telescope-and-contracts





# [0.6.0](https://github.com/cosmology-tech/create-cosmos-app/compare/@cosmonauts/[email protected]...@cosmonauts/[email protected]) (2022-09-30)

**Note:** Version bump only for package @cosmonauts/connect-chain-with-telescope-and-contracts





## [0.5.1](https://github.com/cosmology-tech/create-cosmos-app/compare/@cosmonauts/[email protected]...@cosmonauts/[email protected]) (2022-09-25)

**Note:** Version bump only for package @cosmonauts/connect-chain-with-telescope-and-contracts





# [0.5.0](https://github.com/cosmology-tech/create-cosmos-app/compare/@cosmonauts/[email protected]...@cosmonauts/[email protected]) (2022-09-25)

**Note:** Version bump only for package @cosmonauts/connect-chain-with-telescope-and-contracts





# [0.4.0](https://github.com/cosmology-tech/create-cosmos-app/compare/@cosmonauts/[email protected]...@cosmonauts/[email protected]) (2022-09-23)

**Note:** Version bump only for package @cosmonauts/connect-chain-with-telescope-and-contracts





# [0.3.0](https://github.com/cosmology-tech/create-cosmos-app/compare/@cosmonauts/[email protected]...@cosmonauts/[email protected]) (2022-09-22)

**Note:** Version bump only for package @cosmonauts/connect-chain-with-telescope-and-contracts





# [0.2.0](https://github.com/cosmology-tech/create-cosmos-app/compare/@cosmonauts/[email protected]...@cosmonauts/[email protected]) (2022-09-22)

**Note:** Version bump only for package @cosmonauts/connect-chain-with-telescope-and-contracts





## [0.1.9](https://github.com/cosmology-tech/create-cosmos-app/compare/@cosmonauts/[email protected]...@cosmonauts/[email protected]) (2022-09-11)

**Note:** Version bump only for package @cosmonauts/connect-chain-with-telescope-and-contracts





## [0.1.8](https://github.com/cosmology-tech/create-cosmos-app/compare/@cosmonauts/[email protected]...@cosmonauts/[email protected]) (2022-09-08)

**Note:** Version bump only for package @cosmonauts/connect-chain-with-telescope-and-contracts





## [0.1.7](https://github.com/cosmology-tech/create-cosmos-app/compare/@cosmonauts/[email protected]...@cosmonauts/[email protected]) (2022-08-30)

**Note:** Version bump only for package @cosmonauts/connect-chain-with-telescope-and-contracts





## [0.1.6](https://github.com/cosmology-tech/create-cosmos-app/compare/@cosmonauts/[email protected]...@cosmonauts/[email protected]) (2022-08-27)

**Note:** Version bump only for package @cosmonauts/connect-chain-with-telescope-and-contracts





## [0.1.5](https://github.com/cosmology-tech/create-cosmos-app/compare/@cosmonauts/[email protected]...@cosmonauts/[email protected]) (2022-08-27)

**Note:** Version bump only for package @cosmonauts/connect-chain-with-telescope-and-contracts





## [0.1.4](https://github.com/cosmology-tech/create-cosmos-app/compare/@cosmonauts/[email protected]...@cosmonauts/[email protected]) (2022-08-27)

**Note:** Version bump only for package @cosmonauts/connect-chain-with-telescope-and-contracts





## [0.1.3](https://github.com/cosmology-tech/create-cosmos-app/compare/@cosmonauts/[email protected]...@cosmonauts/[email protected]) (2022-08-25)

**Note:** Version bump only for package @cosmonauts/connect-chain-with-telescope-and-contracts





## 0.1.2 (2022-08-25)

**Note:** Version bump only for package @cosmonauts/connect-chain-with-telescope-and-contracts
Loading