Commit Graph

238 Commits

Author SHA1 Message Date
mossid fbfdbd4266 stdlib -> lib 2018-04-19 21:07:56 +02:00
mossid 2c10c868f4 prefixed storekey 2018-04-19 21:07:56 +02:00
mossid cc07dce8f2 mock store 2018-04-19 21:07:56 +02:00
mossid 36c6f72690 add comment & write test for Iterate()s 2018-04-19 21:07:56 +02:00
rigelrozanski 5c78c382f9 stdlib linting 2018-04-19 13:04:40 -04:00
rigelrozanski d28efaac27 many renames / golint compliance 2018-04-19 00:49:24 -04:00
rigelrozanski c63a545206 stake handler tests 2018-04-18 12:19:35 -04:00
Christopher Goes f8e44b5b00 Error codespacing (#809)
* Initial codespacing layout (ref #766)
* Add codespace to Router (ref #766)
* Implement Codespacer and update modules
* Default codespaces, testcases
* Update error formatting, codespacer tests
* Add RegisterOrPanic testcase
* Update CHANGELOG
2018-04-17 19:16:21 -07:00
Christopher Goes 3bbb15f454
Add tx to feeHandler, move around in example apps 2018-04-16 14:58:19 +02:00
Christopher Goes 39ee95abe4
Refactor to use FeeHandler function 2018-04-16 14:15:03 +02:00
Christopher Goes e870163ec0
Implement fee pool pseudo-account in sdk.AccountMapper 2018-04-16 13:59:56 +02:00
rigelrozanski bdc7fe56ba cachecontext comments and changelog update 2018-04-10 15:44:49 -04:00
Joon 1c8094c6bd
Update context.go 2018-04-10 17:07:54 +02:00
mossid 8ed15f7e9d typo 2018-04-10 17:06:02 +02:00
mossid 442e677300 add CacheContext 2018-04-10 17:04:27 +02:00
Rigel 18ac0f99d1
Merge pull request #767 from cosmos/sunny/IAVLsubspace
KVStore Subspaces
2018-04-09 20:22:38 -04:00
Sunny Aggarwal 69448f90e5 added just FF byte 2018-04-10 01:32:04 +02:00
Sunny Aggarwal 9b40cf184f added PrefixBytesTest 2018-04-08 00:58:03 +02:00
Jae Kwon c4bc888375 Fix almost all tests 2018-04-07 00:02:00 -07:00
Sunny Aggarwal 4bcfcd5cc8 added comments and got rid of fixed variable 2018-04-06 11:29:25 +02:00
Sunny Aggarwal 348e28a4b5
Merge branch 'develop' into sunny/IAVLsubspace 2018-04-05 22:02:21 +02:00
Sunny Aggarwal f10983ba06 address review 2018-04-05 21:54:30 +02:00
Ethan Buchman 9b5babba81 sort coins in genesis 2018-04-05 14:55:10 +03:00
Christopher Goes 0888096677
Replace Result.ToQuery with Error.QueryResult (closes #765) 2018-04-03 22:15:52 +02:00
Sunny Aggarwal c441ccdf01 added more test 2018-04-01 18:00:28 +02:00
rigelrozanski e5199f0c7c fix validator keeper functionality, add testing 2018-03-28 19:01:50 +02:00
rigelrozanski e25b78055b dep update
...

...
2018-03-28 19:01:50 +02:00
rigelrozanski 4e45d7368b rebase fixes 2018-03-28 19:01:50 +02:00
rigelrozanski a4ab2fcf2f staking passing, low test coverage 2018-03-28 19:01:50 +02:00
rigelrozanski db0a275b23 rational to Exposed Fields 2018-03-28 19:01:50 +02:00
rigelrozanski 7da2789535 Rational -> Rat 2018-03-28 19:01:50 +02:00
rigelrozanski 3f0d7edb06 gettin' stakin' tests up to snuff 2018-03-28 19:01:50 +02:00
Ethan Buchman af6c1a3f02 types/rational: use encoding/json
minor fixes

working on compiling
2018-03-28 19:01:50 +02:00
rigelrozanski dc8636390c refactor, staking uses addresses instead of pubkey
staking refactoring working

working
2018-03-28 19:01:50 +02:00
rigelrozanski 292e156872 werkin to compile
working

working refactor staking
2018-03-28 19:01:49 +02:00
rigelrozanski c8c85dfbc8 ported over rational 2018-03-28 19:01:49 +02:00
rigelrozanski 514470b4d6 working porting rational 2018-03-28 19:01:49 +02:00
rigelrozanski 1ed7206efe added rational to types 2018-03-28 19:01:49 +02:00
Christopher Goes 578392d4b2 Address Rigel review - also run gofmt 2018-03-28 11:24:31 +02:00
Christopher Goes 5b642062a7 Initial per-module genesis initialization 2018-03-28 11:24:31 +02:00
Sunny Aggarwal 7967c1df75 coin math 2018-03-25 19:35:45 +02:00
Ethan Buchman 723889570e ErrTxParse->ErrTxDecode; check for empty bytes in account and tx 2018-03-21 02:44:17 +01:00
Ethan Buchman e4b8010077 ParseAccount -> AccountDecoder 2018-03-21 02:22:15 +01:00
mossid 3105f7e18e modify types/errors* 2018-03-19 23:31:23 +01:00
Joon e80f7b040c
Merge branch 'develop' into joon/ibc-mvp1 2018-03-19 22:53:58 +01:00
Ethan Buchman 984aff12da
Merge pull request #642 from cosmos/sunny/errors
move some errors to sdk from bank
2018-03-19 22:37:30 +01:00
Adrian Brink 54b162f5c3
Merge branch 'develop' into joon/ibc-mvp1 2018-03-18 17:11:34 +01:00
Adrian Brink 6c9b62d461
Add errors to IBC module 2018-03-18 14:51:08 +01:00
Sunny Aggarwal 3e91e12a2f moved errors to sdk from bank 2018-03-18 03:42:54 +01:00
Ethan Buchman 1491de4522 types/errors_test.go 2018-03-18 02:04:08 +01:00
Ethan Buchman 64852138b6 fix the tests. includes some hacks 2018-03-18 02:02:26 +01:00
Ethan Buchman 683663f680 fixes post rebase 2018-03-17 23:09:04 +01:00
Ethan Buchman 7c3213fa00 fixes from review 2018-03-17 22:08:19 +01:00
Ethan Buchman a908a01fe2 types/tx_msg_test.go 2018-03-17 22:08:18 +01:00
Ethan Buchman dd4a86b856 x/auth: crank the test coverage 2018-03-17 21:20:24 +01:00
Ethan Buchman 3babf8c2d9 fix and clean fees and x/auth 2018-03-17 19:54:18 +01:00
Ethan Buchman 45f8ccbe90 x/auth: cleanup ante handler 2018-03-17 18:34:06 +01:00
Ethan Buchman be7cb6c96c types: introduce StdFee 2018-03-17 18:34:06 +01:00
Ethan Buchman eb23803833 remove tx.GetFeePayer 2018-03-17 18:34:06 +01:00
Ethan Buchman 806b4b2603 types/stdlib 2018-03-15 11:09:04 +01:00
mossid 861eb5da1c revert & rebase; add stdlib and test 2018-03-14 19:20:15 +01:00
Ethan Buchman 2336a20f5a fix cli to sign StdSignDoc. fixes #620 2018-03-14 13:11:19 +01:00
Ethan Buchman 661d0fd7e8 types: StdSignDoc includes sequence for each sig 2018-03-13 01:42:13 +01:00
Ethan Buchman a05ea5fcc9 implement replay protection 2018-03-13 01:42:13 +01:00
Ethan Buchman b906c141bd x/bank: remove Sequence from Input 2018-03-13 01:42:13 +01:00
rigelrozanski 6dec9353be working new cool module in basecoin 2018-03-04 17:21:37 +00:00
Ethan Buchman 62d6a5de46 crypto.Address -> sdk.Address 2018-03-02 02:49:07 -05:00
rigelrozanski 3be46395cf restructure to remove deps on example 2018-03-01 02:36:57 +00:00
Ethan Frey c083678cae cleaned up basecli tx so it really works 2018-03-01 02:36:57 +00:00
Jae Kwon 7f4bcff3cf Add GetCommitKVStore and CommitKVStore 2018-02-21 09:49:33 -05:00
Ethan Buchman 5019700425 Set(Begin/End)Blocker and some comments 2018-02-18 13:48:36 -05:00
Ethan Buchman 958a632eed baseapp: ctxCheck and ctxDeliver, begin/endBlocker 2018-02-17 18:14:15 -05:00
Ethan Buchman c31f871de6 finish removing TestApp and TestTx 2018-02-17 16:32:30 -05:00
Ethan Buchman c7df77ce3c simplify baseapp and InitStater -> InitChainer 2018-02-17 16:32:30 -05:00
Ethan Buchman 1698e4e2d8 small test and some comments 2018-02-17 16:32:30 -05:00
Ethan Buchman d9ebe34c32 fixes from review 2018-02-13 07:30:51 -05:00
rigelrozanski ed662566eb remove genesis of checkTx 2018-02-12 12:55:22 +00:00
rigelrozanski 7206c434d4 genesis exisiting tests pass 2018-02-09 12:48:11 +00:00
rigelrozanski 17acf9e18d working 2018-02-09 04:33:42 +00:00
rigelrozanski 849139ebeb working 2018-02-08 21:16:33 +00:00
rigelrozanski 6eaafa496a wip genesis parsing 2018-02-08 10:36:37 +00:00
rigelrozanski 7643dea255 genesis wip compiles 2018-02-08 10:36:37 +00:00
rigelrozanski da538a8bf6 more comments cleanup 2018-02-08 10:36:37 +00:00
Ethan Frey c73f08c845 Make GetStoreByName private, as only needed by MultiStore Query 2018-02-06 17:20:29 -05:00
Ethan Frey bc325c4d1c Add Query routing to rootMultiStore 2018-02-06 17:20:29 -05:00
Ethan Frey 57b28d95de Add GetStoreByName to MultiStore to help with Query lookups 2018-02-06 17:20:29 -05: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
Adrian Brink 0b5c262f35 Need to trigger rebuild 2018-01-28 18:54:54 -08:00
Adrian Brink 12fef05733 Add note about contract 2018-01-28 18:54:54 -08:00
Adrian Brink 1cc0cf236c Add tests for coins 2018-01-28 18:54:54 -08:00
Jae Kwon c368b1062c Add docs/design.md; Add sketchy for illustration 2018-01-28 15:20:45 -08:00
Jae Kwon b95b67d520 Separation of Tx from Msg; CodeType 2018-01-26 06:54:03 -08:00
Jae Kwon 05036e35d2 CacheWrap after AnteHandler 2018-01-26 06:54:03 -08:00
Jae Kwon c6bad0b325 Add first Basecoin test harness 2018-01-26 06:54:03 -08:00
Jae Kwon de5bf2ebc6 Add Coins.AmountOf 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 8fda920de0 auth.AccountStore assumes go-wire; Remove GetTxBytes() from Tx 2018-01-20 18:11:38 -08:00
Ethan Buchman 6d3b5cb402 basecoin: fix codecs, add some tests 2018-01-20 18:11:38 -08:00
Jae Kwon a74293e4ba godoc tweak 2018-01-20 15:03:57 -08:00