Commit Graph

61 Commits

Author SHA1 Message Date
Federico Kunze cfb5acca6e Merge PR #2099: Query staking Pool and Params 2018-08-21 17:32:54 +02:00
Alessio Treglia 187bc1972a Merge PR #1950: Validator.Owner -> .Operator
* Rename --address-validator flag to --validator

See #1901

* Update PENDING.md

* Rename Validator.Owner -> Validator.Operator

See #1901
2018-08-16 16:47:59 -04:00
Rigel d9dc061b4f
Merge pull request #1819: rational -> decimal
* changelog

* ...

* decimal func working

* decimal complete, untested

* fixing tests

* decimal compile errors resolved

* test compile errors

* precision multiplier test

* 1% laptop battery

* fixed TestNewDecFromStr

* equalities working

* fix bankers round chop

* ...

* working, some decimal issues resolved

* fix rounding error

* rounding works

* decimal works

* ...

* deleted rational

* rational conversion working

* revert changelog

* code compiles (not tests)

* went through all NewDec, made sure they were converted from NewRat properly

* test debugging

* all testing bugs besides the json marshalling fixed

* json unmarshal

* lint

* document update

* fix lcd test

* cli test fix

* mostly undo Dece -> Rate

* val comments

* Efficiency improvements

This now caches all of the precision multipliers (as they were all
used in non-mutative functions), and caches the precisionInt calculation.
(Now it just copies the already calculated value)

* Cache another precisionInt() call.

* Improve banker rounding efficiency

* remove defer, make negation in-place.

* chris val comments

* bez comments

* Aditya comments

* ...

* val comments

* rebasing start

* ...

* compiling

* tests pass

* cli fix

* anton, cwgoes, val comments

* val and jae comments

* type

* undo reuse quo
2018-08-14 20:15:02 -04:00
Matthew Slipper 8fa2c3b4ea Merge PR #1984: Replace _ with - in command names
Closes #1955
2018-08-14 10:23:42 +02:00
Alexander Bezobchuk a9805794d7 Merge pull request #1856: gen-tx: Support User Given Key Passwords
* Merge pull request #1856: gen-tx: Support User Given Key Passwords

