forked from ignite/cli
-
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.
docs: added info on config (ignite#646)
- Loading branch information
Showing
6 changed files
with
107 additions
and
14 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,19 +1,21 @@ | ||
# Quickstart | ||
|
||
With `starport` installed on your machine, you can now build your very first blockchain application! | ||
With `starport` installed on your machine, you can now build your very first blockchain! | ||
|
||
```bash | ||
``` | ||
starport app github.com/username/myapp && cd myapp | ||
``` | ||
|
||
Serve the blockchain application | ||
This command will create a directory `myapp` and scaffold a Cosmos SDK blockchain. | ||
|
||
```bash | ||
``` | ||
starport serve | ||
``` | ||
|
||
Add a new transaction type to your application | ||
`serve` will install dependencies, build, initialise and run your blokchain. | ||
|
||
```bash | ||
``` | ||
starport type post title body | ||
``` | ||
|
||
`type` scaffolds functionality to create, read, update and delete for a custom type. |
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
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,90 @@ | ||
# Configuration | ||
|
||
With Starport your blockchain can be configured with `config.yml`. | ||
|
||
## `accounts` | ||
|
||
A list of user accounts created during genesis of your application. | ||
|
||
| Key | Required | Type | Description | | ||
| ----- | -------- | --------------- | ------------------------------------------------- | | ||
| name | Y | String | Local name of a key pair | | ||
| coins | Y | List of Strings | Initial coins with denominations (e.g. "100coin") | | ||
|
||
### Example | ||
|
||
```yaml | ||
accounts: | ||
- name: alice | ||
coins: ["1000token", "100000000stake"] | ||
- name: bob | ||
coins: ["500token"] | ||
``` | ||
## `validator` | ||
|
||
A blockchain has to have at least one validator-node. `validator` specifies the account that will be used to initialize the validator and parameters of the validator. | ||
|
||
| Key | Required | Type | Description | | ||
| ------ | -------- | ------ | --------------------------------------------------------------------------------- | | ||
| name | Y | String | Name of a key pair. `name` must be in `accounts` | | ||
| staked | Y | String | Amount of coins to bond. Must be less or equal to the amount of coins account has | | ||
|
||
### Example | ||
|
||
```yaml | ||
accounts: | ||
- name: alice | ||
coins: ["1000token", "100000000stake"] | ||
validator: | ||
name: user1 | ||
staked: "100000000stake" | ||
``` | ||
|
||
## `init.home` | ||
|
||
A blockchain stores data and configuration in a data directory. This property specifies a path to the data directory. | ||
|
||
### Example | ||
|
||
```yaml | ||
init: | ||
home: "~/.myblockchain" | ||
``` | ||
|
||
## `init.config` | ||
|
||
Overwrites properties in `config/config.toml` in the data directory. | ||
|
||
## `init.app` | ||
|
||
Overwrites properties in `config/app.toml` in the data directory. | ||
|
||
## `init.keyring-backend` | ||
|
||
Specifies a [keyring backend](https://docs.cosmos.network/master/run-node/keyring.html). | ||
|
||
### Example | ||
|
||
```yaml | ||
init: | ||
keyring-backend: "os" | ||
``` | ||
|
||
## `genesis` | ||
|
||
Overwrites properties in `config.genesis.json` in the data directory. | ||
|
||
### Example | ||
|
||
```yaml | ||
genesis: | ||
chain-id: "foobar" | ||
``` | ||
|
||
## Learn more | ||
|
||
- [Starport](https://github.com/tendermint/starport) | ||
- [Cosmos SDK documentation](https://docs.cosmos.network) | ||
- [Cosmos Tutorials](https://tutorials.cosmos.network) | ||
- [Channel on Discord](https://discord.gg/W8trcGV) |