Commit Graph

26 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 d6d6b75736 Renamed client/commands/proofs to client/commands/query 2017-08-04 20:50:36 +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 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 37550ca91d Add InitValidate method for setup 2017-08-03 21:41:23 +02:00
Ethan Frey cbfd2cd611 Make it all compile with new Deliver/CheckTx 2017-08-03 21:41:23 +02: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 51a29e4bb7 Ported everything to SimpleDB interface 2017-07-27 15:31:33 -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
rigel rozanski ac1ecc10c4 new library orders 2017-07-19 04:51:36 -04:00
rigel rozanski 8617841296 errors cleanup 2017-07-19 01:23:13 -04:00
Ethan Frey 1cc671108e Fee middleware using IPC 2017-07-12 19:25:15 +02:00
Ethan Frey 60f3ecd9b1 Test multiple nested roles 2017-07-12 17:30:48 +02:00
Ethan Frey 33c9aa96f3 First end-to-end role tests 2017-07-12 17:24:12 +02:00
Ethan Frey 7e7f124bc9 Test create-role and fix CheckTx 2017-07-12 16:22:17 +02:00
Ethan Frey 771c08483e Remove prefix space in modules, done with state space 2017-07-11 15:11:10 +02:00
Ethan Frey 2a358010dd Clean up roles module with Rigels comments 2017-07-11 14:10:40 +02:00
Ethan Frey fbdec34ea6 fix typo 2017-07-11 13:56:39 +02:00
Ethan Frey 11a8c0d9a2 Add roles middleware and handler 2017-07-11 13:55:28 +02:00
Ethan Frey 3e52e6b959 Add role struct, storage, better tx validation 2017-07-11 13:54:41 +02:00
Ethan Frey 9eb3c3c7de Start specifying the roles module 2017-07-11 13:53:05 +02:00