Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add bundles query version map to genesis import/export #149

Merged
merged 4 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading