Skip to content

Commit 0311753

Browse files
committed
Merge branch 'release/0.1.0-beta.4'
2 parents f1cef46 + 7bb1652 commit 0311753

File tree

9 files changed

+688
-547
lines changed

9 files changed

+688
-547
lines changed

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
11
# CHANGELOG
22

3+
## [0.1.0-beta.4][0.1.0-beta.4] · 2023-10-29
4+
5+
### Added
6+
7+
- Feat: Update Vota Dev Guide.
8+
- Add testnet commands.
9+
- Add testnet resources.
10+
- Add gRPC endpoints and faucets.
11+
12+
### Changed
13+
14+
- Feat: Remove DORA token buying guide in Vota Operator Manual.
15+
- Feat: Remove Dora-KSM Parachain from footer.
16+
- Feat: Extend clickable area for Dora Factory official site link in footer.
17+
- Build: Update deps to latest versions.
18+
- `@vercel/og`: 0.5.20
19+
- `next`: 13.5.6
20+
- Build: Update devDeps to latest versions.
21+
- `@types/node`: 20.8.9
22+
- `@types/react`: 18.2.33
23+
- `eslint`: 8.52.0
24+
- `eslint-config-next`: 13.5.6
25+
- `sass`: 1.69.5
26+
- `tailwindcss`: 3.3.5
27+
28+
### Fixed
29+
30+
- Fix: Fix a typo in Vota DevOps Guide.
31+
- Fix: Fix punctuations for Vota Dev Guide.
32+
333
## [0.1.0-beta.3][0.1.0-beta.3] · 2023-10-14
434

535
### Added
@@ -9,6 +39,8 @@
939
### Changed
1040

