Commit Graph

3782 Commits

Author SHA1 Message Date
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
f04975c6a6 Merge pull request #230 from tendermint/feature/make-version
Set git commit in version for all binaries
2017-08-18 22:25:23 +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
27d86c7769 Merge pull request #222 from zramsay/roles-multi-sig
docs: roles and multi sig
2017-08-18 22:00:54 +01:00
Zach Ramsay
4c8bddb02a docs: roles PR fixes 2017-08-18 16:08:27 -04:00
Zach Ramsay
4e62c3a1c4 docs: no quotes needed for role 2017-08-18 15:55:44 -04:00
Alexis Sellier
9c7b1e023f Merge pull request #218 from tendermint/feature/client-proofs
Support non-existence proof
2017-08-18 13:06:08 +02:00
Alexis Sellier
d3cdce3850 Use more specific assertion functions 2017-08-16 16:55:25 +02:00
Zach Ramsay
d332207faa docs: roles and multi sig 2017-08-11 13:30:53 -04:00
Alexis Sellier
b69df980d1 Check proofs with latest commit 2017-08-11 14:10:06 +02:00
Alexis Sellier
6a642e33b8 Check returned height 2017-08-11 13:57:38 +02:00
Alexis Sellier
3f0c0ad8f5 Refactor function for readability 2017-08-11 13:34:39 +02:00
Alexis Sellier
3089673a2e Remove TODO 2017-08-10 15:30:45 +02:00
Alexis Sellier
eec4b10067 This doesn't need to be public 2017-08-10 15:10:21 +02:00
Alexis Sellier
77207a19db Fix some comments 2017-08-10 15:10:15 +02:00
Alexis Sellier
f9c3fce5b4 Write tx proof tests 2017-08-10 14:51:56 +02:00
Alexis Sellier
388f0eece7 Wrap error for good measure 2017-08-10 14:51:56 +02:00
Alexis Sellier
ee1a27e6fd Implement String method on *Bonsai 2017-08-10 14:51:56 +02:00
Alexis Sellier
54304ba5e6 Update merkleeyes dependency
It seems like to force it to update to latest unstable, we have to
specify origin/unstable.
2017-08-10 14:51:56 +02:00
Alexis Sellier
668eea8628 Fix return value when nothing is found 2017-08-09 13:13:16 +02:00
Alexis Sellier
a9df9aeef4 Make Makefile posix-compliant 2017-08-08 21:09:39 +02:00
Alexis Sellier
d1b49da825 Use new Certifier type from light-client 2017-08-08 18:52:28 +02:00
Alexis Sellier
1882376a34 Cleanup tests a bit 2017-08-08 18:06:14 +02:00
Alexis Sellier
80ef09f1ee Fix bogus height check 2017-08-08 16:32:01 +02:00
Ethan Frey
7857f25649 No sleep, just wait for one block to exist 2017-08-08 16:32:01 +02:00
Ethan Frey
f7d4b7f721 Add tests that the proofs verify 2017-08-08 12:27:40 +02:00
Alexis Sellier
cedb66066c Fix return args 2017-08-08 12:21:18 +02:00
Alexis Sellier
225f0e7dbe Rename function 2017-08-08 12:20:21 +02:00
Alexis Sellier
2b735d8968 Support non-existence proof 2017-08-08 11:51:15 +02:00
Alexis Sellier
538824d736 Change module import etc -> eyes 2017-08-07 19:24:58 +02:00
Alexis Sellier
15d2e2525f Start working on proof tests 2017-08-07 19:23:44 +02:00
Ethan Frey
2b1c4dd8b9 Really renames etc -> eyes... finish the job 2017-08-07 19:21:07 +02:00
Ethan Frey
3f6071da85 Merge pull request #216 from zramsay/key-management
docs: key management guide
2017-08-07 19:05:38 +02:00
Zach Ramsay
0cd8a7737c docs/keys: little PR fixes 2017-08-07 13:00:49 -04:00
Ethan Frey
13d739ac48 Merge pull request #211 from tendermint/feature/reimplement-merkleeyes
Reimplement merkleeyes
2017-08-07 18:56:58 +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
483ed6d87a Add cli tests for eyes query and add to Makefile 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
f4c45b6273 Merge pull request #214 from zramsay/basecoin-basics
docs: clean up basecoin-basics
2017-08-07 18:38:04 +02:00
Zach Ramsay
a33725e9f4 docs: key management guide 2017-08-07 11:39:54 -04:00
Zach Ramsay
a7afe423e3 docs/basics: put clean up at the end 2017-08-07 09:46:51 -04:00
Zach Ramsay
2678529aed docs: simple in an unfavourable word for newsers 2017-08-07 09:20:23 -04:00
Ethan Frey
673814673e Refactored basecoin init a bit to use in eyes 2017-08-06 23:49:09 +02:00
Ethan Frey
3db48b8d9a Add helper function to parse a command flag 2017-08-06 22:51:29 +02:00