Commit Graph

40 Commits

Author SHA1 Message Date
Alexander Bezobchuk 36d1736a08 Refactor Gas/Fee Model (#3258) 2019-01-18 08:45:20 -08:00
Alexander Bezobchuk 03bdd3f870 Fix IsAnyGTE (#3265) 2019-01-09 12:31:03 -08:00
Alessio Treglia 1040e3a8f5 Increase CLI test coverage (#3254) 2019-01-08 08:43:36 -08:00
Zaki Manian ed2b6bd9a7 Multiple fees in min fees to OR instead of AND (#3239) 2019-01-08 08:21:54 -08:00
Dev Ojha 67a1e47c6e Fix is_valid bug (#3211) 2019-01-02 11:14:12 -08:00
Christopher Goes 5ca8c5bb83
Merge PR #3207: Fix token printing bug
* Add IsPositive, case check on coins[0]
* Link to correct PR
* Add testcase
2019-01-02 19:17:27 +01:00
Alessio Treglia 500fa2b694 Make coins denoms case insensitive (#3092) 2018-12-18 11:14:11 -08:00
Alexander Bezobchuk 41fc538ac7 Add Safety Measures to Coin/Coins (#2797) 2018-11-20 01:22:35 -08:00
Alessio Treglia 70826495b8 Merge PR #2752: Don't hardcode bondable denom 2018-11-12 19:54:18 +01:00
Jae Kwon 2a3d1f1e87
Fix coins.IsLT() impl (#2686)
* Fix coins.IsLT() impl
* Fix coin.IsLT() impl
* Coins.IsLT -> Coins.IsAllLT etc
2018-11-07 00:14:48 -08:00
Christopher Goes 17983460b8
Merge PR #2219: Update to Tendermint 0.24 (except NextValSet offsets) 2018-10-03 17:48:23 +02:00
Dev Ojha 9e27e4bac5 Merge PR #2386: types/coins: Add benchmarks for coins addition 2018-09-26 21:15:37 +08:00
Alessio Treglia b74a6a9066 Merge PR #2328: Support min fees-based anti spam strategy 2018-09-19 23:25:52 +08:00
Christopher Goes 46382994a3
Merge PR #1925: Fix develop from FF merge
* Update types/coin_test.go from FF merge
* 'make format'
2018-08-06 21:49:17 +02:00
Joon 93457aac33 Merge PR #1626: Increase coverage of types/ 2018-08-06 21:00:49 +02:00
Joon 19b0781e60 Merge PR #1811: NewCoin takes sdk.Int 2018-07-31 02:09:50 +02:00
Dev Ojha 4b688992ba Merge pull request #1691: Table driven test indexes
* types: Switch table driven test error messages to new format

Make table driven tests in /types follow the format described in #1664

* typos / lower case errors

* lower case, not sentences

* lower case, not sentences
2018-07-16 14:42:28 -04:00
Dev Ojha 955a0c9af7 Switch asserts to require (#1483)
* meta: Switch the majority of asserts to require

Switch most assert statements to require, to ease debugging.
Closes #1418

* Fix imports
2018-06-30 03:10:15 +02:00
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
Jae Kwon c4bc888375 Fix almost all tests 2018-04-07 00:02:00 -07:00
Sunny Aggarwal 7967c1df75 coin math 2018-03-25 19:35:45 +02:00
rigelrozanski da538a8bf6 more comments cleanup 2018-02-08 10:36:37 +00: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 de5bf2ebc6 Add Coins.AmountOf 2018-01-26 06:54:03 -08:00
Jae Kwon 51e6144c0d Initial commit for permissioning... 2018-01-12 19:17:17 -08:00
Ethan Buchman 3ba3d6b02f move coins and accounts out of types 2018-01-09 19:11:00 -08:00
Jae Kwon ab2cef884d Move Coins to types 2017-12-25 00:57:07 -08:00
Ethan Frey 6983f61961 Moved Coins from types -> modules/coin 2017-07-06 14:59:45 +02:00
Ethan Frey 6fec396fbd 92: Fix ParseCoins regexp in general 2017-05-29 16:16:55 +02:00
Ethan Frey 07fb680a01 92: return error on empty coin in list 2017-05-24 17:15:42 +02:00
Ethan Frey be321373da 87: Sort coin order on ParseCoins to be less fragile 2017-05-22 11:22:41 +02:00
rigel rozanski e36a40c603 fixes, remove assert with Sprintf 2017-04-17 19:53:06 -04:00
rigelrozanski d19f52c893 review changes
int

int
2017-04-13 23:31:52 -04:00
rigelrozanski 0720a03dae tests cleanup
cleanup
2017-04-13 23:31:52 -04:00
rigelrozanski e6579cf9e9 table driven testing
squash
2017-02-22 18:17:29 -05:00
rigelrozanski 78167b4e3a added unit tests
squash me

squash me

squash
2017-02-18 19:19:26 -05:00
Ethan Frey 2f7875dec0 Fixed Coins IsValid, issue #8 2017-01-31 12:24:49 +01:00
Jae Kwon a16b96062b Coins and fees and gas... 2016-04-01 15:19:07 -07:00