Skip to content

Commit

Permalink
Merge pull request #157 from tonkeeper/multi_send_boc
Browse files Browse the repository at this point in the history
add possibility send multi boc
  • Loading branch information
zakhar-petukhov authored Aug 2, 2023
2 parents 440397e + d4382e5 commit c90bc33
Show file tree
Hide file tree
Showing 14 changed files with 342 additions and 116 deletions.
27 changes: 26 additions & 1 deletion api/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,31 @@
},
"description": "input parameters for contract get method"
},
"SendBoc": {
"content": {
"application/json": {
"schema": {
"properties": {
"batch": {
"items": {
"example": "te6ccgECBQEAARUAAkWIAWTtae+KgtbrX26Bep8JSq8lFLfGOoyGR/xwdjfvpvEaHg",
"type": "string"
},
"maxItems": 10,
"type": "array"
},
"boc": {
"example": "te6ccgECBQEAARUAAkWIAWTtae+KgtbrX26Bep8JSq8lFLfGOoyGR/xwdjfvpvEaHg",
"type": "string"
}
},
"type": "object"
}
}
},
"description": "bag-of-cells serialized to base64",
"required": true
},
"TonConnectProof": {
"content": {
"application/json": {
Expand Down Expand Up @@ -4137,7 +4162,7 @@
"description": "Send message to blockchain",
"operationId": "sendMessage",
"requestBody": {
"$ref": "#/components/requestBodies/Boc"
"$ref": "#/components/requestBodies/SendBoc"
},
"responses": {
"200": {
Expand Down
19 changes: 18 additions & 1 deletion api/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ paths:
tags:
- Blockchain
requestBody:
$ref: "#/components/requestBodies/Boc"
$ref: "#/components/requestBodies/SendBoc"
responses:
'200':
description: "success"
Expand Down Expand Up @@ -2162,6 +2162,23 @@ components:
application/json:
schema:
type: object
SendBoc:
description: bag-of-cells serialized to base64
required: true
content:
application/json:
schema:
type: object
properties:
boc:
type: string
example: te6ccgECBQEAARUAAkWIAWTtae+KgtbrX26Bep8JSq8lFLfGOoyGR/xwdjfvpvEaHg
batch:
type: array
maxItems: 10
items:
type: string
example: te6ccgECBQEAARUAAkWIAWTtae+KgtbrX26Bep8JSq8lFLfGOoyGR/xwdjfvpvEaHg
Boc:
description: bag-of-cells serialized to base64
required: true
Expand Down
9 changes: 9 additions & 0 deletions client/oas_client_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

77 changes: 37 additions & 40 deletions client/oas_json_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 14 additions & 3 deletions client/oas_schemas_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions client/oas_validators_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c90bc33

Please sign in to comment.