diff --git a/README.md b/README.md index 6f93f0398..5cbb2e526 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ Basecoin is a sample [ABCI application](https://github.com/tendermint/abci) desi 1. [Installation](#installation) 1. [Using the plugin system](#using-the-plugin-system) + 1. [Using the cli](#using-the-cli) 1. [Tutorials and other reading](#tutorials-and-other-reading) ## Installation @@ -56,6 +57,13 @@ An example is worth a 1000 words, so please take a look [at this example](https: Note for now it is in a dev branch. You can use the same technique in your own repo. +## Using the CLI + +The basecoin cli can be used to start a stand-alone basecoin instance (`basecoin start`), +or to start basecoin with tendermint in the same process (`basecoin start --in-proc`). +It can also be used to send transactions, eg. `basecoin sendtx --to 0x4793A333846E5104C46DD9AB9A00E31821B2F301 --amount 100` +See `basecoin --help` and `basecoin [cmd] --help` for more details`. + ## Tutorials and Other Reading See our [introductory blog post](https://cosmos.network/blog/cosmos-creating-interoperable-blockchains-part-1), which explains the motivation behind Basecoin. diff --git a/cmd/basecoin/main.go b/cmd/basecoin/main.go index 6c4707f81..741c94f1f 100644 --- a/cmd/basecoin/main.go +++ b/cmd/basecoin/main.go @@ -177,7 +177,7 @@ func main() { { Name: "account", Usage: "Get details of an account", - ArgsUsage: "", + ArgsUsage: "[address]", Action: func(c *cli.Context) error { return cmdAccount(c) }, diff --git a/data/genesis.json b/data/genesis.json new file mode 100644 index 000000000..7aea6cb9b --- /dev/null +++ b/data/genesis.json @@ -0,0 +1,12 @@ +[ + "base/chainID", "test_chain_id", + "base/account", { + "pub_key": [1, "B3588BDC92015ED3CDB6F57A86379E8C79A7111063610B7E625487C76496F4DF"], + "coins": [ + { + "denom": "blank", + "amount": 9007199254740992 + } + ] + } +] diff --git a/data/priv_validator.json b/data/priv_validator.json new file mode 100644 index 000000000..15d791924 --- /dev/null +++ b/data/priv_validator.json @@ -0,0 +1,17 @@ +{ + "address": "D397BC62B435F3CF50570FBAB4340FE52C60858F", + "last_height": 0, + "last_round": 0, + "last_signature": null, + "last_signbytes": "", + "last_step": 0, + "priv_key": [ + 1, + "39E75AA1CF7BC710585977EFC375CD1730519186BD231478C339F2819C3C26E7B3588BDC92015ED3CDB6F57A86379E8C79A7111063610B7E625487C76496F4DF" + ], + "pub_key": [ + 1, + "B3588BDC92015ED3CDB6F57A86379E8C79A7111063610B7E625487C76496F4DF" + ] +} + diff --git a/data/priv_validator2.json b/data/priv_validator2.json new file mode 100644 index 000000000..08256d1fd --- /dev/null +++ b/data/priv_validator2.json @@ -0,0 +1,16 @@ +{ + "address": "4793A333846E5104C46DD9AB9A00E31821B2F301", + "last_height": 0, + "last_round": 0, + "last_signature": null, + "last_signbytes": "", + "last_step": 0, + "priv_key": [ + 1, + "13A04A552ABAA2CCFA1F618CF9C97F1FD59FC3EE4968FE87DF3637C9B0F2FAAA93766F08BE7135E78DBFFA76B61BC7C52B96256EB4394A224B4EF8BCC954DE2E" + ], + "pub_key": [ + 1, + "93766F08BE7135E78DBFFA76B61BC7C52B96256EB4394A224B4EF8BCC954DE2E" + ] +} diff --git a/genesis.json b/genesis.json deleted file mode 100644 index 49b7b8605..000000000 --- a/genesis.json +++ /dev/null @@ -1,7 +0,0 @@ -[ - "base/chainID", "test_chain_id", - "base/account", { - "pub_key": [1, "67D3B5EAF0C0BF6B5A602D359DAECC86A7A74053490EC37AE08E71360587C870"], - "balance": 9007199254740992 - } -]