Commit Graph

120 Commits

Author SHA1 Message Date
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
Ethan Frey cbfd2cd611 Make it all compile with new Deliver/CheckTx 2017-08-03 21:41:23 +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
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 3027eeb3c3 Add CreditTx and tests 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 aad5a0f3a0 Test query ibc status and fix bugs 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 374f078b79 IBC test just rawtx, coin ibc in that module 2017-07-27 16:27:06 -04:00
Ethan Frey a925c8545c Refactored ibc test packet gen 2017-07-27 16:27:06 -04:00
Ethan Frey 0c5f0bdf77 Test outgoing ibc packets add to the chain credit properly 2017-07-27 16:27:06 -04:00
Ethan Frey 555e0d8ec8 test receiving and verifying incoming ibc packets 2017-07-27 16:26:00 -04:00
Ethan Frey 06492fa212 testing ibc post packet 2017-07-27 16:25:05 -04:00
Ethan Frey 9b099a2f36 Fix up ibc to work with new cli reorg 2017-07-27 16:25:05 -04:00
Ethan Frey 8659c4db68 Cleanup ibc handler per bucky 2017-07-27 16:25:05 -04:00
Ethan Frey 272a65a2c7 Add tests for creating packets 2017-07-27 16:25:05 -04:00
Ethan Frey 883b983611 Test ibc header updates with dynamic sets 2017-07-27 16:25:05 -04:00
Ethan Frey 3ddcf91303 Test ibc registration permissions 2017-07-27 16:25:04 -04:00
Ethan Frey f1c9697720 First ibc registration tests 2017-07-27 16:25:04 -04:00
Ethan Frey 5da2b75fa0 Clean up ibc PostPacket handling 2017-07-27 16:25:04 -04:00
Ethan Frey 30eced21c5 Wrote bulk of ibc post packet middleware 2017-07-27 16:25:04 -04:00
Ethan Frey 1fc222e449 Complete output queue for create packet 2017-07-27 16:25:04 -04:00
Ethan Frey 7d3c0cd3e7 Store registrar for ibc permissions in db 2017-07-27 16:25:04 -04:00
Ethan Frey 485ec80cca Add Registrar permission to attaching chains 2017-07-27 16:25:04 -04:00
Ethan Frey 91eb91b803 Start defining CreatePacket 2017-07-27 16:25:03 -04:00
Ethan Frey 715d573e1a Thoughts on permissioning 2017-07-27 16:25:03 -04:00
Ethan Frey 9c1e695d46 Implement register and update headers as handler 2017-07-27 16:25:03 -04:00
Ethan Frey b150c865f9 Add a light-client provider in the kvstore 2017-07-27 16:25:03 -04:00
Ethan Frey 697c2f1e04 Started on ibc module tx, types 2017-07-27 16:23:08 -04:00
Ethan Frey 27e7fbe4cf Last cleanup 2017-07-27 15:31:34 -04:00
Ethan Frey 51a29e4bb7 Ported everything to SimpleDB interface 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 5272ca5831 Add checkpoint to middleware not app 2017-07-27 15:31:31 -04:00
Ethan Frey 9cf0f257c0 Add benchmark for abci app 2017-07-25 10:06:07 -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 737e3740dd rigel: Handle auto-sequence when nonce=0 2017-07-19 13:32:55 +02:00