Commit Graph

87 Commits

Author SHA1 Message Date
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
frog power 4000 7cb1ba625e blockly minting (#2825)
* update mechanism to use average block time
* correctly sets accum height for zero-delegations
* update Decimal Format()
* clip withdrawal tokens
* PositiveDelegationInvariant
* DelegatorSharesInvariant
* DelAccumInvariants
2018-11-26 04:13:47 -08:00
Alexander Bezobchuk 41fc538ac7 Add Safety Measures to Coin/Coins (#2797) 2018-11-20 01:22:35 -08: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
Alessio Treglia b74a6a9066 Merge PR #2328: Support min fees-based anti spam strategy 2018-09-19 23:25:52 +08:00
Joon 19b0781e60 Merge PR #1811: NewCoin takes sdk.Int 2018-07-31 02:09:50 +02:00
Christopher Goes 940cfa98af Invariants & random Msgs in progress 2018-07-11 02:36:50 +02:00
Dev Ojha 2755c66545 Merge PR #1424: tools: add unconvert linter
unconvert checks for unnecessary type conversions
2018-06-28 18:08:29 +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
David Kajpust ec2fedd36c Merge PR #1227: Set all Error strings 1st letters to lowercase. Fixes issue #1154 2018-06-13 21:13:22 +02:00
Jae Kwon c4bc888375 Fix almost all tests 2018-04-07 00:02:00 -07:00
Ethan Buchman 9b5babba81 sort coins in genesis 2018-04-05 14:55:10 +03:00
Sunny Aggarwal 7967c1df75 coin math 2018-03-25 19:35:45 +02:00
Ethan Buchman dd4a86b856 x/auth: crank the test coverage 2018-03-17 21:20:24 +01:00
rigelrozanski da538a8bf6 more comments cleanup 2018-02-08 10:36:37 +00: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
Ethan Buchman 2c1d5332be make test/install 2018-01-06 15:53:31 -05:00
Ethan Buchman 1d07f88867 new basecoin example 2018-01-03 20:20:21 -05: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 f857f6218b foo->in bar->out, use of variadic variables 2017-04-13 23:31:52 -04:00
Ethan Buchman 750859f1e8 some renames and comments 2017-04-13 23:31:52 -04:00
rigelrozanski d19f52c893 review changes
int

int
2017-04-13 23:31:52 -04:00
rigelrozanski 4bf37baf0b Additional Unit Tests
int

int

int

int, got it working!

int
2017-04-13 23:31:52 -04:00
Ethan Buchman fe81f87a13 fix for empty coins in Plus() 2017-02-24 17:12:05 -05:00
rigelrozanski c835ebf650 Fix Coin.IsGTE logic bug
flag redescription
2017-02-13 17:01:28 -05:00
Ethan Frey 2f7875dec0 Fixed Coins IsValid, issue #8 2017-01-31 12:24:49 +01:00
Jae Kwon 16a6680e24 Vote->Counter; Fee is types.Coin; Context has Account; Cleanup 2017-01-15 15:10:51 -08:00
Jae Kwon a16b96062b Coins and fees and gas... 2016-04-01 15:19:07 -07:00