Skip to content

Commit 2e15e76

Browse files
committed
Update schemas
1 parent 5e05483 commit 2e15e76

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed

contracts/reflect/schema/raw/query.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,28 @@
324324
}
325325
]
326326
},
327+
"GrpcQuery": {
328+
"description": "Queries the chain using a grpc query. This allows to query information that is not exposed in our API. The chain needs to whitelist the supported queries. The drawback of this query is that you have to handle the protobuf encoding and decoding yourself.\n\nThe returned data is protobuf encoded. The protobuf type depends on the query.",
329+
"type": "object",
330+
"required": [
331+
"data",
332+
"path"
333+
],
334+
"properties": {
335+
"data": {
336+
"description": "The expected protobuf message type (not any), binary encoded",
337+
"allOf": [
338+
{
339+
"$ref": "#/definitions/Binary"
340+
}
341+
]
342+
},
343+
"path": {
344+
"description": "The fully qualified service path used for routing, eg. \"custom/cosmos_sdk.x.bank.v1.Query/QueryBalance\"",
345+
"type": "string"
346+
}
347+
}
348+
},
327349
"IbcQuery": {
328350
"description": "These are queries to the various IBC modules to see the state of the contract's IBC connection. These will return errors if the contract is not \"ibc enabled\"",
329351
"oneOf": [
@@ -522,6 +544,18 @@
522544
}
523545
},
524546
"additionalProperties": false
547+
},
548+
{
549+
"type": "object",
550+
"required": [
551+
"grpc"
552+
],
553+
"properties": {
554+
"grpc": {
555+
"$ref": "#/definitions/GrpcQuery"
556+
}
557+
},
558+
"additionalProperties": false
525559
}
526560
]
527561
},

contracts/reflect/schema/reflect.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,6 +1327,28 @@
13271327
}
13281328
]
13291329
},
1330+
"GrpcQuery": {
1331+
"description": "Queries the chain using a grpc query. This allows to query information that is not exposed in our API. The chain needs to whitelist the supported queries. The drawback of this query is that you have to handle the protobuf encoding and decoding yourself.\n\nThe returned data is protobuf encoded. The protobuf type depends on the query.",
1332+
"type": "object",
1333+
"required": [
1334+
"data",
1335+
"path"
1336+
],
1337+
"properties": {
1338+
"data": {
1339+
"description": "The expected protobuf message type (not any), binary encoded",
1340+
"allOf": [
1341+
{
1342+
"$ref": "#/definitions/Binary"
1343+
}
1344+
]
1345+
},
1346+
"path": {
1347+
"description": "The fully qualified service path used for routing, eg. \"custom/cosmos_sdk.x.bank.v1.Query/QueryBalance\"",
1348+
"type": "string"
1349+
}
1350+
}
1351+
},
13301352
"IbcQuery": {
13311353
"description": "These are queries to the various IBC modules to see the state of the contract's IBC connection. These will return errors if the contract is not \"ibc enabled\"",
13321354
"oneOf": [
@@ -1525,6 +1547,18 @@
15251547
}
15261548
},
15271549
"additionalProperties": false
1550+
},
1551+
{
1552+
"type": "object",
1553+
"required": [
1554+
"grpc"
1555+
],
1556+
"properties": {
1557+
"grpc": {
1558+
"$ref": "#/definitions/GrpcQuery"
1559+
}
1560+
},
1561+
"additionalProperties": false
15281562
}
15291563
]
15301564
},

0 commit comments

Comments
 (0)