Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update TonAPI SDK #47

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 35 additions & 54 deletions api/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1931,51 +1931,6 @@ paths:
$ref: '#/components/schemas/AccountInfoByStateInit'
'default':
$ref: '#/components/responses/Error'

/v2/wallet/backup:
get:
description: Get backup info
operationId: getWalletBackup
tags:
- Wallet
parameters:
- in: header
name: X-TonConnect-Auth
schema:
type: string
required: true
responses:
'200':
description: get wallet dump
content:
application/json:
schema:
type: object
required:
- dump
properties:
dump:
type: string
'default':
$ref: '#/components/responses/Error'
put:
description: Set backup info
operationId: setWalletBackup
tags:
- Wallet
parameters:
- in: header
name: X-TonConnect-Auth
schema:
type: string
required: true
requestBody:
$ref: "#/components/requestBodies/Backup"
responses:
'200':
description: success
'default':
$ref: '#/components/responses/Error'
/v2/wallet/auth/proof:
post:
description: Account verification and token issuance
Expand Down Expand Up @@ -3337,14 +3292,6 @@ components:
state_init:
type: string
format: cell-base64
Backup:
description: "Information for saving backup"
required: true
content:
application/octet-stream:
schema:
type: string
format: binary
TonConnectStateInit:
description: "Data that is expected"
required: true
Expand Down Expand Up @@ -5288,6 +5235,27 @@ components:
example: 0:0000000000000000000000000000000000000000000000000000000000000000
suspended_until:
type: integer

"45":
type: object
description: precompiled contracts
required:
- contracts
properties:
contracts:
type: array
items:
type: object
required:
- code_hash
- gas_usage
properties:
code_hash:
type: string
format: address
gas_usage:
type: integer
format: int64
"71":
type: object
description: Bridge parameters for wrapping TON in other networks.
Expand Down Expand Up @@ -6764,7 +6732,12 @@ components:
type: object
required:
- raw_messages
- valid_until
properties:
valid_until:
type: integer
format: int64
example: 1
raw_messages:
type: array
items:
Expand Down Expand Up @@ -6874,7 +6847,8 @@ components:
example: "9"
image:
type: string
example: "https://cache.tonapi.io/images/jetton.jpg"
example: "https://bitcoincash-example.github.io/website/logo.png"
description: this field currently returns a cached image URL (e.g., "https://cache.tonapi.io/images/jetton.jpg"). In the future, this will be replaced with the original URL from the metadata. The cached image is already available in the `preview` field of `JettonInfo` and will remain there.
description:
type: string
example: Wrapped Toncoin
Expand Down Expand Up @@ -6946,6 +6920,7 @@ components:
- metadata
- verification
- holders_count
- preview
properties:
mintable:
type: boolean
Expand All @@ -6958,6 +6933,9 @@ components:
$ref: '#/components/schemas/AccountAddress'
metadata:
$ref: '#/components/schemas/JettonMetadata'
preview:
type: string
example: "https://cache.tonapi.io/images/jetton.jpg"
verification:
$ref: '#/components/schemas/JettonVerificationType'
holders_count:
Expand Down Expand Up @@ -7413,3 +7391,6 @@ components:
properties:
error:
type: string
error_code:
type: integer
format: int64
187 changes: 0 additions & 187 deletions oas_client_gen.go

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

Loading
Loading