From 919fac8b658af0ccc2d40bf940a63e06832d3200 Mon Sep 17 00:00:00 2001 From: Boris Strelnikov Date: Sat, 12 Nov 2022 11:59:52 +0300 Subject: [PATCH] [v1.38.1-rc] Add support for SDK 1.38.1 --- .github/workflows/CI.yml | 2 +- .golangci.yml | 1 + Readme.md | 2 +- api-spec.json | 9 ++++++++- client/doc.go | 26 +++++++++++++++----------- client/mod_abi.gen.go | 2 +- client/mod_boc.gen.go | 2 +- client/mod_client.gen.go | 2 +- client/mod_crypto.gen.go | 2 +- client/mod_debot.gen.go | 2 +- client/mod_net.gen.go | 4 +++- client/mod_processing.gen.go | 2 +- client/mod_processing.go | 12 ++++++------ client/mod_proofs.gen.go | 2 +- client/mod_tvm.gen.go | 2 +- client/mod_utils.gen.go | 2 +- 16 files changed, 44 insertions(+), 30 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index cad8b00..e08b833 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -40,4 +40,4 @@ jobs: env: CGO_LDFLAGS: '-L/tmp/ -lton_client' with: - version: v1.46 \ No newline at end of file + version: v1.50 diff --git a/.golangci.yml b/.golangci.yml index a5cd223..e13b5ef 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -26,6 +26,7 @@ linters: - exhaustruct - revive - stylecheck + - nosnakecase enable-all: true linters-settings: goimports: diff --git a/Readme.md b/Readme.md index 2dd09cb..5cb43e5 100644 --- a/Readme.md +++ b/Readme.md @@ -1,6 +1,6 @@ # TON SDK client Golang -[![EVER-SDK](https://img.shields.io/badge/EVER_SDK-1.38.0-green.svg)](https://github.com/tonlabs/EVER-SDK/tree/1.38.0) +[![EVER-SDK](https://img.shields.io/badge/EVER_SDK-1.38.1-green.svg)](https://github.com/tonlabs/EVER-SDK/tree/1.38.1) [![TON local-node docker image](https://img.shields.io/badge/TON_local_node-0.33.0-green.svg)](https://hub.docker.com/layers/local-node/tonlabs/local-node/0.33.0/images/sha256-40a544432089f2d730f3dd0542fcb59bef6c5192b5d374fdae3a7ea6417070c4) [![Chat Telegram](https://img.shields.io/badge/chat-Telegram-9cf.svg)](https://t.me/RADIANCE_EVER_SDK) [![Documentation](https://godoc.org/github.com/radianceteam/everscale-client-go/client?status.svg)](https://godoc.org/github.com/radianceteam/everscale-client-go/client) diff --git a/api-spec.json b/api-spec.json index 3077bd7..c3a3c43 100644 --- a/api-spec.json +++ b/api-spec.json @@ -1,5 +1,5 @@ { - "version": "1.38.0", + "version": "1.38.1", "modules": [ { "name": "client", @@ -11310,6 +11310,13 @@ "value": "615", "summary": null, "description": null + }, + { + "name": "QueryTransactionTreeTimeout", + "type": "Number", + "value": "616", + "summary": null, + "description": null } ], "summary": null, diff --git a/client/doc.go b/client/doc.go index dd9107f..3ebaa09 100644 --- a/client/doc.go +++ b/client/doc.go @@ -2,16 +2,20 @@ // // For methods available see Client interface. // -// Example usage -// import "github.com/radianceteam/everscale-client-go/Client" -// ... -// c, err := client.NewClient(client.Config{ -// Network: Client.ConfigNetwork{ServerAddress: "net.ton.dev"}, -// }) -// if err != nil { -// return err -// } -// defer c.Close() +// # Example usage +// +// import "github.com/radianceteam/everscale-client-go/Client" +// +// func main() { +// client, err := client.NewClient(client.Config{ +// Network: &client.NetworkConfig{ServerAddress: null.NewString("net.ton.dev", true)}, +// }, client.WrapperConfig{MaxCGOConcurrentThreads: 10}) // -// version, err := c.ClientVersion() +// if err != nil { +// return err +// } +// defer c.Close() +// +// version, err := c.ClientVersion() +// } package client diff --git a/client/mod_abi.gen.go b/client/mod_abi.gen.go index c33c565..f64b13f 100644 --- a/client/mod_abi.gen.go +++ b/client/mod_abi.gen.go @@ -1,6 +1,6 @@ package client -// DON'T EDIT THIS FILE! It is generated via 'task generate' at 17 Oct 22 06:48 UTC +// DON'T EDIT THIS FILE! It is generated via 'task generate' at 12 Nov 22 09:13 UTC // // Mod abi // diff --git a/client/mod_boc.gen.go b/client/mod_boc.gen.go index 498c17b..0ea3f48 100644 --- a/client/mod_boc.gen.go +++ b/client/mod_boc.gen.go @@ -1,6 +1,6 @@ package client -// DON'T EDIT THIS FILE! It is generated via 'task generate' at 17 Oct 22 06:48 UTC +// DON'T EDIT THIS FILE! It is generated via 'task generate' at 12 Nov 22 09:13 UTC // // Mod boc // diff --git a/client/mod_client.gen.go b/client/mod_client.gen.go index 5be06dc..9a7c6d4 100644 --- a/client/mod_client.gen.go +++ b/client/mod_client.gen.go @@ -1,6 +1,6 @@ package client -// DON'T EDIT THIS FILE! It is generated via 'task generate' at 17 Oct 22 06:48 UTC +// DON'T EDIT THIS FILE! It is generated via 'task generate' at 12 Nov 22 09:13 UTC // // Mod client // diff --git a/client/mod_crypto.gen.go b/client/mod_crypto.gen.go index b558bd6..c12760a 100644 --- a/client/mod_crypto.gen.go +++ b/client/mod_crypto.gen.go @@ -1,6 +1,6 @@ package client -// DON'T EDIT THIS FILE! It is generated via 'task generate' at 17 Oct 22 06:48 UTC +// DON'T EDIT THIS FILE! It is generated via 'task generate' at 12 Nov 22 09:13 UTC // // Mod crypto // diff --git a/client/mod_debot.gen.go b/client/mod_debot.gen.go index 16b10cc..63d48cc 100644 --- a/client/mod_debot.gen.go +++ b/client/mod_debot.gen.go @@ -1,6 +1,6 @@ package client -// DON'T EDIT THIS FILE! It is generated via 'task generate' at 17 Oct 22 06:48 UTC +// DON'T EDIT THIS FILE! It is generated via 'task generate' at 12 Nov 22 09:13 UTC // // Mod debot // diff --git a/client/mod_net.gen.go b/client/mod_net.gen.go index f578d43..6f85f07 100644 --- a/client/mod_net.gen.go +++ b/client/mod_net.gen.go @@ -1,6 +1,6 @@ package client -// DON'T EDIT THIS FILE! It is generated via 'task generate' at 17 Oct 22 06:48 UTC +// DON'T EDIT THIS FILE! It is generated via 'task generate' at 12 Nov 22 09:13 UTC // // Mod net // @@ -29,6 +29,7 @@ const ( GraphqlWebsocketInitErrorNetErrorCode = 613 NetworkModuleResumedNetErrorCode = 614 UnauthorizedNetErrorCode = 615 + QueryTransactionTreeTimeoutNetErrorCode = 616 ) func init() { // nolint gochecknoinits @@ -47,6 +48,7 @@ func init() { // nolint gochecknoinits errorCodesToErrorTypes[GraphqlWebsocketInitErrorNetErrorCode] = "GraphqlWebsocketInitErrorNetErrorCode" errorCodesToErrorTypes[NetworkModuleResumedNetErrorCode] = "NetworkModuleResumedNetErrorCode" errorCodesToErrorTypes[UnauthorizedNetErrorCode] = "UnauthorizedNetErrorCode" + errorCodesToErrorTypes[QueryTransactionTreeTimeoutNetErrorCode] = "QueryTransactionTreeTimeoutNetErrorCode" } type OrderBy struct { diff --git a/client/mod_processing.gen.go b/client/mod_processing.gen.go index 97ddd3b..020b9f3 100644 --- a/client/mod_processing.gen.go +++ b/client/mod_processing.gen.go @@ -1,6 +1,6 @@ package client -// DON'T EDIT THIS FILE! It is generated via 'task generate' at 17 Oct 22 06:48 UTC +// DON'T EDIT THIS FILE! It is generated via 'task generate' at 12 Nov 22 09:13 UTC // // Mod processing // diff --git a/client/mod_processing.go b/client/mod_processing.go index 09978aa..68f1066 100644 --- a/client/mod_processing.go +++ b/client/mod_processing.go @@ -72,16 +72,16 @@ func (c *Client) ProcessingSendMessage(p *ParamsOfSendMessage, callback EventCal // // When the ABI header `expire` is present, the processing uses // `message expiration` strategy: -// - The maximum block gen time is set to -// `message_expiration_time + transaction_wait_timeout`. -// - When maximum block gen time is reached the processing will -// be finished with `MessageExpired` error. +// - The maximum block gen time is set to +// `message_expiration_time + transaction_wait_timeout`. +// - When maximum block gen time is reached the processing will +// be finished with `MessageExpired` error. // // When the ABI header `expire` isn't present or `abi` parameter // isn't specified, the processing uses `transaction waiting` // strategy: -// - The maximum block gen time is set to -// `now() + transaction_wait_timeout`. +// - The maximum block gen time is set to +// `now() + transaction_wait_timeout`. // // - If maximum block gen time is reached and no result transaction is found // the processing will exit with an error. diff --git a/client/mod_proofs.gen.go b/client/mod_proofs.gen.go index 39e5c57..59c8dd0 100644 --- a/client/mod_proofs.gen.go +++ b/client/mod_proofs.gen.go @@ -1,6 +1,6 @@ package client -// DON'T EDIT THIS FILE! It is generated via 'task generate' at 17 Oct 22 06:48 UTC +// DON'T EDIT THIS FILE! It is generated via 'task generate' at 12 Nov 22 09:13 UTC // // Mod proofs // diff --git a/client/mod_tvm.gen.go b/client/mod_tvm.gen.go index fe75d1b..c2945c4 100644 --- a/client/mod_tvm.gen.go +++ b/client/mod_tvm.gen.go @@ -1,6 +1,6 @@ package client -// DON'T EDIT THIS FILE! It is generated via 'task generate' at 17 Oct 22 06:48 UTC +// DON'T EDIT THIS FILE! It is generated via 'task generate' at 12 Nov 22 09:13 UTC // // Mod tvm // diff --git a/client/mod_utils.gen.go b/client/mod_utils.gen.go index 33cf293..b2f9f34 100644 --- a/client/mod_utils.gen.go +++ b/client/mod_utils.gen.go @@ -1,6 +1,6 @@ package client -// DON'T EDIT THIS FILE! It is generated via 'task generate' at 17 Oct 22 06:48 UTC +// DON'T EDIT THIS FILE! It is generated via 'task generate' at 12 Nov 22 09:13 UTC // // Mod utils //