Sunny Aggarwal
7f43d3b290
fixed GetLastProposalID function
2018-08-22 00:17:37 -07:00
Sunny Aggarwal
5ae20d2d51
address Chris's comments
2018-08-22 00:15:18 -07:00
Sunny Aggarwal
50dd53fec3
added tally query route to gov
2018-08-22 00:15:18 -07:00
Sunny Aggarwal
0134c3b7f1
Address Anton's comments
2018-08-22 00:15:18 -07:00
Sunny Aggarwal
1311117658
added to gov rest
2018-08-22 00:12:44 -07:00
Sunny Aggarwal
804baa70f4
added querier to gov module
2018-08-22 00:12:44 -07:00
Sunny Aggarwal
1d1a95656a
custom queriables
2018-08-22 00:11:23 -07:00
Matthew Slipper
d8f01be211
Merge PR #2061 : Change proposalID to proposal-id in gov REST
...
Close #1963 .
2018-08-21 23:44:13 -04:00
Matthew Slipper
f7d8675234
Support a proposal JSON file in submit-proposal
...
Closes #1852 .
Closes #1776 .
2018-08-21 14:34:15 -07:00
youjing
517682f17c
fix Iterator leak, ref to https://github.com/cosmos/cosmos-sdk/issues/2105
2018-08-21 14:54:12 +08:00
Christopher Goes
800ac2844e
validator.Operator, sdk.Dec
2018-08-20 17:10:43 +02:00
Ethan Buchman
af73b885e7
Merge branch 'develop' into bucky/merge-master
2018-08-19 16:24:45 -04:00
Christopher Goes
b8cfc1e19f
Merge PR #2068 : Minor simulation changes
2018-08-17 16:19:33 +02:00
Dev Ojha
8bb79d12ca
Fix non-deterministic map iteration in fuzzer ( #2069 )
...
* This demonstrates that the state machine is non-deterministic if there
are more than two txs in a block.
* fix non-deterministic map iteration
* (squash this) fix build errors
* (squash this) iterate using range
2018-08-16 23:45:07 +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
Christopher Goes
3d50567034
Merge PR #1783 : Slashing, validator set, and governance simulation
2018-08-16 17:36:15 +02: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
Jae Kwon
77d02e348e
fixed proposaltype string bug ( #1829 )
...
* fixed proposaltype string bug
2018-08-12 01:05:08 -04:00
Sunny Aggarwal
4582de4902
Merge PR #1914 : tallyResults added to state
...
* tallyResults added to state
* fixed bug with tallyresult equals
2018-08-08 12:28:52 +02:00
Alexander Bezobchuk
12c2c236c2
Merge PR #1741 : CoreContext Refactor
2018-08-06 20:11:30 +02:00
Joon
7b54e4b786
Merge pull request #1812 : Add BaseApp.Seal
...
* Merge pull request #1812 : Add BaseApp.Seal
fix pow
move setter functions
apply requests
* fix errors
* fix test
* fix test
* changelog
2018-08-01 00:23:25 -04:00
Joon
19b0781e60
Merge PR #1811 : NewCoin takes sdk.Int
2018-07-31 02:09:50 +02:00
Sunny Aggarwal
d3fcfdba57
Merge PR #1845 : Query-proposals CLI command
2018-07-31 01:48:00 +02:00
Sunny Aggarwal
7fc2ed61d7
Merge pull request #1859 : slashing to governance for non-voting validators
...
* added slashing to governance non voting
* minor formatting
2018-07-30 01:11:21 -04:00
Sunny Aggarwal
55ef898db8
Merge PR #1688 : Un-hardcode in governance parameters
2018-07-27 03:24:41 +02:00
ValarDragon
f9eb1e725f
gov/tests: Cleanup test file
...
Cache calls to generating the privatekeys, remove repitition in validator
set creation.
2018-07-26 00:10:31 -07:00
Dev Ojha
5d02a743fb
Update to tendermint v0.22.6-rc0 ( #1798 )
...
* Update to tendermint v0.22.6-rc0
This is comprised of updating the crypto imports / API
* (squash this) switch to v0.22.6
If this passes tests, I'll squash this commit and update the PR.
2018-07-25 16:43:37 -04:00
Sunny Aggarwal
89eba4952c
Merge PR #1801 : Fixed governance bug with iterate delegations
2018-07-24 21:00:56 +02:00
Rigel
17eb3eda02
Merge PR #1781 : Gov tags cleanup
2018-07-21 03:58:45 +02: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
xujiacheng
0471598c69
fix the bug about turning VoteOption byte to String
2018-07-19 19:56:23 +08:00
Rigel
d2f70ec8af
Merge PR #1748 : CLI use --from consistently
2018-07-19 08:53:12 +02:00
Joon
aa525418e1
Merge PR #1373 : Initialization of POS chain
2018-07-19 08:39:40 +02:00
Sunny Aggarwal
d6969c1d22
Merge PR #1697 : Proposal Query filter by status
2018-07-17 22:59:06 +02:00
Ethan Buchman
972b8f5d6d
Merge pull request #1690 from cosmos/release/v0.22.0
...
update params for x/gov and default config
2018-07-16 19:46:26 +01:00
Christopher Goes
566bf8e3bd
Governance CLI test fixes
2018-07-16 20:29:21 +02:00
Ethan Buchman
2cbe5662d0
fix tests
2018-07-16 18:08:22 +01:00
Ethan Buchman
8f453eaa04
update params for x/gov and default config
2018-07-16 17:43:10 +01:00
Dev Ojha
a2047c5c81
Merge PR #1687 : tools: Ensure Gopkg.lock is correct in linting
...
* tools: Ensure Gopkg.lock is correct in linting
This adds dep status to the lint process. Also fixes linting errors
that existed earlier. (not sure why they didn't show up on CI)
Closes #1574
* Update dep, use the lock file new dep version creates
2018-07-14 23:48:41 +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
Sunny Aggarwal
cba7fd7ee8
gov enums marshal to String
2018-07-10 17:59:07 -07:00
Rigel
b60fcb68d6
Merge branch 'develop' into rigel/genesis-no-zero-power
2018-07-10 00:15:10 -04:00
rigelrozanski
86f68a3e95
prevent zero genesis validators
2018-07-09 22:51:13 -04:00
Christopher Goes
5a56c3f03d
Merge PR #1575 : ready-for-review: sdk.AccAddress natively bech32
2018-07-10 04:18:23 +02:00
ValarDragon
99e91dd276
Add nolints on remaining functions
2018-07-09 16:16:43 -07:00
Sunny Aggarwal
896cd333f0
address comments
2018-07-09 16:06:05 -07:00
sunnya97
7ac220beb6
asdf
2018-07-09 00:59:51 -07:00
Sunny Aggarwal
50ed0fa1ae
asdf
2018-07-09 00:35:28 -07:00
Christopher Goes
86d7b8f981
Merge PR #1573 : gov/client: rename submitproposal to submit-proposal
2018-07-06 08:02:59 +02: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
c708c799fd
Add print-response flag
2018-07-05 22:19:50 -07:00
ValarDragon
2197a9598b
Merge branch 'dev/add_async_flag' of github.com:cosmos/cosmos-sdk into dev/add_async_flag
2018-07-05 20:19:39 -07:00
ValarDragon
8857b69d02
Use async flag directly from context
2018-07-05 20:15:40 -07:00
Dev Ojha
be9ae47b0a
Merge branch 'develop' into dev/add_async_flag
2018-07-05 20:06:52 -07:00
ValarDragon
27a31cae44
add Async to context
2018-07-05 20:05:17 -07:00
ValarDragon
6f94dd64c0
cli: Add async flag to all broadcasting txs
...
closes #1436
2018-07-05 19:15:37 -07:00
Liamsi
b7f902fba5
sort *all* GetSignBytes:
...
- call MustSortJSON before return JSON bytes to guarantee alphabetic
ordering
- moved SortJSON and MustSortJSON to types package to avoid cyclic
package dep
2018-07-06 01:12:57 +01:00
Liamsi
0f1ceb073e
sort all relevant GetSignBytes:
...
- call SortJSON before return JSON bytes to guarantee alphabetic
ordering
2018-07-06 00:23:12 +01:00
Alexander Bezobchuk
0b9e0f2afc
Merge PR #1492 : Improve Module Test Coverage
...
* Merge pull request #1492 : Improve Module Test Coverage
* Revert renaming of SignCheckDeliver [#1492 ]
* Remove named fields from stake unit tests & fix comments [#1492 ]
* update for tmlibs->tendermint/libs
* Remove tmlibs dependency
2018-07-04 06:21:36 +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
Dev Ojha
097dd8a164
tools: Add unparam linter ( #1443 )
...
* tools: Add unparam linter
unparam detects unused parameters in functions, and a parameter to
a function which only ever takes on one value. The latter is an
indication that more tests are required.
There are many nolints in this PR, as I believe that writing tests
to fix alot of these situations is out of scope for this PR / it
will be changed in future commits. There are some nolints for
when we have to comply to normal api's.
* crypto/keys no longer used by x/gov/client/rest/rest.go
2018-06-29 18:22:24 -04: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
Dev Ojha
ac3adff1e8
Merge PR #1438 : Tools: Add errcheck linter
...
This linter ensures that all errors are checked.
This is disabled in the client directories, since its not needed on
those writes
2018-06-29 00:52:10 +02:00
Sunny Aggarwal
4effa6f8d4
Merge PR #1357 : RESTful governance endpoints
...
* get deposit rest endpoint
* query proposals
* changelog
* fixed commented out headers
* fixed undeterministic tests
* increase circle test timeout
* MustBech32ifyAcc
* asdf
2018-06-28 01:49:59 +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
Dev Ojha
2e97baabf6
Merge PR #1358 : Fix typos and gofmt files
...
* Fix typos
* gofmt -s files
* Add mispellings and gofmt checks to circle CI
* circleci: Install misspell in the linting step
2018-06-25 20:23:17 +02:00
Sunny Aggarwal
dc2c8f900b
Merge PR #1168 : Governance MVP
2018-06-22 02:19:14 +02:00