Commit Graph
384 Commits
Author SHA1 Message Date
Chi Xiao Wenandchixiaoxiao bfa734ce8f refactor(x/staking,genutil)!: use validatorUpdates (#19754)
Co-authored-by: chixiaoxiao <chixiaoxiao@gmail.com>
2024-03-19 19:48:56 +00:00
ocnc a1bfe5d285 feat(x/staking): allow zero unbonding time (#19779) 2024-03-19 18:21:02 +00:00
Julián Toledano 65ab2530cc refactor(x/staking)!: removes the use of Accounts String() method (#19742) 2024-03-19 09:20:42 +00:00
Chi Xiao Wenandchixiaoxiao db82004074 refactor(x/**)!: genesis return errors (#19740)
Co-authored-by: chixiaoxiao <chixiaoxiao@gmail.com>
2024-03-13 11:44:43 +00:00
Julián Toledano 25aea8af8a refactor!: remove global config from x/auth and client (#19447) 2024-03-06 13:14:16 +00:00
84a1ee2232 fix(staking): fix impossible conditions (backport #19621) (#19624)
Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>
Co-authored-by: sontrinh16 <trinhleson2000@gmail.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-03-04 11:00:46 +01:00
Julien Robert e4d97090d8 test: move slash redelegation test to integration (#19581) 2024-02-28 10:09:38 +00:00
8585d538f1 Merge pull request from GHSA-86h5-xcpx-cfqc
* check undelegation after redelegation

* add comment

* using app v1

* set up test

* update test

* Update x/staking/keeper/slash.go

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>

* use switch inside slashing logic

* update slash redelegation test

---------

Co-authored-by: Hieu Vu <72878483+hieuvubk@users.noreply.github.com>
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-02-27 17:28:05 +01:00
Julien Robert 4b73e31b00 feat(x/staking): update validators min commission rate after MsgUpdateParams (#19537) 2024-02-23 17:17:01 +00:00
adc0f75f62 fix(x/staking): dust share (#18841)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: atheeshp <59333759+atheeshp@users.noreply.github.com>
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
2024-02-20 16:40:17 +00:00
MarkoandFacundo 2dafb8780c refactor(x/staking): migrate to use env (#19414)
Co-authored-by: Facundo <facundomedica@gmail.com>
2024-02-14 23:11:06 +00:00
Julien RobertandFacundo Medica e15a0de251 feat(core): add migrations registering (#19370)
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
2024-02-09 09:30:39 +00:00
94c98691a6 chore: fix spelling errors (#19369)
Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-02-07 18:32:15 +00:00
Likhita PolavarapuandAleksandr Bezobchuk c3a2357d3e refactor(x/staking): return errors on Hooks calls (#19277)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2024-02-02 09:38:10 +00:00
Aleksandr Bezobchuk a69836b3b6 fix(x/staking): Refactor GetLastValidators (#19226) 2024-01-25 00:37:19 +00:00
2a95a4abdd docs: add consensus pubkey docs (#19081)
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
Co-authored-by: samricotta <37125168+samricotta@users.noreply.github.com>
2024-01-18 09:23:21 +00:00
atheeshpandAleksandr Bezobchuk b16aa35d14 test: add tests for cons pubkey rotation (#18965)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2024-01-09 04:56:14 +00:00
atheeshp 19e66a9dc8 feat: include rotate keys logic in abci (#18236) 2023-12-22 10:14:15 +00:00
Likhita Polavarapu 38f40c42f2 refactor: remove panic usage in keeper methods (#18636) 2023-12-12 09:51:23 +00:00
8f0d5b15f0 chore: typos fixes by cosmos-sdk bot (#18689)
Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
2023-12-11 13:03:19 +00:00
Julien Robert 8cfdabb2ed ci: add misspell action (#18671) 2023-12-11 06:11:03 +00:00
Markoandcoderabbitai[bot] a7ececc34d refactor(staking): move delegation and validator interfaces to ./types (#18198)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2023-11-30 21:18:42 +00:00
Chenqun Lu d3e662da1f imp(staking): detect the length of the ed25519 pubkey in CreateValidator to prevent panic (#18506) 2023-11-27 09:41:17 +00:00
Julien Robert 3853e7ff70 ci: optimize linter script (#18480) 2023-11-16 12:57:32 +00:00
atheeshp 0f8c6c2c12 feat(x/staking): implement RotateConsPubKey method (#18188) 2023-11-15 06:59:50 +00:00
Emmanuel T Odeke 05261cc46e refactor(x/auth): spin out go.mod (#18351) 2023-11-07 11:42:58 +00:00
Marko 2a6640d488 refactor(staking): add go.mod (#18257) 2023-10-26 07:39:34 +00:00
atheeshp 3a8f114327 feat: add required params for cons pubkey rotation (#18142) 2023-10-18 13:06:59 +00:00
atheeshp 8f8e242e78 feat: add proto for cons pubkey rotation (#18140) 2023-10-17 12:42:16 +00:00
Emmanuel T Odeke 13afd9389b perf(x/staking/keeper): make Slash return early iff zero tokens to burn (#18049) 2023-10-16 14:50:08 +00:00
Emmanuel T Odeke 7d7d4907f4 fix(x/slashing/keeper): hoist non-changing addresses parsing out of redelegation loop (#18035) 2023-10-10 10:15:00 +00:00
Marko b170ccc459 chore(staking): add delegator to events (#18006) 2023-10-09 11:27:41 +00:00
Emmanuel T Odeke ddd26b5dfc chore(x/staking/keeper): remove redundant code/returns (#17890) 2023-09-27 07:43:38 +00:00
Marko 9d07b8ca8e refactor!: use context.Context in genesis api (#17885) 2023-09-26 16:03:41 +00:00
Marko 076ab3bf89 chore: remove staking and distr param dependence (#17834) 2023-09-22 07:56:06 +00:00
Marko 86ab9890b8 chore: amend validator to validators (#17809) 2023-09-19 12:34:13 +00:00
MarkoandAleksandr Bezobchuk 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
Marko 6615ff4f76 refactor!: deprecate blocktime on context (#17738) 2023-09-18 13:55:21 +00:00
2085695078 refactor(x/staking): migrate RedelegationQueue to collections (#17486)
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-09-08 17:10:33 +00:00
e53830d58a refactor(x/staking): Migrate ValidatorQueue to use Collections (#17562)
Co-authored-by: testinginprod <98415576+testinginprod@users.noreply.github.com>
Co-authored-by: unknown unknown <unknown@unknown>
2023-09-08 16:43:44 +00:00
Markoandlikhita-809 81d9ce9af5 feat(x/bank): introduce msg burn to bank keeper (#17569)
Co-authored-by: likhita-809 <likhita@vitwit.com>
2023-09-08 15:59:04 +00:00
Oleg Kovalov 7ff1ae999a chore: fix nolint comments (#17644) 2023-09-06 21:32:11 +00:00
Likhita Polavarapu 97661429e0 docs: Add k/v docs in structs using collections (#17609) 2023-09-04 22:24:19 +00:00
Likhita Polavarapu eb853117a9 refactor(x/staking): Use gogotypes Int64Value instead of bytes for LastValidatorPower (#17604) 2023-09-01 21:28:17 +00:00
Likhita Polavarapu 3e07c80ebc refactor(x/staking): Migrate LastValidatorPower to Collections (#17498) 2023-08-30 21:21:40 +00:00
Likhita PolavarapuandFacundo Medica 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 6ed81a737c refactor(x/staking): migrate UnbondingQueue to collections (#17481) 2023-08-29 07:15:22 +00:00
Likhita Polavarapu 70b3e85781 refactor(x/staking): Migrate Validators to use Collections (#17123) 2023-08-28 14:56:14 +00:00
Likhita Polavarapu a734071c05 refactor(x/staking): Migrate UnbondingDelegation to collections (#17270) 2023-08-28 08:38:11 +00:00