Commit Graph

123 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 2b1c4dd8b9 Really renames etc -> eyes... finish the job 2017-08-07 19:21:07 +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 f2adf3645a role cli uses hex for consistency 2017-08-04 14:44:28 +02:00
Ethan Frey 4652779a3d Fix up flag handling 2017-07-29 17:23:21 -04:00
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
Ethan Frey 14bb65457c Add cli tests for rest 2017-07-29 17:11:23 -04:00
Ethan Frey 6632d88b3d IBC post packet test passes 2017-07-27 16:41:37 -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 d0920ac1cf Add post packet to cli and test... bug 2017-07-27 16:41:13 -04:00
Ethan Frey b7abee64f0 Test creating packet and query via cli 2017-07-27 16:41:12 -04:00
Ethan Frey 9640547c01 Expose credit tx to cli and test 2017-07-27 16:41:12 -04:00
Ethan Frey aad5a0f3a0 Test query ibc status and fix bugs 2017-07-27 16:30:20 -04:00
Ethan Frey fd10387eb5 Tested register and update ibc via cli 2017-07-27 16:30:20 -04:00
Ethan Frey 199ee81a97 Revert all on failed CheckTx, fee+nonce increment on failed DeliverTx 2017-07-27 15:31:33 -04:00
Ethan Frey 4414e69b78 Remove old test 2017-07-25 10:28:54 -04:00
Ethan Frey 44f6696f11 Proper tests for accessing a multi-sig account 2017-07-19 16:45:03 +02:00
Ethan Frey 5f1d98ba0f Tested sending 1 sig from role 2017-07-19 16:36:35 +02: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 a12d866ed1 --sequence=-1 broken if no sequence yet 2017-07-19 13:27:29 +02:00
rigel rozanski 0a9460dc93 auto-sequencing 2017-07-19 00:13:39 -04:00
Ethan Frey d9c39ff9e6 Bring more cli tests from light-client 2017-07-18 21:46:13 +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
Ethan Frey 71276a53b5 A failing cli test demonstating the missing query nonce command 2017-07-18 12:08:30 +02:00
rigel rozanski 3d5cf393b9 PR changes 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 e5db61a63a Cleanup counter tx check, add replay protection to cli tests 2017-07-18 12:08:29 +02:00
rigel rozanski 23615c5d37 almost done! 2017-07-18 12:08:29 +02:00
rigel rozanski 5ccf22bfb7 frey changes 2017-07-18 12:08:28 +02:00
Ethan Frey d6d1655ab1 Add support for --fee in countercli 2017-07-12 21:04:34 +02:00
Ethan Frey c1fc5ae3c8 Add --fee flag to sendtx 2017-07-12 20:51:07 +02:00
Ethan Frey 137f8a9ce1 Remove all sequence from coin, fixed cli tests 2017-07-12 19:25:15 +02: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 6983f61961 Moved Coins from types -> modules/coin 2017-07-06 14:59:45 +02:00
Ethan Frey 56e61c9431 Cli tests abort cleaner when server can't start 2017-07-06 13:49:02 +02:00
Ethan Frey 912c24093f Removed a whole lot of old crud 2017-07-06 13:40:02 +02:00
Ethan Frey 670e7b48d1 Counter uses dispatcher to deduct fees from account 2017-07-04 14:47:46 +02:00
Ethan Frey 8003034bbb Test reading back counter tx 2017-07-04 14:19:28 +02:00
Ethan Frey 49ebe59804 Get counter app working, with cli tests 2017-07-04 14:04:18 +02:00
Ethan Frey 473451f020 Integrate dispatcher into app, and fix tests 2017-07-04 12:46:57 +02:00
Ethan Frey 413ea2e23f basecli works for sendtx and cli tests 2017-07-03 22:30:12 +02:00
Ethan Frey ef0ab758ed Cleaned up logger on constructors in App, State 2017-07-03 16:54:47 +02:00
Ethan Frey d36486aed7 Print output addr on failed tx to help debug #147 2017-06-29 15:13:33 +02:00
rigel rozanski a08775052c circle fixes 2017-06-29 05:47:38 -04:00
Ethan Frey f5a546894c Resolve issue #135, support 0x on account queries 2017-06-26 18:22:51 +02:00