Commit Graph

47 Commits

Author SHA1 Message Date
Dev Ojha 6a864923fa types: Rename rational.Evaluate to rational.Round (#1487)
* rational.Evaluate -> rational.RoundInt64
	* rational.EvaluateInt -> rational.RoundInt

This done to improve clarity of the code.

Closes #1485
2018-07-02 11:57:33 -04:00
Christopher Goes 3654579ea7
Merge PR #1278: Slashing v2
Implement semifinal Gaia slashing spec (#1263), less #1348, #1378, and #1440 which are TBD.
2018-06-30 05:34:55 +02: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
Christopher Goes 59aadf42aa
Ledger integration (#931)
Merges the keybase and Ledger code from go-crypto (which is no more) into the SDK
Adds support for Ledger into gaiacli
Cherry-picks updated error handling from #1158
2018-06-29 02:54:47 +02:00
Rigel 6f140d7296 Merge PR #1119: Unbonding, Redelegation
* stake/fees spec updates
* staking overview.md revisions, moving files
* docs reorganization
* staking spec state revisions
* transaction stake updates
* complete staking spec update
* WIP adding unbonding/redelegation commands
* added msg types for unbonding, redelegation
* stake sub-package reorg
* working stake reorg
* modify lcd tests to not use hardcoded json strings
* add description update
* index keys
* key managment for unbonding redelegation complete
* update stake errors
* completed handleMsgCompleteUnbonding fn
* updated to use begin/complete unbonding/redelegation
* fix token shares bug
* develop docs into unbonding
* got non-tests compiling after merge develop
* working fixing tests
* PrivlegedKeeper -> PrivilegedKeeper
* tests compile
* fix some tests
* fixing tests
* remove PrivilegedKeeper
* get unbonding bug
* only rpc sig verification failed tests now
* move percent unbonding/redelegation to the CLI and out of handler logic
* remove min unbonding height
* add lcd txs
* add pool sanity checks, fix a buncha tests
* fix ante. set lcd log to debug (#1322)
* redelegation tests, adding query functionality for bonds
* add self-delegations at genesis ref #1165
* PR comments (mostly) addressed
* cleanup, added Query LCD functionality
* test cleanup/fixes
* fix governance test
* SlashValidatorSet -> ValidatorSet
* changelog
* stake lcd fix
* x/auth: fix chainID in ante
* fix lcd test
* fix lint, update lint make command for spelling
* lowercase error string
* don't expose coinkeeper in staking
* remove a few duplicate lines in changelog
* chain_id in stake lcd tests
* added transient redelegation
* 'transient' => 'transitive'
* Re-add nolint instruction
* Fix tiny linter error
2018-06-27 04:00:12 +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
Rigel 83c1183e25 Merge PR #1233: Inflation now unbonded
working debug fix
add broken test
fix testnet bug
updated provision test
changelog
cwgoes comments
2018-06-13 09:12:57 +02:00
rigelrozanski 952aedc4f1 get rid of candidacy references 2018-05-31 14:57:09 -07:00
rigelrozanski 41458956a1 fix tests, pool.TotalSupply -> pool.TokenSupply() 2018-05-22 18:50:59 -04:00
rigelrozanski db9fd51d1c ... 2018-05-22 15:13:03 -04:00
rigelrozanski 75d572dfd1 ... 2018-05-20 17:56:43 -04:00
rigelrozanski e70249b631 more bucky comments, single status validator, only one store now for core validator object 2018-05-20 17:39:04 -04:00
rigelrozanski 26be2a231b working addressed bucky comments 2018-05-18 18:57:47 -04:00
rigelrozanski 1302c71982 fixin tests 2018-05-17 09:19:33 -04:00
rigelrozanski 423917f352 test compile fixes for poolshares 2018-05-17 09:19:33 -04:00
rigelrozanski 1ab432a7e1 many bug fixes, introduce PoolShare type 2018-05-17 09:19:33 -04:00
rigelrozanski dc3c40fecc fixing tests, working on TestUpdateSharesLocation 2018-05-17 09:19:33 -04:00
rigelrozanski 0c98cc6895 working fixing validator tests 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 fa64487e65 working fee distribution reorg 2018-05-17 09:17:40 -04:00
rigelrozanski 37156ad192 debug stake store refactor, cli change 2018-05-17 09:17:40 -04:00
rigelrozanski ed5d088824 renaming and refactoring for fees 2018-05-17 09:17:14 -04:00
Adrian Brink d52d74582a
Change fermion to steak 2018-04-30 16:24:46 -07:00
Christopher Goes 86b79b9c84
Fix testcases & update changelog 2018-04-23 18:41:36 +02:00
rigelrozanski 996cafe972 register wire, stake changelog, stake genesis update 2018-04-18 12:19:35 -04:00
rigelrozanski c63a545206 stake handler tests 2018-04-18 12:19:35 -04:00
rigelrozanski 8a34b91fac fix existing gaia tests 2018-04-18 12:18:28 -04:00
rigelrozanski 6b995ac701 handler tests pass woot
...
2018-04-05 13:17:08 -04:00
rigelrozanski b8541c8174 tests in loops use require
...
2018-04-05 13:17:08 -04:00
rigelrozanski 1db8764b9e handler tests compile
...

...
2018-04-05 13:17:08 -04:00
rigelrozanski 6b279bd8bd uncomment handler tests 2018-04-05 13:17:08 -04:00
rigelrozanski 48ae300ab7 comment out handler_test.go 2018-04-03 00:19:21 +02:00
rigelrozanski 3827b34468 ... 2018-04-03 00:19:21 +02:00
rigelrozanski 4b9bd0e7ea handler tests beginning 2018-04-03 00:19:21 +02:00
rigelrozanski 5ba297089a expose some keeper functions, tick cleanup 2018-03-28 19:01:50 +02:00
rigelrozanski 13835f084f sunny refactor compiling 2018-03-28 19:01:50 +02:00
rigelrozanski 93173e9fdd working sunny staking refactor 2018-03-28 19:01:50 +02:00
rigelrozanski c1d8aefecd testing staking
...

...
2018-03-28 19:01:50 +02:00
rigelrozanski acc5bda225 tests compile 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 865b116837 move Bond/UnbondCoins to transact
working

...
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 80d88c3a4c porting staking, wip
wip
2018-03-28 19:01:49 +02:00
rigelrozanski c2ddc582c4 working gaia store 2018-03-28 19:01:49 +02:00
rigelrozanski 266a8392d3 initial add gaia
working
2018-03-28 19:01:49 +02:00