* Fix broken CLI test(s)
2018-08-01 15:15:37 -04:00
Sunny Aggarwal d3fcfdba57 Merge PR #1845: Query-proposals CLI command 2018-07-31 01:48:00 +02:00
ValarDragon 496c75c35a tests: Move cli tests behind a build flag
This is done to make go test ./... work for people using the sdk as a sdk.
Closes #1806
2018-07-25 13:47:00 -07:00
rigelrozanski dc42a42986 test cli fix 2018-07-20 12:30:28 -04:00
rigelrozanski 15138b80c8 Merge remote-tracking branch 'origin/develop' into sunny/gov-cli-proposal-id 2018-07-20 11:47:37 -04:00
Sunny Aggarwal f3a12909ef Merge PR #1773: Query the votes on a proposal
* added lcd endpoint to query all votes on a proposal
* added cli support
* Gopkg.lock from new dep
* Update PENDING.md
2018-07-20 02:02:46 +02:00
Sunny Aggarwal 21e72d5f10 gov cli proposalID to proposal-id 2018-07-19 12:37:57 -07:00
Rigel d2f70ec8af Merge PR #1748: CLI use --from consistently 2018-07-19 08:53:12 +02:00
Rigel 3231daa4d8 remove global shares (#1644)
* wip removing pool shares

* remove PoolShares/Tokens entirely

* worked through stake/type compile error

* work through a bunch of keeper errors

* worked through compile errors

* debugging tests

* resolve compilation error

* resolved types errors

* ...

* move inflation to pool type

* ...

* stumped problem

* Calculate newly issued shares, remove unnecessary pool arg from exchange rate calculation

* Rounding changed

* Update x/slashing tests for sdk.Rat BondedTokens

* testing fixes

* resolved test fixes

* cwgoes comments, changelog, lint

* cli bugfixes

* ..

* cli fixed

* spec update

* 'make format'

* cwgoes comments

* Increase test_cover parallelism
2018-07-13 21:46:14 +01:00
Jeremiah Andrews 41dd01906a Merge PR #1654: Wait for 2 blocks attempt 2018-07-12 22:03:18 +02:00
Sunny Aggarwal cba7fd7ee8 gov enums marshal to String 2018-07-10 17:59:07 -07:00
Sunny Aggarwal d7158b70a5 fixed cli test 2018-07-09 02:05:19 -07:00
sunnya97 7ac220beb6 asdf 2018-07-09 00:59:51 -07:00
ValarDragon 12c1eb4d31 gov/client: rename submitproposal to submit-proposal
It is standard in the sdk to use a dash for subcommands / flags
with multiple words. This makes submitproposal comply with that.
2018-07-05 22:22:50 -07:00
ValarDragon bf8cde1d3a cli: deprecate --name in favor of --from 2018-07-05 17:24:02 -07:00
ValarDragon 23414868a1 Remove --owk flag 2018-07-05 10:14:12 -07:00
ValarDragon 72aac78a39 Set home-client in gaiad init 2018-07-05 09:51:20 -07:00
ValarDragon c4c1c626c9 Add --owk flag to gaiad init 2018-07-05 09:47:04 -07:00
ValarDragon 492272c5e6 cli_test: Un-abstract common code
This is done to enhance readability, so one can easily reproduce
the functionality in the command line.
2018-07-05 09:08:45 -07:00
ValarDragon 640bccf8f7 Switch using user home to a tmp directory 2018-07-04 13:09:59 -07:00
ValarDragon b0e6c76554 Remove redundant comment, switch to MustBech32ify 2018-07-04 08:20:44 -07:00
ValarDragon e41f2bc8b5 tests: cli_tests no longer reset call `unsafe_reset_all` on local env
* Makes all cli tests use .test_gaiad, .test_gaiacli instead of the
	same directories as the default binaries
* Abstracts alot of the functionality for setting up the server into
	a single function / file-wide constants. This is to reduce
	code duplication, especially since some of this functionality
	depends on each test setting up the keys in the same way.

Closes #1461
2018-07-03 23:33:24 -07:00
Ethan Buchman d388036454 Merge PR #1520: various fixes for test_cli
* various fixes for test_cli
* linting
2018-07-03 06:33:53 +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
Sunny Aggarwal dc2c8f900b Merge PR #1168: Governance MVP 2018-06-22 02:19:14 +02:00
Christopher Goes 918e217e1f
Merge PR #1280: Implement simple transaction memos
* AltBytes -> Memo, memo CLI support & thread-through
* Check memo size, update changelog
* Update existing testcases
* Nuke CircleCI caches
* Charge gas proportional to memo size
* Fix gas allocations in ante handler testcases
* Add testcases
* Update changelog
* Fix tiny CLI bug & add to CLI tests
* Add '--memo' to gaiacli
* Add testcase for large memos
* Address PR comments
2018-06-20 21:27:36 +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
Ethan Buchman ff34cbc8bc gaia/cli_test: remove sleeps 2018-06-13 17:41:01 -07:00
Fabian 5f409ce832 Merge PR #1086: Bech32Cosmos output/input for the LCD
* refactored bech32ization
* updated keys endpoints for bech32
* bech32 for sending and querying
* trying to change output of validator addresses
* fixed validator output
* linted
* fixed merge conflict
* added bech32 to staking endpoints
* removed some logging statements
* added GetAccPubKeyBech32Cosmos
* fixed cli tests
* updated swagger
* merged standard bech32 change
* renamed bech32cosmos to bech32
* bech32ify json output for key add
* readded changelog
* fixed changelog merge issue
* Update CHANGELOG.md
2018-06-06 06:53:04 +02:00
Zaki Manian ce850dca3b Switch from bech32cosmos to bech32 2018-06-01 16:23:58 +02:00
rigelrozanski e1d9f00d2d ... 2018-06-01 01:57:21 -07:00
rigelrozanski 823814dfce fix cli test 2018-06-01 01:47:44 -07:00
Jeremiah Andrews a03638d14a changed commands in cli_test to match refactor 2018-05-31 22:06:13 -07:00
rigelrozanski ba44bf7c81 rm debug output 2018-05-31 18:54:14 -07:00
rigelrozanski 5515b60b0a better tooling for cli, couple lsd fixes 2018-05-31 18:46:25 -07:00
rigelrozanski a4e1e497cd cwgoes comments 2018-05-31 15:49:18 -07:00
rigelrozanski 0b6aa3c047 add test_cli to ci 2018-05-31 14:57:09 -07:00
rigelrozanski 1f1097c4d3 cli test bugs 2018-05-31 14:57:09 -07:00
rigelrozanski 952aedc4f1 get rid of candidacy references 2018-05-31 14:57:09 -07:00
rigelrozanski afc2bbfe09 working through cli 2018-05-31 14:56:17 -07:00
rigelrozanski 94e78e0602 cech32 fixes for TestGaiaCLISend 2018-05-31 14:56:17 -07:00
Jae Kwon 871574888b Make Execute and GoExecute log better 2018-05-31 14:56:17 -07:00
Zaki Manian f33f49a840 Almost from scratch reimplementation of bech32cosmos integration. 2018-05-27 13:47:23 +02:00
rigelrozanski ed5d088824 renaming and refactoring for fees 2018-05-17 09:17:14 -04:00
Christopher Goes 23c9e2fb6f
Update CLI tests to test auto-sequencing 2018-05-04 05:43:29 +02:00