Commit Graph
424 Commits
Author SHA1 Message Date
c6b5f4afbe chore: remove unused local variables (backport #22340) (#22343)
Co-authored-by: zakir <80246097+zakir-code@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-10-23 13:24:11 +02:00
mergify[bot]andJulien Robert 8b843727b0 refactor: simplify collected metrics (backport #21963) (#21967)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-09-28 19:22:10 +00:00
mergify[bot]andcool-developer 6bda2aa061 fix(staking): avoid the double iterator close in staking (backport #21823) (#21824)
Co-authored-by: cool-developer <51834436+cool-develope@users.noreply.github.com>
2024-09-20 00:38:13 +02:00
mergify[bot]andJulien Robert 2ad5ab913d chore: bump golangci-lint and fix all linting issues (backport #21761) (#21779)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-09-17 11:49:10 +00:00
df020efd00 refactor: remove consensus as a imported type in modules (backport #21480) (#21638)
Co-authored-by: Marko <marko@baricevic.me>
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
2024-09-10 19:10:37 +02:00
mergify[bot]andomahs de345f16d7 docs: fix typos (backport #21514) (#21551)
Co-authored-by: omahs <73983677+omahs@users.noreply.github.com>
2024-09-04 22:09:30 +02:00
mergify[bot]andEzequiel Raynaudo 9b589f47c6 refactor(staking): check for nil ptrs after GetCachedValue() (backport #21300) (#21546)
Co-authored-by: Ezequiel Raynaudo <raynaudo.ee@gmail.com>
2024-09-04 15:35:39 +00:00
7d5ab19311 refactor: revert auth extraction (backport #21507) (#21529)
Co-authored-by: Marko <marko@baricevic.me>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-09-03 22:21:22 +00:00
mergify[bot]andJulien Robert cb1b2841c1 refactor(core,stf,x)!: remove InvokeTyped from router (backport #21224) (#21392)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-08-23 21:59:49 +00:00
fcb808a54c feat(log): remove core dependency and update core interface to be dependency free (backport #21045) (#21089)
Co-authored-by: Aaron Craelius <aaronc@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-07-26 13:43:42 +02:00
mergify[bot]andFacundo Medica 8e44789135 fix(x/slashing): do not error when val has zero tokens (backport #20977) (#21054)
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
2024-07-24 11:32:11 +00:00
yukionfire e22890b11f chore(x/staking,x/upgrade): replace fmt.Errorf without parameters with errors.New (#21004) 2024-07-21 09:53:48 +00:00
Marko 9436bcb7f2 chore: various cleanup (#20864) 2024-07-18 09:12:58 +00:00
winniehere 49bc189df1 chore: fix functions' comments (#20974) 2024-07-17 11:52:06 +00:00
Facundo Medica f61141f15e fix(x/staking): Add missing data from import/export (#20953) 2024-07-15 13:01:08 +00:00
MarkoandFacundo b68eb39412 refactor(staking)!: remove historical info (#20845)
Co-authored-by: Facundo <facundomedica@gmail.com>
2024-07-05 09:28:49 +00:00
testinginprod 7948a57355 fix(staking): validator must be slashed even when unbonding causes it to be removed from the set (#20828) 2024-07-04 13:16:25 +00:00
Lucas Francisco López 979f1e839b test(x/staking): Add test for shares to tokens conversion in delegation (#20840) 2024-07-03 12:42:11 +00:00
Facundo Medica 720c1086cb fix(x/slashing): Avoid overslashing on redelegation + unbonding in specific situations (#20688) 2024-06-24 10:33:46 +00:00
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
Facundo Medica 207b30262f fix(x/staking): Verify the pubkey type when rotating (#20714) 2024-06-21 08:41:58 +00:00
3c13bc03cd fix(x/staking): Check existing pubkeys when creating a Validator + refactors (#20713)
Co-authored-by: Hieu Vu <72878483+hieuvubk@users.noreply.github.com>
Co-authored-by: Ezequiel Raynaudo <raynaudo.ee@gmail.com>
2024-06-19 15:52:47 +00:00
Matt Kocubinski 0b42bf97f4 refactor(x/staking): introduce and use TryUnwrapSDKContext (#20699) 2024-06-18 12:57:08 +00:00
Facundo Medica 4133dc23cb refactor(x/staking)!: rename NewToOldConsKeyMap to ConsKeyToValidatorIdentifierMap (#20696) 2024-06-17 14:27:40 +00:00
Facundo Medica 43991b99e4 fix(x/staking): stop validators from rotating to the same key on the same block (#20649) 2024-06-13 11:27:44 +00:00
Marko 1b47dc91a3 chore: move logger to core (#20388) 2024-05-28 12:30:09 +00:00
Julien Robert f02a124667 refactor(runtime,core): split router service (#20401) 2024-05-16 08:04:40 +00:00
Hoa Nguyen 22aa95ccbd chore: make fmt.Errorf use %w to wrap error instead of %v (#20350) 2024-05-12 08:11:25 +00:00
Marko fc84ff6f40 refactor!(staking): remove comet crypto as a dep (#20295) 2024-05-07 10:27:47 +00:00
Markoandyihuang 0dfb54e36a refactor! : bump comet to v1 (#19726)
Co-authored-by: yihuang <yi.codeplayer@gmail.com>
2024-05-06 14:12:00 +00:00
Marko 43764cff30 chore: consensus spinout (#20010) 2024-05-03 14:08:17 +00:00
Matt KocubinskiandMarko a6bc921c9a refactor: fetch CometInfo from service (#20238)
Co-authored-by: Marko <marko@baricevic.me>
2024-05-03 01:14:22 +00:00
b15732a594 refactor: migrate to query Consensus Params (#19600)
Co-authored-by: Julien Robert <julien@rbrt.fr>
Co-authored-by: Facundo <facundomedica@gmail.com>
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
Co-authored-by: Matt Kocubinski <mkocubinski@gmail.com>
Co-authored-by: Hieu Vu <72878483+hieuvubk@users.noreply.github.com>
2024-04-25 15:26:43 +00:00
toniandsamricotta a19a98b913 chore: typo fix (#20130)
Co-authored-by: samricotta <37125168+samricotta@users.noreply.github.com>
2024-04-22 15:53:53 +00:00
ipangpang 1bd4351241 style: remove redundant import alias (#20109)
Signed-off-by: ipangpang <arronipangpang@gmail.com>
2024-04-21 19:03:43 +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
Lucas Francisco LópezandAleksandr Bezobchuk 2496cfdf51 feat: Conditionally emit metrics based on enablement (#19903)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2024-04-11 20:32:52 +00:00
Julien Robert d54e940d50 refactor(x/staking): use sdk validator updates (#19788) 2024-03-28 13:48:52 +00:00
Facundo Medica a82615bdf8 fix: Do not call Remove during Walk - part 2 (#19851) 2024-03-25 20:42:50 +00:00
Facundo MedicaandAleksandr Bezobchuk ea7bdd1724 fix: Do not call Remove during Walk (#19833)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2024-03-24 18:56:24 +00:00
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