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
d0920ac1cf
Add post packet to cli and test... bug
2017-07-27 16:41:13 -04:00
Ethan Frey
9640547c01
Expose credit tx to cli and test
2017-07-27 16:41:12 -04:00
Ethan Frey
6135345af8
Add issuer position to grant credit
2017-07-27 16:36:47 -04:00
Ethan Frey
b7f31ad70a
Test sendtx with foreign addr creates proper ibc packet
2017-07-27 16:36:15 -04:00
Ethan Frey
fd10387eb5
Tested register and update ibc via cli
2017-07-27 16:30:20 -04:00
Ethan Frey
de537c34ac
Add cli support for register/update ibc
2017-07-27 16:27:06 -04:00
Ethan Frey
746ae28eaa
Add ibc query commands
2017-07-27 16:27:06 -04:00
Ethan Frey
2b79aa0413
Code cleanup from emmanuel
2017-07-27 15:31:34 -04:00
Ethan Frey
d607b76234
Reorg state package and fix all imports
2017-07-27 15:31:33 -04:00
Ethan Frey
f6e7d4b741
Pull in logic from merkleeyes, get it all working with trees
2017-07-27 15:31:32 -04:00
Ethan Frey
ace0e4cf78
remove key.json from basecoin init
2017-07-22 09:56:22 -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
d712d6ffd1
Fixed imports in main.go
2017-07-19 12:22:01 +02:00
rigel rozanski
ac1ecc10c4
new library orders
2017-07-19 04:51:36 -04: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
Ethan Frey
a9e4a94402
Moved all commands from light-client into basecoin
2017-07-18 21:23:11 +02:00
Ethan Frey
a060bde1c4
Add more flags to help with multisig
2017-07-18 20:45:48 +02:00
Ethan Frey
7b0934bf9f
Ripped about cmd logic to make middleware modular
2017-07-18 20:12:51 +02:00
rigel rozanski
8dc5fc718d
tests working
2017-07-18 12:08:30 +02:00
rigel rozanski
cb00c00f0d
getting query command to operate
2017-07-18 12:08:30 +02:00
rigel rozanski
3d5cf393b9
PR changes
2017-07-18 12:08:29 +02:00
rigel rozanski
007230e583
swap the nonce & chain check order in stack
2017-07-18 12:08:29 +02:00
Ethan Frey
9fd250209e
Cli now returns errors on non-zero code from DeliverTx
2017-07-18 12:08:29 +02:00
Ethan Frey
6d35b1f934
Clean up nonce wrapper in cli
2017-07-18 12:08:29 +02:00
rigel rozanski
23615c5d37
almost done!
2017-07-18 12:08:29 +02:00
rigel rozanski
6e07dbe7c3
nonce testing
2017-07-18 12:08:28 +02:00
rigel rozanski
16b039534d
working sequence number with errors
2017-07-18 12:08:28 +02:00
rigel rozanski
50e4d31149
working nonce module
2017-07-18 12:08:27 +02:00
Ethan Frey
c1fc5ae3c8
Add --fee flag to sendtx
2017-07-12 20:51:07 +02:00
Ethan Frey
36a453ea41
Fee handler set by default, tested app level
2017-07-12 20:38:54 +02:00
Ethan Frey
5950ff34e3
remove sequence number from coins
2017-07-12 19:25:14 +02:00
Ethan Frey
bb61b9fca3
Update cli to properly query into app state-space
2017-07-11 15:35:43 +02:00
Ethan Frey
64f2c63e21
Fixes as per Rigels comments on PR
2017-07-11 13:44:44 +02:00
Ethan Frey
100d88d7dd
Fix up all tests to handle NewChainTx change
2017-07-10 11:57:37 +02:00
rigel rozanski
1821f8bd7a
more cleanup
...
int
2017-07-07 01:27:29 -04:00
Ethan Frey
b757467f7b
Moved content of txs package to sit next to the handlers
2017-07-06 16:33:38 +02:00
Ethan Frey
a047e210fa
Moved the handlers from stack into modules
2017-07-06 16:00:54 +02:00
Ethan Frey
6983f61961
Moved Coins from types -> modules/coin
2017-07-06 14:59:45 +02:00
Ethan Frey
912c24093f
Removed a whole lot of old crud
2017-07-06 13:40:02 +02:00
rigel rozanski
9b561344fe
addressing PR 154 comments
2017-07-06 05:39:58 -04:00
rigel rozanski
35845a958f
fix cmd/bascoin/commands/init old flags
2017-07-05 07:08:56 -04:00
rigel rozanski
5044032a23
golint compliant for app, cmd folders
2017-07-05 06:57:52 -04:00
rigel rozanski
375fad3bec
go linting working
2017-07-04 23:28:27 -04:00
Ethan Frey
6d56891a0f
Re-implement counter plugin
2017-07-04 13:43:25 +02:00
Ethan Frey
9cd303d1fd
Cleaned up unneeded adapters
2017-07-03 22:34:30 +02:00
Ethan Frey
413ea2e23f
basecli works for sendtx and cli tests
2017-07-03 22:30:12 +02:00
Ethan Frey
af132fbab8
Fixed basecli query for 0.7
2017-07-03 21:53:58 +02:00