Commit Graph

2739 Commits

Author SHA1 Message Date
Ethan Buchman
228b90eb7e README makeover 2018-01-17 19:15:07 -05:00
Jae Kwon
81b6012021 Vendor tools into tools/* (#331)
* Add tools dir
* Update Makefile to call tools/Makefile
* Add cmd/basecoind to make make pass
2018-01-16 11:24:20 -08:00
Ethan Buchman
17870670d1 app: fix test 2018-01-15 20:38:56 -05:00
Ethan Buchman
124f93b20f x/bank: fix test 2018-01-15 20:21:33 -05:00
Ethan Buchman
1b82ff7a9a x/auth: fix test 2018-01-15 20:19:39 -05:00
Ethan Buchman
48a864f93d store: fix tests 2018-01-15 20:10:46 -05:00
Ethan Buchman
e4676102a7 dummy compiles 2018-01-15 20:01:51 -05:00
Ethan Buchman
381424460c basecoin compiles 2018-01-14 22:49:57 -05:00
Ethan Buchman
d2a801a513 fix glide. basecoin doesnt compile ... 2018-01-13 12:37:00 -05:00
Ethan Buchman
2d56729a1f TransferHandlerFn -> NewHandler 2018-01-12 19:17:17 -08:00
Ethan Buchman
5f76febce8 auth and bank compile 2018-01-12 19:17:17 -08:00
Ethan Buchman
ab438c3f45 app compiles 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
fcd8e88e65 Fix x/coin imports 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
Ethan Buchman
d3de10e22b move sendtx into coinstore 2018-01-09 19:11:00 -08:00
Ethan Buchman
e908cfbb6f move account back to types 2018-01-09 19:11:00 -08:00
Ethan Buchman
f6a875d476 x: add some tests for sendtx and account 2018-01-09 19:11:00 -08:00
Ethan Buchman
e8e5e0cdfe move a .attic to _attic 2018-01-09 19:11:00 -08:00
Ethan Buchman
3ba3d6b02f move coins and accounts out of types 2018-01-09 19:11:00 -08:00
Ethan Buchman
3235b2d647 update glide 2018-01-06 16:07:54 -05:00
Ethan Buchman
85eb58b7c1 update circle 2018-01-06 15:57:42 -05:00
Ethan Buchman
2c1d5332be make test/install 2018-01-06 15:53:31 -05:00
Ethan Buchman
e45ad068fb move things to _attic 2018-01-06 15:35:22 -05:00
Ethan Buchman
c5aeef3f2f
Merge pull request #316 from cosmos/first-app
dummy app
2018-01-05 13:19:52 -05:00
Ethan Buchman
8f14e4be66
Merge pull request #314 from cosmos/sdk2-app
New App structure
2018-01-05 11:30:51 -05:00
Ethan Buchman
1d07f88867 new basecoin example 2018-01-03 20:20:21 -05:00
Ethan Buchman
99d9db39a6 dummy app 2017-12-30 19:46:50 -05:00
Jae Kwon
657820372c App compiles. Ready to build on it 2017-12-26 17:04:48 -08:00
Jae Kwon
ab2cef884d Move Coins to types 2017-12-25 00:57:07 -08:00
Jae Kwon
e7b38b3fb9 ABCI w/ more non-nullable fields 2017-12-22 00:23:37 -08:00
Jae Kwon
e308810a51 WIP app.go... 2017-12-21 23:30:44 -08:00
Jae Kwon
623e77d5a2 Context is more immutable 2017-12-21 23:30:14 -08:00
Jae Kwon
3acc94e7cd WIP: Fixing App to compile 2017-12-21 20:19:44 -08:00
Jae Kwon
1afab45cf5 Move store/types.go to types/store.go and alias 2017-12-21 20:05:41 -08:00
Jae Kwon
cd278dea6c Fix dependency in store 2017-12-21 19:48:29 -08:00
Jae Kwon
62f736fbd0 Update comment on usage of sdkErrors 2017-12-21 17:56:57 -08:00
Jae Kwon
5c06e56c24 WIP: Implementing App w/ tests 2017-12-21 03:44:59 -08:00
Jae Kwon
45c2e9c30b curVersion -> nextVersion 2017-12-21 03:44:27 -08:00
Jae Kwon
00d73c397c BaseApp -> App and cleanup, WIP 2017-12-21 03:44:21 -08:00
Jae Kwon
6f9a08d921 Conform to new tmlibs Iterator 2017-12-21 03:44:04 -08:00
Jae Kwon
1ec9e2e0ae Commit, and working on InitState/SetOpetion 2017-12-21 03:41:40 -08:00
Jae Kwon
d681049023 CommitMultiStore, and SetCommitStoreLoader->SetSubstoreLoader 2017-12-21 03:39:00 -08:00
Jae Kwon
6b5f08e918 Fix errors/ and x/coin/errors.go 2017-12-21 03:31:33 -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
Ethan Buchman
72b0ed004b wip: tests and fixes for kvstore iteration 2017-12-21 03:31:33 -08:00
Jae Kwon
66e6225d13 Update glide file 2017-12-19 20:52:07 -08:00
Jae Kwon
eb1f877d3d
KVStore refactor (#303)
I removed that stuff about cwwMutex and CacheWraps expiring. It was unnecessary complexity given that users need not write concurrent logic. If you have 2 CacheKVStores and you Write on one and later you Write on the other one, they will both write, and strange things may happen. But that’s OK, it’s kinda the expected (unsurprising) behavior. And now the code is much simpler.

Also I got rid of IterKVStore. It’s not necessary to distinguish them because we can have KVStore.Iterator() return nil or panic or an empty iterator. Further simplification…

KVStore.CacheKVStore() doesn’t exist. No need, just call NewCacheKVStore(parent).

Originally I wanted the .CacheKVStore() method because you can make the implementor be responsible for ensuring that returned CacheWraps don’t trample each other. But as written previously this complicates the code a lot more and it isn’t strictly necessary. It’s a kind of magic that maybe should just be avoided.

sdk.Iterator is dbm.Iterator. The plan is to conservatively add more aliases into the “sdk” namespace.

GetError() is removed from Iterator. We need to just panic to be consistent. More simplification.
2017-12-12 20:13:51 -08:00