Skip to content

Commit 8fcdc76

Browse files
chore: prepare Kaon upgrade (#248)
Co-authored-by: Troy Kessler <troy.kessler99@gmail.com>
1 parent 9c6b30f commit 8fcdc76

8 files changed

Lines changed: 47 additions & 12 deletions

File tree

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# https://help.github.com/articles/about-codeowners
22

3-
* @mbreithecker @troykessler @shifty11
3+
* @mbreithecker @troykessler @christopherbrumm

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
An '!' indicates a state machine breaking change.
1616

17-
## Unreleased
17+
## [v2.0.0](https://github.com/KYVENetwork/chain/releases/tag/v2.0.0) - 2025-02-27
1818

1919
### Features
2020

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "kaon-validator-1",
3+
"consensus_address": "kyvevaloper1kx5gqn0kr5tphx89e5lsm4mrfzvxun76mmsc36",
4+
"protocol_address": "kyve1ee7l0g40nnthdhzdpe3s8gpjz2rgthx5kwqgl7",
5+
"proof_1": "191401B78575DADEC1D2DD42647FB8E63649E3B5DFC4324585A09B7BD1F4D295",
6+
"proof_2": "71F54A9D5941A8A90958732E356D232260A586A45DC81071F4C786D289FF6884"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "kaon-validator-2",
3+
"consensus_address": "kyvevaloper1m9yjkeu2nax08ga77gj672nn0zcaujvlpyzfdk",
4+
"protocol_address": "kyve1vnyya2yzhwg6805ntetjg2xjxfamjfads7nl95",
5+
"proof_1": "4856C80A3C2588BA604E0111FE62A933A47A8297D789997FBE37F1563E0F9F08",
6+
"proof_2": "3E6A1A3ECD8AD54021D4404C5F8EC516CE41169C955C56E08FD2EE1612BFC070"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "kaon-validator-3",
3+
"consensus_address": "kyvevaloper1njrlphuqc78zwh0xufq4qxd52lzdvwgh6gnyzg",
4+
"protocol_address": "kyve1na0muvnsumd7c0a2zg0z2r3keeumtzsfg6ydu0",
5+
"proof_1": "A0A8C3361B0A00D1D35AC91D463E1E7923FE5701100CEFE1CE41606E4D78890B",
6+
"proof_2": "3702554D112497AA9C09215701893D9E7D02BE868D2FAE153805A042933AF142"
7+
}

docs/config.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -209,16 +209,6 @@
209209
}
210210
}
211211
},
212-
{
213-
"url": "./tmp-swagger-gen/cosmos/group/v1/query.swagger.json",
214-
"operationIds": {
215-
"rename": {
216-
"Params": "GroupParams",
217-
"Proposal": "GroupProposal",
218-
"TallyResult": "GroupTallyResult"
219-
}
220-
}
221-
},
222212
{
223213
"url": "./tmp-swagger-gen/cosmos/consensus/v1/query.swagger.json",
224214
"operationIds": {

x/bundles/keeper/keeper_suite_inflation_splitting_test.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ TEST CASES - inflation splitting
4242
* Produce a valid bundle with no funders, 10% inflation splitting and pool-0 = 0.1 weight and pool-1 = 1.0 weight
4343
* Produce a valid bundle with no funders, 10% inflation splitting and pool-0 = 1.0 weight and pool-1 = 1.0 weight
4444
45+
* Check if already existing pool accounts would cause a panic
46+
4547
*/
4648

4749
/*
@@ -2033,4 +2035,22 @@ var _ = Describe("inflation splitting", Ordered, func() {
20332035
Expect(s.App().FundersKeeper.GetTotalActiveFunding(s.Ctx(), fundingState.PoolId)).To(BeZero())
20342036
Expect(fundingState.ActiveFunderAddresses).To(BeEmpty())
20352037
})
2038+
2039+
It("Check if already existing pool accounts would cause a panic", func() {
2040+
// ARRANGE
2041+
// this is the address of pool/1
2042+
found := s.App().AccountKeeper.HasAccount(s.Ctx(), sdk.MustAccAddressFromBech32("kyve1zqdz48xggheknnh4yrz5xx9h5jtg9kvjd24lud"))
2043+
Expect(found).To(BeFalse())
2044+
2045+
err := s.App().BankKeeper.SendCoins(s.Ctx(), sdk.MustAccAddressFromBech32(i.ALICE), sdk.MustAccAddressFromBech32("kyve1zqdz48xggheknnh4yrz5xx9h5jtg9kvjd24lud"), i.KYVECoins(1*i.T_KYVE))
2046+
Expect(err).NotTo(HaveOccurred())
2047+
2048+
// ACT
2049+
s.App().PoolKeeper.EnsurePoolAccount(s.Ctx(), 1)
2050+
2051+
// ASSERT
2052+
account := s.App().AccountKeeper.GetAccount(s.Ctx(), sdk.MustAccAddressFromBech32("kyve1zqdz48xggheknnh4yrz5xx9h5jtg9kvjd24lud"))
2053+
_, ok := account.(sdk.ModuleAccountI)
2054+
Expect(ok).To(BeTrue())
2055+
})
20362056
})

x/bundles/migration/migration.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ func init() {
6565
func MigrateBundlesModule(sdkCtx sdk.Context, bundlesKeeper bundleskeeper.Keeper, upgradeHeight int64) {
6666
logger = sdkCtx.Logger().With("upgrade", "bundles-migration")
6767

68+
if sdkCtx.ChainID() != "kyve-1" {
69+
return
70+
}
71+
6872
if sdkCtx.BlockHeight()-upgradeHeight < WaitingBlockPeriod {
6973
logger.Info("sdkCtx.BlockHeight()-upgradeHeight < WaitingBlockPeriod > return")
7074
return

0 commit comments

Comments
 (0)