Skip to content

Commit 9b528c3

Browse files
authored
Merge pull request #62 from cosmology-tech/feat/vote-proposal
add vote-proposal example
2 parents 875ac8f + 1174396 commit 9b528c3

34 files changed

+11644
-2686
lines changed

README.md

Lines changed: 35 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,12 @@ You don’t need to install or configure cosmjs, keplr, nextjs, webpack or Babel
3838

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

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

4849
🎥 [Checkout our videos](https://cosmology.tech/learn) to learn to learn more about `create-cosmos-app` and tooling for building frontends in the Cosmos!
@@ -76,16 +77,19 @@ cca
7677
```sh
7778
npx create-cosmos-app
7879
```
80+
7981
### npm
8082

8183
```sh
82-
npm init cosmos-app
84+
npm init cosmos-app
8385
```
86+
8487
### Yarn
8588

8689
```sh
87-
yarn create cosmos-app
90+
yarn create cosmos-app
8891
```
92+
8993
## Examples
9094

9195
Explore examples!
@@ -114,6 +118,26 @@ cca --name mysendtokensapp --example --template send-tokens
114118
cca --name mystaketokensapp --example --template stake-tokens
115119
```
116120

121+
### Vote Proposal
122+
123+
<p align="center" width="100%">
124+
<img height="48" src="https://user-images.githubusercontent.com/545047/186589196-e75c9540-86a7-4a71-8096-207be9a4216f.svg" />
125+
</p>
126+
127+
```
128+
cca --name myvoteproposalapp --example --template vote-proposal
129+
```
130+
131+
### IBC Transfer
132+
133+
<p align="center" width="100%">
134+
<img height="48" src="https://user-images.githubusercontent.com/545047/186589196-e75c9540-86a7-4a71-8096-207be9a4216f.svg" />
135+
</p>
136+
137+
```
138+
cca --name myibctransferapp --example --template ibc-transfer
139+
```
140+
117141
### Osmosis
118142

119143
<p align="center" width="100%">
@@ -140,7 +164,6 @@ cca --name osmowasm --example --template osmosis-cosmwasm
140164

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

143-
144167
```
145168
cca --name myjunoapp --example --template juno
146169
```
@@ -163,8 +186,6 @@ cca --name mystarsapp --example --template stargaze
163186
<img height="48" src="https://user-images.githubusercontent.com/545047/197502724-4cb0f898-116c-4c14-89c8-3358e89eab70.svg" />
164187
</p>
165188

166-
167-
168189
```
169190
cca --name mywasmapp --example --template cosmwasm
170191
```
@@ -199,7 +220,7 @@ yarn locks
199220

200221
Code built with the help of these related projects:
201222

202-
* [@cosmwasm/ts-codegen](https://github.com/CosmWasm/ts-codegen) for generated CosmWasm contract Typescript classes
203-
* [@osmonauts/telescope](https://github.com/osmosis-labs/telescope) a "babel for the Cosmos", Telescope is a TypeScript Transpiler for Cosmos Protobufs.
204-
* [chain-registry](https://github.com/cosmology-tech/chain-registry) Cosmos chain registry and chain info.
205-
* [cosmos-kit](https://github.com/cosmology-tech/cosmos-kit) A wallet connector for the Cosmos.
223+
- [@cosmwasm/ts-codegen](https://github.com/CosmWasm/ts-codegen) for generated CosmWasm contract Typescript classes
224+
- [@osmonauts/telescope](https://github.com/osmosis-labs/telescope) a "babel for the Cosmos", Telescope is a TypeScript Transpiler for Cosmos Protobufs.
225+
- [chain-registry](https://github.com/cosmology-tech/chain-registry) Cosmos chain registry and chain info.
226+
- [cosmos-kit](https://github.com/cosmology-tech/cosmos-kit) A wallet connector for the Cosmos.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "next/core-web-vitals"
3+
}

examples/vote-proposal/.gitignore

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
*.pem
21+
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
.pnpm-debug.log*
27+
28+
# local env files
29+
.env*.local
30+
31+
# vercel
32+
.vercel
33+
34+
# typescript
35+
*.tsbuildinfo
36+
next-env.d.ts

0 commit comments

Comments
 (0)