Amaury Martiny
69bbb8b327
Rename proto Req/Res to Pagination ( #6796 )
...
* Rename proto Req to Pagination
* Change Res to Pagination
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-07-20 16:51:16 +00:00
billy rennekamp
cde3f46d52
Add validation to prevent empty store keys ( #6754 )
...
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-07-20 18:05:01 +02:00
Finn
cc96e5c16f
x/staking: add call to iterator Close method ( #6791 )
...
Co-authored-by: FinnZhang <>
2020-07-20 04:30:09 -04:00
SaReN
5656e8647b
x/staking: gRPC query Service ( #6490 )
...
* Add types for staking grpc
* Update module.go
* Update staking query types
* Add grpc query methods
* Add delegation response to proto
* Add queriers for delegations
* Add queriers for unbonding
* Add queriers for redelegations
* Add cases for redelegations
* Add test for grpc validators
* Update staking types to proto
* Update staking query proto
* Add tests for grpc
* Add tests for grpc pool, parameters
* Fix lint issues
* Add grpc redelegation tests
* Add more tests
* Add docs for query proto
* Add docs for query types
* Modify redel querier
* Add debugging statements
* Revert debugging
* Fix proto lint errors
* Add wrapper for keeper
* Embed keeper in querier
* Add more tests
* Add tests for validator unbondings
* Add redel tests
* fix queryRedelegationsFromSrcValidator
* Fix Redelegation tests
* update godoc
* Update args
* Update tests with suite
* Fix lint
* Remove redundant types
* Refactor tests
* fix test
* refactor query proto
* Fix tests
* address review comments
* lint staking proto
* add godoc
* Update tests to table driven tests
* add debugging
* Fix grpc tests
* address comments
* address whitespace suggestions
* Add more tests
* add tests for invalid redels
* update error messages
* address review suggestions
* add tests
* move suite to keeper_test
Co-authored-by: Aaron Craelius <aaronc@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-07-14 17:41:30 +00:00
Jonathan Gimeno
c134e8974e
Move some Param types from Keeper to Types in staking ( #6451 )
2020-06-16 19:59:36 +02:00
dauTT
24b9be0ef8
x/bank: remove alias.go usage ( #6439 )
...
* x/bank: remove alias.go usage
* Fix simd_test.go
2020-06-14 23:06:16 +00:00
dauTT
14e3aa1265
x/staking: remove alias.go usage ( #6397 )
...
* x/staking: remove alias.go usage
* Fix formatting and Add entry in CHANGELOG.md
* Add missing end curly parenthesis
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-06-12 14:54:37 +00:00
Jonathan Gimeno
626f9b62c5
add pagination ( #6163 )
...
* add pagination
* make test pass with validators
* add pagination option
* unbonding delegations test added
* test unbondedvalidators pagination
* clean test
* remove comment
* remove comment
* add page and limit to unbonding delegations
* add flag limit and page for delegations-to command
* refactor hardcoded string values
* udpate page and limit for validator
* update changelog
* add pagination option
* add defaults
* Update CHANGELOG.md
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-06-06 17:32:15 +00:00
SaReN
bf8809ef98
Update x/auth to use Any ( #6165 )
...
* Migrate keeper codec to use marshaler
* Migrate AccountI to types
* Did go imports
* Fix tests for x/auth
* Cleanup std/codec
* Sort imports
* Fix legacy codec
* Add godoc for RegisterInterfaces
* Add RegisterInterfaces to std
* Fix typo
* Fixed merge changes
* Eliminate vesting import in auth
* Fix lint issues
* Fix tests
* Addressed comments
* Rename interfaces in RegisterInterfaces
* Removed codec.proto from std
* Minor code cleanup
Co-authored-by: Aaron Craelius <aaron@regen.network>
2020-05-20 19:21:00 +00:00
Xuefeng Zhu
c74b28a7ac
remove duplicated check when RemoveValidator ( #6239 )
...
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-05-18 02:09:28 +00:00
Aaron Craelius
386217209d
Merge PR #6076 : Proto Any init + evidence
2020-05-05 10:28:20 -04:00
Marko
218ec99508
various linter fixes ( #6106 )
...
x/staking: Fix all linter warnings.
Fixed warnings across base packages.
New linters:
- unparam
- nolintlint
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-05-02 21:26:59 +02:00
Alessio Treglia
2879c0702c
x/ibc: fix missing return statement ( #6099 )
...
* enable the wsl linter
Fix various wsl-related warnings.
x/ibc/04-channel/keeper/handshake.go: fix missing return statement in ChanOpenTry().
* goimports -w files
* remove unknown linter references
* run make format
* Revert "run make format"
This reverts commit f810b62b9e4993f08506663d4e5f2ec2228a9863.
* run make format
2020-04-29 22:36:34 -04:00
Aaron Craelius
cc90f2e002
Merge pull request #6085 : Move codec/std to std
2020-04-27 15:40:50 -04:00
Alexander Bezobchuk
d90b2e7a99
Allow Unjail of Non-Bonded Jailed Validator ( #6061 )
...
* Use correct API and add TODO
* Allow unjail without signing info
* Add unit test
* Update godoc
* Add changelog entries
* Fix TestUndelegateSelfDelegationBelowMinSelfDelegation
* Fix delegation tests
* Revert API call
2020-04-26 17:38:33 +00:00
Alexander Bezobchuk
fea231556a
Move ModuleAccount to x/auth ( #6029 )
...
* Move ModuleAccount to x/auth
* Update x/auth module
* Update x/staking
* Update x/mint
* Update x/gov
* Update x/distribution
* Update simapp
* Update x/bank
* Update std codec
* Add changelog entries
* Update CHANGELOG.md
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
2020-04-20 19:32:10 +00:00
Alexander Bezobchuk
1083fa948e
Merge PR #6010 : Merge x/supply into x/bank
2020-04-20 11:22:12 -04:00
Federico Kunze
7325692550
x/staking: skip HistoricalInfo in simulations ( #5949 )
...
* x/staking: import and export HistoricalInfo
* staking/types: add HistoricalInfo to GenesisState
* changelog
* add staking module to app BeginBlockers
* remove JSON files
* address comments from review
* add HistoricalInfoKey to skipped prefixes
* fix DiffKVStores
* rm JSON
2020-04-07 22:33:30 +00:00
Marko
d657513741
lint: various linting fixs ( #5825 )
...
* lint: various linting fixs
Signed-off-by: Marko Baricevic <marbar3778@yahoo.com>
* more linting
* more linting fixes
* more errchecking
* comment out errcheck for now
* undo error check
* address some comments
* remore require error
* change delete to batch delete
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-03-20 19:24:18 +00:00
Alessio Treglia
1d0967c32a
run go mod tidy && make format ( #5847 )
2020-03-20 17:14:14 +00:00
Jonathan Gimeno
2e42f9cb74
Favor marshal unmashal binare bare ( #5799 )
...
* change abci file to use BinaryBare
* change all calls to EncodeLengthPrefixed to BinaryBare in distribution keeper store.
* change all calls to EncodeLengthPrefixed to BinaryBare in mint keeper store.
* change all calls to EncodeLengthPrefixed to BinaryBare in auth keeper store.
* change all calls to EncodeLengthPrefixed to BinaryBare in distribution keeper store.
* change all calls to EncodeLengthPrefixed to BinaryBare in staking keeper store.
* change all calls to EncodeLengthPrefixed to BinaryBare in staking keeper store.
* change all calls to EncodeLengthPrefixed to BinaryBare in gov keeper store.
* change all calls to EncodeLengthPrefixed to BinaryBare in slashing keeper store.
* update decoder test
* migrate decoder
* migrate gov simulation decoder
* migrate baseapp_test
* refactor QuerySubspace
* refactor coedc std codec
* migrate keybase
* migrate iavl store
* migrate root multi
* migrate ante basic
* migrate tx type to bare
* migrate auth client
* update auth types
* update decoder
* migrate supply decoder
* migrate stake encoding
* migrate staking simulation
* migrate genutil
* migrate simapp test helpers
* migrate docs
* upgrade changelog
* Update CHANGELOG.md
Co-Authored-By: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-03-13 19:58:43 +00:00
Alexander Bezobchuk
88d01a9869
Remove redundant staking APIs ( #5755 )
2020-03-06 13:40:50 +00:00
Aleksandr Bezobchuk
4dac1abebf
Update imports
2020-03-05 09:40:43 -05:00
Aleksandr Bezobchuk
81830807e7
Merge branch 'master' into bez/5444-gov-proto-enc
2020-03-02 15:07:51 -05:00
Alexander Bezobchuk
9aa2088c23
Update x/staking/keeper/keeper.go
2020-02-28 09:59:06 -08:00
Jonathan Gimeno
4de26fd67a
fix lint errors 2
2020-02-26 16:35:04 +01:00
Jonathan Gimeno
14469ccc74
fix lint errors
2020-02-26 16:29:48 +01:00
Jonathan Gimeno
1d18f8839c
remove create test public keys
2020-02-26 15:57:41 +01:00
Jonathan Gimeno
13f2138989
Merge branch 'master' into jonathan/4875-staking-test-use-simapp
2020-02-25 15:48:13 +01:00
Jonathan Gimeno
a44bebc11c
rename commont test
2020-02-25 15:31:22 +01:00
Jonathan Gimeno
b931c491ae
rename
2020-02-25 15:29:53 +01:00
Jonathan Gimeno
632e65f575
move methods
2020-02-25 15:27:51 +01:00
Jonathan Gimeno
8f779b12b8
clean code
2020-02-25 15:11:52 +01:00
Jonathan Gimeno
9ae53260bf
end refactoring validator_test
2020-02-25 14:07:01 +01:00
Jonathan Gimeno
b4ab8e5e07
refactor TestFullValidatorSetPowerChange test
2020-02-25 13:54:55 +01:00
Jonathan Gimeno
96216c3dac
make test TestValidatorBondHeight pass
2020-02-25 13:51:48 +01:00
Jonathan Gimeno
99554926e8
refctor TestGetValidatorsEdgeCases to use simapp
2020-02-25 13:45:29 +01:00
Jonathan Gimeno
c7d68c59a9
refactor TestGetValidatorSortingMixed test to simap
2020-02-25 13:38:27 +01:00
Jonathan Gimeno
460619fa29
refactro TestGetValidatorSortingUnmixed to simapp
2020-02-25 13:27:05 +01:00
Jonathan Gimeno
9fa658c3f9
TestValidatorBasics
2020-02-25 13:23:22 +01:00
Jonathan Gimeno
ed401119e4
refactor TestSlashToZeroPowerRemoved
2020-02-25 13:18:49 +01:00
Jonathan Gimeno
385c5c556b
refactor TestUpdateBondedValidatorsDecreaseCliff to simapp
2020-02-25 11:59:15 +01:00
Jonathan Gimeno
25681ad3ad
refacor TestUpdateValidatorByPowerIndex to use simapp
2020-02-25 11:54:43 +01:00
Jonathan Gimeno
66abd1f19f
refactor first test validation to simapp
2020-02-25 11:43:51 +01:00
Jonathan Gimeno
0cddd4fff6
end refactoring slash_test
2020-02-25 10:32:53 +01:00
Jonathan Gimeno
15eaa129ee
refactor TestSlashWithRedelegation
2020-02-25 10:24:58 +01:00
Jonathan Gimeno
a6767d31fe
migrated two tests from slash_test to use simapp
2020-02-25 10:13:13 +01:00
Jonathan Gimeno
b36cdac3e3
test TestSlashAtNegativeHeight migrated to simapp
2020-02-24 19:01:55 +01:00
Jonathan Gimeno
7ee50eacf2
refactor TestSlashAtFutureHeight test
2020-02-24 18:43:51 +01:00
Jonathan Gimeno
3ea53f5682
refactor TestSlashRedelegation to use simapp
2020-02-24 18:41:01 +01:00