forked from gnolang/gno
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add contents from portal (gnolang#19)
* feat: add contents from portal * feat: add contents from portal * feat: add tutorials * fixup * Make Docusaurus happy --------- Co-authored-by: Milos Zivkovic <milos.zivkovic@tendermint.com>
- Loading branch information
1 parent
c940c2c
commit e2343c6
Showing
41 changed files
with
3,720 additions
and
92 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
docs/gno-docs/docs/explanation/gno-tooling/cli/common-params.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
id: gno-tooling-common-params | ||
--- | ||
|
||
# Common Parameters | ||
|
||
Below is a list of common parameters. | ||
|
||
| Name | Description | Default | | ||
| ------------------------- | ------------------------------------ | ---------------------------------------- | | ||
| `home` | The home directory. | `GNO_HOME` or the user's home directory. | | ||
| `remote` | The remote node URL. | `127.0.0.1:26657` | | ||
| `quiet` | For parsing output. | `false` | | ||
| `insecure-password-stdin` | INSECURE! Takes password from stdin. | `false` | | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
--- | ||
id: gno-tooling-gno | ||
--- | ||
|
||
# gno | ||
|
||
`gno` is a handy tool for developing and prototyping Gno packages and realms. You may use `gno` to use the GnoVM without an actual blockchain to build or test realms in a local environment. | ||
|
||
## Run `gno` Commands | ||
|
||
The following command will run `gno`. | ||
|
||
```bash | ||
gno {SUB_COMMAND} | ||
``` | ||
|
||
**Subcommands** | ||
|
||
| Name | Description | | ||
| ------------ | ------------------------------------------ | | ||
| `build` | Builds a gno package. | | ||
| `test` | Tests a gno package. | | ||
| `precompile` | Precompiles a `.gno` file to a `.go` file. | | ||
| `repl` | Starts a GnoVM REPL. | | ||
|
||
### `build` | ||
|
||
#### **Options** | ||
|
||
| Name | Type | Description | | ||
| --------- | ------- | ---------------------------------------------- | | ||
| `verbose` | Boolean | Displays extended information. | | ||
| go-binary | String | Go binary to use for building (default: `go`). | | ||
|
||
### `test` | ||
|
||
#### **Options** | ||
|
||
| Name | Type | Description | | ||
| ------------ | ------------- | ------------------------------------------------------------------ | | ||
| `verbose` | Boolean | Displays extended information. | | ||
| `root-dir` | String | Clones location of github.com/gnolang/gno (gno tries to guess it). | | ||
| `run` | String | Test name filtering pattern. | | ||
| `timeout` | time.Duration | The maximum execution time in ns. | | ||
| `precompile` | Boolean | Precompiles a `.gno` file to a `.go` file before testing. | | ||
|
||
### `precompile` | ||
|
||
#### **Options** | ||
|
||
| Name | Type | Description | | ||
| ----------- | ------- | --------------------------------------------------------------- | | ||
| `verbose` | Boolean | Displays extended information. | | ||
| `skip-fmt` | Boolean | Skips the syntax checking of generated `.go` files. | | ||
| `go-binary` | String | The go binary to use for building (default: `go`). | | ||
| `go-binary` | String | The gofmt binary to use for syntax checking (default: `gofmt`). | | ||
| `output` | String | The output directory (default: `.`). | | ||
|
||
### `repl` | ||
|
||
#### **Options** | ||
|
||
| Name | Type | Description | | ||
| ---------- | ------- | ------------------------------------------------------------------ | | ||
| `verbose` | Boolean | Displays extended information. | | ||
| `root-dir` | String | Clones location of github.com/gnolang/gno (gno tries to guess it). | |
53 changes: 53 additions & 0 deletions
53
docs/gno-docs/docs/explanation/gno-tooling/cli/gnofaucet.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
id: gno-tooling-gnofaucet | ||
--- | ||
|
||
# gnofaucet | ||
|
||
`gnofaucet` is a server for distributing GNOT, the gas currency of Gnoland, to specific addresses in a local chain. Interact with the `gnofaucet` from an address with an empty balance in your locally built testnet to fuel it with GNOT to pay for transactions. | ||
|
||
## Run `gnofaucet` Commands | ||
|
||
Enable the faucet using the following command. | ||
|
||
```bash | ||
gnofaucet serve | ||
``` | ||
|
||
#### **Options** | ||
|
||
| Name | Type | Description | | ||
| ------------------------- | ------- | ------------------------------------------------------------------------------------ | | ||
| `chain-id` | String | The id of the chain (required). | | ||
| `gas-wanted` | Int64 | The maximum amount of gas to use for the transaction (default: `50000`) | | ||
| `gas-fee` | String | The gas fee to pay for the transaction. | | ||
| `memo` | String | Any descriptive text (default: `""`) | | ||
| `test-to` | String | Test address (optional) 부연설명 필요 | | ||
| `send` | String | Coins to send (default: `"1000000ugnot"`). | | ||
| `captcha-secret` | String | The secret key for the recaptcha. If empty, the captcha is disabled (default: `""`). | | ||
| `is-behind-proxy` | Boolean | Uses X-Forwarded-For IP for throttling (default: `false`). | | ||
| `insecure-password-stdin` | Boolean | INSECURE! Takes password from stdin (default: `false`). | | ||
|
||
## Example | ||
|
||
### **Step 1. Create an account named `test1` with the test seed phrase below.** | ||
|
||
```bash | ||
gnokey add test1 --recover | ||
``` | ||
|
||
> **Test Seed Phrase:** source bonus chronic canvas draft south burst lottery vacant surface solve popular case indicate oppose farm nothing bullet exhibit title speed wink action roast | ||
### **Step 2. Run `gnofaucet`** | ||
|
||
```bash | ||
gnofaucet serve test1 --chain-id dev --send 500000000ugnot | ||
``` | ||
|
||
### **Step 3. Receive GNOTs from the faucet** | ||
|
||
```bash | ||
curl --location --request POST 'http://localhost:5050' \ | ||
--header 'Content-Type: application/x-www-form-urlencoded' \ | ||
--data-urlencode 'toaddr={address to receive}' | ||
``` |
Oops, something went wrong.