From eb372d200ba44d26e00cc665389e62162ff86b7f Mon Sep 17 00:00:00 2001 From: Matthew Witkowski Date: Thu, 11 Jul 2024 15:02:25 -0400 Subject: [PATCH] Update third_party protos. --- third_party/proto/cosmwasm/wasm/v1/ibc.proto | 3 +++ third_party/proto/cosmwasm/wasm/v1/query.proto | 13 +++++++++++++ 2 files changed, 16 insertions(+) diff --git a/third_party/proto/cosmwasm/wasm/v1/ibc.proto b/third_party/proto/cosmwasm/wasm/v1/ibc.proto index feaad2936d..a04e4f89b4 100644 --- a/third_party/proto/cosmwasm/wasm/v1/ibc.proto +++ b/third_party/proto/cosmwasm/wasm/v1/ibc.proto @@ -31,6 +31,9 @@ message MsgIBCSendResponse { uint64 sequence = 1; } +// MsgIBCWriteAcknowledgementResponse +message MsgIBCWriteAcknowledgementResponse {} + // MsgIBCCloseChannel port and channel need to be owned by the contract message MsgIBCCloseChannel { string channel = 2 [ (gogoproto.moretags) = "yaml:\"source_channel\"" ]; diff --git a/third_party/proto/cosmwasm/wasm/v1/query.proto b/third_party/proto/cosmwasm/wasm/v1/query.proto index d759133d47..14b0c427d1 100644 --- a/third_party/proto/cosmwasm/wasm/v1/query.proto +++ b/third_party/proto/cosmwasm/wasm/v1/query.proto @@ -5,6 +5,7 @@ import "gogoproto/gogo.proto"; import "cosmwasm/wasm/v1/types.proto"; import "google/api/annotations.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; +import "cosmos/query/v1/query.proto"; import "amino/amino.proto"; import "cosmos_proto/cosmos.proto"; @@ -17,58 +18,69 @@ service Query { // ContractInfo gets the contract meta data rpc ContractInfo(QueryContractInfoRequest) returns (QueryContractInfoResponse) { + option (cosmos.query.v1.module_query_safe) = true; option (google.api.http).get = "/cosmwasm/wasm/v1/contract/{address}"; } // ContractHistory gets the contract code history rpc ContractHistory(QueryContractHistoryRequest) returns (QueryContractHistoryResponse) { + option (cosmos.query.v1.module_query_safe) = true; option (google.api.http).get = "/cosmwasm/wasm/v1/contract/{address}/history"; } // ContractsByCode lists all smart contracts for a code id rpc ContractsByCode(QueryContractsByCodeRequest) returns (QueryContractsByCodeResponse) { + option (cosmos.query.v1.module_query_safe) = true; option (google.api.http).get = "/cosmwasm/wasm/v1/code/{code_id}/contracts"; } // AllContractState gets all raw store data for a single contract rpc AllContractState(QueryAllContractStateRequest) returns (QueryAllContractStateResponse) { + option (cosmos.query.v1.module_query_safe) = true; option (google.api.http).get = "/cosmwasm/wasm/v1/contract/{address}/state"; } // RawContractState gets single key from the raw store data of a contract rpc RawContractState(QueryRawContractStateRequest) returns (QueryRawContractStateResponse) { + option (cosmos.query.v1.module_query_safe) = true; option (google.api.http).get = "/cosmwasm/wasm/v1/contract/{address}/raw/{query_data}"; } // SmartContractState get smart query result from the contract rpc SmartContractState(QuerySmartContractStateRequest) returns (QuerySmartContractStateResponse) { + option (cosmos.query.v1.module_query_safe) = true; option (google.api.http).get = "/cosmwasm/wasm/v1/contract/{address}/smart/{query_data}"; } // Code gets the binary code and metadata for a singe wasm code rpc Code(QueryCodeRequest) returns (QueryCodeResponse) { + option (cosmos.query.v1.module_query_safe) = true; option (google.api.http).get = "/cosmwasm/wasm/v1/code/{code_id}"; } // Codes gets the metadata for all stored wasm codes rpc Codes(QueryCodesRequest) returns (QueryCodesResponse) { + option (cosmos.query.v1.module_query_safe) = true; option (google.api.http).get = "/cosmwasm/wasm/v1/code"; } // PinnedCodes gets the pinned code ids rpc PinnedCodes(QueryPinnedCodesRequest) returns (QueryPinnedCodesResponse) { + option (cosmos.query.v1.module_query_safe) = true; option (google.api.http).get = "/cosmwasm/wasm/v1/codes/pinned"; } // Params gets the module params rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { + option (cosmos.query.v1.module_query_safe) = true; option (google.api.http).get = "/cosmwasm/wasm/v1/codes/params"; } // ContractsByCreator gets the contracts by creator rpc ContractsByCreator(QueryContractsByCreatorRequest) returns (QueryContractsByCreatorResponse) { + option (cosmos.query.v1.module_query_safe) = true; option (google.api.http).get = "/cosmwasm/wasm/v1/contracts/creator/{creator_address}"; } @@ -76,6 +88,7 @@ service Query { // BuildAddress builds a contract address rpc BuildAddress(QueryBuildAddressRequest) returns (QueryBuildAddressResponse) { + option (cosmos.query.v1.module_query_safe) = true; option (google.api.http).get = "/cosmwasm/wasm/v1/contract/build_address"; } }