forked from sei-protocol/sei-tendermint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[acl] add migration handler for inter-contract data struct changes (s…
…ei-protocol#134) ## Describe your changes and provide context Added back old proto definitions in `legacy.proto` to facilitate migration. Added a migration handler that iterates through wasm dependency registrations, decode them with the legacy proto, and overwrite with the new proto ## Testing performed to validate your change unit tests
- Loading branch information
Showing
11 changed files
with
956 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
syntax = "proto3"; | ||
package cosmos.accesscontrol.v1beta1; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "cosmos/accesscontrol/constants.proto"; | ||
import "cosmos/accesscontrol/accesscontrol.proto"; | ||
|
||
option go_package = "github.com/cosmos/cosmos-sdk/types/accesscontrol"; | ||
|
||
message LegacyAccessOperationWithSelector { | ||
AccessOperation operation = 1; | ||
AccessOperationSelectorType selector_type = 2; | ||
string selector = 3; | ||
} | ||
|
||
message LegacyWasmDependencyMapping { | ||
bool enabled = 1; | ||
repeated LegacyAccessOperationWithSelector access_ops = 2 [ | ||
(gogoproto.nullable) = false | ||
]; | ||
string reset_reason = 3; | ||
string contract_address = 4; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.