chore: update protobuf + gRPC toolchains

This commit is contained in:
Nex Zhu
2024-03-06 15:37:53 +08:00
parent b74f3fe89c
commit d607cb6a7b
9 changed files with 338 additions and 252 deletions

View File

@@ -34,6 +34,7 @@
"details": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/protobufAny"
}
}

View File

@@ -34,6 +34,7 @@
"details": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/protobufAny"
}
}

View File

@@ -101,13 +101,7 @@
"in": "body",
"required": true,
"schema": {
"type": "object",
"properties": {
"transaction": {
"$ref": "#/definitions/apiSendTransactionRequestTransaction",
"title": "Transaction info\n事务信息"
}
}
"$ref": "#/definitions/LedgerSendTransactionBody"
}
}
],
@@ -118,6 +112,15 @@
}
},
"definitions": {
"LedgerSendTransactionBody": {
"type": "object",
"properties": {
"transaction": {
"$ref": "#/definitions/apiSendTransactionRequestTransaction",
"title": "Transaction info\n事务信息"
}
}
},
"apiCreateLedgerRequest": {
"type": "object",
"properties": {
@@ -222,6 +225,7 @@
"details": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/protobufAny"
}
}

View File

@@ -72,6 +72,7 @@
"details": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/protobufAny"
}
}

View File

@@ -142,30 +142,7 @@
"in": "body",
"required": true,
"schema": {
"type": "object",
"properties": {
"startTimestamp": {
"type": "string",
"format": "int64",
"title": "查询范围开始时间戳"
},
"endTimestamp": {
"type": "string",
"format": "int64",
"title": "查询范围结束时间戳"
},
"filters": {
"type": "array",
"items": {
"$ref": "#/definitions/apiBlockFilter"
},
"title": "暂不支持"
},
"includeTransactions": {
"$ref": "#/definitions/apiIncludeTransactions",
"title": "包含事务信息详细程度"
}
}
"$ref": "#/definitions/QueryCountBlocksBody"
}
}
],
@@ -205,30 +182,7 @@
"in": "body",
"required": true,
"schema": {
"type": "object",
"properties": {
"startTimestamp": {
"type": "string",
"format": "int64",
"title": "查询范围开始时间戳"
},
"endTimestamp": {
"type": "string",
"format": "int64",
"title": "查询范围结束时间戳"
},
"filters": {
"type": "array",
"items": {
"$ref": "#/definitions/apiBlockFilter"
},
"title": "暂不支持"
},
"includeTransactions": {
"$ref": "#/definitions/apiIncludeTransactions",
"title": "包含事务信息详细程度"
}
}
"$ref": "#/definitions/QueryGetBlocksBody"
}
}
],
@@ -369,26 +323,7 @@
"in": "body",
"required": true,
"schema": {
"type": "object",
"properties": {
"startTimestamp": {
"type": "string",
"format": "int64",
"title": "查询范围开始时间戳"
},
"endTimestamp": {
"type": "string",
"format": "int64",
"title": "查询范围结束时间戳"
},
"filters": {
"type": "array",
"items": {
"$ref": "#/definitions/apiTransactionFilter"
},
"title": "暂不支持"
}
}
"$ref": "#/definitions/QueryCountTransactionsBody"
}
}
],
@@ -428,26 +363,7 @@
"in": "body",
"required": true,
"schema": {
"type": "object",
"properties": {
"startTimestamp": {
"type": "string",
"format": "int64",
"title": "查询范围开始时间戳"
},
"endTimestamp": {
"type": "string",
"format": "int64",
"title": "查询范围结束时间戳"
},
"filters": {
"type": "array",
"items": {
"$ref": "#/definitions/apiTransactionFilter"
},
"title": "暂不支持"
}
}
"$ref": "#/definitions/QueryGetTransactionsBody"
}
}
],
@@ -458,6 +374,106 @@
}
},
"definitions": {
"QueryCountBlocksBody": {
"type": "object",
"properties": {
"startTimestamp": {
"type": "string",
"format": "int64",
"title": "查询范围开始时间戳"
},
"endTimestamp": {
"type": "string",
"format": "int64",
"title": "查询范围结束时间戳"
},
"filters": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/apiBlockFilter"
},
"title": "暂不支持"
},
"includeTransactions": {
"$ref": "#/definitions/apiIncludeTransactions",
"title": "包含事务信息详细程度"
}
}
},
"QueryCountTransactionsBody": {
"type": "object",
"properties": {
"startTimestamp": {
"type": "string",
"format": "int64",
"title": "查询范围开始时间戳"
},
"endTimestamp": {
"type": "string",
"format": "int64",
"title": "查询范围结束时间戳"
},
"filters": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/apiTransactionFilter"
},
"title": "暂不支持"
}
}
},
"QueryGetBlocksBody": {
"type": "object",
"properties": {
"startTimestamp": {
"type": "string",
"format": "int64",
"title": "查询范围开始时间戳"
},
"endTimestamp": {
"type": "string",
"format": "int64",
"title": "查询范围结束时间戳"
},
"filters": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/apiBlockFilter"
},
"title": "暂不支持"
},
"includeTransactions": {
"$ref": "#/definitions/apiIncludeTransactions",
"title": "包含事务信息详细程度"
}
}
},
"QueryGetTransactionsBody": {
"type": "object",
"properties": {
"startTimestamp": {
"type": "string",
"format": "int64",
"title": "查询范围开始时间戳"
},
"endTimestamp": {
"type": "string",
"format": "int64",
"title": "查询范围结束时间戳"
},
"filters": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/apiTransactionFilter"
},
"title": "暂不支持"
}
}
},
"apiBlock": {
"type": "object",
"properties": {
@@ -515,6 +531,7 @@
"transactions": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/bdledgerapiTransaction"
},
"title": "事务对象的数组,或为空"
@@ -533,8 +550,11 @@
"title": "产块者签名"
},
"witnessSignatures": {
"type": "string",
"format": "byte",
"type": "array",
"items": {
"type": "string",
"format": "byte"
},
"title": "见证者签名"
}
}
@@ -608,6 +628,7 @@
"blocks": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/apiBlock"
},
"title": "区块列表"
@@ -648,6 +669,7 @@
"transactions": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/bdledgerapiTransaction"
},
"title": "事务列表"
@@ -796,6 +818,7 @@
"details": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/protobufAny"
}
}