Commit Graph

407 Commits

Author SHA1 Message Date
rigelrozanski
ed5d088824 renaming and refactoring for fees 2018-05-17 09:17:14 -04:00
rigelrozanski
d871605241 staking fee distribution working commit 2018-05-17 09:15:06 -04:00
Christopher Goes
3d5b048444
Remove txGasLimit, update tests 2018-05-16 02:31:52 +02:00
Christopher Goes
4134bf922c
Address PR comments 2018-05-16 02:06:17 +02:00
Christopher Goes
1c4ed7b833
Gas-wrap ctx.KVStore 2018-05-16 01:13:48 +02:00
Christopher Goes
09517056b0
Catch out-of-gas panics 2018-05-16 01:13:48 +02:00
Adrian Brink
cd24244308
Sort all genesis transaction by node id
This ensures that users can rename the genesis transactions and they
will still be in the same order.
2018-05-13 18:19:42 -04:00
rigelrozanski
d44c7afa30 add range queries, add candidates query 2018-05-08 15:57:12 -04:00
Christopher Goes
23c9e2fb6f
Update CLI tests to test auto-sequencing 2018-05-04 05:43:29 +02:00
rigelrozanski
dd9b5e78f7 cleanup stake marshalJson -> marshalBinary 2018-05-01 16:41:04 -04:00
Adrian Brink
d52d74582a
Change fermion to steak 2018-04-30 16:24:46 -07:00
rigelrozanski
ce32117399 rational embedes bigRat 2018-04-30 17:21:14 -04:00
rigelrozanski
318e924145 refactor 2018-04-27 20:36:11 -04:00
rigelrozanski
10ddd7a3d3 refactor export function, working 2018-04-27 20:06:50 -04:00
Christopher Goes
67961476b4 Fix testsuite 2018-04-27 20:06:50 -04:00
Christopher Goes
5759f6ab60 Use account store key 2018-04-27 20:05:58 -04:00
Christopher Goes
ad77affb53 Add IterateAccounts & account export 2018-04-27 20:04:29 -04:00
Christopher Goes
10d2e5ae40 Move generateApp & exportApp to baseapp/helpers 2018-04-27 20:04:29 -04:00
Christopher Goes
f6cef02904 Reorder parameters & remove redundant check 2018-04-27 20:03:43 -04:00
Christopher Goes
df4fdb3642 Rebase & merge changes 2018-04-27 20:03:43 -04:00
Christopher Goes
9450779bba InitGenesis & WriteGenesis no longer functions of keepers 2018-04-27 20:03:43 -04:00
Christopher Goes
f92e83d2e0 Swap to general export command 2018-04-27 20:02:26 -04:00
Christopher Goes
55c82e44a2 export-stake command works 2018-04-27 20:00:58 -04:00
Christopher Goes
f71191e402 Add simple WriteGenesis for stake & cool modules 2018-04-27 20:00:58 -04:00
rigelrozanski
260ab69e4f cleanup, move simplestaking to democoin 2018-04-26 22:59:30 -04:00
rigelrozanski
514b3fba4e fix genesis tests 2018-04-26 14:26:39 -04:00
rigelrozanski
ade42e74b7 better init test 2018-04-26 14:26:39 -04:00
rigelrozanski
05c5809bae gaia init automatic key processing 2018-04-26 14:26:39 -04:00
rigelrozanski
7e2ac80137 cli testing fix 2018-04-26 14:26:39 -04:00
rigelrozanski
b9477ecbbe init refactor uses genesis transaction now 2018-04-26 14:26:39 -04:00
rigelrozanski
525a852b01 bug fixes to init from-pieces command 2018-04-26 14:26:39 -04:00
rigelrozanski
3aa4752737 stake cli init fixes 2018-04-26 14:26:39 -04:00
rigelrozanski
201908949a stake init overhaul 2018-04-26 14:26:39 -04:00
rigelrozanski
867d0e502c working genesis pieces 2018-04-26 14:26:39 -04:00
rigelrozanski
246e4bdac3 renames 2018-04-26 14:26:39 -04:00
rigelrozanski
d4c2d6fd4c fix cli tests 2018-04-26 14:26:39 -04:00
rigelrozanski
55c1e1dcfc init refactor 2018-04-26 14:26:39 -04:00
rigelrozanski
6748aa7bc6 first stab init refactor 2018-04-26 14:26:39 -04:00
Christopher Goes
56ac948dc6
REST folder restructure & cleanup 2018-04-25 16:18:06 +02:00
Sunny Aggarwal
016a1c8ec9 removed seal 2018-04-22 23:36:15 -07:00
rigelrozanski
ca3d3be3af better key output 2018-04-20 12:51:47 -04:00
rigelrozanski
ad0c776d94 show_validator now displays HEX by default, declare-candidacy also takes go-amino encoded 2018-04-19 15:18:31 -04:00
rigelrozanski
d28efaac27 many renames / golint compliance 2018-04-19 00:49:24 -04:00
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
Ethan Frey
746ae28eaa Add ibc query commands 2017-07-27 16:27:06 -04:00
Ethan Frey
2b79aa0413 Code cleanup from emmanuel 2017-07-27 15:31:34 -04:00
Ethan Frey
d607b76234 Reorg state package and fix all imports 2017-07-27 15:31:33 -04:00
Ethan Frey
f6e7d4b741 Pull in logic from merkleeyes, get it all working with trees 2017-07-27 15:31:32 -04:00
Ethan Frey
ace0e4cf78 remove key.json from basecoin init 2017-07-22 09:56:22 -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
Ethan Frey
d712d6ffd1 Fixed imports in main.go 2017-07-19 12:22:01 +02:00
rigel rozanski
ac1ecc10c4 new library orders 2017-07-19 04:51:36 -04:00
Ethan Frey
100522069d Moved cmd/basecli/commands into client/commands 2017-07-18 22:21:57 +02:00
Ethan Frey
eb495e081b Move commands to client/commands 2017-07-18 21:57:37 +02:00
Ethan Frey
a9e4a94402 Moved all commands from light-client into basecoin 2017-07-18 21:23:11 +02:00
Ethan Frey
a060bde1c4 Add more flags to help with multisig 2017-07-18 20:45:48 +02:00
Ethan Frey
7b0934bf9f Ripped about cmd logic to make middleware modular 2017-07-18 20:12:51 +02:00
Ethan Frey
65e9905a83 Ensure valid address in basecoin init 2017-07-18 12:31:57 +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
rigel rozanski
3d5cf393b9 PR changes 2017-07-18 12:08:29 +02:00
rigel rozanski
007230e583 swap the nonce & chain check order in stack 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
6d35b1f934 Clean up nonce wrapper in cli 2017-07-18 12:08:29 +02:00
rigel rozanski
23615c5d37 almost done! 2017-07-18 12:08:29 +02:00
rigel rozanski
6e07dbe7c3 nonce testing 2017-07-18 12:08:28 +02:00
rigel rozanski
16b039534d working sequence number with errors 2017-07-18 12:08:28 +02:00
rigel rozanski
50e4d31149 working nonce module 2017-07-18 12:08:27 +02:00
Ethan Frey
c1fc5ae3c8 Add --fee flag to sendtx 2017-07-12 20:51:07 +02:00
Ethan Frey
36a453ea41 Fee handler set by default, tested app level 2017-07-12 20:38:54 +02:00
Ethan Frey
5950ff34e3 remove sequence number from coins 2017-07-12 19:25:14 +02:00
Ethan Frey
bb61b9fca3 Update cli to properly query into app state-space 2017-07-11 15:35:43 +02:00
Ethan Frey
64f2c63e21 Fixes as per Rigels comments on PR 2017-07-11 13:44:44 +02:00
Ethan Frey
100d88d7dd Fix up all tests to handle NewChainTx change 2017-07-10 11:57:37 +02:00
rigel rozanski
1821f8bd7a more cleanup
int
2017-07-07 01:27:29 -04: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
a047e210fa Moved the handlers from stack into modules 2017-07-06 16:00:54 +02:00
Ethan Frey
6983f61961 Moved Coins from types -> modules/coin 2017-07-06 14:59:45 +02:00
Ethan Frey
912c24093f Removed a whole lot of old crud 2017-07-06 13:40:02 +02:00
rigel rozanski
9b561344fe addressing PR 154 comments 2017-07-06 05:39:58 -04:00
rigel rozanski
35845a958f fix cmd/bascoin/commands/init old flags 2017-07-05 07:08:56 -04:00
rigel rozanski
5044032a23 golint compliant for app, cmd folders 2017-07-05 06:57:52 -04:00
rigel rozanski
375fad3bec go linting working 2017-07-04 23:28:27 -04:00
Ethan Frey
6d56891a0f Re-implement counter plugin 2017-07-04 13:43:25 +02:00
Ethan Frey
9cd303d1fd Cleaned up unneeded adapters 2017-07-03 22:34:30 +02:00
Ethan Frey
413ea2e23f basecli works for sendtx and cli tests 2017-07-03 22:30:12 +02:00
Ethan Frey
af132fbab8 Fixed basecli query for 0.7 2017-07-03 21:53:58 +02:00
Ethan Frey
fa1a300943 Add SetOption to all middleware and handlers 2017-07-03 18:10:46 +02:00
Ethan Frey
159574db89 Move ChainID into context 2017-07-03 17:32:01 +02:00
Ethan Frey
ef0ab758ed Cleaned up logger on constructors in App, State 2017-07-03 16:54:47 +02:00
Ethan Frey
d0a2041c89 Remove references to IBC from binaries 2017-07-03 16:47:03 +02:00
rigel rozanski
ec7ef41fdc First Full Auto-Tutorial Test 2017-06-29 05:47:38 -04:00
Ethan Frey
7fa01a2a74 Add experimental support for bash autocomplete 2017-06-28 11:54:48 +02:00
Ethan Frey
71946ada6f Add new rpc subcommand from light-client 2017-06-27 18:13:29 +02:00
Ethan Frey
41bc371a1d Update dependencies, set merkleeyes logger 2017-06-27 15:20:32 +02:00
Ethan Frey
ad5c129b8e #127: init messages refer to command name 2017-06-27 14:07:55 +02:00
Ethan Frey
e839a92f88 Updated RequireInit, latest light-client 2017-06-26 21:36:49 +02:00
Ethan Frey
e37c0cf538 Update dependencies, improve basecli init check 2017-06-26 18:22:51 +02:00
Ethan Frey
14c39e7312 Support all "tendermint node" flags in "basecoin start" 2017-06-26 18:22:50 +02:00
Ethan Frey
18d7b6426b Add support for --log_level 2017-06-26 18:22:50 +02:00