Skip to content

Commit

Permalink
Merge pull request #14 from radianceteam/1.16.0-rc
Browse files Browse the repository at this point in the history
[1.16.0-rc] Add support for TON-SDK 1.16.0
  • Loading branch information
risentveber authored May 26, 2021
2 parents b7bddb8 + e421ae2 commit 6327cf3
Show file tree
Hide file tree
Showing 11 changed files with 317 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# TON SDK client Golang

[![TON-SDK](https://img.shields.io/badge/TON_SDK-1.15.0-green.svg)](https://github.com/tonlabs/TON-SDK/tree/1.15.0)
[![TON-SDK](https://img.shields.io/badge/TON_SDK-1.16.0-green.svg)](https://github.com/tonlabs/TON-SDK/tree/1.16.0)
[![TON local-node docker image](https://img.shields.io/badge/TON_version-0.24.11-green.svg)](https://hub.docker.com/layers/tonlabs/local-node/0.24.8/images/sha256-62239cb2b215cbca7e8792812e27fa293727cfd8b17d3e58523c8a15a3673504?context=explore)
[![Chat Telegram](https://img.shields.io/badge/chat-Telegram-9cf.svg)](https://t.me/RADIANCE_TON_SDK)
[![Documentation](https://godoc.org/github.com/radianceteam/ton-client-go/client?status.svg)](https://godoc.org/github.com/radianceteam/ton-client-go/client)
Expand Down
232 changes: 229 additions & 3 deletions api-spec.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.15.0",
"version": "1.16.0",
"modules": [
{
"name": "client",
Expand Down Expand Up @@ -4281,9 +4281,9 @@
"struct_fields": [
{
"name": "key",
"type": "BigInt",
"type": "Number",
"number_type": "UInt",
"number_size": 64,
"number_size": 32,
"summary": null,
"description": null
},
Expand Down Expand Up @@ -8091,6 +8091,139 @@
"summary": null,
"description": null
},
{
"name": "TransactionNode",
"type": "Struct",
"struct_fields": [
{
"name": "id",
"type": "String",
"summary": "Transaction id.",
"description": null
},
{
"name": "in_msg",
"type": "String",
"summary": "In message id.",
"description": null
},
{
"name": "out_msgs",
"type": "Array",
"array_item": {
"type": "String"
},
"summary": "Out message ids.",
"description": null
},
{
"name": "account_addr",
"type": "String",
"summary": "Account address.",
"description": null
},
{
"name": "total_fees",
"type": "String",
"summary": "Transactions total fees.",
"description": null
},
{
"name": "aborted",
"type": "Boolean",
"summary": "Aborted flag.",
"description": null
},
{
"name": "exit_code",
"type": "Optional",
"optional_inner": {
"type": "Number",
"number_type": "UInt",
"number_size": 32
},
"summary": "Compute phase exit code.",
"description": null
}
],
"summary": null,
"description": null
},
{
"name": "MessageNode",
"type": "Struct",
"struct_fields": [
{
"name": "id",
"type": "String",
"summary": "Message id.",
"description": null
},
{
"name": "src_transaction_id",
"type": "Optional",
"optional_inner": {
"type": "String"
},
"summary": "Source transaction id.",
"description": "This field is missing for an external inbound messages."
},
{
"name": "dst_transaction_id",
"type": "Optional",
"optional_inner": {
"type": "String"
},
"summary": "Destination transaction id.",
"description": "This field is missing for an external outbound messages."
},
{
"name": "src",
"type": "Optional",
"optional_inner": {
"type": "String"
},
"summary": "Source address.",
"description": null
},
{
"name": "dst",
"type": "Optional",
"optional_inner": {
"type": "String"
},
"summary": "Destination address.",
"description": null
},
{
"name": "value",
"type": "Optional",
"optional_inner": {
"type": "String"
},
"summary": "Transferred tokens value.",
"description": null
},
{
"name": "bounce",
"type": "Boolean",
"summary": "Bounce flag.",
"description": null
},
{
"name": "decoded_body",
"type": "Optional",
"optional_inner": {
"type": "Ref",
"ref_name": "abi.DecodedMessageBody"
},
"summary": "Decoded body.",
"description": "Library tries to decode message body using provided `params.abi_registry`.\nThis field will be missing if none of the provided abi can be used to decode."
}
],
"summary": null,
"description": null
},
{
"name": "ParamsOfQuery",
"type": "Struct",
Expand Down Expand Up @@ -8499,6 +8632,61 @@
],
"summary": null,
"description": null
},
{
"name": "ParamsOfQueryTransactionTree",
"type": "Struct",
"struct_fields": [
{
"name": "in_msg",
"type": "String",
"summary": "Input message id.",
"description": null
},
{
"name": "abi_registry",
"type": "Optional",
"optional_inner": {
"type": "Array",
"array_item": {
"type": "Ref",
"ref_name": "abi.Abi"
}
},
"summary": "List of contract ABIs that will be used to decode message bodies. Library will try to decode each returned message body using any ABI from the registry.",
"description": null
}
],
"summary": null,
"description": null
},
{
"name": "ResultOfQueryTransactionTree",
"type": "Struct",
"struct_fields": [
{
"name": "messages",
"type": "Array",
"array_item": {
"type": "Ref",
"ref_name": "net.MessageNode"
},
"summary": "Messages.",
"description": null
},
{
"name": "transactions",
"type": "Array",
"array_item": {
"type": "Ref",
"ref_name": "net.TransactionNode"
},
"summary": "Transactions.",
"description": null
}
],
"summary": null,
"description": null
}
],
"functions": [
Expand Down Expand Up @@ -9014,6 +9202,44 @@
]
},
"errors": null
},
{
"name": "query_transaction_tree",
"summary": "Returns transactions tree for specific message.",
"description": "Performs recursive retrieval of the transactions tree produced by the specific message:\nin_msg -> dst_transaction -> out_messages -> dst_transaction -> ...\n\nAll retrieved messages and transactions will be included\ninto `result.messages` and `result.transactions` respectively.\n\nThe retrieval process will stop when the retrieved transaction count is more than 50.\n\nIt is guaranteed that each message in `result.messages` has the corresponding transaction\nin the `result.transactions`.\n\nBut there are no guaranties that all messages from transactions `out_msgs` are\npresented in `result.messages`.\nSo the application have to continue retrieval for missing messages if it requires.",
"params": [
{
"name": "context",
"type": "Generic",
"generic_name": "Arc",
"generic_args": [
{
"type": "Ref",
"ref_name": "ClientContext"
}
],
"summary": null,
"description": null
},
{
"name": "params",
"type": "Ref",
"ref_name": "net.ParamsOfQueryTransactionTree",
"summary": null,
"description": null
}
],
"result": {
"type": "Generic",
"generic_name": "ClientResult",
"generic_args": [
{
"type": "Ref",
"ref_name": "net.ResultOfQueryTransactionTree"
}
]
},
"errors": null
}
]
},
Expand Down
4 changes: 2 additions & 2 deletions client/mod_abi.gen.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package client

// DON'T EDIT THIS FILE! It is generated via 'task generate' at 21 May 21 06:08 UTC
// DON'T EDIT THIS FILE! It is generated via 'task generate' at 26 May 21 07:49 UTC
//
// Mod abi
//
Expand Down Expand Up @@ -415,7 +415,7 @@ type AbiEvent struct {
}

type AbiData struct {
Key big.Int `json:"key"`
Key uint32 `json:"key"`
Name string `json:"name"`
Type string `json:"type"`
Components []AbiParam `json:"components"` // optional
Expand Down
2 changes: 1 addition & 1 deletion client/mod_boc.gen.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package client

// DON'T EDIT THIS FILE! It is generated via 'task generate' at 21 May 21 06:08 UTC
// DON'T EDIT THIS FILE! It is generated via 'task generate' at 26 May 21 07:49 UTC
//
// Mod boc
//
Expand Down
2 changes: 1 addition & 1 deletion client/mod_client.gen.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package client

// DON'T EDIT THIS FILE! It is generated via 'task generate' at 21 May 21 06:08 UTC
// DON'T EDIT THIS FILE! It is generated via 'task generate' at 26 May 21 07:49 UTC
//
// Mod client
//
Expand Down
2 changes: 1 addition & 1 deletion client/mod_crypto.gen.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package client

// DON'T EDIT THIS FILE! It is generated via 'task generate' at 21 May 21 06:08 UTC
// DON'T EDIT THIS FILE! It is generated via 'task generate' at 26 May 21 07:49 UTC
//
// Mod crypto
//
Expand Down
2 changes: 1 addition & 1 deletion client/mod_debot.gen.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package client

// DON'T EDIT THIS FILE! It is generated via 'task generate' at 21 May 21 06:08 UTC
// DON'T EDIT THIS FILE! It is generated via 'task generate' at 26 May 21 07:49 UTC
//
// Mod debot
//
Expand Down
Loading

0 comments on commit 6327cf3

Please sign in to comment.