son trinh
def23f0932
fix(x/accounts/default/lockup): Lockup account track undelegation when unbonding entry is mature ( #22254 )
...
Co-authored-by: Alexander Peters <alpe@users.noreply.github.com>
2024-12-17 16:22:15 +00:00
Marko
234cdc45f2
refactor(x/staking)!: removing unbonding queue index ( #22795 )
2024-12-16 10:48:54 +00:00
Julien Robert
d697a3de0f
fix(server/v2/comebft): wire missing services + fix simulation ( #21964 )
2024-11-19 13:49:33 +00:00
Julien Robert
cbdfd9bdfa
chore: bump golangci-lint and fix all linting issues ( #21761 )
2024-09-16 19:11:19 +00:00
Julien Robert
54759038a9
chore(x/staking): revert proto breakage ( #21666 )
2024-09-12 09:14:24 +00:00
son trinh
1d4ecd5e37
refactor: decouple comet from modules ( #21382 )
2024-09-11 09:18:13 +00:00
Ezequiel Raynaudo
502661ba93
refactor(staking): check for nil ptrs after GetCachedValue() ( #21300 )
2024-09-04 15:13:49 +00:00
Marko
b68eb39412
refactor(staking)!: remove historical info ( #20845 )
...
Co-authored-by: Facundo <facundomedica@gmail.com>
2024-07-05 09:28:49 +00:00
Lucas Francisco López
467cc6d427
feat: Add consensus address to validator query response ( #20434 )
...
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-06-21 10:15:03 +00:00
Julien Robert
5e7aae0db1
refactor(core,x/**): simplify core service api and embed environment in keepers ( #20071 )
2024-04-17 18:18:16 +00:00
Julien Robert
e4d97090d8
test: move slash redelegation test to integration ( #19581 )
2024-02-28 10:09:38 +00:00
Marko
2dafb8780c
refactor(x/staking): migrate to use env ( #19414 )
...
Co-authored-by: Facundo <facundomedica@gmail.com>
2024-02-14 23:11:06 +00:00
Marko
2a6640d488
refactor(staking): add go.mod ( #18257 )
2023-10-26 07:39:34 +00:00
Marko
c05ff14a97
refactor(staking): change historicalinfo to contain minimal set of data ( #17655 )
...
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2023-09-19 10:59:04 +00:00
atheeshp
28112706b7
refactor: migrate x/staking Params to use collections ( #17778 )
2023-09-18 16:06:42 +00:00
Likhita Polavarapu
3ed40a925c
refactor(x/staking): Migrate UnbondingDelegationByValIndex to use collections ( #17291 )
...
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
2023-08-30 09:21:10 +00:00
Likhita Polavarapu
a734071c05
refactor(x/staking): Migrate UnbondingDelegation to collections ( #17270 )
2023-08-28 08:38:11 +00:00
atheeshp
222d28e179
refactor(x/staking): migrate RedelegationByValSrcIndexKey key to collections ( #17332 )
2023-08-22 07:00:23 +00:00
atheeshp
09db6997c5
refactor(x/staking): migrate redelegation key to use collections ( #17315 )
2023-08-17 10:32:10 +00:00
Marko
e60c583d28
refactor: migrate away from using valBech32 globals (2/2) ( #17157 )
...
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
2023-08-14 08:04:24 +00:00
atheeshp
f907a27d31
refactor(x/staking): migrate delegation key to collections ( #17162 )
2023-08-09 07:15:12 +00:00
atheeshp
257d3e5e7c
refactor(x/staking): migrate delegations by validator to use collections ( #17155 )
2023-07-28 08:46:12 +00:00
Marko
58855c6859
refactor: remove global valaddress bech32 codec calls (1/2) ( #17098 )
...
Co-authored-by: Devon Bear <itsdevbear@berachain.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-07-26 19:01:21 +00:00
atheeshp
c74e2887b0
refactor(x/staking): migrate historicalInfo to use collections ( #17063 )
2023-07-25 09:05:26 +00:00
Marko
c23505b037
refactor(staking): use validator & address codecs in staking ( #16958 )
2023-07-19 11:01:32 +00:00
atheeshp
9b237c7189
chore(x/staking): audit changes ( #16795 )
...
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2023-07-03 07:14:17 +00:00
Facundo Medica
1be7d9805e
refactor(x/staking)!: KVStoreService, return errors and use context.Context ( #16324 )
...
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2023-06-16 18:40:44 +00:00
Marko
c8ab555174
refactor(bech32): remove embedding of addresscodec ( #16197 )
2023-05-22 10:20:45 +00:00
Likhita Polavarapu
672b1f9e15
test(x/staking): write integration tests ( #15890 )
2023-05-02 20:01:19 +00:00
atheeshp
7b5602492c
refactor: add delegations by validator index ( #15731 )
...
Co-authored-by: Marko <marbar3778@yahoo.com>
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2023-04-24 14:14:09 +00:00
Marko
7f0e05ebb9
refactor(staking): remove account address bech32 global ( #15598 )
2023-04-02 21:53:59 +02:00
Jacob Gadikian
37ba88872d
style: enable strict gofumpt ( #15579 )
2023-03-28 18:59:21 +00:00
Likhita Polavarapu
7559d9ecd3
refactor: create go.mod for store ( #14746 )
...
Co-authored-by: Marko <marbar3778@yahoo.com>
2023-01-25 13:31:56 +00:00
Noel Ukwa
c822836501
refactor: migrate calls from alias file to appropriate store/types ( #14455 )
...
Co-authored-by: Marko <marbar3778@yahoo.com>
Closes https://github.com/cosmos/cosmos-sdk/issues/14406
2023-01-10 15:31:06 +00:00
Marko
84675a6bf1
feat!: IS rebase ( #13122 )
...
* feat: IS rebase (squash da53124..b45dd5f)
* clean up docs
* fix: fix IS tests (#13420 )
* revert key update
* add hook error handling
* impl feedback
* add changelog
* implements style nits
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
* more nits
* fix tests
Co-authored-by: Simon <sainoe@users.noreply.github.com>
* add godoc
* add godoc
Co-authored-by: Julien Robert <julien@rbrt.fr>
2022-10-09 12:21:20 +02:00
Marko
3a097012b5
chore: remove legacy appmodule boiler plate ( #12725 )
...
* remove legacy appmodule boiler plate
* remove legacy code
* remove legacy gov rest routes
* remove staking querier
* fix legacy
* remove unused test
* add upgrading and changelog entry
* Update UPGRADING.md
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
* fix tests
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
2022-07-28 13:18:14 +02:00
Facundo Medica
92d24cc69c
refactor: Use GenericFilteredPaginate wherever possible ( #12386 )
2022-06-30 08:36:20 -04:00
Jeancarlo Barrios
90d6745ccc
feat: migrate x/staking to app wiring ( #12102 )
...
## Description
Migrate x/staking to the new app wiring (dependency injection).
Tracking progress at https://github.com/cosmos/cosmos-sdk/issues/12036
---
### Author Checklist
*All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.*
I have...
- [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json ) in the PR title
- [ ] added `!` to the type prefix if API or client breaking change
- [ ] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#pr-targeting ))
- [ ] provided a link to the relevant issue or specification
- [ ] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/main/docs/building-modules )
- [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#testing )
- [ ] added a changelog entry to `CHANGELOG.md`
- [ ] included comments for [documenting Go code](https://blog.golang.org/godoc )
- [ ] updated the relevant documentation or specification
- [ ] reviewed "Files changed" and left comments if necessary
- [ ] confirmed all CI checks have passed
### Reviewers Checklist
*All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.*
I have...
- [x] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json ) in the PR title
- [ ] confirmed `!` in the type prefix if API or client breaking change
- [ ] confirmed all author checklist items have been addressed
- [ ] reviewed state machine logic
- [ ] reviewed API design and naming
- [ ] reviewed documentation is accurate
- [ ] reviewed tests and test coverage
- [ ] manually tested (if applicable)
2022-06-03 08:10:20 +00:00
Jacob Gadikian
55054282d2
chore: gofumpt ( #11839 )
...
* fumpt using main not master...
* be more descriptive
* fumpt
* fix nits
Co-authored-by: Julien Robert <julien@rbrt.fr>
2022-05-19 10:55:27 +02:00
likhita-809
da87ab0d36
fix: Staking delegations should return empty list instead of rpc error when no records found ( #9423 )
...
* return empty list instead of rpc error when no records found for staking delegations
* fix grpc query DelegatorDelegations tests
* remove response code tests for staking delegations
* fix failing tests
* change staking delegations response code to 200 in grpc test
* add staking delegations response code tests to TestQueryDelegatorDelegationsGRPC
* add address without delegations testcase
* add changes to grpc query tests of delegatorDelegations
* remove getRequest unused function from x/staking/client/rest/grpc_query_test.go
* minor fixes
* add testcases for request with no delegations
* address review comments
* add changelog
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-06-01 15:17:44 +00:00
likhita-809
e96839de2f
x/staking v0.43 Audit updates ( #9267 )
...
* update staking specs
* use gosimple code in x/staking/client/testutil/suite.go
* small fixes
* add godoc to methods in msg_server and grpc_query
* changes to godoc and small fixes
* remove unnecessary lines
* remove mentions of serviceMsg and avoid having slash after Msg
2021-05-10 12:41:24 +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
Anil Kumar Kammari
da7a8e603f
Fix query validator UBDs ( #7228 )
...
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-09-02 16:47:29 +00:00
Anil Kumar Kammari
b5bc864862
Fix status filter ( #7167 )
...
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-08-26 07:42:25 +00:00
atheeshp
f87624e9de
Add Grpc gateway annotations ( #6918 )
...
* grpc for bank module
* edit module.go
* added annotations for x/auth query proto
* generated gw file
* added grpc gateway for x/staking query proto
* added annotations for evidence
* added annotations for gov query proto
* added annotations
* added annotations for slashing module
* updated annotations
* added annotations for staking module
* added annotations for upgrade query
* annotations added for x/ibc/channel query proto
* added annotations for ibc/connection query proto
* updated annotations
* updated annotations
* annotation changes
* ommitted ibc module
* updated go.mod
* fixed lint issue
* review changes
* review changes
* review changes
* review changes
* go sum changes
* updated annotations
* annotation changes
* Fix proto lint issues
* review changes
* review changes
* review changes
* discussion changes
* review changes
* grpc for bank module
* edit module.go
* added annotations for x/auth query proto
* generated gw file
* added grpc gateway for x/staking query proto
* added annotations for evidence
* added annotations for gov query proto
* added annotations
* added annotations for slashing module
* updated annotations
* added annotations for staking module
* added annotations for upgrade query
* annotations added for x/ibc/channel query proto
* added annotations for ibc/connection query proto
* updated annotations
* updated annotations
* annotation changes
* ommitted ibc module
* updated go.mod
* fixed lint issue
* review changes
* review changes
* review changes
* review changes
* go sum changes
* updated annotations
* annotation changes
* Fix proto lint issues
* review changes
* review changes
* review changes
* discussion changes
* review changes
* fixed conflicts
* review changes
* updated gw files
* lint
* lint
* lint
* added missing annotations
* review changes
* review changes
* review changes
* review changes
Co-authored-by: SaReN <sahithnarahari@gmail.com>
Co-authored-by: Anil Kumar Kammari <anil@vitwit.com>
2020-08-14 10:05:35 +00:00
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
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