-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
334 changed files
with
20,499 additions
and
16 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
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,49 @@ | ||
package main | ||
|
||
import ( | ||
"os" | ||
|
||
"github.com/spf13/cobra" | ||
"github.com/spf13/cobra/doc" | ||
) | ||
|
||
func docsCmd(cmd *cobra.Command, args []string) error { | ||
var path string | ||
|
||
// If path is provided as an argument, use it. Else, get from flag. | ||
if len(args) > 0 { | ||
path = args[0] | ||
} else { | ||
var err error | ||
path, err = cmd.Flags().GetString("path") | ||
if err != nil { | ||
return err | ||
} | ||
} | ||
|
||
if _, err := os.Stat(path); os.IsNotExist(err) { | ||
err = os.MkdirAll(path, 0750) | ||
if err != nil { | ||
return err | ||
} | ||
} | ||
|
||
err := doc.GenMarkdownTree(cmd.Root(), path) | ||
if err != nil { | ||
return err | ||
} | ||
return nil | ||
} | ||
|
||
func docsCommand() *cobra.Command { | ||
cmd := &cobra.Command{ | ||
Use: "docs [path]", | ||
Short: "Generate markdown documentation for zetacored", | ||
RunE: docsCmd, | ||
Args: cobra.MaximumNArgs(1), | ||
} | ||
|
||
cmd.Flags().String("path", "docs/cli/zetacored", "Path where the docs will be generated") | ||
|
||
return cmd | ||
} |
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,42 @@ | ||
## zetacored | ||
|
||
Zetacore Daemon (server) | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for zetacored | ||
--home string directory for config and data | ||
--log_format string The logging format (json|plain) | ||
--log_level string The logging level (trace|debug|info|warn|error|fatal|panic) | ||
--trace print out full stack trace on errors | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [zetacored add-genesis-account](zetacored_add-genesis-account.md) - Add a genesis account to genesis.json | ||
* [zetacored add-observer-list](zetacored_add-observer-list.md) - Add a list of observers to the observer mapper ,default path is ~/.zetacored/os_info/observer_info.json | ||
* [zetacored addr-conversion](zetacored_addr-conversion.md) - convert a zeta1xxx address to validator operator address zetavaloper1xxx | ||
* [zetacored collect-gentxs](zetacored_collect-gentxs.md) - Collect genesis txs and output a genesis.json file | ||
* [zetacored collect-observer-info](zetacored_collect-observer-info.md) - collect observer info from a folder , default path is ~/.zetacored/os_info/ | ||
|
||
* [zetacored config](zetacored_config.md) - Create or query an application CLI configuration file | ||
* [zetacored debug](zetacored_debug.md) - Tool for helping with debugging your application | ||
* [zetacored docs](zetacored_docs.md) - Generate markdown documentation for zetacored | ||
* [zetacored export](zetacored_export.md) - Export state to JSON | ||
* [zetacored gentx](zetacored_gentx.md) - Generate a genesis tx carrying a self delegation | ||
* [zetacored get-pubkey](zetacored_get-pubkey.md) - Get you node account | ||
* [zetacored index-eth-tx](zetacored_index-eth-tx.md) - Index historical eth txs | ||
* [zetacored init](zetacored_init.md) - Initialize private validator, p2p, genesis, and application configuration files | ||
* [zetacored keys](zetacored_keys.md) - Manage your application's keys | ||
* [zetacored query](zetacored_query.md) - Querying subcommands | ||
* [zetacored rollback](zetacored_rollback.md) - rollback cosmos-sdk and tendermint state by one height | ||
* [zetacored rosetta](zetacored_rosetta.md) - spin up a rosetta server | ||
* [zetacored start](zetacored_start.md) - Run the full node | ||
* [zetacored status](zetacored_status.md) - Query remote node for status | ||
* [zetacored tendermint](zetacored_tendermint.md) - Tendermint subcommands | ||
* [zetacored testnet](zetacored_testnet.md) - subcommands for starting or configuring local testnets | ||
* [zetacored tx](zetacored_tx.md) - Transactions subcommands | ||
* [zetacored validate-genesis](zetacored_validate-genesis.md) - validates the genesis file at the default location or at the location passed as an arg | ||
* [zetacored version](zetacored_version.md) - Print the application binary version information | ||
|
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,44 @@ | ||
# add-genesis-account | ||
|
||
Add a genesis account to genesis.json | ||
|
||
### Synopsis | ||
|
||
Add a genesis account to genesis.json. The provided account must specify | ||
the account address or key name and a list of initial coins. If a key name is given, | ||
the address will be looked up in the local Keybase. The list of initial tokens must | ||
contain valid denominations. Accounts may optionally be supplied with vesting parameters. | ||
|
||
|
||
``` | ||
zetacored add-genesis-account [address_or_key_name] [coin][,[coin]] [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
--grpc-addr string the gRPC endpoint to use for this chain | ||
--grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS | ||
--height int Use a specific height to query state at (this can error if the node is pruning state) | ||
-h, --help help for add-genesis-account | ||
--home string The application home directory | ||
--keyring-backend string Select keyring's backend (os|file|kwallet|pass|test) | ||
--node string [host]:[port] to Tendermint RPC interface for this chain | ||
-o, --output string Output format (text|json) | ||
--vesting-amount string amount of coins for vesting accounts | ||
--vesting-end-time int schedule end time (unix epoch) for vesting accounts | ||
--vesting-start-time int schedule start time (unix epoch) for vesting accounts | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--log_format string The logging format (json|plain) | ||
--log_level string The logging level (trace|debug|info|warn|error|fatal|panic) | ||
--trace print out full stack trace on errors | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [zetacored](zetacored.md) - Zetacore Daemon (server) | ||
|
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,29 @@ | ||
# add-observer-list | ||
|
||
Add a list of observers to the observer mapper ,default path is ~/.zetacored/os_info/observer_info.json | ||
|
||
``` | ||
zetacored add-observer-list [observer-list.json] [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for add-observer-list | ||
--keygen-block int set keygen block , default is 20 (default 20) | ||
--tss-pubkey string set TSS pubkey if using older keygen | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--home string directory for config and data | ||
--log_format string The logging format (json|plain) | ||
--log_level string The logging level (trace|debug|info|warn|error|fatal|panic) | ||
--trace print out full stack trace on errors | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [zetacored](zetacored.md) - Zetacore Daemon (server) | ||
|
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,35 @@ | ||
# addr-conversion | ||
|
||
convert a zeta1xxx address to validator operator address zetavaloper1xxx | ||
|
||
### Synopsis | ||
|
||
|
||
read a zeta1xxx or zetavaloper1xxx address and convert it to the other type; | ||
it always outputs three lines; the first line is the zeta1xxx address, the second line is the zetavaloper1xxx address | ||
and the third line is the ethereum address. | ||
|
||
|
||
``` | ||
zetacored addr-conversion [zeta address] [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for addr-conversion | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--home string directory for config and data | ||
--log_format string The logging format (json|plain) | ||
--log_level string The logging level (trace|debug|info|warn|error|fatal|panic) | ||
--trace print out full stack trace on errors | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [zetacored](zetacored.md) - Zetacore Daemon (server) | ||
|
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,28 @@ | ||
# collect-gentxs | ||
|
||
Collect genesis txs and output a genesis.json file | ||
|
||
``` | ||
zetacored collect-gentxs [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
--gentx-dir string override default "gentx" directory from which collect and execute genesis transactions; default [--home]/config/gentx/ | ||
-h, --help help for collect-gentxs | ||
--home string The application home directory | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--log_format string The logging format (json|plain) | ||
--log_level string The logging level (trace|debug|info|warn|error|fatal|panic) | ||
--trace print out full stack trace on errors | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [zetacored](zetacored.md) - Zetacore Daemon (server) | ||
|
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,28 @@ | ||
# collect-observer-info | ||
|
||
collect observer info from a folder , default path is ~/.zetacored/os_info/ | ||
|
||
|
||
``` | ||
zetacored collect-observer-info [folder] [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for collect-observer-info | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--home string directory for config and data | ||
--log_format string The logging format (json|plain) | ||
--log_level string The logging level (trace|debug|info|warn|error|fatal|panic) | ||
--trace print out full stack trace on errors | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [zetacored](zetacored.md) - Zetacore Daemon (server) | ||
|
Oops, something went wrong.