Commit Graph

264 Commits

Author SHA1 Message Date
rigelrozanski 0e8c3e4a5b remove gaia basecoin reference 2018-04-18 14:32:40 -04:00
rigelrozanski d36efcd417 unbond in gaia cli test 2018-04-18 14:21:07 -04:00
rigelrozanski 6f65867154 comment out go-bash race condition 2018-04-18 14:06:49 -04:00
rigelrozanski 2994af56c9 gaia new error codetype 2018-04-18 12:36:55 -04:00
rigelrozanski c80b9674cd stake CLI various fixes, confirmed working 2018-04-18 12:19:35 -04:00
rigelrozanski d344de3b62 stake test candidate query 2018-04-18 12:19:35 -04:00
rigelrozanski 09fe4c0262 fix stake query keys 2018-04-18 12:19:35 -04:00
rigelrozanski 265670297c fix PK encodings 2018-04-18 12:19:35 -04:00
rigelrozanski e584d5acac ci build -> install
pubkey issue

...

rebase fixes

...
2018-04-18 12:19:35 -04:00
rigelrozanski 158e9dd12d fixed cli tests 2018-04-18 12:19:35 -04:00
rigelrozanski 59f86b4251 interim borken 2018-04-18 12:19:35 -04:00
rigelrozanski ebb2faabe0 go-bash working 2018-04-18 12:19:35 -04:00
rigelrozanski 3ab032e1c6 cli testing 2018-04-18 12:19:35 -04:00
rigelrozanski 8ab77e2ab5 started gaia go-bash cli testing 2018-04-18 12:19:35 -04:00
rigelrozanski 996cafe972 register wire, stake changelog, stake genesis update 2018-04-18 12:19:35 -04:00
rigelrozanski 068ca5e3e6 fix gaia init genesis creation
int

int
2018-04-18 12:19:35 -04:00
rigelrozanski c63a545206 stake handler tests 2018-04-18 12:19:35 -04:00
rigelrozanski c90d62e035 rebase fixes 2018-04-18 12:18:28 -04:00
rigelrozanski c4a1c12119 gaia app_test for declare candidacy 2018-04-18 12:18:28 -04:00
rigelrozanski 8a34b91fac fix existing gaia tests 2018-04-18 12:18:28 -04:00
rigelrozanski 179caa5768 refactor gaia with stake 2018-04-18 12:18:28 -04:00
Christopher Goes 49b8978454 Swap all examples & testcases to use automatic DB namespacing 2018-04-14 17:05:50 -07:00
Ethan Buchman f275034830 gaiacli is just basecli 2018-04-09 20:40:16 +03:00
Ethan Buchman 1f93e965fb add log_level flag 2018-04-05 14:16:20 +03:00
Ethan Buchman 31a6806fd4 fix gaia 2018-04-05 13:47:54 +03:00
Ethan Buchman 02a2008c0d move gaia to cmd, update makefile 2018-04-05 13:08:19 +03:00
Ethan Frey 96f96ffc3d Moved basecoin into examples 2017-09-04 16:50:09 +02:00
Ethan Frey 041396b53e Moved eyes into example apps, cleaned up Makefile 2017-09-04 16:50:09 +02:00
Ethan Frey 041943c441 Rename all packages and imports to cosmos-sdk 2017-08-21 22:15:15 +01:00
Ethan Frey 7533cd9d7e Merge branch 'develop' into unstable 2017-08-18 23:44:49 +01:00
Matt Bell dac4d9e155 Started implementing nonce REST query handler 2017-08-18 23:27:51 +01:00
Emmanuel Odeke f52d92a40e modules/coin/rest: implemented CreateRole
* Note: Role must be a hex string, as enforced in tests/rest/cli.sh

```shell
$ curl -X POST http://localhost:8998/build/create_role --data \
'{
  "role":"DEADBEEF", "seq": 1,
  "min_sigs": 1,
  "signers": [{
    "addr": "4FF759D47C81754D8F553DCCAC8651D0AF74C7F9", "app": "role"
  }]
}'
```

```HTTP
HTTP/1.1 200 OK
Content-Type: application/json
Date: Tue, 08 Aug 2017 19:15:13 GMT
Content-Length: 387

{
  "type": "chain/tx",
  "data": {
    "chain_id": "test_chain_id",
    "expires_at": 0,
    "tx": {
      "type": "role/create",
      "data": {
        "role": "DEADBEEF",
        "min_sigs": 1,
        "signers": [
          {
            "chain": "",
            "app": "role",
            "addr": "4FF759D47C81754D8F553DCCAC8651D0AF74C7F9"
          }
        ]
      }
    }
  }
}
```

Updates #200
2017-08-18 22:32:04 +01:00
Ethan Frey 663f96b491 Unify version in all binaries 2017-08-18 22:04:50 +01:00
Ethan Frey a908c24235 Use linker flags to set git commit in version command 2017-08-18 22:04:50 +01:00
Ethan Frey 2b1c4dd8b9 Really renames etc -> eyes... finish the job 2017-08-07 19:21:07 +02:00
Ethan Frey ade9d4527b Rename module/etc to eyes as well 2017-08-07 18:50:34 +02:00
Ethan Frey 0133723aca Clean up comments 2017-08-07 18:50:33 +02:00
Ethan Frey 6bc5fa3876 Add eyes and eyescli main commands
Note how the all framework commands can be reused with a bit of configurations.
And one can add the custom query and tx commands.
2017-08-07 18:50:33 +02:00
Ethan Frey 673814673e Refactored basecoin init a bit to use in eyes 2017-08-06 23:49:09 +02:00
Ethan Frey d6d6b75736 Renamed client/commands/proofs to client/commands/query 2017-08-04 20:50:36 +02:00
Ethan Frey 6dae258767 Lots of cleanup 2017-08-04 20:36:50 +02:00
Emmanuel Odeke ee5d22010a
cmd/baseserver, */rest: allow baseserver to choose which handlers to use
Make handlers easily configurable to use in cmd/baseserver/main.go.
This way client users can trivially change what functionality they'd
like.
It involves moving ServeCmd out of client/rest to */main.go
and lets client/rest become a bazaar for available mux.Router
registrars.

Updates #200
2017-08-03 11:41:51 -06:00
Emmanuel Odeke 1a45755027 client/rest, modules/coin/rest: moved code around
After offline emails and a video call with @ethanfrey,
a goal was decided to move things around i.e:
- [X] Move /build/send and /query/account to modules/coin/rest

Due to that move, there is a lot of overlap between needed
code and utils so extracted common code to make
https://github.com/tendermint/tmlibs/pull/33
so make sure to pull in that commit into your tmlibs tree.

After code review feedback:
client/rest, modules/coin/rest: FoutputProof, PrepareSendTx helper

* Extract OutputProof to FoutputProof helper that can
be used in modules/coin/rest/handlers.go as proofs.FoutputProof
* Revert r.HandleFunc("/tx", doPostTx).Methods("POST") which
was erraneously deleted
* Use function signatures from "tendermint/tmblibs/common"
2017-08-02 12:57:29 -06: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 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