Commit Graph

164 Commits

Author SHA1 Message Date
Ethan Frey
5efbbc3237 One step for module eyes commands compiling 2017-10-25 19:56:48 +02:00
Ethan Frey
8b8de70f53 Auth module passes all tests 2017-10-25 19:56:48 +02:00
Ethan Frey
d2ed8c8871 More functioning auth tests 2017-10-25 19:56:48 +02:00
Ethan Frey
3aeab43acb Auth Tx sign tests pass 2017-10-25 19:56:48 +02:00
Ethan Frey
8e442d5ded Revamped signature tx building blocks 2017-10-25 19:56:48 +02:00
Ethan Frey
cce6e6cb33 Get auth module to compile 2017-10-25 19:56:48 +02:00
Ethan Frey
31b8abf58a module eyes works 2017-10-25 19:56:48 +02:00
Ethan Frey
9211564e0b Move postponed functionality to _attic so we can focus 2017-10-25 19:56:48 +02:00
Ethan Frey
2a3c072cc5 Util handlers compile and pass tests 2017-10-25 19:56:48 +02:00
Ethan Frey
a90741f2df Cleanup base module -> util 2017-10-25 19:56:48 +02:00
Ethan Frey
995feb532c Update after rebase 2017-10-25 19:35:36 +02:00
Ethan Frey
9442e7e04a Cleaned up naming of seed->commit 2017-10-25 19:35:36 +02:00
Ethan Frey
c4e87dbf10 Fixed ibc tests 2017-10-25 19:35:36 +02:00
Ethan Frey
1b7bec230d make install works 2017-10-25 19:35:36 +02:00
Ethan Frey
40bb1fdca5 Update ibc imports 2017-10-25 19:35:36 +02:00
Ethan Frey
7fad21d800 Use own ErrNoData, not from light-client 2017-10-25 19:35:36 +02:00
Ethan Frey
f40807ce5f Update ibc unit tests for height+1 2017-10-25 19:14:28 +02:00
Ethan Frey
0d9c8de958 Fix IBC off-by-one with proofs 2017-10-25 19:14:28 +02:00
Ethan Frey
609600d322 Fixed height handling in rest queries 2017-10-25 19:14:28 +02:00
Ethan Frey
c4ead8b8a3 Expose height flag in all queries 2017-10-25 19:14:28 +02:00
Ethan Frey
422e67b382 Update deps: tendermint/abci/iavl, fix code 2017-10-25 19:14:28 +02:00
Ethan Frey
9b206153e2 Eyes takes init state, fix cli test about genesis 2017-10-20 13:42:03 +02:00
Ethan Frey
f967c1dc07 Modify IBC to work with new proof serialization 2017-09-08 20:47:46 +02:00
Ethan Frey
2951763660 Moved merkleeyes->iavl and updated references 2017-09-08 20:47:46 +02:00
Ethan Frey
041943c441 Rename all packages and imports to cosmos-sdk 2017-08-21 22:15:15 +01:00
Matt Bell
dac4d9e155 Started implementing nonce REST query handler 2017-08-18 23:27:51 +01:00
Emmanuel Odeke
dfae4ccdbd modules/coin/rest: incorporated feedback from @ebuchman 2017-08-18 22:32:04 +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
Alexis Sellier
cedb66066c Fix return args 2017-08-08 12:21:18 +02: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
6e38609e3f Add CLI commands as sub-package 2017-08-07 18:50:33 +02:00
Ethan Frey
464ea226f5 Test the handlers and fix type byte for no conflicts 2017-08-07 18:50:33 +02:00
Ethan Frey
4c663d5551 Add handler and store
Notice that everything has json tags and that we check price in CheckTx,
while we run real code in DeliverTx.  Return values are meant for the client.
2017-08-07 18:50:33 +02:00
Ethan Frey
9fe2f6b365 Setup first tx, error code 2017-08-07 18:50:33 +02:00
Ethan Frey
d6d6b75736 Renamed client/commands/proofs to client/commands/query 2017-08-04 20:50:36 +02:00
Ethan Frey
0de3ecc741 Compiles and all tests pass - even IBC with new proofs 2017-08-04 20:02:23 +02:00
Alexis Sellier
831c9ae3ec Use Get/GetParsed everywhere 2017-08-04 19:21:40 +02:00
Ethan Frey
f2adf3645a role cli uses hex for consistency 2017-08-04 14:44:28 +02:00
Ethan Frey
640f06998a Moved all gas and payment values to uint64 to make sure we are safe here 2017-08-04 14:11:01 +02:00
Ethan Frey
2f4f875dd4 Cleanup from PR comments 2017-08-04 13:50:55 +02:00
Ethan Frey
21e2399fc4 Tested and fixed multiplexer, add more helpers 2017-08-03 21:41:24 +02:00
Ethan Frey
74070f1cac Add module tests for checktx return values 2017-08-03 21:41:24 +02:00
Ethan Frey
1715c0aeba Handlers and middlewares add gas prices 2017-08-03 21:41:24 +02:00
Ethan Frey
ff658f0326 Reenable multiplexer 2017-08-03 21:41:24 +02:00
Ethan Frey
37550ca91d Add InitValidate method for setup 2017-08-03 21:41:23 +02:00
Ethan Frey
4b69f1d5ba Rename SetOption to InitState 2017-08-03 21:41:23 +02:00
Ethan Frey
eb08136104 Fix all tests for CheckTx/DeliverTx split 2017-08-03 21:41:23 +02:00