1141
- Feat: Refine title gradient color for auto-generated OG images.
42+
- Feat: Update Get Started page.
43+
- Docs: Update contact email for Code of Conduct.
1244
- Build: Update deps to latest versions.
1345
- `nextra`: 2.13.2
1446
- `nextra-theme-docs`: 2.13.2
@@ -116,6 +148,7 @@
116148
- Docs: [Code of Conduct](CODE_OF_CONDUCT.md), based on [Contributor Covenant](https://www.contributor-covenant.org) v2.1.
117149
- Chore: Configure GitHub [Dependabot](.github/dependabot.yml).
118150

151+
[0.1.0-beta.4]: https://github.com/DoraFactory/df-docs/compare/0.1.0-beta.3...0.1.0-beta.4
119152
[0.1.0-beta.3]: https://github.com/DoraFactory/df-docs/compare/0.1.0-beta.2...0.1.0-beta.3
120153
[0.1.0-beta.2]: https://github.com/DoraFactory/df-docs/compare/0.1.0-beta.1...0.1.0-beta.2
121154
[0.1.0-beta.1]: https://github.com/DoraFactory/df-docs/compare/0.1.0-beta...0.1.0-beta.1

components/footer/index.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ const links = [
2323
name: 'QRNG Faucet',
2424
link: 'https://qrng.dorafactory.org/'
2525
},
26-
{
27-
name: 'Dora-KSM Parachain',
28-
link: 'https://core-pallet.dorafactory.org/'
29-
},
26+
// {
27+
// name: 'Dora-KSM Parachain',
28+
// link: 'https://core-pallet.dorafactory.org/'
29+
// },
3030
{
3131
name: 'Dora Research Blog',
3232
link: 'https://research.dorahacks.io/'
@@ -88,9 +88,8 @@ export function Footer(): ReactElement {
8888
</ul>
8989
<ul className={styles.info}>
9090
<li className={styles['info-copyright']}>
91-
© {new Date().getFullYear()}{' '}
9291
<Link href={`https://dorafactory.org/`} target="_blank">
93-
Dora Factory
92+
© {new Date().getFullYear()} Dora Factory
9493
</Link>
9594
</li>
9695
{/* <li className={styles['info-item']}>

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "df-docs",
3-
"version": "0.1.0-beta.3",
3+
"version": "0.1.0-beta.4",
44
"private": true,
55
"scripts": {
66
"build": "next build",
@@ -11,26 +11,26 @@
1111
"start": "next start"
1212
},
1313
"dependencies": {
14-
"@vercel/og": "^0.5.17",
15-
"next": "^13.5.4",
14+
"@vercel/og": "^0.5.20",
15+
"next": "^13.5.6",
1616
"nextra": "^2.13.2",
1717
"nextra-theme-docs": "^2.13.2",
1818
"react": "^18.2.0",
1919
"react-dom": "^18.2.0"
2020
},
2121
"devDependencies": {
2222
"@svgr/webpack": "^8.1.0",
23-
"@types/node": "20.8.6",
24-
"@types/react": "^18.2.28",
23+
"@types/node": "20.8.9",
24+
"@types/react": "^18.2.33",
2525
"autoprefixer": "^10.4.16",
26-
"eslint": "8.51.0",
27-
"eslint-config-next": "13.5.4",
26+
"eslint": "8.52.0",
27+
"eslint-config-next": "13.5.6",
2828
"postcss": "^8.4.31",
2929
"prettier": "3.0.3",
3030
"prettier-plugin-pkg": "0.18.0",
3131
"prettier-plugin-tailwindcss": "0.5.6",
32-
"sass": "^1.69.3",
33-
"tailwindcss": "^3.3.3",
32+
"sass": "^1.69.5",
33+
"tailwindcss": "^3.3.5",
3434
"typescript": "5.2.2"
3535
}
3636
}

pages/docs/vota-dev/cosmwasm.mdx

Lines changed: 101 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ In this example, we will demonstrate how to store on the Mainnet:
209209

210210
```ansi filename="Terminal"
211211
$ cd artifacts
212-
$ dorad tx wasm store counter.wasm --from <unsafe-test-key-name> --chain-id=<chain-id> --gas-prices 100000000000peaka --gas auto --gas-adjustment 1.5 -b block -y
212+
$ dorad tx wasm store counter.wasm --from <unsafe-test-key-name> --chain-id=<chain-id> --gas-prices 100000000000peaka --gas auto --gas-adjustment 1.5 -b block -y
213213
```
214214

215215
- `<unsafe-test-key-name>`: Replace it with the key name from your local keys.
@@ -220,7 +220,7 @@ You will find a `CODE_ID` from the output of the command above. Save it as a loc
220220
Instead, you can also run the following command to set the `CODE_ID` as a variable:
221221

222222
```ansi filename="Terminal"
223-
$ TX=$(dorad tx wasm store counter.wasm --from <unsafe-test-key-name> --chain-id=<chain-id> --gas-prices 100000000000peaka --gas auto --gas-adjustment 1.5 -b block --output json -y | jq -r '.txhash')
223+
$ TX=$(dorad tx wasm store counter.wasm --from <unsafe-test-key-name> --chain-id=<chain-id> --gas-prices 100000000000peaka --gas auto --gas-adjustment 1.5 -b block --output json -y | jq -r '.txhash')
224224
$ CODE_ID=$(dorad query tx $TX --output json | jq -r '.logs[0].events[-1].attributes[0].value')
225225
$ echo "Your contract code_id is $CODE_ID"
226226
```
@@ -229,54 +229,128 @@ Or, you can also look up the `code_id` on [Dora Vota Explorer](https://vota-expl
229229

230230
### Instantiate the contract
231231

232-
```ansi filename="Terminal"
233-
$ INITIAL_STATE='{"count":100}'
234-
$ dorad tx wasm instantiate $CODE_ID $INITIAL_STATE --amount 50000uDORA --label "Counter Contract" --from test1 --no-admin --fees 1uDORA --gas auto --gas-adjustment 1.3 --chain-id "doravota-devnet" --node https://vota-rpc.dorafactory.org:443
235-
```
232+
{/* prettier-ignore */}
233+
<Tabs items={['Mainnet', 'Testnet']}>
234+
<Tabs.Tab>
235+
```ansi filename="Terminal"
236+
$ INITIAL_STATE='{"count":100}'
237+
$ dorad tx wasm instantiate $CODE_ID $INITIAL_STATE --amount 50000peaka --label "Counter Contract" --from test1 --no-admin --gas-prices 100000000000peaka --gas auto --gas-adjustment 1.5 --chain-id "vota-ash" --node https://vota-rpc.dorafactory.org:443
238+
```
239+
</Tabs.Tab>
240+
<Tabs.Tab>
241+
```ansi filename="Terminal"
242+
$ INITIAL_STATE='{"count":100}'
243+
$ dorad tx wasm instantiate $CODE_ID $INITIAL_STATE --amount 50000peaka --label "Counter Contract" --from test1 --no-admin --gas-prices 100000000000peaka --gas auto --gas-adjustment 1.5 --chain-id "vota-testnet" --node https://vota-testnet-rpc.dorafactory.org:443
244+
```
245+
</Tabs.Tab>
246+
</Tabs>
236247

237248
### Get the contract address
238249

239-
```ansi filename="Terminal"
240-
$ CONTRACT_ADDR=$(dorad query wasm list-contract-by-code ${CODE_ID} --node https://vota-rpc.dorafactory.org:443 --output json | jq -r '.contracts[0]')
241-
```
250+
{/* prettier-ignore */}
251+
<Tabs items={['Mainnet', 'Testnet']}>
252+
<Tabs.Tab>
253+
```ansi filename="Terminal"
254+
$ CONTRACT_ADDR=$(dorad query wasm list-contract-by-code ${CODE_ID} --node https://vota-rpc.dorafactory.org:443 --output json | jq -r '.contracts[0]')
255+
```
256+
</Tabs.Tab>
257+
<Tabs.Tab>
258+
```ansi filename="Terminal"
259+
$ CONTRACT_ADDR=$(dorad query wasm list-contract-by-code ${CODE_ID} --node https://vota-testnet-rpc.dorafactory.org:443 --output json | jq -r '.contracts[0]')
260+
```
261+
</Tabs.Tab>
262+
</Tabs>
242263

243264
</Steps>
244265

245266
## Execute the contract
246267

247268
### Increment the count in contract
248269

249-
```ansi filename="Terminal"
250-
$ INCREMENT_MSG='{"increment":{}}'
251-
$ dorad tx wasm execute $CONTRACT_ADDR "$INCREMENT_MSG" --from test1 --gas-prices 100000000000peaka --gas auto --gas-adjustment 1.5 --chain-id "doravota-devnet" --node https://vota-rpc.dorafactory.org:443 -y
252-
```
270+
{/* prettier-ignore */}
271+
<Tabs items={['Mainnet', 'Testnet']}>
272+
<Tabs.Tab>
273+
```ansi filename="Terminal"
274+
$ INCREMENT_MSG='{"increment":{}}'
275+
$ dorad tx wasm execute $CONTRACT_ADDR "$INCREMENT_MSG" --from test1 --gas-prices 100000000000peaka --gas auto --gas-adjustment 1.5 --chain-id "vota-ash" --node https://vota-rpc.dorafactory.org:443 -y
276+
```
277+
</Tabs.Tab>
278+
<Tabs.Tab>
279+
```ansi filename="Terminal"
280+
$ INCREMENT_MSG='{"increment":{}}'
281+
$ dorad tx wasm execute $CONTRACT_ADDR "$INCREMENT_MSG" --from test1 --gas-prices 100000000000peaka --gas auto --gas-adjustment 1.5 --chain-id "vota-testnet" --node https://vota-testnet-rpc.dorafactory.org:443 -y
282+
```
283+
</Tabs.Tab>
284+
</Tabs>
253285

254286
### Reset the count in contract
255287

256-
```ansi filename="Terminal"
257-
$ RESET_MSG='{"reset":{"count":0}}'
258-
$ dorad tx wasm execute $CONTRACT_ADDR "$RESET_MSG" --from test1 --gas-prices 100000000000peaka --gas auto --gas-adjustment 1.5 --chain-id "doravota-devnet" --node https://vota-rpc.dorafactory.org:443 -y
259-
```
288+
{/* prettier-ignore */}
289+
<Tabs items={['Mainnet', 'Testnet']}>
290+
<Tabs.Tab>
291+
```ansi filename="Terminal"
292+
$ RESET_MSG='{"reset":{"count":0}}'
293+
$ dorad tx wasm execute $CONTRACT_ADDR "$RESET_MSG" --from test1 --gas-prices 100000000000peaka --gas auto --gas-adjustment 1.5 --chain-id "vota-ash" --node https://vota-rpc.dorafactory.org:443 -y
294+
```
295+
</Tabs.Tab>
296+
<Tabs.Tab>
297+
```ansi filename="Terminal"
298+
$ RESET_MSG='{"reset":{"count":0}}'
299+
$ dorad tx wasm execute $CONTRACT_ADDR "$RESET_MSG" --from test1 --gas-prices 100000000000peaka --gas auto --gas-adjustment 1.5 --chain-id "vota-testnet" --node https://vota-testnet-rpc.dorafactory.org:443 -y
300+
```
301+
</Tabs.Tab>
302+
</Tabs>
260303

261304
## Query the contract
262305

263306
### Get the contract state
264307

265-
```ansi filename="Terminal"
266-
$ GET_STATE_MSG='{"get_count":{}}'
267-
$ dorad query wasm contract-state smart $CONTRACT_ADDR "$GET_STATE_MSG" --node https://vota-rpc.dorafactory.org:443
268-
```
308+
{/* prettier-ignore */}
309+
<Tabs items={['Mainnet', 'Testnet']}>
310+
<Tabs.Tab>
311+
```ansi filename="Terminal"
312+
$ GET_STATE_MSG='{"get_count":{}}'
313+
$ dorad query wasm contract-state smart $CONTRACT_ADDR "$GET_STATE_MSG" --node https://vota-rpc.dorafactory.org:443
314+
```
315+
</Tabs.Tab>
316+
<Tabs.Tab>
317+
```ansi filename="Terminal"
318+
$ GET_STATE_MSG='{"get_count":{}}'
319+
$ dorad query wasm contract-state smart $CONTRACT_ADDR "$GET_STATE_MSG" --node https://vota-testnet-rpc.dorafactory.org:443
320+
```
321+
</Tabs.Tab>
322+
</Tabs>
269323

270324
### Query the contract information
271325

272-
```ansi filename="Terminal"
273-
$ dorad query wasm contract $CONTRACT_ADDR --node https://vota-rpc.dorafactory.org:443
274-
```
326+
{/* prettier-ignore */}
327+
<Tabs items={['Mainnet', 'Testnet']}>
328+
<Tabs.Tab>
329+
```ansi filename="Terminal"
330+
$ dorad query wasm contract $CONTRACT_ADDR --node https://vota-rpc.dorafactory.org:443
331+
```
332+
</Tabs.Tab>
333+
<Tabs.Tab>
334+
```ansi filename="Terminal"
335+
$ dorad query wasm contract $CONTRACT_ADDR --node https://vota-testnet-rpc.dorafactory.org:443
336+
```
337+
</Tabs.Tab>
338+
</Tabs>
275339

276340
## List all contracts on the blockchain
277341

278-
```ansi filename="Terminal"
279-
$ dorad query wasm list-code --node https://vota-rpc.dorafactory.org:443
280-
```
342+
{/* prettier-ignore */}
343+
<Tabs items={['Mainnet', 'Testnet']}>
344+
<Tabs.Tab>
345+
```ansi filename="Terminal"
346+
$ dorad query wasm list-code --node https://vota-rpc.dorafactory.org:443
347+
```
348+
</Tabs.Tab>
349+
<Tabs.Tab>
350+
```ansi filename="Terminal"
351+
$ dorad query wasm list-code --node https://vota-testnet-rpc.dorafactory.org:443
352+
```
353+
</Tabs.Tab>
354+
</Tabs>
281355

282356
Good job! Now it’s time to learn how to actually develop contracts. You can now visit the [CosmWasm documentation](/docs/vota-dev/resources#cosmwasm-docs) to gain a better understanding of how to interact with the Dora Vota blockchain.

pages/docs/vota-dev/dorad.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ You can verify that dorad was installed properly by running:
3636

3737
If you can see the version info, it means the installation was successful.
3838

39-
`dorad` supports general Cosmos SDK and Tendermint commands. You can run the tool to see a list of commands with explanations of what they do with `dorad`
39+
`dorad` supports general Cosmos SDK and Tendermint commands. You can run the tool to see a list of commands with explanations of what they do with `dorad`:
4040

4141
```ansi filename="Terminal"
4242
$ dorad
@@ -124,8 +124,8 @@ The denom of Dora Vota is `peaka`, and `1 DORA = 10^18 peaka`.
124124

125125
### Transfer between addresses
126126

127-
- `from_addr`: source address of this transfer transaction
128-
- `to_addr`: destination address of this transfer transaction
127+
- `from_addr`: source address of this transfer transaction.
128+
- `to_addr`: destination address of this transfer transaction.
129129
- `amount`: you can use `peaka` or `DORA` which depends on the amount you’re transferring.
130130

131131
Here is an example of token transfer on Dora Vota:

pages/docs/vota-dev/resources.mdx

Lines changed: 41 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,44 +9,73 @@ import { Tabs } from 'nextra/components'
99

1010
There are several public resources available for development.
1111

12-
## Chain overview
12+
## Networks
1313

14-
We have now launched the Dora Vota Mainnet, identified with the chain-id: `vota-ash`.
14+
We have now launched the following:
15+
16+
- Dora Vota Mainnet, identified with the chain ID: `vota-ash`.
17+
- Dora Vota Testnet, identified with the chain ID: `vota-testnet`.
1518

1619
## Genesis files
1720

18-
You can find the genesis file of the Mainnet `vota-ash` from our [GitHub repo](https://github.com/DoraFactory/doravota/blob/main/config/mainnet/genesis.json).
21+
You can find the genesis files from our GitHub repo:
22+
23+
- Mainnet [`vota-ash`](https://github.com/DoraFactory/doravota/blob/main/config/mainnet/genesis.json).
24+
- Testnet [`vota-testnet`](https://github.com/DoraFactory/doravota/blob/main/config/testnet/genesis.json).
1925

2026
## Endpoints
2127

28+
### RPC
29+
2230
{/* prettier-ignore */}
23-
<Tabs items={['RPC', 'REST API']}>
31+
<Tabs items={['Mainnet', 'Testnet']}>
2432
<Tabs.Tab>
2533
```text
2634
https://vota-rpc.dorafactory.org:443
2735
```
2836
</Tabs.Tab>
2937
<Tabs.Tab>
3038
```text
31-
https://vota-rest.dorafactory.org:443
39+
https://vota-testnet-rpc.dorafactory.org:443
3240
```
3341
</Tabs.Tab>
3442
</Tabs>
3543

36-
{/* prettier-ignore */}
37-
{/* ### RPC
44+
### gRPC
3845

46+
{/* prettier-ignore */}
3947
<Tabs items={['Mainnet', 'Testnet']}>
40-
<Tabs.Tab>```text https://vota-rpc.dorafactory.org:443 ```</Tabs.Tab>
41-
<Tabs.Tab>```text https://vota-testnet-rpc.dorafactory.org:443 ```</Tabs.Tab>
48+
<Tabs.Tab>
49+
```text
50+
vota-grpc.dorafactory.org:443
51+
```
52+
</Tabs.Tab>
53+
<Tabs.Tab>
54+
```text
55+
vota-testnet-grpc.dorafactory.org:443
56+
```
57+
</Tabs.Tab>
4258
</Tabs>
4359

4460
### REST API
4561

62+
{/* prettier-ignore */}
4663
<Tabs items={['Mainnet', 'Testnet']}>
47-
<Tabs.Tab>```text https://vota-rest.dorafactory.org:443 ```</Tabs.Tab>
48-
<Tabs.Tab>```text https://vota-testnet-rest.dorafactory.org:443 ```</Tabs.Tab>
49-
</Tabs> */}
64+
<Tabs.Tab>
65+
```text
66+
https://vota-rest.dorafactory.org:443
67+
```
68+
</Tabs.Tab>
69+
<Tabs.Tab>
70+
```text
71+
https://vota-testnet-rest.dorafactory.org:443
72+
```
73+
</Tabs.Tab>
74+
</Tabs>
75+
76+
## Faucets
77+
78+
- Testnet faucet: https://vota-testnet-faucet.dorafactory.org.
5079

5180
## CosmWasm documentation [#cosmwasm-docs]
5281

0 commit comments

Comments
 (0)