Robert Zaremba
6bc8ff2dfe
Use any as validator pubkey ( #7597 )
...
* protobuf pubkey type update
* wip2
* wip3
* solving types.NewValidator issues
* remove bech32 from validator type assignment
* update Validator interface
* Changelog update
* wip4
* update genutil
* fix simapp & x/ibc/testing tests
* update staking
* changelog update
* fix import cycle in tests
* fix amino panic on TestValidatorMarshalUnmarshalJSON
* fix TestValidatorMarshalUnmarshalJSON consensus_pubkey check
* Add UnpackInterfaces to HistoricalInfo
* fix TestHistoricalInfo
* update todos
* fix: Expecting ed25519.PubKey to implement proto.Message
* fix linter issues
* Fix migrate test
* Update CHANGELOG.md
Co-authored-by: Marie Gauthier <marie.gauthier63@gmail.com>
* review comments
* cosmetic changes
* add UnpackInterfaces got GenesisRandomized test
* Validator.Equal reuses Validator.MinEqual
* fix test
* use Validator.Equal in tests
* Fix staking simulation TestRandomizedGenState
* Remove TODO
* use HistoricalInfo.Equal
* use proto.Equal
* rename Validator.GetConsPubKey to TmConsPubKey
* prefer require.Equal over reflect.DeepEqual
* SetHistoricalInfo using a pointer
* Fix TestQueryDelegation test
* Fix TestQueryValidators test
* Fix TestSimulateMsgUnjail test
* experiement with LegacyAmino instances
* Register codecs in all simapp tests
* Fix cli_test compilation problems
* fix typo sdk -> std
* fix typo
* fix TestPlanStringer
* Rename to MakeEncodingConfig
* Remove RegisterCodecsTests
* Use gRPC in GetCmdQueryValidators
* Empty status
* fix info log check
* linter fixes
* rename simapparams to simappparams
* Update simapp/test_helpers.go
Co-authored-by: Marie Gauthier <marie.gauthier63@gmail.com>
* comments updates
* use valAddr1 instead of sdk.ValAddress(pk1.Address().Bytes())
Co-authored-by: Cory Levinson <cjlevinson@gmail.com>
Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com>
Co-authored-by: Marie Gauthier <marie.gauthier63@gmail.com>
2020-10-23 12:07:52 +00:00
Amaury Martiny
33e7297c79
Use enum instead of int32 for BondStatus ( #7499 )
...
* Migrate staking module
* Add gov legacy
* Add comments
* Add x/distrib
* x/crisis
* x/mint
* Fix test
* migrate x/genutil
* Fix lint
* Fix staking constants
* Fix test
* Update x/genutil/legacy/v040/migrate.go
Co-authored-by: Marie Gauthier <marie.gauthier63@gmail.com>
* Add migrate script instead of change BondStatus constants
* Change staking bondStatus to enum
* Fix test
* Fix another test
* Remove staking exported
* fix references
* Better constants
* Fix build
* Fix lint
* Remove buf version
* Fix tests
* Fix test
Co-authored-by: Marie Gauthier <marie.gauthier63@gmail.com>
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2020-10-12 13:56:02 +00:00
Anil Kumar Kammari
d55c1a2665
Change `address` from bytes to bech32 strings ( #7242 )
...
* init
* Fix bank proto messages
* missing conversions
* remove casttype for addresses
* Fix tests
* Fix consaddress
* more test fixes
* Fix tests
* fixed tests
* migrate missing proto declarations
* format
* Fix format
* Fix alignment
* Fix more tests
* Fix ibc merge issue
* Fix fmt
* Fix more tests
* Fix missing address declarations
* Fix staking tests
* Fix more tests
* Fix config
* fixed tests
* Fix more tests
* Update staking grpc tests
* Fix merge issue
* fixed failing tests in x/distr
* fixed sim tests
* fixed failing tests
* Fix bugs
* Add logs
* fixed slashing issue
* Fix staking grpc tests
* Fix all bank tests :)
* Fix tests in distribution
* Fix more tests in distr
* Fix slashing tests
* Fix statking tests
* Fix evidence tests
* Fix gov tests
* Fix bug in create vesting account
* Fix test
* remove fmt
* fixed gov tests
* fixed x/ibc tests
* fixed x/ibc-transfer tests
* fixed staking tests
* fixed staking tests
* fixed test
* fixed distribution issue
* fix pagination test
* fmt
* lint
* fix build
* fix format
* revert tally tests
* revert tally tests
* lint
* Fix sim test
* revert
* revert
* fixed tally issue
* fix tests
* revert
* fmt
* refactor
* remove `GetAddress()`
* remove fmt
* revert fmt.Striger usage
* Fix tests
* Fix rest test
* disable interfacer lint check
* make proto-format
* add nolint rule
* remove stray println
Co-authored-by: aleem1314 <aleem.md789@gmail.com>
Co-authored-by: atheesh <atheesh@vitwit.com>
2020-09-25 10:25:37 +00:00
Alexander Bezobchuk
9a3fd7cac5
Refactor x/staking Unbonding Validator Queue ( #6844 )
...
* init commit
* revise GetValidatorQueueKey
* add order test
* update UnbondAllMatureValidators
* update APIs
* fix build
* cl++
2020-07-31 12:55:32 -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
Alexander Bezobchuk
88d01a9869
Remove redundant staking APIs ( #5755 )
2020-03-06 13:40:50 +00:00
Jonathan Gimeno
1d18f8839c
remove create test public keys
2020-02-26 15:57:41 +01:00
Jonathan Gimeno
3910ec25f6
refactor and remove unused code
2020-02-24 16:14:16 +01:00
Jonathan Gimeno
17ee1f510a
finish refactor delegation test
2020-02-24 15:37:03 +01:00
Jonathan Gimeno
a1fcb07d0f
refactor TestRedelegateFromUnbondingValidator to use simapp
2020-02-24 15:28:25 +01:00
Jonathan Gimeno
5bf1fa0048
refactor delegation test
2020-02-24 15:11:37 +01:00
Jonathan Gimeno
ae44324d5a
refacotr TestRedelegationMaxEntries to use simapp
2020-02-24 15:06:12 +01:00
Jonathan Gimeno
27e20236a3
refactor TestRedelegateToSameValidator to use simapp
2020-02-24 13:16:32 +01:00
Jonathan Gimeno
e33844fa56
refactor TestRedelegation to use simapp
2020-02-24 13:11:18 +01:00
Jonathan Gimeno
9a5aae9f0e
refactor TestGetRedelegationsFromSrcValidator to use simapp
2020-02-24 12:50:02 +01:00
Jonathan Gimeno
62dbd8bcee
TestUnbondingAllDelegationFromValidator to use simapp
2020-02-24 12:46:14 +01:00
Jonathan Gimeno
6ce12184d4
refactor TestUndelegateFromUnbondedValidator to use simapp
2020-02-24 12:37:32 +01:00
Jonathan Gimeno
bbc2b33f7d
update TestUndelegate from unbonding validator and fix bug
2020-02-24 12:24:25 +01:00
Jonathan Gimeno
8378be277c
refactor TestUndelegateSelfDelegationBelowMinSelfDelegation to use simapp
2020-02-21 21:18:24 +01:00
Jonathan Gimeno
8cf9219a53
refactor test unbondingdelegationsmax entries
2020-02-21 21:05:56 +01:00
Jonathan Gimeno
e5b67801a3
refactor to use accounts
2020-02-21 20:51:11 +01:00
Jonathan Gimeno
ee7ccc3704
make TestDelegation pass with generated accounts
2020-02-21 19:34:07 +01:00
Jonathan Gimeno
89785765e0
comment before creating new way to generate accounts
2020-02-21 19:19:57 +01:00
Jonathan Gimeno
01aaf8446d
refactor creation of simapp
2020-02-21 18:54:10 +01:00
Jonathan Gimeno
27ff208fb8
make all test pass temporary
2020-02-21 18:34:03 +01:00
Jonathan Gimeno
9eaa5b0e1a
refactor delegation test TestUnbondDelegation to use simapp
2020-02-21 12:24:41 +01:00
Alexander Bezobchuk
53bf2271d5
Merge PR #5600 : Migrate x/staking to Protobuf
2020-02-06 14:21:02 -05:00
Alexander Bezobchuk
6890feb3d2
Merge PR #5572 : ADR 004 Implementation
2020-01-30 16:31:16 -05:00
Ferenc Fabian
066dd1114f
Merge PR #5449 : Add New constructor for the DecCoin
2020-01-03 15:44:53 -05:00
Marko
3a4f1fc4d4
Merge PR #4881 : Linting Galore
2019-08-19 12:06:27 -04:00
Federico Kunze
352678438c
Merge PR #4255 : Supply Module
2019-06-28 16:11:27 -04:00
helldealer
941effc14d
Merge PR #4553 : Fix undelegate losing tokens issue
2019-06-15 10:26:17 +02:00
frog power 4000
8c89023e9f
Merge PR #4524 : Staking ValidatorPowerRank to use "Potential Consensus Power"
2019-06-12 17:57:47 +02:00
Alexander Bezobchuk
d204afbdae
Merge PR #4461 : Port advisory patch to master
2019-05-31 11:14:40 -04:00
Jae Kwon
10bd98e58e
Merge PR #3717 : Allow the undelegation of more coins than were delegated; More validity checks.
2019-02-27 22:09:26 +01:00
frog power 4000
ab9de3a7f1
Merge PR #3680 : Convenience ToDec()
...
* NewDecFromInt -> ToDec
* pending
* Update PENDING.md
Co-Authored-By: rigelrozanski <rigel.rozanski@gmail.com>
* test typo
* typo
2019-02-21 03:05:31 -05:00
frog power 4000
d66db6a772
Merge PR #3621 : module inter-dependency cleanup
2019-02-13 15:01:50 -08:00
Christopher Goes
6ee9c97a5e
Merge PR #3561 : Don't store denominations in staking
2019-02-08 13:28:53 -08:00
Sunny Aggarwal
cff985ffc5
Merge PR #3546 : Min Self Delegation
2019-02-08 12:44:19 -08:00
Christopher Goes
38068a59ea
Merge PR #3507 : Results from x/staking & x/slashing peer review
2019-02-07 17:41:23 -08:00
frog power 4000
52f2ec71a9
Merge PR #3400 : power reduction for Tendermint
...
* add uncompiled power functionality
* fix some compile errors
* Power -> TendermintPower
* tests rename GetTendermintPower
* test fix
* working
* fix delegation tests
* fix slash tests
* staking/keeper tests passing
* docs reversion
* debuggin workin
* x/staking test pass
* fix gov tests
* fix x/slashing tests
* working distribution test fixes
* fix distribution tests
* lint
* fix lcd tests
* fix gov test
* lint
* CLI fixes, rm stakingTypes
* typos
* working cli fixes
* cli test fix
* cli tests fixed
* testnet creation modification
* typo
* pending
* Sanitize Dec.Roundint64 (#3475 )
* merge fixes
* @cwgoes comments
* fix tests
* change power reduction to 10^-6
* option to turn off minting for LCD tests
2019-02-05 21:30:48 -08:00
frog power 4000
dc75eb4eb8
Merge PR #3372 : Limit unbonding delegation / redelegations
2019-01-24 23:44:31 +01:00
frog power 4000
7f789d2ed3
Merge PR #3281 : Staking Spec Upgrade
...
* remove kv seperation for marshalling
* pending
* cleanup
* cleanup x2
* pending
* working
* minor refactors
* entry structs defined
* uncompiled mechanism written
* add many compile fixes
* code compiles
* fix test compile errors
* test cover passes
* ...
* multiple entries fix
* ...
* more design fix
* working
* fix test cover bug
* Update PENDING.md
* update comment around queue completion for redelegations/ubds
* basic spec updates
* spec folder cleanup
* cleanup docs folder cont.
* ...
* find-replace and folder rename
* supplimentary find/replace
* pending
* supplimentary
* pending
* few undos, stakingd -> staked
* to staking -> to stake
* undos
* most staking -> most stake
* ...
* undos
* simplestake->simplestaking
* ...
* pending update
* capital letter replacements
* ...
* working
* staking doc updates from rigel/delegation-index branch
* spec-spec
* spec-spec
* LooseTokens -> NotBondedTokens
* staking state.md updates
* updates to hook and endblock spec
* Update docs/gaia/gaiacli.md
Co-Authored-By: rigelrozanski <rigel.rozanski@gmail.com>
* Update docs/gaia/validators/validator-setup.md
Co-Authored-By: rigelrozanski <rigel.rozanski@gmail.com>
* Update docs/gaia/validators/validator-setup.md
Co-Authored-By: rigelrozanski <rigel.rozanski@gmail.com>
* comment undo
* remove ErrConflictingRedelegation
* @cwgoes comments are resolved
* further updates to endblock and state
* msg json update
* working transaction updates
* working
* complete transaction rewrite
* PENDING.md
* typo
* add todo
* address @jackzampolin @cwgoes comments
* couple leftover comments, rename
* Update x/staking/types/pool.go
Co-Authored-By: rigelrozanski <rigel.rozanski@gmail.com>
* cwgoes additions
* cwgoes suggestions x2
2019-01-21 19:52:03 -05:00
frog power 4000
8f7a222308
Merge PR #3314 : Staking misc rename
2019-01-17 18:53:22 +01:00
frog power 4000
133934ae37
Merge PR #3243 : allow multiple simultaneous redelegations/ubds between same delegator/validator(s) addresses
...
* remove kv seperation for marshalling
* pending
* cleanup
* cleanup x2
* pending
* working
* minor refactors
* entry structs defined
* uncompiled mechanism written
* add many compile fixes
* code compiles
* fix test compile errors
* test cover passes
* ...
* multiple entries fix
* ...
* more design fix
* working
* fix test cover bug
* Update PENDING.md
* update comment around queue completion for redelegations/ubds
* basic spec updates
* remove ErrConflictingRedelegation
* @cwgoes comments are resolved
* Update x/staking/keeper/slash.go
Co-Authored-By: rigelrozanski <rigel.rozanski@gmail.com>
* address @alexanderbez comments
2019-01-16 05:35:18 -05:00
frog power 4000
78a21353da
Rename stake/ to staking/ ( #3280 )
2019-01-11 12:08:01 -08:00