Commit Graph

37 Commits

Author SHA1 Message Date
Joon 314b5a854d Merge PR #1218: sdk.Int in sdk.Coin
implement Int, Int256, Uint256
pass ci
pass ci
add to changelog, add boundcheck to test
add comments, fix cli_test.go
fix errors
apply requested changes
panics on New*WithDecimal
fix Int.BigInt()
fix stake tests
* Panic on uint division-by-zero
* Set ok=false on NewIntFromString, NewUintFromString failure
* Nuke CircleCI caches
2018-06-15 23:16:45 +02:00
rigelrozanski 41458956a1 fix tests, pool.TotalSupply -> pool.TokenSupply() 2018-05-22 18:50:59 -04:00
rigelrozanski 1302c71982 fixin tests 2018-05-17 09:19:33 -04:00
rigelrozanski dc3c40fecc fixing tests, working on TestUpdateSharesLocation 2018-05-17 09:19:33 -04:00
rigelrozanski 67123a3a46 move validator property fn and tests from pool.go to validator.go 2018-05-17 09:19:33 -04:00
rigelrozanski c69c145964 fix stake app tests 2018-05-17 09:19:05 -04:00
rigelrozanski eb87a5dbbf introduce UpdateSharesLocation to deal with different share types 2018-05-17 09:19:05 -04:00
rigelrozanski a0c73372be stake refactor, tests compiling 2018-05-17 09:19:05 -04:00
rigelrozanski 6d0c788185 working refactoring 2018-05-17 09:17:40 -04:00
rigelrozanski ed5d088824 renaming and refactoring for fees 2018-05-17 09:17:14 -04:00
Christopher Goes 24dffd0c98
Reenable random testcase iterations 2018-05-01 00:06:20 +02:00
rigelrozanski cb4463e5f1 reenable TestPossibleOverflow 2018-04-30 17:30:34 -04:00
rigelrozanski ce32117399 rational embedes bigRat 2018-04-30 17:21:14 -04:00
rigelrozanski 7d31ba835a rebase fixes 2018-04-05 13:17:08 -04:00
rigelrozanski 1db8764b9e handler tests compile
...

...
2018-04-05 13:17:08 -04:00
rigelrozanski 65e789c43d minor cleanup to pool_test.go 2018-04-04 13:54:30 -04:00
Christopher Goes ef2d43d5b0
Add tests for bondedRatio, bondedShareExRate, unbondedShareExRate 2018-04-04 19:49:02 +02:00
Christopher Goes 20651490eb
Disable overflow bug check for now (ref #753) 2018-04-04 19:40:34 +02:00
Christopher Goes 8ed328074f
Fix incorrect reassignment 2018-04-04 19:26:35 +02:00
rigelrozanski 9aef787c5d cleanup 2018-04-03 23:41:08 -04:00
Christopher Goes b117f082ef
Cleanup, add comments 2018-04-03 13:47:26 +02:00
Christopher Goes e5a5535b8c
Refine to single test case 2018-04-03 13:25:29 +02:00
Christopher Goes 19137d007b
Cleanup testcases, refine to the error of concern 2018-04-03 13:15:27 +02:00
Christopher Goes b78aa2f650
Rebase & add more invariants 2018-04-03 12:50:50 +02:00
Christopher Goes 9640c7d5c6
Add additional error information 2018-04-03 12:12:50 +02:00
Christopher Goes ffb4ab739c
Simpler multi-candidate testing 2018-04-03 12:12:45 +02:00
rigelrozanski 7d67d00866 pool test correct in AssertInvariance 2018-04-03 00:19:21 +02:00
rigelrozanski bac81838d0 random test overhaul 2018-04-03 00:19:21 +02:00
rigelrozanski 34278f5220 fix in candidateAddTokens 2018-04-03 00:19:21 +02:00
rigelrozanski c017256300 remove pool_test dep on other test declations 2018-04-03 00:19:21 +02:00
rigelrozanski 3441bc3598 visual cleanup 2018-04-03 00:19:21 +02:00
Christopher Goes 3023f3008f Enable share removal test, additional diagnostics 2018-04-03 00:19:21 +02:00
Christopher Goes ff0fefa558 Use require.Equal instead of assert.Equal, add diagnostic messages 2018-04-03 00:19:21 +02:00
Christopher Goes 765e065e50 Staking pool tests (closes #731) 2018-04-03 00:19:21 +02:00
rigelrozanski d0db8b45ae pool.go to be functions on pool 2018-04-03 00:19:20 +02:00
rigelrozanski 5ba297089a expose some keeper functions, tick cleanup 2018-03-28 19:01:50 +02:00
rigelrozanski 3a011678e7 keeper tests/revisions 2018-03-28 19:01:50 +02:00