Skip to content

Commit 329638a

Browse files
update sdk
1 parent 1f281cc commit 329638a

7 files changed

+807
-36
lines changed

api/openapi.yml

+93-17
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,7 @@ paths:
3535
tags:
3636
- Blockchain
3737
parameters:
38-
- name: masterchain_seqno
39-
in: path
40-
required: true
41-
description: "masterchain block seqno"
42-
schema:
43-
type: integer
44-
format: int32
45-
example: 123456
38+
- $ref: '#/components/parameters/masterchainSeqno'
4639
responses:
4740
'200':
4841
description: blockchain block shards
@@ -52,31 +45,31 @@ paths:
5245
$ref: '#/components/schemas/BlockchainBlockShards'
5346
'default':
5447
$ref: '#/components/responses/Error'
55-
/v2/blockchain/blocks/{block_id}/transactions:
48+
/v2/blockchain/masterchain/{masterchain_seqno}/config:
5649
get:
57-
description: Get transactions from block
58-
operationId: getBlockchainBlockTransactions
50+
description: Get blockchain config from a specific block, if present.
51+
operationId: getBlockchainConfigFromBlock
5952
tags:
6053
- Blockchain
6154
parameters:
62-
- $ref: '#/components/parameters/blockchainBlockIDParameter'
55+
- $ref: '#/components/parameters/masterchainSeqno'
6356
responses:
6457
'200':
65-
description: blockchain block transactions
58+
description: blockchain config
6659
content:
6760
application/json:
6861
schema:
69-
$ref: '#/components/schemas/Transactions'
62+
$ref: '#/components/schemas/BlockchainConfig'
7063
'default':
7164
$ref: '#/components/responses/Error'
72-
/v2/blockchain/blocks/{block_id}/config/raw:
65+
/v2/blockchain/masterchain/{masterchain_seqno}/config/raw:
7366
get:
7467
description: Get raw blockchain config from a specific block, if present.
7568
operationId: getRawBlockchainConfigFromBlock
7669
tags:
7770
- Blockchain
7871
parameters:
79-
- $ref: '#/components/parameters/blockchainBlockIDParameter'
72+
- $ref: '#/components/parameters/masterchainSeqno'
8073
responses:
8174
'200':
8275
description: blockchain config
@@ -86,6 +79,23 @@ paths:
8679
$ref: '#/components/schemas/RawBlockchainConfig'
8780
'default':
8881
$ref: '#/components/responses/Error'
82+
/v2/blockchain/blocks/{block_id}/transactions:
83+
get:
84+
description: Get transactions from block
85+
operationId: getBlockchainBlockTransactions
86+
tags:
87+
- Blockchain
88+
parameters:
89+
- $ref: '#/components/parameters/blockchainBlockIDParameter'
90+
responses:
91+
'200':
92+
description: blockchain block transactions
93+
content:
94+
application/json:
95+
schema:
96+
$ref: '#/components/schemas/Transactions'
97+
'default':
98+
$ref: '#/components/responses/Error'
8999
/v2/blockchain/transactions/{transaction_id}:
90100
get:
91101
description: Get transaction data
@@ -356,6 +366,11 @@ paths:
356366
- Emulation
357367
parameters:
358368
- $ref: '#/components/parameters/i18n'
369+
- name: ignore_signature_check
370+
in: query
371+
required: false
372+
schema:
373+
type: boolean
359374
requestBody:
360375
$ref: "#/components/requestBodies/Boc"
361376
responses:
@@ -373,6 +388,12 @@ paths:
373388
operationId: emulateMessageToTrace
374389
tags:
375390
- Emulation
391+
parameters:
392+
- name: ignore_signature_check
393+
in: query
394+
required: false
395+
schema:
396+
type: boolean
376397
requestBody:
377398
$ref: "#/components/requestBodies/Boc"
378399
responses:
@@ -393,7 +414,7 @@ paths:
393414
parameters:
394415
- $ref: '#/components/parameters/i18n'
395416
requestBody:
396-
$ref: "#/components/requestBodies/Boc"
417+
$ref: "#/components/requestBodies/EmulationBoc"
397418
responses:
398419
'200':
399420
description: emulated message
@@ -2205,6 +2226,15 @@ paths:
22052226
$ref: '#/components/responses/Error'
22062227
components:
22072228
parameters:
2229+
masterchainSeqno:
2230+
in: path
2231+
name: masterchain_seqno
2232+
required: true
2233+
description: "masterchain block seqno"
2234+
schema:
2235+
type: integer
2236+
format: int32
2237+
example: 123456
22082238
blockchainBlockIDParameter:
22092239
in: path
22102240
name: block_id
@@ -2486,6 +2516,34 @@ components:
24862516
items:
24872517
type: string
24882518
example: te6ccgECBQEAARUAAkWIAWTtae+KgtbrX26Bep8JSq8lFLfGOoyGR/xwdjfvpvEaHg
2519+
EmulationBoc:
2520+
description: bag-of-cells serialized to base64 and additional parameters to configure emulation
2521+
required: true
2522+
content:
2523+
application/json:
2524+
schema:
2525+
type: object
2526+
required:
2527+
- boc
2528+
properties:
2529+
boc:
2530+
type: string
2531+
example: te6ccgECBQEAARUAAkWIAWTtae+KgtbrX26Bep8JSq8lFLfGOoyGR/xwdjfvpvEaHg
2532+
params:
2533+
type: array
2534+
description: additional per account configuration
2535+
items:
2536+
type: object
2537+
required:
2538+
- address
2539+
properties:
2540+
address:
2541+
type: string
2542+
example: "0:97146a46acc2654y27947f14c4a4b14273e954f78bc017790b41208b0043200b"
2543+
balance:
2544+
type: integer
2545+
format: int64
2546+
example: 10000000000
24892547
Boc:
24902548
description: bag-of-cells serialized to base64
24912549
required: true
@@ -4497,6 +4555,7 @@ components:
44974555
- SmartContractExec
44984556
- ElectionsRecoverStake
44994557
- ElectionsDepositStake
4558+
- DomainRenew
45004559
- Unknown
45014560
status:
45024561
type: string
@@ -4538,6 +4597,8 @@ components:
45384597
$ref: '#/components/schemas/JettonSwapAction'
45394598
SmartContractExec:
45404599
$ref: '#/components/schemas/SmartContractAction'
4600+
DomainRenew:
4601+
$ref: '#/components/schemas/DomainRenewAction'
45414602
simple_preview:
45424603
$ref: '#/components/schemas/ActionSimplePreview'
45434604
TonTransferAction:
@@ -4587,6 +4648,21 @@ components:
45874648
type: string
45884649
refund:
45894650
$ref: '#/components/schemas/Refund'
4651+
DomainRenewAction:
4652+
type: object
4653+
required:
4654+
- domain
4655+
- contract_address
4656+
- renewer
4657+
properties:
4658+
domain:
4659+
type: string
4660+
example: "vasya.ton"
4661+
contract_address:
4662+
type: string
4663+
example: "0:da6b1b6663a0e4d18cc8574ccd9db5296e367dd9324706f3bbd9eb1cd2caf0bf"
4664+
renewer:
4665+
$ref: '#/components/schemas/AccountAddress'
45904666
NftItemTransferAction:
45914667
type: object
45924668
required:

0 commit comments

Comments
 (0)