Commit Graph

18 Commits

Author SHA1 Message Date
rigelrozanski da538a8bf6 more comments cleanup 2018-02-08 10:36:37 +00:00
Ethan Buchman 14ce7f3366 types: update comments on ctx.GetOp 2018-02-06 14:48:18 -05:00
Emmanuel Odeke cf91a059c9 types: Context.GetOp should never crash
Ensure that requesting version <= 0 doesn't
cause a runtime out of bounds dereference,
with a simple validation and accompanying tests
to ensure we never regress.

Since GetOp allows int64, it is fair game
that it should except out of range inputs,
plus this is an SDK so is bound to be abused
both unintentionally and intentionally.

Fixes #400
2018-02-06 14:48:07 -05:00
Jae Kwon c368b1062c Add docs/design.md; Add sketchy for illustration 2018-01-28 15:20:45 -08:00
Jae Kwon 05036e35d2 CacheWrap after AnteHandler 2018-01-26 06:54:03 -08:00
Jae Kwon be665d53fe Substore->Store; BaseApp has db; Mapper 2018-01-22 06:20:46 -08:00
Jae Kwon a74293e4ba godoc tweak 2018-01-20 15:03:57 -08:00
Ethan Buchman 5f76febce8 auth and bank compile 2018-01-12 19:17:17 -08:00
Ethan Buchman 5e46eea616 types and store compile 2018-01-12 19:17:17 -08:00
Jae Kwon ba2b4f0f21 WIP: refactor
Refactor

* No more decorators, but rather types.AntiHandler
* No more handlers, but rather types.MsgHandler
* Ability to pass "stores" in NewXYZHandler()
* Coins live in types, and Accounts have coins
* Coinstore -> bank
2018-01-12 19:17:17 -08:00
Jae Kwon 620bdf409f Update context to track thePast 2018-01-12 19:17:17 -08:00
Jae Kwon 51e6144c0d Initial commit for permissioning... 2018-01-12 19:17:17 -08:00
Jae Kwon e7b38b3fb9 ABCI w/ more non-nullable fields 2017-12-22 00:23:37 -08:00
Jae Kwon 623e77d5a2 Context is more immutable 2017-12-21 23:30:14 -08:00
Ethan Buchman a9b2636439 Coin (#312)
* wip: tests and fixes for kvstore iteration
* update for latest tmlibs
* types compiles
* x/coin almost compiles
* x/coin: move things out of the way so it builds
* rebase fixes
* update glide
* add test for ChainDecorators
2017-12-21 03:31:33 -08:00
Jae Kwon a2a1151a4f
Unify CheckTx and DeliverTx (#286)
Unify CheckTx and DeliverTx
2017-12-03 21:25:37 -08:00
Jae Kwon 6e8e4331ea ... 2017-11-26 20:29:17 -08:00
Jae Kwon 6a9b8c3a92 Sweeping util/* 2017-11-26 02:19:17 -08:00