Skip to content

Commit

Permalink
fix: add bundles query version map to genesis import/export (#149)
Browse files Browse the repository at this point in the history
(cherry picked from commit 59847ad)
  • Loading branch information
mbreithecker authored and mergify[bot] committed Nov 15, 2023
1 parent 270dc7c commit c8f2962
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 24 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ An '!' indicates a state machine breaking change.
### Improvements

- ! (`x/bundles`) [#142](https://github.com/KYVENetwork/chain/pull/142) Halt the pool if a single validator has more than 50% voting power.
- (deps) [#33](https://github.com/KYVENetwork/chain/pull/33) Upgrade Cosmos SDK to [v0.47.5](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.47.5) ([`v0.47.5-kyve`](https://github.com/KYVENetwork/cosmos-sdk/releases/tag/v0.47.5-kyve-rc0)).
- ! (deps) [#33](https://github.com/KYVENetwork/chain/pull/33) Upgrade Cosmos SDK to [v0.47.5](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.47.5) ([`v0.47.5-kyve`](https://github.com/KYVENetwork/cosmos-sdk/releases/tag/v0.47.5-kyve-rc0)).

### Bug Fixes

- [#149](https://github.com/KYVENetwork/chain/pull/63) add bundles query version map to genesis import/export.


## [v1.3.1](https://github.com/KYVENetwork/chain/releases/tag/v1.3.1) - 2023-08-02

Expand Down
2 changes: 2 additions & 0 deletions proto/kyve/bundles/v1beta1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ message GenesisState {
repeated FinalizedBundle finalized_bundle_list = 3 [(gogoproto.nullable) = false];
// round_robin_progress_list ...
repeated RoundRobinProgress round_robin_progress_list = 4 [(gogoproto.nullable) = false];
// bundle_version_map ...
BundleVersionMap bundle_version_map = 5 [(gogoproto.nullable) = false];
}
4 changes: 4 additions & 0 deletions x/bundles/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState)
for _, entry := range genState.RoundRobinProgressList {
k.SetRoundRobinProgress(ctx, entry)
}

k.SetBundleVersionMap(ctx, genState.BundleVersionMap)
}

// ExportGenesis returns the capability module's exported genesis.
Expand All @@ -36,5 +38,7 @@ func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState {

genesis.RoundRobinProgressList = k.GetAllRoundRobinProgress(ctx)

genesis.BundleVersionMap = k.GetBundleVersionMap(ctx)

return genesis
}
102 changes: 79 additions & 23 deletions x/bundles/types/genesis.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c8f2962

Please sign in to comment.