Skip to content

Commit

Permalink
update sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksej-paschenko committed Nov 23, 2023
1 parent 1f281cc commit 329638a
Show file tree
Hide file tree
Showing 7 changed files with 807 additions and 36 deletions.
110 changes: 93 additions & 17 deletions api/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,7 @@ paths:
tags:
- Blockchain
parameters:
- name: masterchain_seqno
in: path
required: true
description: "masterchain block seqno"
schema:
type: integer
format: int32
example: 123456
- $ref: '#/components/parameters/masterchainSeqno'
responses:
'200':
description: blockchain block shards
Expand All @@ -52,31 +45,31 @@ paths:
$ref: '#/components/schemas/BlockchainBlockShards'
'default':
$ref: '#/components/responses/Error'
/v2/blockchain/blocks/{block_id}/transactions:
/v2/blockchain/masterchain/{masterchain_seqno}/config:
get:
description: Get transactions from block
operationId: getBlockchainBlockTransactions
description: Get blockchain config from a specific block, if present.
operationId: getBlockchainConfigFromBlock
tags:
- Blockchain
parameters:
- $ref: '#/components/parameters/blockchainBlockIDParameter'
- $ref: '#/components/parameters/masterchainSeqno'
responses:
'200':
description: blockchain block transactions
description: blockchain config
content:
application/json:
schema:
$ref: '#/components/schemas/Transactions'
$ref: '#/components/schemas/BlockchainConfig'
'default':
$ref: '#/components/responses/Error'
/v2/blockchain/blocks/{block_id}/config/raw:
/v2/blockchain/masterchain/{masterchain_seqno}/config/raw:
get:
description: Get raw blockchain config from a specific block, if present.
operationId: getRawBlockchainConfigFromBlock
tags:
- Blockchain
parameters:
- $ref: '#/components/parameters/blockchainBlockIDParameter'
- $ref: '#/components/parameters/masterchainSeqno'
responses:
'200':
description: blockchain config
Expand All @@ -86,6 +79,23 @@ paths:
$ref: '#/components/schemas/RawBlockchainConfig'
'default':
$ref: '#/components/responses/Error'
/v2/blockchain/blocks/{block_id}/transactions:
get:
description: Get transactions from block
operationId: getBlockchainBlockTransactions
tags:
- Blockchain
parameters:
- $ref: '#/components/parameters/blockchainBlockIDParameter'
responses:
'200':
description: blockchain block transactions
content:
application/json:
schema:
$ref: '#/components/schemas/Transactions'
'default':
$ref: '#/components/responses/Error'
/v2/blockchain/transactions/{transaction_id}:
get:
description: Get transaction data
Expand Down Expand Up @@ -356,6 +366,11 @@ paths:
- Emulation
parameters:
- $ref: '#/components/parameters/i18n'
- name: ignore_signature_check
in: query
required: false
schema:
type: boolean
requestBody:
$ref: "#/components/requestBodies/Boc"
responses:
Expand All @@ -373,6 +388,12 @@ paths:
operationId: emulateMessageToTrace
tags:
- Emulation
parameters:
- name: ignore_signature_check
in: query
required: false
schema:
type: boolean
requestBody:
$ref: "#/components/requestBodies/Boc"
responses:
Expand All @@ -393,7 +414,7 @@ paths:
parameters:
- $ref: '#/components/parameters/i18n'
requestBody:
$ref: "#/components/requestBodies/Boc"
$ref: "#/components/requestBodies/EmulationBoc"
responses:
'200':
description: emulated message
Expand Down Expand Up @@ -2205,6 +2226,15 @@ paths:
$ref: '#/components/responses/Error'
components:
parameters:
masterchainSeqno:
in: path
name: masterchain_seqno
required: true
description: "masterchain block seqno"
schema:
type: integer
format: int32
example: 123456
blockchainBlockIDParameter:
in: path
name: block_id
Expand Down Expand Up @@ -2486,6 +2516,34 @@ components:
items:
type: string
example: te6ccgECBQEAARUAAkWIAWTtae+KgtbrX26Bep8JSq8lFLfGOoyGR/xwdjfvpvEaHg
EmulationBoc:
description: bag-of-cells serialized to base64 and additional parameters to configure emulation
required: true
content:
application/json:
schema:
type: object
required:
- boc
properties:
boc:
type: string
example: te6ccgECBQEAARUAAkWIAWTtae+KgtbrX26Bep8JSq8lFLfGOoyGR/xwdjfvpvEaHg
params:
type: array
description: additional per account configuration
items:
type: object
required:
- address
properties:
address:
type: string
example: "0:97146a46acc2654y27947f14c4a4b14273e954f78bc017790b41208b0043200b"
balance:
type: integer
format: int64
example: 10000000000
Boc:
description: bag-of-cells serialized to base64
required: true
Expand Down Expand Up @@ -4497,6 +4555,7 @@ components:
- SmartContractExec
- ElectionsRecoverStake
- ElectionsDepositStake
- DomainRenew
- Unknown
status:
type: string
Expand Down Expand Up @@ -4538,6 +4597,8 @@ components:
$ref: '#/components/schemas/JettonSwapAction'
SmartContractExec:
$ref: '#/components/schemas/SmartContractAction'
DomainRenew:
$ref: '#/components/schemas/DomainRenewAction'
simple_preview:
$ref: '#/components/schemas/ActionSimplePreview'
TonTransferAction:
Expand Down Expand Up @@ -4587,6 +4648,21 @@ components:
type: string
refund:
$ref: '#/components/schemas/Refund'
DomainRenewAction:
type: object
required:
- domain
- contract_address
- renewer
properties:
domain:
type: string
example: "vasya.ton"
contract_address:
type: string
example: "0:da6b1b6663a0e4d18cc8574ccd9db5296e367dd9324706f3bbd9eb1cd2caf0bf"
renewer:
$ref: '#/components/schemas/AccountAddress'
NftItemTransferAction:
type: object
required:
Expand Down
Loading

0 comments on commit 329638a

Please sign in to comment.