Commit Graph

820 Commits

Author SHA1 Message Date
Ethan Frey 8dd2371cc5 Don't require init when --trust-node is given 2017-07-29 17:23:21 -04:00
Ethan Frey b98bfc01ae Add --trust-node flag to cli to skip proofs on queries 2017-07-29 17:23:21 -04:00
Ethan Frey f0e2227ada Use password as key, allow 3 letter names 2017-07-29 17:16:24 -04:00
Emmanuel Odeke 7c28374c38 Merge branch 'rest-server-query' into rest-server 2017-07-29 13:25:29 -06:00
Emmanuel Odeke c0743af51c
client/rest: implement /query/account/{signature}
Allows us to query account balance from the blockchain
for example:
/query/account/sigs:BDADF167E6CF2CDF2D621E590FF1FED2787A40E0
2017-07-29 13:20:51 -06:00
Ethan Frey de82c03804 Fixed up business logic in build/send 2017-07-29 09:28:45 -04:00
Emmanuel Odeke d4ab79ece0
client/rest, cmd/baseserver: started a basecoin REST client
```shell
$ go get -u -v github.com/tendermint/basecoin/cmd/baseserver
$ baseserver init
$ baseserver serve
```
A server that can be ran by default on port 8998
otherwise one can specify the port using flag `--port` like this:
```shell
$ baseserver serve --port 9999
```
to serve it on port 9999, accessible at http://localhost:9999

Implemented:
- [X] /keys POST -- generate a new key
- [X] /keys GET  -- list all keys
- [X] /keys/{name}  DELETE-- delete a named key
- [X] /keys/{name}  GET -- get a named key
- [X] /keys/{name}  POST, PUT -- update a named key
- [X] /sign POST -- sign a transaction
- [X] /build/send POST -- send money from one actor to another. However,
  still needs testing and verification of output
- [X] /tx POST -- post a transaction to the blockchain. However, still
  needs testing and verification of output

This base code to get the handlers starters was adapted from:
* https://github.com/tendermint/go-crypto/blob/master/keys/server
* https://github.com/tendermint/basecoin/blob/unstable/client/commands/proxy/root.go

Updates #186
2017-07-29 04:12:24 -06:00
Ethan Frey eae1883f3d Add sign and post helper functions 2017-07-28 10:35:39 -04:00
Ethan Frey f32e6c9b7d Updated light-client 2017-07-27 16:41:36 -04:00
Ethan Frey e90d6db516 Update seed to a given height 2017-07-27 16:41:13 -04:00
Ethan Frey 95b16b3830 Code cleanup from emmanuels comment 2017-07-27 16:41:12 -04:00
Ethan Frey fd10387eb5 Tested register and update ibc via cli 2017-07-27 16:30:20 -04:00
Ethan Frey e242f30aeb Add --no-sign flag 2017-07-27 15:42:09 -04:00
Ethan Frey 63fc25e74e Add roles cli test, coin query supports multiple apps in actor 2017-07-19 16:14:26 +02:00
Ethan Frey 911dd1423e Add roles wrapper/tx/query command to basecoin 2017-07-19 14:26:40 +02:00
Ethan Frey e7da4c2d3a Add support for --prepare to store tx for multisig 2017-07-19 13:22:53 +02:00
rigel rozanski ac1ecc10c4 new library orders 2017-07-19 04:51:36 -04:00
Ethan Frey 942506c21a basecli tx handles json input 2017-07-18 22:40:04 +02:00
Ethan Frey 100522069d Moved cmd/basecli/commands into client/commands 2017-07-18 22:21:57 +02:00
Ethan Frey eb495e081b Move commands to client/commands 2017-07-18 21:57:37 +02:00