diff --git a/docs/proto/proto-docs.md b/docs/proto/proto-docs.md
index e45c1c846..878751563 100644
--- a/docs/proto/proto-docs.md
+++ b/docs/proto/proto-docs.md
@@ -73,6 +73,8 @@
- [QueryContractHistoryResponse](#cosmwasm.wasm.v1.QueryContractHistoryResponse)
- [QueryContractInfoRequest](#cosmwasm.wasm.v1.QueryContractInfoRequest)
- [QueryContractInfoResponse](#cosmwasm.wasm.v1.QueryContractInfoResponse)
+ - [QueryContractsByCodeAndCreatorRequest](#cosmwasm.wasm.v1.QueryContractsByCodeAndCreatorRequest)
+ - [QueryContractsByCodeAndCreatorResponse](#cosmwasm.wasm.v1.QueryContractsByCodeAndCreatorResponse)
- [QueryContractsByCodeRequest](#cosmwasm.wasm.v1.QueryContractsByCodeRequest)
- [QueryContractsByCodeResponse](#cosmwasm.wasm.v1.QueryContractsByCodeResponse)
- [QueryContractsByCreatorRequest](#cosmwasm.wasm.v1.QueryContractsByCreatorRequest)
@@ -1233,6 +1235,43 @@ method
+
+
+### QueryContractsByCodeAndCreatorRequest
+QueryContractsByCodeAndCreatorRequest is the request type for the
+Query/ContractsByCodeAndCreator RPC method.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| `creator_address` | [string](#string) | | CreatorAddress is the address of contract creator |
+| `code_id` | [uint64](#uint64) | | CodeID is the code id of the contract
+
+grpc-gateway_out does not support Go style CodeID |
+| `pagination` | [cosmos.base.query.v1beta1.PageRequest](#cosmos.base.query.v1beta1.PageRequest) | | Pagination defines an optional pagination for the request. |
+
+
+
+
+
+
+
+
+### QueryContractsByCodeAndCreatorResponse
+QueryContractsByCodeAndCreatorResponse is the response type for the
+Query/ContractsByCodeAndCreator RPC method.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| `contract_addresses` | [string](#string) | repeated | ContractAddresses result set |
+| `pagination` | [cosmos.base.query.v1beta1.PageResponse](#cosmos.base.query.v1beta1.PageResponse) | | Pagination defines the pagination in the response. |
+
+
+
+
+
+
### QueryContractsByCodeRequest
@@ -1478,6 +1517,7 @@ Query provides defines the gRPC querier service
| `PinnedCodes` | [QueryPinnedCodesRequest](#cosmwasm.wasm.v1.QueryPinnedCodesRequest) | [QueryPinnedCodesResponse](#cosmwasm.wasm.v1.QueryPinnedCodesResponse) | PinnedCodes gets the pinned code ids | GET|/cosmwasm/wasm/v1/codes/pinned|
| `Params` | [QueryParamsRequest](#cosmwasm.wasm.v1.QueryParamsRequest) | [QueryParamsResponse](#cosmwasm.wasm.v1.QueryParamsResponse) | Params gets the module params | GET|/cosmwasm/wasm/v1/codes/params|
| `ContractsByCreator` | [QueryContractsByCreatorRequest](#cosmwasm.wasm.v1.QueryContractsByCreatorRequest) | [QueryContractsByCreatorResponse](#cosmwasm.wasm.v1.QueryContractsByCreatorResponse) | ContractsByCreator gets the contracts by creator | GET|/cosmwasm/wasm/v1/contracts/creator/{creator_address}|
+| `ContractsByCodeAndCreator` | [QueryContractsByCodeAndCreatorRequest](#cosmwasm.wasm.v1.QueryContractsByCodeAndCreatorRequest) | [QueryContractsByCodeAndCreatorResponse](#cosmwasm.wasm.v1.QueryContractsByCodeAndCreatorResponse) | ContractsByCodeAndCreator gets the contracts by code and creator | GET|/cosmwasm/wasm/v1/contracts/code_and_creator/{creator_address}/{code_id}|
| `WasmLimitsConfig` | [QueryWasmLimitsConfigRequest](#cosmwasm.wasm.v1.QueryWasmLimitsConfigRequest) | [QueryWasmLimitsConfigResponse](#cosmwasm.wasm.v1.QueryWasmLimitsConfigResponse) | WasmLimitsConfig gets the configured limits for static validation of Wasm files, encoded in JSON. | GET|/cosmwasm/wasm/v1/wasm-limits-config|
| `BuildAddress` | [QueryBuildAddressRequest](#cosmwasm.wasm.v1.QueryBuildAddressRequest) | [QueryBuildAddressResponse](#cosmwasm.wasm.v1.QueryBuildAddressResponse) | BuildAddress builds a contract address | GET|/cosmwasm/wasm/v1/contract/build_address|
diff --git a/proto/cosmwasm/wasm/v1/query.proto b/proto/cosmwasm/wasm/v1/query.proto
index e52b6b04a..8a5536bb6 100644
--- a/proto/cosmwasm/wasm/v1/query.proto
+++ b/proto/cosmwasm/wasm/v1/query.proto
@@ -90,6 +90,15 @@ service Query {
"/cosmwasm/wasm/v1/contracts/creator/{creator_address}";
}
+ // ContractsByCodeAndCreator gets the contracts by code and creator
+ rpc ContractsByCodeAndCreator(QueryContractsByCodeAndCreatorRequest)
+ returns (QueryContractsByCodeAndCreatorResponse) {
+ option (cosmos.query.v1.module_query_safe) = true;
+ option (google.api.http).get =
+ "/cosmwasm/wasm/v1/contracts/code_and_creator/{creator_address}/"
+ "{code_id}";
+ }
+
// WasmLimitsConfig gets the configured limits for static validation of Wasm
// files, encoded in JSON.
rpc WasmLimitsConfig(QueryWasmLimitsConfigRequest)
@@ -324,6 +333,27 @@ message QueryContractsByCreatorResponse {
cosmos.base.query.v1beta1.PageResponse pagination = 2;
}
+// QueryContractsByCodeAndCreatorRequest is the request type for the
+// Query/ContractsByCodeAndCreator RPC method.
+message QueryContractsByCodeAndCreatorRequest {
+ // CreatorAddress is the address of contract creator
+ string creator_address = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
+ // CodeID is the code id of the contract
+ uint64 code_id = 2; // grpc-gateway_out does not support Go style CodeID
+ // Pagination defines an optional pagination for the request.
+ cosmos.base.query.v1beta1.PageRequest pagination = 3;
+}
+
+// QueryContractsByCodeAndCreatorResponse is the response type for the
+// Query/ContractsByCodeAndCreator RPC method.
+message QueryContractsByCodeAndCreatorResponse {
+ // ContractAddresses result set
+ repeated string contract_addresses = 1
+ [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
+ // Pagination defines the pagination in the response.
+ cosmos.base.query.v1beta1.PageResponse pagination = 2;
+}
+
// QueryWasmLimitsConfigRequest is the request type for the
// Query/WasmLimitsConfig RPC method.
message QueryWasmLimitsConfigRequest {}
diff --git a/x/wasm/keeper/querier.go b/x/wasm/keeper/querier.go
index 2cfcbad2c..e61fd06ba 100644
--- a/x/wasm/keeper/querier.go
+++ b/x/wasm/keeper/querier.go
@@ -422,6 +422,49 @@ func (q GrpcQuerier) ContractsByCreator(c context.Context, req *types.QueryContr
}, nil
}
+func (q GrpcQuerier) ContractsByCodeAndCreator(c context.Context, req *types.QueryContractsByCodeAndCreatorRequest) (*types.QueryContractsByCodeAndCreatorResponse, error) {
+ if req == nil {
+ return nil, status.Error(codes.InvalidArgument, "empty request")
+ }
+ paginationParams, err := ensurePaginationParams(req.Pagination)
+ if err != nil {
+ return nil, err
+ }
+
+ ctx := sdk.UnwrapSDKContext(c)
+ contracts := make([]string, 0)
+
+ creatorAddress, err := sdk.AccAddressFromBech32(req.CreatorAddress)
+ if err != nil {
+ return nil, err
+ }
+
+ codeIdPrefixStore := prefix.NewStore(runtime.KVStoreAdapter(q.storeService.OpenKVStore(ctx)), types.GetContractByCodeIDSecondaryIndexPrefix(req.CodeId))
+ creatorPrefixStore := prefix.NewStore(runtime.KVStoreAdapter(q.storeService.OpenKVStore(ctx)), types.GetContractsByCreatorPrefix(creatorAddress))
+
+ // Find contracts that match both creator and code ID
+ pageRes, err := query.FilteredPaginate(codeIdPrefixStore, paginationParams, func(key, _ []byte, accumulate bool) (bool, error) {
+ if accumulate {
+ // Extract contract address from creator store key
+ contractAddr := key[types.AbsoluteTxPositionLen:]
+
+ // Check if this contract exists in the code ID store
+ if creatorPrefixStore.Has(key) {
+ contracts = append(contracts, sdk.AccAddress(contractAddr).String())
+ }
+ }
+ return true, nil
+ })
+ if err != nil {
+ return nil, err
+ }
+
+ return &types.QueryContractsByCodeAndCreatorResponse{
+ ContractAddresses: contracts,
+ Pagination: pageRes,
+ }, nil
+}
+
// max limit to pagination queries
const maxResultEntries = 100
diff --git a/x/wasm/keeper/querier_test.go b/x/wasm/keeper/querier_test.go
index 540f047a1..04e989bb4 100644
--- a/x/wasm/keeper/querier_test.go
+++ b/x/wasm/keeper/querier_test.go
@@ -1098,6 +1098,112 @@ func TestQueryContractsByCreatorList(t *testing.T) {
}
}
+func TestQueryContractsByCodeAndCreatorList(t *testing.T) {
+ ctx, keepers := CreateTestInput(t, false, AvailableCapabilities)
+
+ deposit := sdk.NewCoins(sdk.NewInt64Coin("denom", 1000000))
+ topUp := sdk.NewCoins(sdk.NewInt64Coin("denom", 500))
+ creator := keepers.Faucet.NewFundedRandomAccount(ctx, deposit...)
+ anyAddr := keepers.Faucet.NewFundedRandomAccount(ctx, topUp...)
+
+ wasmCode, err := os.ReadFile("./testdata/hackatom.wasm")
+ require.NoError(t, err)
+
+ codeID, _, err := keepers.ContractKeeper.Create(ctx, creator, wasmCode, nil)
+ require.NoError(t, err)
+
+ _, bob := keyPubAddr()
+ initMsg := HackatomExampleInitMsg{
+ Verifier: anyAddr,
+ Beneficiary: bob,
+ }
+ initMsgBz, err := json.Marshal(initMsg)
+ require.NoError(t, err)
+
+ // manage some realistic block settings
+ var h int64 = 10
+ setBlock := func(ctx sdk.Context, height int64) sdk.Context {
+ ctx = ctx.WithBlockHeight(height)
+ meter := storetypes.NewGasMeter(1000000)
+ ctx = ctx.WithGasMeter(meter)
+ ctx = ctx.WithBlockGasMeter(meter)
+ return ctx
+ }
+
+ var allExpectedContracts []string
+ // create 10 contracts with real block/gas setup
+ for i := 0; i < 10; i++ {
+ ctx = setBlock(ctx, h)
+ h++
+ contract, _, err := keepers.ContractKeeper.Instantiate(ctx, codeID, creator, nil, initMsgBz, fmt.Sprintf("contract %d", i), topUp)
+ allExpectedContracts = append(allExpectedContracts, contract.String())
+ require.NoError(t, err)
+ }
+
+ specs := map[string]struct {
+ srcQuery *types.QueryContractsByCodeAndCreatorRequest
+ expContractAddr []string
+ expErr error
+ }{
+ "query all": {
+ srcQuery: &types.QueryContractsByCodeAndCreatorRequest{
+ CodeId: codeID,
+ CreatorAddress: creator.String(),
+ },
+ expContractAddr: allExpectedContracts,
+ expErr: nil,
+ },
+ "with pagination offset": {
+ srcQuery: &types.QueryContractsByCodeAndCreatorRequest{
+ CodeId: codeID,
+ CreatorAddress: creator.String(),
+ Pagination: &query.PageRequest{
+ Offset: 1,
+ },
+ },
+ expErr: errLegacyPaginationUnsupported,
+ },
+ "with pagination limit": {
+ srcQuery: &types.QueryContractsByCodeAndCreatorRequest{
+ CodeId: codeID,
+ CreatorAddress: creator.String(),
+ Pagination: &query.PageRequest{
+ Limit: 1,
+ },
+ },
+ expContractAddr: allExpectedContracts[0:1],
+ expErr: nil,
+ },
+ "nil creator": {
+ srcQuery: &types.QueryContractsByCodeAndCreatorRequest{
+ Pagination: &query.PageRequest{},
+ },
+ expContractAddr: allExpectedContracts,
+ expErr: errors.New("empty address string is not allowed"),
+ },
+ "nil req": {
+ srcQuery: nil,
+ expContractAddr: allExpectedContracts,
+ expErr: status.Error(codes.InvalidArgument, "empty request"),
+ },
+ }
+
+ q := Querier(keepers.WasmKeeper)
+ for msg, spec := range specs {
+ t.Run(msg, func(t *testing.T) {
+ got, gotErr := q.ContractsByCodeAndCreator(ctx, spec.srcQuery)
+ if spec.expErr != nil {
+ require.Error(t, gotErr)
+ assert.ErrorContains(t, gotErr, spec.expErr.Error())
+ return
+ }
+ require.NoError(t, gotErr)
+ require.NotNil(t, got)
+ assert.Equal(t, spec.expContractAddr, got.ContractAddresses)
+ })
+ }
+}
+
func fromBase64(s string) []byte {
r, err := base64.StdEncoding.DecodeString(s)
if err != nil {
diff --git a/x/wasm/types/query.pb.go b/x/wasm/types/query.pb.go
index 23ca1511a..26f102e69 100644
--- a/x/wasm/types/query.pb.go
+++ b/x/wasm/types/query.pb.go
@@ -1171,6 +1171,104 @@ func (m *QueryContractsByCreatorResponse) XXX_DiscardUnknown() {
var xxx_messageInfo_QueryContractsByCreatorResponse proto.InternalMessageInfo
+// QueryContractsByCodeAndCreatorRequest is the request type for the
+// Query/ContractsByCodeAndCreator RPC method.
+type QueryContractsByCodeAndCreatorRequest struct {
+ // CreatorAddress is the address of contract creator
+ CreatorAddress string `protobuf:"bytes,1,opt,name=creator_address,json=creatorAddress,proto3" json:"creator_address,omitempty"`
+ // CodeID is the code id of the contract
+ CodeId uint64 `protobuf:"varint,2,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
+ // Pagination defines an optional pagination for the request.
+ Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
+}
+
+func (m *QueryContractsByCodeAndCreatorRequest) Reset() { *m = QueryContractsByCodeAndCreatorRequest{} }
+func (m *QueryContractsByCodeAndCreatorRequest) String() string { return proto.CompactTextString(m) }
+func (*QueryContractsByCodeAndCreatorRequest) ProtoMessage() {}
+func (*QueryContractsByCodeAndCreatorRequest) Descriptor() ([]byte, []int) {
+ return fileDescriptor_9677c207036b9f2b, []int{25}
+}
+
+func (m *QueryContractsByCodeAndCreatorRequest) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+
+func (m *QueryContractsByCodeAndCreatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_QueryContractsByCodeAndCreatorRequest.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 *QueryContractsByCodeAndCreatorRequest) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_QueryContractsByCodeAndCreatorRequest.Merge(m, src)
+}
+
+func (m *QueryContractsByCodeAndCreatorRequest) XXX_Size() int {
+ return m.Size()
+}
+
+func (m *QueryContractsByCodeAndCreatorRequest) XXX_DiscardUnknown() {
+ xxx_messageInfo_QueryContractsByCodeAndCreatorRequest.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_QueryContractsByCodeAndCreatorRequest proto.InternalMessageInfo
+
+// QueryContractsByCodeAndCreatorResponse is the response type for the
+// Query/ContractsByCodeAndCreator RPC method.
+type QueryContractsByCodeAndCreatorResponse struct {
+ // ContractAddresses result set
+ ContractAddresses []string `protobuf:"bytes,1,rep,name=contract_addresses,json=contractAddresses,proto3" json:"contract_addresses,omitempty"`
+ // Pagination defines the pagination in the response.
+ Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
+}
+
+func (m *QueryContractsByCodeAndCreatorResponse) Reset() {
+ *m = QueryContractsByCodeAndCreatorResponse{}
+}
+func (m *QueryContractsByCodeAndCreatorResponse) String() string { return proto.CompactTextString(m) }
+func (*QueryContractsByCodeAndCreatorResponse) ProtoMessage() {}
+func (*QueryContractsByCodeAndCreatorResponse) Descriptor() ([]byte, []int) {
+ return fileDescriptor_9677c207036b9f2b, []int{26}
+}
+
+func (m *QueryContractsByCodeAndCreatorResponse) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+
+func (m *QueryContractsByCodeAndCreatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_QueryContractsByCodeAndCreatorResponse.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 *QueryContractsByCodeAndCreatorResponse) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_QueryContractsByCodeAndCreatorResponse.Merge(m, src)
+}
+
+func (m *QueryContractsByCodeAndCreatorResponse) XXX_Size() int {
+ return m.Size()
+}
+
+func (m *QueryContractsByCodeAndCreatorResponse) XXX_DiscardUnknown() {
+ xxx_messageInfo_QueryContractsByCodeAndCreatorResponse.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_QueryContractsByCodeAndCreatorResponse proto.InternalMessageInfo
+
// QueryWasmLimitsConfigRequest is the request type for the
// Query/WasmLimitsConfig RPC method.
type QueryWasmLimitsConfigRequest struct{}
@@ -1179,7 +1277,7 @@ func (m *QueryWasmLimitsConfigRequest) Reset() { *m = QueryWasmLimitsCon
func (m *QueryWasmLimitsConfigRequest) String() string { return proto.CompactTextString(m) }
func (*QueryWasmLimitsConfigRequest) ProtoMessage() {}
func (*QueryWasmLimitsConfigRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_9677c207036b9f2b, []int{25}
+ return fileDescriptor_9677c207036b9f2b, []int{27}
}
func (m *QueryWasmLimitsConfigRequest) XXX_Unmarshal(b []byte) error {
@@ -1224,7 +1322,7 @@ func (m *QueryWasmLimitsConfigResponse) Reset() { *m = QueryWasmLimitsCo
func (m *QueryWasmLimitsConfigResponse) String() string { return proto.CompactTextString(m) }
func (*QueryWasmLimitsConfigResponse) ProtoMessage() {}
func (*QueryWasmLimitsConfigResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_9677c207036b9f2b, []int{26}
+ return fileDescriptor_9677c207036b9f2b, []int{28}
}
func (m *QueryWasmLimitsConfigResponse) XXX_Unmarshal(b []byte) error {
@@ -1276,7 +1374,7 @@ func (m *QueryBuildAddressRequest) Reset() { *m = QueryBuildAddressReque
func (m *QueryBuildAddressRequest) String() string { return proto.CompactTextString(m) }
func (*QueryBuildAddressRequest) ProtoMessage() {}
func (*QueryBuildAddressRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_9677c207036b9f2b, []int{27}
+ return fileDescriptor_9677c207036b9f2b, []int{29}
}
func (m *QueryBuildAddressRequest) XXX_Unmarshal(b []byte) error {
@@ -1321,7 +1419,7 @@ func (m *QueryBuildAddressResponse) Reset() { *m = QueryBuildAddressResp
func (m *QueryBuildAddressResponse) String() string { return proto.CompactTextString(m) }
func (*QueryBuildAddressResponse) ProtoMessage() {}
func (*QueryBuildAddressResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_9677c207036b9f2b, []int{28}
+ return fileDescriptor_9677c207036b9f2b, []int{30}
}
func (m *QueryBuildAddressResponse) XXX_Unmarshal(b []byte) error {
@@ -1381,6 +1479,8 @@ func init() {
proto.RegisterType((*QueryParamsResponse)(nil), "cosmwasm.wasm.v1.QueryParamsResponse")
proto.RegisterType((*QueryContractsByCreatorRequest)(nil), "cosmwasm.wasm.v1.QueryContractsByCreatorRequest")
proto.RegisterType((*QueryContractsByCreatorResponse)(nil), "cosmwasm.wasm.v1.QueryContractsByCreatorResponse")
+ proto.RegisterType((*QueryContractsByCodeAndCreatorRequest)(nil), "cosmwasm.wasm.v1.QueryContractsByCodeAndCreatorRequest")
+ proto.RegisterType((*QueryContractsByCodeAndCreatorResponse)(nil), "cosmwasm.wasm.v1.QueryContractsByCodeAndCreatorResponse")
proto.RegisterType((*QueryWasmLimitsConfigRequest)(nil), "cosmwasm.wasm.v1.QueryWasmLimitsConfigRequest")
proto.RegisterType((*QueryWasmLimitsConfigResponse)(nil), "cosmwasm.wasm.v1.QueryWasmLimitsConfigResponse")
proto.RegisterType((*QueryBuildAddressRequest)(nil), "cosmwasm.wasm.v1.QueryBuildAddressRequest")
@@ -1390,111 +1490,116 @@ func init() {
func init() { proto.RegisterFile("cosmwasm/wasm/v1/query.proto", fileDescriptor_9677c207036b9f2b) }
var fileDescriptor_9677c207036b9f2b = []byte{
- // 1653 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x59, 0xcf, 0x6f, 0x13, 0xc7,
- 0x17, 0xcf, 0x04, 0xc7, 0x71, 0x26, 0xf9, 0x7e, 0x71, 0xe6, 0x1b, 0x20, 0x18, 0xb0, 0xa3, 0x05,
- 0x42, 0x08, 0xc4, 0x4b, 0xc2, 0x97, 0x46, 0xd0, 0x43, 0x15, 0x07, 0x4a, 0x40, 0x50, 0x82, 0x91,
- 0x8a, 0xd4, 0xaa, 0x72, 0xc7, 0xf6, 0xc4, 0xd9, 0xd6, 0xde, 0x35, 0x3b, 0x13, 0x42, 0x14, 0x85,
- 0x03, 0xa7, 0x4a, 0x3d, 0xb4, 0x55, 0x4f, 0xa5, 0x52, 0x7f, 0x48, 0x3d, 0xd0, 0xd2, 0x4a, 0x48,
- 0xad, 0x54, 0x54, 0xa9, 0xf7, 0x5c, 0x2a, 0xa1, 0xf6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36, 0x55, 0x5f, 0xa4,
- 0x1d, 0x57, 0xdf, 0xc3, 0xce, 0xbf, 0x53, 0x45, 0xa9, 0x34, 0xe5, 0x76, 0x4b, 0xe4, 0x33, 0x84,
- 0x87, 0x82, 0xbd, 0x87, 0xb2, 0x49, 0x68, 0xd2, 0x4d, 0x29, 0x9b, 0x84, 0x66, 0xcd, 0x8c, 0x76,
- 0xca, 0x67, 0x74, 0x92, 0x4c, 0xb4, 0xa8, 0x5b, 0x59, 0x47, 0xdb, 0x63, 0x31, 0xb5, 0xb0, 0xf9,
- 0x67, 0xbc, 0xe7, 0xde, 0x56, 0xbc, 0x67, 0x73, 0x2b, 0x8e, 0x1e, 0x6d, 0xc5, 0xd1, 0x1f, 0x5b,
- 0x71, 0xf4, 0xe1, 0xe3, 0x78, 0xcf, 0xa3, 0xc7, 0xf1, 0x9e, 0xdf, 0x1f, 0xc7, 0x7b, 0xde, 0x18,
- 0x0f, 0x0c, 0xd2, 0xf3, 0x16, 0x2f, 0x5d, 0xf7, 0xac, 0xe6, 0xf5, 0x5b, 0xae, 0x75, 0xf9, 0x7f,
- 0x10, 0xd9, 0xb0, 0xfc, 0x7b, 0xff, 0xc9, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x3b, 0xe2, 0xae,
- 0x71, 0xea, 0x18, 0x00, 0x00,
+ // 1729 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x59, 0xdf, 0x6f, 0x13, 0x57,
+ 0x16, 0xce, 0x0d, 0x8e, 0xe3, 0xdc, 0x64, 0x17, 0xe7, 0x12, 0x20, 0x18, 0xb0, 0xa3, 0x01, 0x42,
+ 0x08, 0xc4, 0x43, 0xc2, 0xb2, 0x59, 0xd8, 0x87, 0x95, 0x1d, 0x58, 0x02, 0x82, 0x25, 0x18, 0xed,
+ 0x22, 0xed, 0x6a, 0xe5, 0x5e, 0x7b, 0x6e, 0x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, 0xfc, 0x12, 0xef, 0xb9, 0xbf,
+ 0x19, 0xef, 0xd9, 0xd8, 0x8c, 0xa3, 0x27, 0x9b, 0x71, 0xf4, 0xf3, 0x66, 0x1c, 0xbd, 0xf3, 0x34,
+ 0xde, 0xf3, 0xe4, 0x69, 0xbc, 0xe7, 0xa7, 0xa7, 0xf1, 0x9e, 0xff, 0x8e, 0x07, 0x7e, 0xbb, 0x99,
+ 0x33, 0x79, 0xe9, 0x86, 0x37, 0xab, 0xa6, 0xde, 0x76, 0x67, 0x17, 0xff, 0xf6, 0xca, 0x85, 0xc5,
+ 0xbf, 0x98, 0x4e, 0xfd, 0x11, 0x00, 0x00, 0xff, 0xff, 0x15, 0x02, 0xf1, 0x04, 0x5d, 0x1b, 0x00,
+ 0x00,
}
func (this *QueryContractInfoResponse) Equal(that interface{}) bool {
@@ -1659,6 +1764,8 @@ type QueryClient interface {
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
// ContractsByCreator gets the contracts by creator
ContractsByCreator(ctx context.Context, in *QueryContractsByCreatorRequest, opts ...grpc.CallOption) (*QueryContractsByCreatorResponse, error)
+ // ContractsByCodeAndCreator gets the contracts by code and creator
+ ContractsByCodeAndCreator(ctx context.Context, in *QueryContractsByCodeAndCreatorRequest, opts ...grpc.CallOption) (*QueryContractsByCodeAndCreatorResponse, error)
// WasmLimitsConfig gets the configured limits for static validation of Wasm
// files, encoded in JSON.
WasmLimitsConfig(ctx context.Context, in *QueryWasmLimitsConfigRequest, opts ...grpc.CallOption) (*QueryWasmLimitsConfigResponse, error)
@@ -1782,6 +1889,15 @@ func (c *queryClient) ContractsByCreator(ctx context.Context, in *QueryContracts
return out, nil
}
+func (c *queryClient) ContractsByCodeAndCreator(ctx context.Context, in *QueryContractsByCodeAndCreatorRequest, opts ...grpc.CallOption) (*QueryContractsByCodeAndCreatorResponse, error) {
+ out := new(QueryContractsByCodeAndCreatorResponse)
+ err := c.cc.Invoke(ctx, "/cosmwasm.wasm.v1.Query/ContractsByCodeAndCreator", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
func (c *queryClient) WasmLimitsConfig(ctx context.Context, in *QueryWasmLimitsConfigRequest, opts ...grpc.CallOption) (*QueryWasmLimitsConfigResponse, error) {
out := new(QueryWasmLimitsConfigResponse)
err := c.cc.Invoke(ctx, "/cosmwasm.wasm.v1.Query/WasmLimitsConfig", in, out, opts...)
@@ -1826,6 +1942,8 @@ type QueryServer interface {
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
// ContractsByCreator gets the contracts by creator
ContractsByCreator(context.Context, *QueryContractsByCreatorRequest) (*QueryContractsByCreatorResponse, error)
+ // ContractsByCodeAndCreator gets the contracts by code and creator
+ ContractsByCodeAndCreator(context.Context, *QueryContractsByCodeAndCreatorRequest) (*QueryContractsByCodeAndCreatorResponse, error)
// WasmLimitsConfig gets the configured limits for static validation of Wasm
// files, encoded in JSON.
WasmLimitsConfig(context.Context, *QueryWasmLimitsConfigRequest) (*QueryWasmLimitsConfigResponse, error)
@@ -1884,6 +2002,10 @@ func (*UnimplementedQueryServer) ContractsByCreator(ctx context.Context, req *Qu
return nil, status.Errorf(codes.Unimplemented, "method ContractsByCreator not implemented")
}
+func (*UnimplementedQueryServer) ContractsByCodeAndCreator(ctx context.Context, req *QueryContractsByCodeAndCreatorRequest) (*QueryContractsByCodeAndCreatorResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method ContractsByCodeAndCreator not implemented")
+}
+
func (*UnimplementedQueryServer) WasmLimitsConfig(ctx context.Context, req *QueryWasmLimitsConfigRequest) (*QueryWasmLimitsConfigResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method WasmLimitsConfig not implemented")
}
@@ -2112,6 +2234,24 @@ func _Query_ContractsByCreator_Handler(srv interface{}, ctx context.Context, dec
return interceptor(ctx, in, info, handler)
}
+func _Query_ContractsByCodeAndCreator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(QueryContractsByCodeAndCreatorRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(QueryServer).ContractsByCodeAndCreator(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/cosmwasm.wasm.v1.Query/ContractsByCodeAndCreator",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(QueryServer).ContractsByCodeAndCreator(ctx, req.(*QueryContractsByCodeAndCreatorRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
func _Query_WasmLimitsConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryWasmLimitsConfigRequest)
if err := dec(in); err != nil {
@@ -2200,6 +2340,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{
MethodName: "ContractsByCreator",
Handler: _Query_ContractsByCreator_Handler,
},
+ {
+ MethodName: "ContractsByCodeAndCreator",
+ Handler: _Query_ContractsByCodeAndCreator_Handler,
+ },
{
MethodName: "WasmLimitsConfig",
Handler: _Query_WasmLimitsConfig_Handler,
@@ -3199,6 +3343,97 @@ func (m *QueryContractsByCreatorResponse) MarshalToSizedBuffer(dAtA []byte) (int
return len(dAtA) - i, nil
}
+func (m *QueryContractsByCodeAndCreatorRequest) 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 *QueryContractsByCodeAndCreatorRequest) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *QueryContractsByCodeAndCreatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.Pagination != nil {
+ {
+ size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintQuery(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x1a
+ }
+ if m.CodeId != 0 {
+ i = encodeVarintQuery(dAtA, i, uint64(m.CodeId))
+ i--
+ dAtA[i] = 0x10
+ }
+ if len(m.CreatorAddress) > 0 {
+ i -= len(m.CreatorAddress)
+ copy(dAtA[i:], m.CreatorAddress)
+ i = encodeVarintQuery(dAtA, i, uint64(len(m.CreatorAddress)))
+ i--
+ dAtA[i] = 0xa
+ }
+ return len(dAtA) - i, nil
+}
+
+func (m *QueryContractsByCodeAndCreatorResponse) 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 *QueryContractsByCodeAndCreatorResponse) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *QueryContractsByCodeAndCreatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
+ if m.Pagination != nil {
+ {
+ size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
+ if err != nil {
+ return 0, err
+ }
+ i -= size
+ i = encodeVarintQuery(dAtA, i, uint64(size))
+ }
+ i--
+ dAtA[i] = 0x12
+ }
+ if len(m.ContractAddresses) > 0 {
+ for iNdEx := len(m.ContractAddresses) - 1; iNdEx >= 0; iNdEx-- {
+ i -= len(m.ContractAddresses[iNdEx])
+ copy(dAtA[i:], m.ContractAddresses[iNdEx])
+ i = encodeVarintQuery(dAtA, i, uint64(len(m.ContractAddresses[iNdEx])))
+ i--
+ dAtA[i] = 0xa
+ }
+ }
+ return len(dAtA) - i, nil
+}
+
func (m *QueryWasmLimitsConfigRequest) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
@@ -3746,6 +3981,45 @@ func (m *QueryContractsByCreatorResponse) Size() (n int) {
return n
}
+func (m *QueryContractsByCodeAndCreatorRequest) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.CreatorAddress)
+ if l > 0 {
+ n += 1 + l + sovQuery(uint64(l))
+ }
+ if m.CodeId != 0 {
+ n += 1 + sovQuery(uint64(m.CodeId))
+ }
+ if m.Pagination != nil {
+ l = m.Pagination.Size()
+ n += 1 + l + sovQuery(uint64(l))
+ }
+ return n
+}
+
+func (m *QueryContractsByCodeAndCreatorResponse) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if len(m.ContractAddresses) > 0 {
+ for _, s := range m.ContractAddresses {
+ l = len(s)
+ n += 1 + l + sovQuery(uint64(l))
+ }
+ }
+ if m.Pagination != nil {
+ l = m.Pagination.Size()
+ n += 1 + l + sovQuery(uint64(l))
+ }
+ return n
+}
+
func (m *QueryWasmLimitsConfigRequest) Size() (n int) {
if m == nil {
return 0
@@ -6552,6 +6826,263 @@ func (m *QueryContractsByCreatorResponse) Unmarshal(dAtA []byte) error {
return nil
}
+func (m *QueryContractsByCodeAndCreatorRequest) 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: QueryContractsByCodeAndCreatorRequest: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: QueryContractsByCodeAndCreatorRequest: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field CreatorAddress", 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.CreatorAddress = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field CodeId", wireType)
+ }
+ m.CodeId = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowQuery
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.CodeId |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowQuery
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthQuery
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthQuery
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Pagination == nil {
+ m.Pagination = &query.PageRequest{}
+ }
+ if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ 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 *QueryContractsByCodeAndCreatorResponse) 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: QueryContractsByCodeAndCreatorResponse: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: QueryContractsByCodeAndCreatorResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ContractAddresses", 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.ContractAddresses = append(m.ContractAddresses, string(dAtA[iNdEx:postIndex]))
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowQuery
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthQuery
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthQuery
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Pagination == nil {
+ m.Pagination = &query.PageResponse{}
+ }
+ if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ 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 *QueryWasmLimitsConfigRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
diff --git a/x/wasm/types/query.pb.gw.go b/x/wasm/types/query.pb.gw.go
index 6ee86b404..fc0f5a2ed 100644
--- a/x/wasm/types/query.pb.gw.go
+++ b/x/wasm/types/query.pb.gw.go
@@ -691,6 +691,96 @@ func local_request_Query_ContractsByCreator_0(ctx context.Context, marshaler run
return msg, metadata, err
}
+var filter_Query_ContractsByCodeAndCreator_0 = &utilities.DoubleArray{Encoding: map[string]int{"creator_address": 0, "code_id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}}
+
+func request_Query_ContractsByCodeAndCreator_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq QueryContractsByCodeAndCreatorRequest
+ var metadata runtime.ServerMetadata
+
+ var (
+ val string
+ ok bool
+ err error
+ _ = err
+ )
+
+ val, ok = pathParams["creator_address"]
+ if !ok {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "creator_address")
+ }
+
+ protoReq.CreatorAddress, err = runtime.String(val)
+
+ if err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "creator_address", err)
+ }
+
+ val, ok = pathParams["code_id"]
+ if !ok {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "code_id")
+ }
+
+ protoReq.CodeId, err = runtime.Uint64(val)
+
+ if err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "code_id", err)
+ }
+
+ if err := req.ParseForm(); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ContractsByCodeAndCreator_0); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+
+ msg, err := client.ContractsByCodeAndCreator(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
+ return msg, metadata, err
+}
+
+func local_request_Query_ContractsByCodeAndCreator_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq QueryContractsByCodeAndCreatorRequest
+ var metadata runtime.ServerMetadata
+
+ var (
+ val string
+ ok bool
+ err error
+ _ = err
+ )
+
+ val, ok = pathParams["creator_address"]
+ if !ok {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "creator_address")
+ }
+
+ protoReq.CreatorAddress, err = runtime.String(val)
+
+ if err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "creator_address", err)
+ }
+
+ val, ok = pathParams["code_id"]
+ if !ok {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "code_id")
+ }
+
+ protoReq.CodeId, err = runtime.Uint64(val)
+
+ if err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "code_id", err)
+ }
+
+ if err := req.ParseForm(); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ContractsByCodeAndCreator_0); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+
+ msg, err := server.ContractsByCodeAndCreator(ctx, &protoReq)
+ return msg, metadata, err
+}
+
func request_Query_WasmLimitsConfig_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq QueryWasmLimitsConfigRequest
var metadata runtime.ServerMetadata
@@ -1008,6 +1098,28 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
forward_Query_ContractsByCreator_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
+ mux.Handle("GET", pattern_Query_ContractsByCodeAndCreator_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_ContractsByCodeAndCreator_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_ContractsByCodeAndCreator_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+ })
+
mux.Handle("GET", pattern_Query_WasmLimitsConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
@@ -1320,6 +1432,25 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie
forward_Query_ContractsByCreator_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
+ mux.Handle("GET", pattern_Query_ContractsByCodeAndCreator_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_ContractsByCodeAndCreator_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_ContractsByCodeAndCreator_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+ })
+
mux.Handle("GET", pattern_Query_WasmLimitsConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
@@ -1386,6 +1517,8 @@ var (
pattern_Query_ContractsByCreator_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"cosmwasm", "wasm", "v1", "contracts", "creator", "creator_address"}, "", runtime.AssumeColonVerbOpt(false)))
+ pattern_Query_ContractsByCodeAndCreator_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"cosmwasm", "wasm", "v1", "contracts", "code_and_creator", "creator_address", "code_id"}, "", runtime.AssumeColonVerbOpt(false)))
+
pattern_Query_WasmLimitsConfig_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cosmwasm", "wasm", "v1", "wasm-limits-config"}, "", runtime.AssumeColonVerbOpt(false)))
pattern_Query_BuildAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"cosmwasm", "wasm", "v1", "contract", "build_address"}, "", runtime.AssumeColonVerbOpt(false)))
@@ -1416,6 +1549,8 @@ var (
forward_Query_ContractsByCreator_0 = runtime.ForwardResponseMessage
+ forward_Query_ContractsByCodeAndCreator_0 = runtime.ForwardResponseMessage
+
forward_Query_WasmLimitsConfig_0 = runtime.ForwardResponseMessage
forward_Query_BuildAddress_0 = runtime.ForwardResponseMessage