Commit Graph

415 Commits

Author SHA1 Message Date
mergify[bot]
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]
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
Marko
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
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
Facundo Medica
207b30262f
fix(x/staking): Verify the pubkey type when rotating (#20714) 2024-06-21 08:41:58 +00:00
Facundo Medica
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
Marko
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 Kocubinski
a6bc921c9a
refactor: fetch CometInfo from service (#20238)
Co-authored-by: Marko <marko@baricevic.me>
2024-05-03 01:14:22 +00:00
Marko
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
toni
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ópez
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 Medica
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 Wen
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 Wen
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
mergify[bot]
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
khanh
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
Joowon Yun
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
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
Julien Robert
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
Cosmos SDK
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 Polavarapu
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
atheeshp
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
atheeshp
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