From 03e6f6acd9cfa518edaf2911aa2ea0ab4f8d2c09 Mon Sep 17 00:00:00 2001 From: cboh4 Date: Thu, 2 Oct 2025 15:58:16 +0300 Subject: [PATCH 1/2] add authorized admin-update flow --- proto/secret/compute/v1beta1/msg.proto | 14 +- proto/secret/compute/v1beta1/query.proto | 14 + x/compute/client/cli/query.go | 32 ++ x/compute/internal/keeper/keeper.go | 66 ++- x/compute/internal/keeper/msg_server.go | 24 +- x/compute/internal/keeper/querier.go | 32 ++ x/compute/internal/types/events.go | 22 +- x/compute/internal/types/keys.go | 5 + x/compute/internal/types/msg.go | 21 +- x/compute/internal/types/msg.pb.go | 583 ++++++++++++++++------ x/compute/internal/types/query.pb.go | 597 +++++++++++++++++++---- x/compute/internal/types/query.pb.gw.go | 101 ++++ 12 files changed, 1245 insertions(+), 266 deletions(-) diff --git a/proto/secret/compute/v1beta1/msg.proto b/proto/secret/compute/v1beta1/msg.proto index 59874b459..81e4591f5 100644 --- a/proto/secret/compute/v1beta1/msg.proto +++ b/proto/secret/compute/v1beta1/msg.proto @@ -29,7 +29,7 @@ service Msg { // UpdateParams updates compute module params rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); rpc UpgradeProposalPassed(MsgUpgradeProposalPassed) returns (MsgUpgradeProposalPassedResponse); - rpc MigrateContractProposal(MsgMigrateContractProposal) returns (MsgMigrateContractProposalResponse); + rpc ContractGovernanceProposal(MsgContractGovernanceProposal) returns (MsgContractGovernanceProposalResponse); rpc SetContractGovernance(MsgSetContractGovernance) returns (MsgSetContractGovernanceResponse); } @@ -222,18 +222,24 @@ message MigrateContractInfo { uint64 new_code_id = 2; } -message MsgMigrateContractProposal { +message UpdateAdminInfo { + string address = 1; + string new_admin = 2; // Empty string to remove admin +} + +message MsgContractGovernanceProposal { option (gogoproto.goproto_getters) = false; option (cosmos.msg.v1.signer) = "authority"; - option (amino.name) = "wasm/MsgMigrateContractProposal"; + option (amino.name) = "wasm/MsgContractGovernanceProposal"; string authority = 1; string title = 2; string description = 3; repeated MigrateContractInfo contracts = 4; + repeated UpdateAdminInfo admin_updates = 5; // Better field name } -message MsgMigrateContractProposalResponse {} +message MsgContractGovernanceProposalResponse {} message MsgSetContractGovernance { option (gogoproto.goproto_getters) = false; diff --git a/proto/secret/compute/v1beta1/query.proto b/proto/secret/compute/v1beta1/query.proto index 4f4bc816b..8a26e5c39 100644 --- a/proto/secret/compute/v1beta1/query.proto +++ b/proto/secret/compute/v1beta1/query.proto @@ -74,6 +74,10 @@ service Query { rpc AuthorizedMigration(QueryAuthorizedMigrationRequest) returns (QueryAuthorizedMigrationResponse) { option (google.api.http).get = "/compute/v1beta1/authorized_migration/{contract_address}"; } + // Query authorized admin update for a contract + rpc AuthorizedAdminUpdate(QueryAuthorizedAdminUpdateRequest) returns (QueryAuthorizedAdminUpdateResponse) { + option (google.api.http).get = "/compute/v1beta1/authorized_admin_update/{contract_address}"; + } } // ParamsRequest is the request type for the Query/Params RPC method. @@ -199,4 +203,14 @@ message QueryAuthorizedMigrationRequest { message QueryAuthorizedMigrationResponse { // Authorized code ID (if any) uint64 new_code_id = 1 [ (gogoproto.customname) = "NewCodeID" ]; +} + +message QueryAuthorizedAdminUpdateRequest { + // Contract address to query + string contract_address = 1; +} + +message QueryAuthorizedAdminUpdateResponse { + // Authorized new admin address (empty string if removing admin, or if no authorization) + string new_admin = 1; } \ No newline at end of file diff --git a/x/compute/client/cli/query.go b/x/compute/client/cli/query.go index b34de3e84..02947b213 100644 --- a/x/compute/client/cli/query.go +++ b/x/compute/client/cli/query.go @@ -53,6 +53,7 @@ func GetQueryCmd() *cobra.Command { GetCmdDecryptText(), GetCmdGetContractHistory(), GetCmdQueryAuthorizedMigration(), + GetCmdQueryAuthorizedAdminUpdate(), ) return queryCmd } @@ -685,6 +686,37 @@ Examples: return cmd } +func GetCmdQueryAuthorizedAdminUpdate() *cobra.Command { + cmd := &cobra.Command{ + Use: "authorized-admin-update [contract-address]", + Short: "Query authorized-admin-update for a contract", + Long: `Query whether a contract has an authorized admin-update set. + +Examples: + # Check if the contract has authorized admin-update + secretcli query compute authorized-admin-update secret1sscrt123...`, + Args: cobra.ExactArgs(1), + RunE: func(cmd *cobra.Command, args []string) error { + clientCtx := client.GetClientContextFromCmd(cmd) + queryClient := types.NewQueryClient(clientCtx) + + contractAddr := args[0] + + res, err := queryClient.AuthorizedAdminUpdate(context.Background(), &types.QueryAuthorizedAdminUpdateRequest{ + ContractAddress: contractAddr, + }) + if err != nil { + return err + } + + return clientCtx.PrintProto(res) + }, + } + + flags.AddQueryFlagsToCmd(cmd) + return cmd +} + func QueryWithData(contractAddress sdk.AccAddress, queryData []byte, clientCtx client.Context) error { wasmCtx := wasmUtils.WASMContext{CLIContext: clientCtx} diff --git a/x/compute/internal/keeper/keeper.go b/x/compute/internal/keeper/keeper.go index e654fe855..ea5aaea28 100644 --- a/x/compute/internal/keeper/keeper.go +++ b/x/compute/internal/keeper/keeper.go @@ -1684,6 +1684,19 @@ func (k Keeper) UpdateContractAdmin(ctx sdk.Context, contractAddress, caller, ne return sdkerrors.ErrUnauthorized.Wrap("caller is not the admin") } + // if the contract was set to require governance, check that the new admin matches + // the one set by governance + if contractInfo.RequireGovernance { + storedAdmin, found := k.GetNewAdmin(ctx, contractAddress.String()) + if !found { + return sdkerrors.ErrUnauthorized.Wrap("requires governance approval for admin change") + } + if storedAdmin != newAdmin.String() { + return sdkerrors.ErrUnauthorized.Wrapf("admin mismatch: governance authorized '%s', attempting '%s'", + storedAdmin, newAdmin.String()) + } + } + signBytes := []byte{} signMode := sdktxsigning.SignMode_SIGN_MODE_UNSPECIFIED modeInfoBytes := []byte{} @@ -1734,6 +1747,10 @@ func (k Keeper) UpdateContractAdmin(ctx sdk.Context, contractAddress, caller, ne contractInfo.AdminProof = newAdminProof k.setContractInfo(ctx, contractAddress, &contractInfo) + if contractInfo.RequireGovernance { + k.ConsumeAdminUpdate(ctx, contractAddress.String()) + } + ctx.EventManager().EmitEvent(sdk.NewEvent( types.EventTypeUpdateContractAdmin, sdk.NewAttribute(types.AttributeKeyContractAddr, contractAddress.String()), @@ -1801,8 +1818,8 @@ func (k Keeper) Migrate(ctx sdk.Context, contractAddress sdk.AccAddress, caller if contractInfo.Admin == "" && !contractInfo.RequireGovernance { return nil, errorsmod.Wrap(types.ErrMigrationFailed, "contract is not upgradable") } - codeID, found := k.GetAuthorizedMigration(ctx, contractAddress.String()) if contractInfo.RequireGovernance { + codeID, found := k.GetAuthorizedMigration(ctx, contractAddress.String()) if !found { return nil, errorsmod.Wrap(types.ErrMigrationFailed, "requires governance approval for migration") } @@ -1871,7 +1888,7 @@ func (k Keeper) Migrate(ctx sdk.Context, contractAddress sdk.AccAddress, caller contractInfo.CodeID = newCodeID k.setContractInfo(ctx, contractAddress, &contractInfo) - if contractInfo.RequireGovernance && found { + if contractInfo.RequireGovernance { k.ConsumeAuthorizedMigration(ctx, contractAddress.String()) } @@ -1990,6 +2007,16 @@ func (k Keeper) SetAuthorizedMigration(ctx sdk.Context, contractAddr string, new } } +func (k Keeper) SetAdminUpdate(ctx sdk.Context, contractAddr string, newAdmin string) { + store := k.storeService.OpenKVStore(ctx) + key := types.GetUpdateAdminKey(contractAddr) + value := []byte(newAdmin) + err := store.Set(key, value) + if err != nil { + ctx.Logger().Error("SetAdminUpdate:", err.Error()) + } +} + // Get upgrade authorization func (k Keeper) GetAuthorizedMigration(ctx sdk.Context, contractAddr string) (uint64, bool) { store := k.storeService.OpenKVStore(ctx) @@ -2005,6 +2032,31 @@ func (k Keeper) GetAuthorizedMigration(ctx sdk.Context, contractAddr string) (ui return sdk.BigEndianToUint64(bz), true } +// GetNewAdmin returns the authorized new admin for a contract +func (k Keeper) GetNewAdmin(ctx sdk.Context, contractAddr string) (string, bool) { + store := k.storeService.OpenKVStore(ctx) + key := types.GetUpdateAdminKey(contractAddr) + + // Check if authorization exists + exists, err := store.Has(key) + if err != nil { + ctx.Logger().Error("GetNewAdmin.Has:", err.Error()) + return "", false + } + if !exists { + return "", false // No authorization - this is normal, not an error + } + + // Get the authorized admin value + bz, err := store.Get(key) + if err != nil { + ctx.Logger().Error("GetNewAdmin.Get:", err.Error()) + return "", false + } + + return string(bz), true // Can be empty string (valid: remove admin) +} + // Consume (delete) authorization after use func (k Keeper) ConsumeAuthorizedMigration(ctx sdk.Context, contractAddr string) { store := k.storeService.OpenKVStore(ctx) @@ -2015,6 +2067,16 @@ func (k Keeper) ConsumeAuthorizedMigration(ctx sdk.Context, contractAddr string) } } +// ConsumeAdminUpdate deletes admin update authorization after use +func (k Keeper) ConsumeAdminUpdate(ctx sdk.Context, contractAddr string) { + store := k.storeService.OpenKVStore(ctx) + key := types.GetUpdateAdminKey(contractAddr) + err := store.Delete(key) + if err != nil { + ctx.Logger().Error("ConsumeAdminUpdate:", err.Error()) + } +} + // UpdateContractGovernanceRequirement set true to the require_governance field func (k Keeper) SetContractGovernanceRequirement(ctx sdk.Context, contractAddr sdk.AccAddress) error { contractInfo := k.GetContractInfo(ctx, contractAddr) diff --git a/x/compute/internal/keeper/msg_server.go b/x/compute/internal/keeper/msg_server.go index 68f6c0d16..bd16f2bd1 100644 --- a/x/compute/internal/keeper/msg_server.go +++ b/x/compute/internal/keeper/msg_server.go @@ -225,7 +225,7 @@ func (m msgServer) UpgradeProposalPassed(goCtx context.Context, msg *types.MsgUp return &types.MsgUpgradeProposalPassedResponse{}, nil } -func (m msgServer) MigrateContractProposal(goCtx context.Context, msg *types.MsgMigrateContractProposal) (*types.MsgMigrateContractProposalResponse, error) { +func (m msgServer) ContractGovernanceProposal(goCtx context.Context, msg *types.MsgContractGovernanceProposal) (*types.MsgContractGovernanceProposalResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) if err := msg.ValidateBasic(); err != nil { @@ -249,14 +249,32 @@ func (m msgServer) MigrateContractProposal(goCtx context.Context, msg *types.Msg return nil, errorsmod.Wrap(err, "updating contract governance requirement") } ctx.EventManager().EmitEvent(sdk.NewEvent( - types.EventTypeMigrateContractProposal, + types.EventTypeContractGovernanceProposal, sdk.NewAttribute(types.AttributeKeyContractAddr, contract.Address), sdk.NewAttribute(types.AttributeKeyCodeID, fmt.Sprintf("%d", contract.NewCodeId)), sdk.NewAttribute(sdk.AttributeKeySender, msg.Authority), )) } - return &types.MsgMigrateContractProposalResponse{}, nil + for _, adminUpdate := range msg.AdminUpdates { + contractAddr, err := sdk.AccAddressFromBech32(adminUpdate.Address) + if err != nil { + return nil, errorsmod.Wrap(err, "admin update contract") + } + err = m.keeper.SetContractGovernanceRequirement(ctx, contractAddr) + if err != nil { + return nil, errorsmod.Wrap(err, "updating contract governance requirement in admin update") + } + m.keeper.SetAdminUpdate(ctx, adminUpdate.Address, adminUpdate.NewAdmin) + ctx.EventManager().EmitEvent(sdk.NewEvent( + types.EventTypeContractGovernanceProposal, + sdk.NewAttribute(types.AttributeKeyContractAddr, adminUpdate.Address), + sdk.NewAttribute("new_admin", adminUpdate.NewAdmin), + sdk.NewAttribute(sdk.AttributeKeySender, msg.Authority), + )) + } + + return &types.MsgContractGovernanceProposalResponse{}, nil } func (m msgServer) SetContractGovernance(goCtx context.Context, msg *types.MsgSetContractGovernance) (*types.MsgSetContractGovernanceResponse, error) { diff --git a/x/compute/internal/keeper/querier.go b/x/compute/internal/keeper/querier.go index e13c7891e..e3b043cac 100644 --- a/x/compute/internal/keeper/querier.go +++ b/x/compute/internal/keeper/querier.go @@ -241,6 +241,38 @@ func (q GrpcQuerier) AuthorizedMigration(c context.Context, req *types.QueryAuth response := &types.QueryAuthorizedMigrationResponse{} if hasAuth { response.NewCodeID = codeID + } else { + return nil, status.Error(codes.NotFound, "no authorized migration found for the given contract address") + } + + return response, nil +} + +// AuthorizedAdminUpdate returns the authorized admin update info for a contract +func (q GrpcQuerier) AuthorizedAdminUpdate(c context.Context, req *types.QueryAuthorizedAdminUpdateRequest) (*types.QueryAuthorizedAdminUpdateResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + + if req.ContractAddress == "" { + return nil, status.Error(codes.InvalidArgument, "contract address cannot be empty") + } + + ctx := sdk.UnwrapSDKContext(c) + + // Validate contract address + if _, err := sdk.AccAddressFromBech32(req.ContractAddress); err != nil { + return nil, status.Error(codes.InvalidArgument, "invalid contract address") + } + + // Check for authorized admin update + newAdmin, hasAuth := q.keeper.GetNewAdmin(ctx, req.ContractAddress) + + response := &types.QueryAuthorizedAdminUpdateResponse{} + if hasAuth { + response.NewAdmin = newAdmin + } else { + return nil, status.Error(codes.NotFound, "no authorized admin update found for the given contract address") } return response, nil diff --git a/x/compute/internal/types/events.go b/x/compute/internal/types/events.go index 04f9e6f26..831863fdd 100644 --- a/x/compute/internal/types/events.go +++ b/x/compute/internal/types/events.go @@ -6,17 +6,17 @@ const ( // CustomContractEventPrefix contracts can create custom events. To not mix them with other system events they got the `wasm-` prefix. CustomContractEventPrefix = "wasm-" - EventTypeStoreCode = "store_code" - EventTypeInstantiate = "instantiate" - EventTypeExecute = "execute" - EventTypeMigrate = "migrate" - EventTypePinCode = "pin_code" - EventTypeUnpinCode = "unpin_code" - EventTypeSudo = "sudo" - EventTypeReply = "reply" - EventTypeUpdateContractAdmin = "update_contract_admin" - EventTypeUpgradeProposalPassed = "upgrade_proposal_passed" - EventTypeMigrateContractProposal = "migrate_contract_proposal" + EventTypeStoreCode = "store_code" + EventTypeInstantiate = "instantiate" + EventTypeExecute = "execute" + EventTypeMigrate = "migrate" + EventTypePinCode = "pin_code" + EventTypeUnpinCode = "unpin_code" + EventTypeSudo = "sudo" + EventTypeReply = "reply" + EventTypeUpdateContractAdmin = "update_contract_admin" + EventTypeUpgradeProposalPassed = "upgrade_proposal_passed" + EventTypeContractGovernanceProposal = "contract_governance_proposal" ) // event attributes returned from contract execution diff --git a/x/compute/internal/types/keys.go b/x/compute/internal/types/keys.go index b6e2b4eda..91373b8fe 100644 --- a/x/compute/internal/types/keys.go +++ b/x/compute/internal/types/keys.go @@ -35,6 +35,7 @@ var ( ContractByCodeIDAndCreatedSecondaryIndexPrefix = []byte{0x0A} ParamsKey = []byte{0x0B} UpgradeAuthPrefix = []byte{0x0C} + UpdateAdminPrefix = []byte{0x0D} RandomPrefix = []byte{0xFF} ValidatorSetEvidencePrefix = []byte{0xFE} @@ -42,6 +43,10 @@ var ( KeyLastInstanceID = append(SequenceKeyPrefix, []byte("lastContractId")...) ) +func GetUpdateAdminKey(contractAddr string) []byte { + return append(UpdateAdminPrefix, []byte(contractAddr)...) +} + // GetUpgradeAuthKey creates the key for upgrade authorization storage func GetUpgradeAuthKey(contractAddr string) []byte { return append(UpgradeAuthPrefix, []byte(contractAddr)...) diff --git a/x/compute/internal/types/msg.go b/x/compute/internal/types/msg.go index a92431b72..f04dc12f0 100644 --- a/x/compute/internal/types/msg.go +++ b/x/compute/internal/types/msg.go @@ -246,15 +246,15 @@ func (msg MsgUpgradeProposalPassed) GetSigners() []sdk.AccAddress { return []sdk.AccAddress{senderAddr} } -func (msg MsgMigrateContractProposal) Route() string { +func (msg MsgContractGovernanceProposal) Route() string { return RouterKey } -func (msg MsgMigrateContractProposal) Type() string { +func (msg MsgContractGovernanceProposal) Type() string { return "migrate-contract-proposal" } -func (msg MsgMigrateContractProposal) ValidateBasic() error { +func (msg MsgContractGovernanceProposal) ValidateBasic() error { if _, err := sdk.AccAddressFromBech32(msg.Authority); err != nil { return errorsmod.Wrap(err, "authority") } @@ -263,14 +263,25 @@ func (msg MsgMigrateContractProposal) ValidateBasic() error { return errorsmod.Wrap(err, "contract") } } + for _, adminUpdate := range msg.AdminUpdates { + if _, err := sdk.AccAddressFromBech32(adminUpdate.Address); err != nil { + return errorsmod.Wrap(err, "contract") + } + if adminUpdate.NewAdmin == "" { + continue + } + if _, err := sdk.AccAddressFromBech32(adminUpdate.NewAdmin); err != nil { + return errorsmod.Wrap(err, "new admin") + } + } return nil } -func (msg MsgMigrateContractProposal) GetSignBytes() []byte { +func (msg MsgContractGovernanceProposal) GetSignBytes() []byte { return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&msg)) } -func (msg MsgMigrateContractProposal) GetSigners() []sdk.AccAddress { +func (msg MsgContractGovernanceProposal) GetSigners() []sdk.AccAddress { senderAddr, err := sdk.AccAddressFromBech32(msg.Authority) if err != nil { // should never happen as valid basic rejects invalid addresses panic(err.Error()) diff --git a/x/compute/internal/types/msg.pb.go b/x/compute/internal/types/msg.pb.go index 64faf19e9..d5ab46cf6 100644 --- a/x/compute/internal/types/msg.pb.go +++ b/x/compute/internal/types/msg.pb.go @@ -898,25 +898,23 @@ func (m *MigrateContractInfo) GetNewCodeId() uint64 { return 0 } -type MsgMigrateContractProposal struct { - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - Contracts []*MigrateContractInfo `protobuf:"bytes,4,rep,name=contracts,proto3" json:"contracts,omitempty"` +type UpdateAdminInfo struct { + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + NewAdmin string `protobuf:"bytes,2,opt,name=new_admin,json=newAdmin,proto3" json:"new_admin,omitempty"` } -func (m *MsgMigrateContractProposal) Reset() { *m = MsgMigrateContractProposal{} } -func (m *MsgMigrateContractProposal) String() string { return proto.CompactTextString(m) } -func (*MsgMigrateContractProposal) ProtoMessage() {} -func (*MsgMigrateContractProposal) Descriptor() ([]byte, []int) { +func (m *UpdateAdminInfo) Reset() { *m = UpdateAdminInfo{} } +func (m *UpdateAdminInfo) String() string { return proto.CompactTextString(m) } +func (*UpdateAdminInfo) ProtoMessage() {} +func (*UpdateAdminInfo) Descriptor() ([]byte, []int) { return fileDescriptor_6815433faf72a133, []int{17} } -func (m *MsgMigrateContractProposal) XXX_Unmarshal(b []byte) error { +func (m *UpdateAdminInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgMigrateContractProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *UpdateAdminInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgMigrateContractProposal.Marshal(b, m, deterministic) + return xxx_messageInfo_UpdateAdminInfo.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -926,33 +924,88 @@ func (m *MsgMigrateContractProposal) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } -func (m *MsgMigrateContractProposal) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgMigrateContractProposal.Merge(m, src) +func (m *UpdateAdminInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateAdminInfo.Merge(m, src) } -func (m *MsgMigrateContractProposal) XXX_Size() int { +func (m *UpdateAdminInfo) XXX_Size() int { return m.Size() } -func (m *MsgMigrateContractProposal) XXX_DiscardUnknown() { - xxx_messageInfo_MsgMigrateContractProposal.DiscardUnknown(m) +func (m *UpdateAdminInfo) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateAdminInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateAdminInfo proto.InternalMessageInfo + +func (m *UpdateAdminInfo) GetAddress() string { + if m != nil { + return m.Address + } + return "" } -var xxx_messageInfo_MsgMigrateContractProposal proto.InternalMessageInfo +func (m *UpdateAdminInfo) GetNewAdmin() string { + if m != nil { + return m.NewAdmin + } + return "" +} -type MsgMigrateContractProposalResponse struct { +type MsgContractGovernanceProposal struct { + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + Contracts []*MigrateContractInfo `protobuf:"bytes,4,rep,name=contracts,proto3" json:"contracts,omitempty"` + AdminUpdates []*UpdateAdminInfo `protobuf:"bytes,5,rep,name=admin_updates,json=adminUpdates,proto3" json:"admin_updates,omitempty"` } -func (m *MsgMigrateContractProposalResponse) Reset() { *m = MsgMigrateContractProposalResponse{} } -func (m *MsgMigrateContractProposalResponse) String() string { return proto.CompactTextString(m) } -func (*MsgMigrateContractProposalResponse) ProtoMessage() {} -func (*MsgMigrateContractProposalResponse) Descriptor() ([]byte, []int) { +func (m *MsgContractGovernanceProposal) Reset() { *m = MsgContractGovernanceProposal{} } +func (m *MsgContractGovernanceProposal) String() string { return proto.CompactTextString(m) } +func (*MsgContractGovernanceProposal) ProtoMessage() {} +func (*MsgContractGovernanceProposal) Descriptor() ([]byte, []int) { return fileDescriptor_6815433faf72a133, []int{18} } -func (m *MsgMigrateContractProposalResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgContractGovernanceProposal) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgContractGovernanceProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgContractGovernanceProposal.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgContractGovernanceProposal) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgContractGovernanceProposal.Merge(m, src) +} +func (m *MsgContractGovernanceProposal) XXX_Size() int { + return m.Size() +} +func (m *MsgContractGovernanceProposal) XXX_DiscardUnknown() { + xxx_messageInfo_MsgContractGovernanceProposal.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgContractGovernanceProposal proto.InternalMessageInfo + +type MsgContractGovernanceProposalResponse struct { +} + +func (m *MsgContractGovernanceProposalResponse) Reset() { *m = MsgContractGovernanceProposalResponse{} } +func (m *MsgContractGovernanceProposalResponse) String() string { return proto.CompactTextString(m) } +func (*MsgContractGovernanceProposalResponse) ProtoMessage() {} +func (*MsgContractGovernanceProposalResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_6815433faf72a133, []int{19} +} +func (m *MsgContractGovernanceProposalResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgMigrateContractProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgContractGovernanceProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgMigrateContractProposalResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgContractGovernanceProposalResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -962,17 +1015,17 @@ func (m *MsgMigrateContractProposalResponse) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *MsgMigrateContractProposalResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgMigrateContractProposalResponse.Merge(m, src) +func (m *MsgContractGovernanceProposalResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgContractGovernanceProposalResponse.Merge(m, src) } -func (m *MsgMigrateContractProposalResponse) XXX_Size() int { +func (m *MsgContractGovernanceProposalResponse) XXX_Size() int { return m.Size() } -func (m *MsgMigrateContractProposalResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgMigrateContractProposalResponse.DiscardUnknown(m) +func (m *MsgContractGovernanceProposalResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgContractGovernanceProposalResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgMigrateContractProposalResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgContractGovernanceProposalResponse proto.InternalMessageInfo type MsgSetContractGovernance struct { // Sender (must be contract admin) @@ -985,7 +1038,7 @@ func (m *MsgSetContractGovernance) Reset() { *m = MsgSetContractGovernan func (m *MsgSetContractGovernance) String() string { return proto.CompactTextString(m) } func (*MsgSetContractGovernance) ProtoMessage() {} func (*MsgSetContractGovernance) Descriptor() ([]byte, []int) { - return fileDescriptor_6815433faf72a133, []int{19} + return fileDescriptor_6815433faf72a133, []int{20} } func (m *MsgSetContractGovernance) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1021,7 +1074,7 @@ func (m *MsgSetContractGovernanceResponse) Reset() { *m = MsgSetContract func (m *MsgSetContractGovernanceResponse) String() string { return proto.CompactTextString(m) } func (*MsgSetContractGovernanceResponse) ProtoMessage() {} func (*MsgSetContractGovernanceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6815433faf72a133, []int{20} + return fileDescriptor_6815433faf72a133, []int{21} } func (m *MsgSetContractGovernanceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1068,8 +1121,9 @@ func init() { proto.RegisterType((*MsgUpgradeProposalPassed)(nil), "secret.compute.v1beta1.MsgUpgradeProposalPassed") proto.RegisterType((*MsgUpgradeProposalPassedResponse)(nil), "secret.compute.v1beta1.MsgUpgradeProposalPassedResponse") proto.RegisterType((*MigrateContractInfo)(nil), "secret.compute.v1beta1.MigrateContractInfo") - proto.RegisterType((*MsgMigrateContractProposal)(nil), "secret.compute.v1beta1.MsgMigrateContractProposal") - proto.RegisterType((*MsgMigrateContractProposalResponse)(nil), "secret.compute.v1beta1.MsgMigrateContractProposalResponse") + proto.RegisterType((*UpdateAdminInfo)(nil), "secret.compute.v1beta1.UpdateAdminInfo") + proto.RegisterType((*MsgContractGovernanceProposal)(nil), "secret.compute.v1beta1.MsgContractGovernanceProposal") + proto.RegisterType((*MsgContractGovernanceProposalResponse)(nil), "secret.compute.v1beta1.MsgContractGovernanceProposalResponse") proto.RegisterType((*MsgSetContractGovernance)(nil), "secret.compute.v1beta1.MsgSetContractGovernance") proto.RegisterType((*MsgSetContractGovernanceResponse)(nil), "secret.compute.v1beta1.MsgSetContractGovernanceResponse") } @@ -1077,94 +1131,97 @@ func init() { func init() { proto.RegisterFile("secret/compute/v1beta1/msg.proto", fileDescriptor_6815433faf72a133) } var fileDescriptor_6815433faf72a133 = []byte{ - // 1387 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xbd, 0x6f, 0xdb, 0xd6, - 0x16, 0x37, 0x23, 0x59, 0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0x1e, 0x22, 0x04, 0x9b, 0xf2, 0x55, 0x38, 0xc7, 0x93, 0xd4, 0x1e, 0x9d, 0xf9, 0x67, - 0xf9, 0xae, 0x08, 0x4b, 0xbe, 0x06, 0x33, 0x3d, 0xaf, 0x8d, 0x1d, 0xa3, 0x8b, 0xf6, 0x22, 0x97, - 0x76, 0x59, 0x3f, 0xdb, 0xf3, 0x6e, 0xf3, 0x5d, 0xbf, 0x45, 0xfe, 0x1f, 0x4c, 0x99, 0x98, 0x55, - 0x06, 0xfc, 0xdf, 0x43, 0xe0, 0x09, 0x48, 0x34, 0x0d, 0x96, 0xd2, 0xce, 0xc2, 0x50, 0xde, 0x87, - 0x0b, 0xb1, 0xae, 0xda, 0x76, 0xee, 0xbb, 0x19, 0x37, 0x56, 0x05, 0x4a, 0xac, 0x59, 0x82, 0x79, - 0xc2, 0x30, 0xe7, 0x75, 0xd6, 0x3f, 0x5b, 0xfc, 0xd5, 0xf3, 0x87, 0x94, 0xd4, 0xaa, 0x81, 0x77, - 0xf9, 0x5f, 0x2f, 0x15, 0x3d, 0x5a, 0xda, 0x39, 0x98, 0xa4, 0x36, 0xed, 0x62, 0xd1, 0x85, 0x7c, - 0x21, 0x2f, 0x41, 0xc9, 0xc4, 0xc4, 0xf0, 0xec, 0x3e, 0xb5, 0x5d, 0x47, 0x90, 0x39, 0xba, 0x25, - 0x6f, 0x43, 0x31, 0xe0, 0x36, 0x51, 0xf2, 0xfe, 0xfd, 0x71, 0x23, 0x8d, 0x15, 0x09, 0xe1, 0xea, - 0x43, 0xed, 0xc6, 0x46, 0x90, 0xef, 0x51, 0x8e, 0x54, 0x53, 0x26, 0x53, 0x10, 0x98, 0x76, 0x05, - 0xb4, 0xf4, 0xd3, 0x30, 0xdd, 0x4f, 0x38, 0x73, 0x76, 0x30, 0x0d, 0x44, 0xde, 0x75, 0xf7, 0xb0, - 0xe7, 0x20, 0xc7, 0xc0, 0xa9, 0x9d, 0xfc, 0x1f, 0x98, 0x0d, 0xf0, 0x85, 0x9c, 0xe2, 0x09, 0x9a, - 0x09, 0xf6, 0x05, 0xab, 0x1a, 0x6b, 0x09, 0x77, 0x52, 0xc8, 0x92, 0x44, 0xaf, 0x82, 0x25, 0x89, - 0x67, 0x01, 0xec, 0xf5, 0x6f, 0x8a, 0x90, 0x63, 0x0f, 0xbd, 0x36, 0x14, 0x87, 0x0f, 0xff, 0x2b, - 0xa9, 0x19, 0x8e, 0x3c, 0x99, 0xd5, 0x9b, 0xe3, 0x48, 0x85, 0x93, 0xfc, 0x53, 0xb8, 0x90, 0xf4, - 0x5e, 0xae, 0x65, 0x18, 0x49, 0x90, 0x57, 0x37, 0x4e, 0x27, 0x1f, 0xba, 0xff, 0x04, 0x66, 0xe2, - 0xcf, 0xae, 0x95, 0x0c, 0x53, 0x31, 0x59, 0x75, 0x7d, 0x7c, 0xd9, 0xa8, 0xcb, 0xf8, 0x15, 0x9f, - 0xe5, 0x32, 0x26, 0x9b, 0xe9, 0x32, 0xed, 0xba, 0xc4, 0x50, 0x8a, 0x5e, 0x8b, 0xd7, 0x32, 0x4c, - 0x44, 0xe4, 0xd4, 0xda, 0x78, 0x72, 0xa1, 0x9b, 0x0e, 0x40, 0xe4, 0x9a, 0xba, 0x9a, 0xa1, 0x3d, - 0x14, 0x53, 0x57, 0xc7, 0x12, 0x0b, 0x7d, 0xec, 0x42, 0x79, 0xe4, 0x4e, 0xb9, 0xfe, 0x4a, 0x8c, - 0x5c, 0x50, 0xad, 0x8f, 0x29, 0x18, 0x7a, 0xfa, 0x5c, 0x82, 0x8b, 0xc9, 0x03, 0xff, 0x56, 0xa6, - 0xa9, 0x04, 0x0d, 0xf5, 0x7f, 0xa7, 0xd5, 0x08, 0x51, 0x7c, 0x29, 0xc1, 0x42, 0xda, 0x68, 0x3d, - 0x05, 0x15, 0x02, 0x1d, 0xb5, 0x71, 0x7a, 0x9d, 0x91, 0x8c, 0x24, 0x0f, 0xb2, 0xac, 0x8c, 0x24, - 0x6a, 0x64, 0x66, 0x24, 0x73, 0x34, 0xa9, 0x93, 0x8f, 0xd8, 0x5b, 0xbe, 0xf9, 0xc1, 0xd3, 0xe3, - 0x8a, 0xf4, 0xec, 0xb8, 0x22, 0xfd, 0x7a, 0x5c, 0x91, 0x9e, 0xbc, 0xa8, 0x4c, 0x3c, 0x7b, 0x51, - 0x99, 0xf8, 0xf9, 0x45, 0x65, 0xe2, 0xe3, 0x46, 0xe4, 0x5b, 0x02, 0x31, 0x3c, 0xda, 0x45, 0x1d, - 0x52, 0xdf, 0xf1, 0xbd, 0xdd, 0xc5, 0x74, 0xdf, 0xf5, 0x1e, 0xd4, 0x1f, 0x86, 0x3f, 0x79, 0xd8, - 0x0e, 0x65, 0x0e, 0xba, 0xfc, 0xdb, 0x43, 0xa7, 0xe0, 0xff, 0xe6, 0xf1, 0xdf, 0xbf, 0x02, 0x00, - 0x00, 0xff, 0xff, 0xf3, 0x2b, 0xd2, 0x6c, 0xd1, 0x11, 0x00, 0x00, + // 1426 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0x3f, 0x6f, 0xdb, 0xd6, + 0x16, 0x37, 0x23, 0x59, 0xb6, 0x8e, 0xe4, 0xd8, 0x61, 0x1c, 0x5b, 0x66, 0x5e, 0x24, 0x83, 0x79, + 0x8e, 0xfd, 0x9c, 0x58, 0x8a, 0xfd, 0xf0, 0x82, 0x57, 0xb5, 0x1d, 0x2c, 0x37, 0x69, 0x0c, 0x54, + 0x69, 0x40, 0xb7, 0x28, 0xd0, 0x45, 0xb8, 0x22, 0x6f, 0x68, 0x22, 0x12, 0xa9, 0xf2, 0x52, 0x76, + 0x3c, 0x14, 0x08, 0xda, 0xa5, 0xc8, 0x14, 0x74, 0x6c, 0x97, 0x0e, 0x1d, 0x82, 0x4e, 0x1e, 0x3a, + 0xf5, 0x13, 0xa4, 0x5b, 0x90, 0xa9, 0x93, 0x5b, 0x38, 0x28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, 0x2f, 0xca, 0x63, 0xbf, 0xbc, 0x28, 0x8f, 0x7d, 0x5a, 0x0f, 0x7d, + 0xcf, 0x10, 0xdd, 0xf5, 0x3a, 0xa8, 0x4d, 0x6a, 0x3b, 0xcc, 0xdb, 0x1d, 0xec, 0xed, 0x3b, 0xee, + 0xfd, 0xda, 0x83, 0xe0, 0x8f, 0x33, 0x96, 0xed, 0x51, 0x07, 0x1d, 0xfe, 0x9d, 0xd3, 0xce, 0xb1, + 0xbf, 0xce, 0xfc, 0xf7, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd3, 0x36, 0x49, 0x81, 0x7b, 0x12, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1194,7 +1251,7 @@ type MsgClient interface { // UpdateParams updates compute module params UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) UpgradeProposalPassed(ctx context.Context, in *MsgUpgradeProposalPassed, opts ...grpc.CallOption) (*MsgUpgradeProposalPassedResponse, error) - MigrateContractProposal(ctx context.Context, in *MsgMigrateContractProposal, opts ...grpc.CallOption) (*MsgMigrateContractProposalResponse, error) + ContractGovernanceProposal(ctx context.Context, in *MsgContractGovernanceProposal, opts ...grpc.CallOption) (*MsgContractGovernanceProposalResponse, error) SetContractGovernance(ctx context.Context, in *MsgSetContractGovernance, opts ...grpc.CallOption) (*MsgSetContractGovernanceResponse, error) } @@ -1278,9 +1335,9 @@ func (c *msgClient) UpgradeProposalPassed(ctx context.Context, in *MsgUpgradePro return out, nil } -func (c *msgClient) MigrateContractProposal(ctx context.Context, in *MsgMigrateContractProposal, opts ...grpc.CallOption) (*MsgMigrateContractProposalResponse, error) { - out := new(MsgMigrateContractProposalResponse) - err := c.cc.Invoke(ctx, "/secret.compute.v1beta1.Msg/MigrateContractProposal", in, out, opts...) +func (c *msgClient) ContractGovernanceProposal(ctx context.Context, in *MsgContractGovernanceProposal, opts ...grpc.CallOption) (*MsgContractGovernanceProposalResponse, error) { + out := new(MsgContractGovernanceProposalResponse) + err := c.cc.Invoke(ctx, "/secret.compute.v1beta1.Msg/ContractGovernanceProposal", in, out, opts...) if err != nil { return nil, err } @@ -1313,7 +1370,7 @@ type MsgServer interface { // UpdateParams updates compute module params UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) UpgradeProposalPassed(context.Context, *MsgUpgradeProposalPassed) (*MsgUpgradeProposalPassedResponse, error) - MigrateContractProposal(context.Context, *MsgMigrateContractProposal) (*MsgMigrateContractProposalResponse, error) + ContractGovernanceProposal(context.Context, *MsgContractGovernanceProposal) (*MsgContractGovernanceProposalResponse, error) SetContractGovernance(context.Context, *MsgSetContractGovernance) (*MsgSetContractGovernanceResponse, error) } @@ -1345,8 +1402,8 @@ func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateP func (*UnimplementedMsgServer) UpgradeProposalPassed(ctx context.Context, req *MsgUpgradeProposalPassed) (*MsgUpgradeProposalPassedResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpgradeProposalPassed not implemented") } -func (*UnimplementedMsgServer) MigrateContractProposal(ctx context.Context, req *MsgMigrateContractProposal) (*MsgMigrateContractProposalResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MigrateContractProposal not implemented") +func (*UnimplementedMsgServer) ContractGovernanceProposal(ctx context.Context, req *MsgContractGovernanceProposal) (*MsgContractGovernanceProposalResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ContractGovernanceProposal not implemented") } func (*UnimplementedMsgServer) SetContractGovernance(ctx context.Context, req *MsgSetContractGovernance) (*MsgSetContractGovernanceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SetContractGovernance not implemented") @@ -1500,20 +1557,20 @@ func _Msg_UpgradeProposalPassed_Handler(srv interface{}, ctx context.Context, de return interceptor(ctx, in, info, handler) } -func _Msg_MigrateContractProposal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgMigrateContractProposal) +func _Msg_ContractGovernanceProposal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgContractGovernanceProposal) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).MigrateContractProposal(ctx, in) + return srv.(MsgServer).ContractGovernanceProposal(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/secret.compute.v1beta1.Msg/MigrateContractProposal", + FullMethod: "/secret.compute.v1beta1.Msg/ContractGovernanceProposal", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).MigrateContractProposal(ctx, req.(*MsgMigrateContractProposal)) + return srv.(MsgServer).ContractGovernanceProposal(ctx, req.(*MsgContractGovernanceProposal)) } return interceptor(ctx, in, info, handler) } @@ -1573,8 +1630,8 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ Handler: _Msg_UpgradeProposalPassed_Handler, }, { - MethodName: "MigrateContractProposal", - Handler: _Msg_MigrateContractProposal_Handler, + MethodName: "ContractGovernanceProposal", + Handler: _Msg_ContractGovernanceProposal_Handler, }, { MethodName: "SetContractGovernance", @@ -2279,7 +2336,7 @@ func (m *MigrateContractInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgMigrateContractProposal) Marshal() (dAtA []byte, err error) { +func (m *UpdateAdminInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2289,16 +2346,67 @@ func (m *MsgMigrateContractProposal) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgMigrateContractProposal) MarshalTo(dAtA []byte) (int, error) { +func (m *UpdateAdminInfo) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgMigrateContractProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *UpdateAdminInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if len(m.NewAdmin) > 0 { + i -= len(m.NewAdmin) + copy(dAtA[i:], m.NewAdmin) + i = encodeVarintMsg(dAtA, i, uint64(len(m.NewAdmin))) + i-- + dAtA[i] = 0x12 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintMsg(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgContractGovernanceProposal) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgContractGovernanceProposal) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgContractGovernanceProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AdminUpdates) > 0 { + for iNdEx := len(m.AdminUpdates) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AdminUpdates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMsg(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } if len(m.Contracts) > 0 { for iNdEx := len(m.Contracts) - 1; iNdEx >= 0; iNdEx-- { { @@ -2337,7 +2445,7 @@ func (m *MsgMigrateContractProposal) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } -func (m *MsgMigrateContractProposalResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgContractGovernanceProposalResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2347,12 +2455,12 @@ func (m *MsgMigrateContractProposalResponse) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *MsgMigrateContractProposalResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgContractGovernanceProposalResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgMigrateContractProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgContractGovernanceProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2750,7 +2858,24 @@ func (m *MigrateContractInfo) Size() (n int) { return n } -func (m *MsgMigrateContractProposal) Size() (n int) { +func (m *UpdateAdminInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovMsg(uint64(l)) + } + l = len(m.NewAdmin) + if l > 0 { + n += 1 + l + sovMsg(uint64(l)) + } + return n +} + +func (m *MsgContractGovernanceProposal) Size() (n int) { if m == nil { return 0 } @@ -2774,10 +2899,16 @@ func (m *MsgMigrateContractProposal) Size() (n int) { n += 1 + l + sovMsg(uint64(l)) } } + if len(m.AdminUpdates) > 0 { + for _, e := range m.AdminUpdates { + l = e.Size() + n += 1 + l + sovMsg(uint64(l)) + } + } return n } -func (m *MsgMigrateContractProposalResponse) Size() (n int) { +func (m *MsgContractGovernanceProposalResponse) Size() (n int) { if m == nil { return 0 } @@ -4999,7 +5130,7 @@ func (m *MigrateContractInfo) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgMigrateContractProposal) Unmarshal(dAtA []byte) error { +func (m *UpdateAdminInfo) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5022,10 +5153,124 @@ func (m *MsgMigrateContractProposal) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgMigrateContractProposal: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateAdminInfo: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgMigrateContractProposal: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateAdminInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewAdmin", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NewAdmin = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgContractGovernanceProposal) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgContractGovernanceProposal: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgContractGovernanceProposal: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5158,6 +5403,40 @@ func (m *MsgMigrateContractProposal) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AdminUpdates", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMsg + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AdminUpdates = append(m.AdminUpdates, &UpdateAdminInfo{}) + if err := m.AdminUpdates[len(m.AdminUpdates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipMsg(dAtA[iNdEx:]) @@ -5179,7 +5458,7 @@ func (m *MsgMigrateContractProposal) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgMigrateContractProposalResponse) Unmarshal(dAtA []byte) error { +func (m *MsgContractGovernanceProposalResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5202,10 +5481,10 @@ func (m *MsgMigrateContractProposalResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgMigrateContractProposalResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgContractGovernanceProposalResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgMigrateContractProposalResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgContractGovernanceProposalResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: diff --git a/x/compute/internal/types/query.pb.go b/x/compute/internal/types/query.pb.go index 01195e7d9..38d1ede5f 100644 --- a/x/compute/internal/types/query.pb.go +++ b/x/compute/internal/types/query.pb.go @@ -881,6 +881,82 @@ func (m *QueryAuthorizedMigrationResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryAuthorizedMigrationResponse proto.InternalMessageInfo +type QueryAuthorizedAdminUpdateRequest struct { + // Contract address to query + ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` +} + +func (m *QueryAuthorizedAdminUpdateRequest) Reset() { *m = QueryAuthorizedAdminUpdateRequest{} } +func (m *QueryAuthorizedAdminUpdateRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAuthorizedAdminUpdateRequest) ProtoMessage() {} +func (*QueryAuthorizedAdminUpdateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_7735281c5fa969d4, []int{22} +} +func (m *QueryAuthorizedAdminUpdateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAuthorizedAdminUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAuthorizedAdminUpdateRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryAuthorizedAdminUpdateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAuthorizedAdminUpdateRequest.Merge(m, src) +} +func (m *QueryAuthorizedAdminUpdateRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAuthorizedAdminUpdateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAuthorizedAdminUpdateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAuthorizedAdminUpdateRequest proto.InternalMessageInfo + +type QueryAuthorizedAdminUpdateResponse struct { + // Authorized new admin address (empty string if removing admin, or if no authorization) + NewAdmin string `protobuf:"bytes,1,opt,name=new_admin,json=newAdmin,proto3" json:"new_admin,omitempty"` +} + +func (m *QueryAuthorizedAdminUpdateResponse) Reset() { *m = QueryAuthorizedAdminUpdateResponse{} } +func (m *QueryAuthorizedAdminUpdateResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAuthorizedAdminUpdateResponse) ProtoMessage() {} +func (*QueryAuthorizedAdminUpdateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_7735281c5fa969d4, []int{23} +} +func (m *QueryAuthorizedAdminUpdateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAuthorizedAdminUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAuthorizedAdminUpdateResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryAuthorizedAdminUpdateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAuthorizedAdminUpdateResponse.Merge(m, src) +} +func (m *QueryAuthorizedAdminUpdateResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAuthorizedAdminUpdateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAuthorizedAdminUpdateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAuthorizedAdminUpdateResponse proto.InternalMessageInfo + func init() { proto.RegisterType((*ParamsRequest)(nil), "secret.compute.v1beta1.ParamsRequest") proto.RegisterType((*ParamsResponse)(nil), "secret.compute.v1beta1.ParamsResponse") @@ -904,6 +980,8 @@ func init() { proto.RegisterType((*QueryContractHistoryResponse)(nil), "secret.compute.v1beta1.QueryContractHistoryResponse") proto.RegisterType((*QueryAuthorizedMigrationRequest)(nil), "secret.compute.v1beta1.QueryAuthorizedMigrationRequest") proto.RegisterType((*QueryAuthorizedMigrationResponse)(nil), "secret.compute.v1beta1.QueryAuthorizedMigrationResponse") + proto.RegisterType((*QueryAuthorizedAdminUpdateRequest)(nil), "secret.compute.v1beta1.QueryAuthorizedAdminUpdateRequest") + proto.RegisterType((*QueryAuthorizedAdminUpdateResponse)(nil), "secret.compute.v1beta1.QueryAuthorizedAdminUpdateResponse") } func init() { @@ -911,95 +989,100 @@ func init() { } var fileDescriptor_7735281c5fa969d4 = []byte{ - // 1404 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xcb, 0x8f, 0x13, 0xc7, - 0x13, 0xde, 0x81, 0x7d, 0xb0, 0xb5, 0x2f, 0x68, 0x96, 0xc5, 0x18, 0x7e, 0x36, 0xcc, 0x8f, 0xc7, - 0xf2, 0xf2, 0x60, 0x43, 0x00, 0x21, 0x0e, 0xd9, 0x85, 0x95, 0xd8, 0x68, 0x21, 0x60, 0x22, 0x45, - 0x8a, 0x88, 0xac, 0xf6, 0x4c, 0x63, 0x8f, 0xf0, 0x4e, 0x9b, 0xe9, 0x36, 0xbb, 0x4e, 0x44, 0x0e, - 0x39, 0xe5, 0x18, 0x29, 0xc9, 0x21, 0xca, 0x25, 0xa7, 0x04, 0xe5, 0x10, 0x29, 0xd7, 0xfc, 0x05, - 0x28, 0xca, 0x01, 0x29, 0x97, 0x9c, 0x50, 0x62, 0x72, 0x88, 0x72, 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x7c, 0x63, 0xcc, 0x82, - 0x7e, 0xb6, 0xc2, 0x50, 0xfa, 0x75, 0xd1, 0x81, 0x92, 0x9f, 0x97, 0x4b, 0x70, 0x20, 0xda, 0x63, - 0x90, 0xa0, 0xc8, 0xbc, 0x2d, 0x8b, 0x46, 0x7b, 0x16, 0xcd, 0x2f, 0x0c, 0x58, 0xb8, 0xc9, 0x6c, - 0xbf, 0x59, 0x97, 0xcc, 0x59, 0xf1, 0xc4, 0x16, 0xf3, 0x03, 0x05, 0x83, 0xda, 0xa2, 0x6d, 0xf1, - 0x3b, 0xc0, 0x74, 0xbd, 0x7a, 0x43, 0xea, 0x23, 0xa2, 0x06, 0x24, 0x0b, 0x33, 0xbc, 0x21, 0xeb, - 0x0d, 0x59, 0xc2, 0xd7, 0x43, 0x1d, 0x11, 0x50, 0x53, 0x37, 0xa9, 0xa4, 0x24, 0x0f, 0x07, 0x62, - 0x06, 0x25, 0x2a, 0x4a, 0x42, 0xfa, 0xae, 0x57, 0xd1, 0x67, 0x86, 0xec, 0x98, 0xae, 0x88, 0xfb, - 0xb8, 0xa2, 0x1f, 0xee, 0xbf, 0x0d, 0xd8, 0xdb, 0xc1, 0x4b, 0x90, 0x15, 0x98, 0xa2, 0xea, 0x53, - 0x67, 0xeb, 0x54, 0xaf, 0x6c, 0x75, 0xb8, 0x16, 0x43, 0x3f, 0xb2, 0x11, 0x31, 0xae, 0xf1, 0x8a, - 0x48, 0xed, 0xc2, 0x30, 0x27, 0x72, 0xaa, 0x72, 0xe5, 0x82, 0xca, 0x95, 0xc3, 0x8a, 0x16, 0x06, - 0x52, 0xa4, 0xd6, 0x9e, 0x30, 0x4f, 0xea, 0x8c, 0xeb, 0xed, 0x6d, 0xf0, 0x8a, 0x20, 0xc7, 0x60, - 0x56, 0x47, 0x63, 0xbe, 0xcf, 0x7d, 0x2d, 0x80, 0x46, 0x58, 0x0b, 0xa6, 0xc8, 0x29, 0x58, 0xa8, - 0xd7, 0xa8, 0xeb, 0x49, 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, 0x72, 0x87, 0xc9, 0x2d, 0xee, 0x3f, 0xb2, 0xb6, 0x23, 0xf8, - 0xa0, 0x5d, 0xf3, 0x3d, 0x5a, 0x53, 0x7f, 0xbd, 0x94, 0x27, 0xf1, 0x45, 0xbe, 0xf8, 0x4f, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xec, 0x11, 0x61, 0xc1, 0xf3, 0x11, 0x00, 0x00, + // 1479 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0x4b, 0x8f, 0x13, 0xc7, + 0x16, 0x9e, 0x86, 0x79, 0x30, 0x67, 0x5e, 0x50, 0x0c, 0x83, 0x31, 0x5c, 0x1b, 0xfa, 0xf2, 0x18, + 0x5e, 0x6e, 0x6c, 0xb8, 0xc0, 0x9d, 0xcb, 0x95, 0xe2, 0x19, 0x46, 0x62, 0xa2, 0x61, 0x02, 0x26, + 0x51, 0xa4, 0x88, 0xc8, 0x2a, 0x77, 0x17, 0x76, 0x0b, 0xbb, 0xdb, 0x74, 0x95, 0x99, 0x71, 0x22, + 0xb2, 0xc8, 0x2a, 0xcb, 0x48, 0x49, 0x16, 0x51, 0x36, 0x59, 0x25, 0x28, 0x8b, 0x48, 0xd9, 0x45, + 0xf9, 0x05, 0x28, 0xca, 0x02, 0x89, 0x4d, 0x56, 0x28, 0x19, 0xb2, 0x88, 0xb2, 0xcf, 0x3e, 0xea, + 0x53, 0xd5, 0x3d, 0x6d, 0xbb, 0xfd, 0x9a, 0x2c, 0xb2, 0xeb, 0xaa, 0x3a, 0x8f, 0xef, 0x7c, 0xa7, + 0xaa, 0xce, 0xa9, 0x06, 0x9d, 0x33, 0xd3, 0x63, 0xc2, 0x30, 0xdd, 0x5a, 0xbd, 0x21, 0x98, 0xf1, + 0x38, 0x5b, 0x62, 0x82, 0x66, 0x8d, 0x47, 0x0d, 0xe6, 0x35, 0x33, 0x75, 0xcf, 0x15, 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, 0x16, 0x25, 0x8b, 0xdf, 0xbe, 0x4f, 0xdb, 0xa9, 0x37, 0x84, 0xda, 0x22, 0x72, 0x40, 0xd2, + 0x30, 0xe5, 0x36, 0x44, 0xbd, 0x21, 0x8a, 0x78, 0x7b, 0xc8, 0x2d, 0x02, 0x72, 0xea, 0x26, 0x15, + 0x94, 0x64, 0xe1, 0x50, 0x44, 0xa0, 0x48, 0x79, 0x91, 0x0b, 0xcf, 0x76, 0xca, 0x6a, 0xcf, 0x90, + 0x1d, 0xd1, 0x3c, 0xbf, 0x87, 0x2b, 0xea, 0xe2, 0xfe, 0x53, 0x83, 0xfd, 0x6d, 0xb8, 0x38, 0xc9, + 0xc3, 0x04, 0x95, 0x9f, 0x2a, 0x5b, 0x67, 0xba, 0x65, 0xab, 0x4d, 0xb5, 0x10, 0xe8, 0x91, 0xf5, + 0x10, 0x71, 0xd5, 0x2d, 0xf3, 0xc4, 0x1e, 0x34, 0x73, 0x2a, 0x23, 0x2b, 0x57, 0xc6, 0xaf, 0x5c, + 0x19, 0xac, 0x68, 0x81, 0x21, 0x09, 0x6a, 0xf5, 0x31, 0x73, 0x84, 0xca, 0xb8, 0x0a, 0x6f, 0xdd, + 0x2d, 0x73, 0x72, 0x02, 0xa6, 0x95, 0x35, 0xe6, 0x79, 0xae, 0xa7, 0x08, 0x50, 0x1e, 0x56, 0xfd, + 0x29, 0x72, 0x06, 0xe6, 0xea, 0x55, 0x6a, 0x3b, 0x82, 0x6d, 0x05, 0x52, 0x32, 0xf6, 0xd9, 0x70, + 0x1a, 0x05, 0x55, 0xdc, 0x1b, 0xea, 0x9e, 0x0e, 0x32, 0x7f, 0xcb, 0xe6, 0xc2, 0xf5, 0x9a, 0xc3, + 0x97, 0x08, 0x65, 0xef, 0x71, 0xdb, 0xa6, 0x0c, 0xed, 0xa9, 0xcd, 0x71, 0x07, 0x26, 0x98, 0x23, + 0x3c, 0x9b, 0x05, 0x94, 0x5e, 0xea, 0x77, 0x03, 0xe1, 0xfe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x7e, 0x7e, 0x95, 0x1a, 0x79, + 0x67, 0xa9, 0x6c, 0x8b, 0x4a, 0xa3, 0xe4, 0x23, 0x34, 0xb8, 0xe9, 0x89, 0x2a, 0x2d, 0x71, 0x43, + 0x96, 0xc9, 0x0d, 0x26, 0x36, 0x5d, 0xef, 0xa1, 0xb1, 0x15, 0x22, 0xf0, 0xfb, 0x62, 0xcf, 0xa1, + 0x55, 0xf9, 0x8f, 0xab, 0x34, 0x8e, 0x75, 0xe6, 0xf2, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x37, + 0xfa, 0xf2, 0xdf, 0x5c, 0x13, 0x00, 0x00, } func (this *ParamsRequest) Equal(that interface{}) bool { @@ -1441,6 +1524,54 @@ func (this *QueryAuthorizedMigrationResponse) Equal(that interface{}) bool { } return true } +func (this *QueryAuthorizedAdminUpdateRequest) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*QueryAuthorizedAdminUpdateRequest) + if !ok { + that2, ok := that.(QueryAuthorizedAdminUpdateRequest) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.ContractAddress != that1.ContractAddress { + return false + } + return true +} +func (this *QueryAuthorizedAdminUpdateResponse) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*QueryAuthorizedAdminUpdateResponse) + if !ok { + that2, ok := that.(QueryAuthorizedAdminUpdateResponse) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.NewAdmin != that1.NewAdmin { + return false + } + return true +} // Reference imports to suppress errors if they are not otherwise used. var _ context.Context @@ -1479,6 +1610,8 @@ type QueryClient interface { Params(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsResponse, error) // Query authorized migration for a contract AuthorizedMigration(ctx context.Context, in *QueryAuthorizedMigrationRequest, opts ...grpc.CallOption) (*QueryAuthorizedMigrationResponse, error) + // Query authorized admin update for a contract + AuthorizedAdminUpdate(ctx context.Context, in *QueryAuthorizedAdminUpdateRequest, opts ...grpc.CallOption) (*QueryAuthorizedAdminUpdateResponse, error) } type queryClient struct { @@ -1597,6 +1730,15 @@ func (c *queryClient) AuthorizedMigration(ctx context.Context, in *QueryAuthoriz return out, nil } +func (c *queryClient) AuthorizedAdminUpdate(ctx context.Context, in *QueryAuthorizedAdminUpdateRequest, opts ...grpc.CallOption) (*QueryAuthorizedAdminUpdateResponse, error) { + out := new(QueryAuthorizedAdminUpdateResponse) + err := c.cc.Invoke(ctx, "/secret.compute.v1beta1.Query/AuthorizedAdminUpdate", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // QueryServer is the server API for Query service. type QueryServer interface { // Query contract info by address @@ -1624,6 +1766,8 @@ type QueryServer interface { Params(context.Context, *ParamsRequest) (*ParamsResponse, error) // Query authorized migration for a contract AuthorizedMigration(context.Context, *QueryAuthorizedMigrationRequest) (*QueryAuthorizedMigrationResponse, error) + // Query authorized admin update for a contract + AuthorizedAdminUpdate(context.Context, *QueryAuthorizedAdminUpdateRequest) (*QueryAuthorizedAdminUpdateResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -1666,6 +1810,9 @@ func (*UnimplementedQueryServer) Params(ctx context.Context, req *ParamsRequest) func (*UnimplementedQueryServer) AuthorizedMigration(ctx context.Context, req *QueryAuthorizedMigrationRequest) (*QueryAuthorizedMigrationResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AuthorizedMigration not implemented") } +func (*UnimplementedQueryServer) AuthorizedAdminUpdate(ctx context.Context, req *QueryAuthorizedAdminUpdateRequest) (*QueryAuthorizedAdminUpdateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AuthorizedAdminUpdate not implemented") +} func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) @@ -1887,6 +2034,24 @@ func _Query_AuthorizedMigration_Handler(srv interface{}, ctx context.Context, de return interceptor(ctx, in, info, handler) } +func _Query_AuthorizedAdminUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAuthorizedAdminUpdateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).AuthorizedAdminUpdate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/secret.compute.v1beta1.Query/AuthorizedAdminUpdate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).AuthorizedAdminUpdate(ctx, req.(*QueryAuthorizedAdminUpdateRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "secret.compute.v1beta1.Query", HandlerType: (*QueryServer)(nil), @@ -1939,6 +2104,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "AuthorizedMigration", Handler: _Query_AuthorizedMigration_Handler, }, + { + MethodName: "AuthorizedAdminUpdate", + Handler: _Query_AuthorizedAdminUpdate_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "secret/compute/v1beta1/query.proto", @@ -2742,6 +2911,66 @@ func (m *QueryAuthorizedMigrationResponse) MarshalToSizedBuffer(dAtA []byte) (in return len(dAtA) - i, nil } +func (m *QueryAuthorizedAdminUpdateRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryAuthorizedAdminUpdateRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAuthorizedAdminUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ContractAddress) > 0 { + i -= len(m.ContractAddress) + copy(dAtA[i:], m.ContractAddress) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAuthorizedAdminUpdateResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryAuthorizedAdminUpdateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAuthorizedAdminUpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NewAdmin) > 0 { + i -= len(m.NewAdmin) + copy(dAtA[i:], m.NewAdmin) + i = encodeVarintQuery(dAtA, i, uint64(len(m.NewAdmin))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { offset -= sovQuery(v) base := offset @@ -3096,6 +3325,32 @@ func (m *QueryAuthorizedMigrationResponse) Size() (n int) { return n } +func (m *QueryAuthorizedAdminUpdateRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContractAddress) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAuthorizedAdminUpdateResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.NewAdmin) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + func sovQuery(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -5312,6 +5567,170 @@ func (m *QueryAuthorizedMigrationResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *QueryAuthorizedAdminUpdateRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryAuthorizedAdminUpdateRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAuthorizedAdminUpdateRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContractAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ContractAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAuthorizedAdminUpdateResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryAuthorizedAdminUpdateResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAuthorizedAdminUpdateResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewAdmin", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NewAdmin = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipQuery(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/compute/internal/types/query.pb.gw.go b/x/compute/internal/types/query.pb.gw.go index 88befcf78..77c481b20 100644 --- a/x/compute/internal/types/query.pb.gw.go +++ b/x/compute/internal/types/query.pb.gw.go @@ -628,6 +628,60 @@ func local_request_Query_AuthorizedMigration_0(ctx context.Context, marshaler ru } +func request_Query_AuthorizedAdminUpdate_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAuthorizedAdminUpdateRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_address") + } + + protoReq.ContractAddress, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_address", err) + } + + msg, err := client.AuthorizedAdminUpdate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_AuthorizedAdminUpdate_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAuthorizedAdminUpdateRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["contract_address"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "contract_address") + } + + protoReq.ContractAddress, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "contract_address", err) + } + + msg, err := server.AuthorizedAdminUpdate(ctx, &protoReq) + return msg, metadata, err + +} + // RegisterQueryHandlerServer registers the http handlers for service Query to "mux". // UnaryRPC :call QueryServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -910,6 +964,29 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_AuthorizedAdminUpdate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_AuthorizedAdminUpdate_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_AuthorizedAdminUpdate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -1191,6 +1268,26 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_AuthorizedAdminUpdate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_AuthorizedAdminUpdate_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_AuthorizedAdminUpdate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -1218,6 +1315,8 @@ var ( pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"compute", "v1beta1", "params"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_AuthorizedMigration_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"compute", "v1beta1", "authorized_migration", "contract_address"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_AuthorizedAdminUpdate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"compute", "v1beta1", "authorized_admin_update", "contract_address"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( @@ -1244,4 +1343,6 @@ var ( forward_Query_Params_0 = runtime.ForwardResponseMessage forward_Query_AuthorizedMigration_0 = runtime.ForwardResponseMessage + + forward_Query_AuthorizedAdminUpdate_0 = runtime.ForwardResponseMessage ) From b4b7b17de43d17c8fdfb485022d6286a998e7b91 Mon Sep 17 00:00:00 2001 From: cboh4 Date: Mon, 6 Oct 2025 14:50:48 +0300 Subject: [PATCH 2/2] remove force setting of require_governance after proposal passed --- x/compute/internal/keeper/msg_server.go | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/x/compute/internal/keeper/msg_server.go b/x/compute/internal/keeper/msg_server.go index bd16f2bd1..57fa05aad 100644 --- a/x/compute/internal/keeper/msg_server.go +++ b/x/compute/internal/keeper/msg_server.go @@ -238,16 +238,12 @@ func (m msgServer) ContractGovernanceProposal(goCtx context.Context, msg *types. } for _, contract := range msg.Contracts { - contractAddr, err := sdk.AccAddressFromBech32(contract.Address) + _, err := sdk.AccAddressFromBech32(contract.Address) if err != nil { return nil, errorsmod.Wrap(err, "contract") } // Store the authorized migration m.keeper.SetAuthorizedMigration(ctx, contract.Address, contract.NewCodeId) - err = m.keeper.SetContractGovernanceRequirement(ctx, contractAddr) - if err != nil { - return nil, errorsmod.Wrap(err, "updating contract governance requirement") - } ctx.EventManager().EmitEvent(sdk.NewEvent( types.EventTypeContractGovernanceProposal, sdk.NewAttribute(types.AttributeKeyContractAddr, contract.Address), @@ -257,14 +253,10 @@ func (m msgServer) ContractGovernanceProposal(goCtx context.Context, msg *types. } for _, adminUpdate := range msg.AdminUpdates { - contractAddr, err := sdk.AccAddressFromBech32(adminUpdate.Address) + _, err := sdk.AccAddressFromBech32(adminUpdate.Address) if err != nil { return nil, errorsmod.Wrap(err, "admin update contract") } - err = m.keeper.SetContractGovernanceRequirement(ctx, contractAddr) - if err != nil { - return nil, errorsmod.Wrap(err, "updating contract governance requirement in admin update") - } m.keeper.SetAdminUpdate(ctx, adminUpdate.Address, adminUpdate.NewAdmin) ctx.EventManager().EmitEvent(sdk.NewEvent( types.EventTypeContractGovernanceProposal,