Skip to content

Commit

Permalink
[master] [1.20.0-rc] Add support for TON-SDK 1.20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
risentveber committed Jul 24, 2021
1 parent 072ea8a commit 9b6b751
Show file tree
Hide file tree
Showing 11 changed files with 51 additions and 19 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.19.0-green.svg)](https://github.com/tonlabs/TON-SDK/tree/1.19.0)
[![TON-SDK](https://img.shields.io/badge/TON_SDK-1.20.0-green.svg)](https://github.com/tonlabs/TON-SDK/tree/1.20.0)
[![TON local-node docker image](https://img.shields.io/badge/TON_local_node-0.28.3-green.svg)](https://hub.docker.com/layers/tonlabs/local-node/0.28.3/images/sha256-d4c9b11b9a811602423c44f3529d81cb91fa13bf45617d81a6ca8e057fce1506)
[![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
35 changes: 29 additions & 6 deletions api-spec.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.19.0",
"version": "1.20.0",
"modules": [
{
"name": "client",
Expand Down Expand Up @@ -464,6 +464,17 @@
"summary": "Maximum value for the endpoint's blockchain data syncronization latency (time-lag). Library periodically checks the current endpoint for blockchain data syncronization latency. If the latency (time-lag) is less then `NetworkConfig.max_latency` then library selects another endpoint.",
"description": "Must be specified in milliseconds. Default is 60000 (1 min)."
},
{
"name": "query_timeout",
"type": "Optional",
"optional_inner": {
"type": "Number",
"number_type": "UInt",
"number_size": 32
},
"summary": "Default timeout for http requests.",
"description": "Is is used when no timeout specified for the request to limit the answer waiting time. If no answer received during the timeout requests ends with\nerror.\n\nMust be specified in milliseconds. Default is 60000 (1 min)."
},
{
"name": "access_key",
"type": "Optional",
Expand Down Expand Up @@ -1465,7 +1476,7 @@
{
"name": "secret",
"type": "String",
"summary": "Signer's secret key - unprefixed 0-padded to 64 symbols hex string",
"summary": "Signer's secret key - unprefixed 0-padded to 128 symbols hex string (concatenation of 64 symbols secret and 64 symbols public keys). See `nacl_sign_keypair_from_secret_key`.",
"description": null
}
],
Expand Down Expand Up @@ -2930,7 +2941,7 @@
{
"name": "nacl_sign_keypair_from_secret_key",
"summary": "Generates a key pair for signing from the secret key",
"description": null,
"description": "**NOTE:** In the result the secret key is actually the concatenation\nof secret and public keys (128 symbols hex string) by design of [NaCL](http://nacl.cr.yp.to/sign.html).\nSee also [the stackexchange question](https://crypto.stackexchange.com/questions/54353/).",
"params": [
{
"name": "_context",
Expand Down Expand Up @@ -4871,6 +4882,18 @@
"summary": null,
"description": null
},
{
"name": "version",
"type": "Optional",
"optional_inner": {
"type": "Optional",
"optional_inner": {
"type": "String"
}
},
"summary": null,
"description": null
},
{
"name": "header",
"type": "Optional",
Expand Down Expand Up @@ -5492,8 +5515,8 @@
{
"name": "data",
"type": "String",
"summary": "Data BOC",
"description": "Must be encoded with base64"
"summary": "Data BOC or BOC handle",
"description": null
}
],
"summary": null,
Expand Down Expand Up @@ -5826,7 +5849,7 @@
"description": "Note: this feature requires ABI 2.1 or higher.",
"params": [
{
"name": "_context",
"name": "context",
"type": "Generic",
"generic_name": "Arc",
"generic_args": [
Expand Down
6 changes: 3 additions & 3 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 09 Jul 21 11:03 UTC
// DON'T EDIT THIS FILE! It is generated via 'task generate' at 22 Jul 21 08:39 UTC
//
// Mod abi
//
Expand Down Expand Up @@ -433,6 +433,7 @@ type AbiFunction struct {
type AbiContract struct {
ABIVersion null.Uint32 `json:"ABI version"` // optional
AbiVersion null.Uint32 `json:"abi_version"` // optional
Version *null.String `json:"version"` // optional
Header []string `json:"header"` // optional
Functions []AbiFunction `json:"functions"` // optional
Events []AbiEvent `json:"events"` // optional
Expand Down Expand Up @@ -645,8 +646,7 @@ type ResultOfEncodeAccount struct {
type ParamsOfDecodeAccountData struct {
// Contract ABI.
Abi Abi `json:"abi"`
// Data BOC.
// Must be encoded with base64.
// Data BOC or BOC handle.
Data string `json:"data"`
}

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 09 Jul 21 11:03 UTC
// DON'T EDIT THIS FILE! It is generated via 'task generate' at 22 Jul 21 08:39 UTC
//
// Mod boc
//
Expand Down
8 changes: 7 additions & 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 09 Jul 21 11:03 UTC
// DON'T EDIT THIS FILE! It is generated via 'task generate' at 22 Jul 21 08:39 UTC
//
// Mod client
//
Expand Down Expand Up @@ -142,6 +142,12 @@ type NetworkConfig struct {
// Maximum value for the endpoint's blockchain data synchronization latency (time-lag). Library periodically checks the current endpoint for blockchain data synchronization latency. If the latency (time-lag) is less then `NetworkConfig.max_latency` then library selects another endpoint.
// Must be specified in milliseconds. Default is 60000 (1 min).
MaxLatency null.Uint32 `json:"max_latency"` // optional
// Default timeout for http requests.
// Is is used when no timeout specified for the request to limit the answer waiting time. If no answer received during the timeout requests ends with
// error.
//
// Must be specified in milliseconds. Default is 60000 (1 min).
QueryTimeout null.Uint32 `json:"query_timeout"` // optional
// Access key to GraphQL API.
// At the moment is not used in production.
AccessKey null.String `json:"access_key"` // optional
Expand Down
7 changes: 5 additions & 2 deletions 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 09 Jul 21 11:03 UTC
// DON'T EDIT THIS FILE! It is generated via 'task generate' at 22 Jul 21 08:39 UTC
//
// Mod crypto
//
Expand Down Expand Up @@ -208,7 +208,7 @@ type ParamsOfNaclSignKeyPairFromSecret struct {
type ParamsOfNaclSign struct {
// Data that must be signed encoded in `base64`.
Unsigned string `json:"unsigned"`
// Signer's secret key - unprefixed 0-padded to 64 symbols hex string.
// Signer's secret key - unprefixed 0-padded to 128 symbols hex string (concatenation of 64 symbols secret and 64 symbols public keys). See `nacl_sign_keypair_from_secret_key`.
Secret string `json:"secret"`
}

Expand Down Expand Up @@ -979,6 +979,9 @@ func (c *Client) CryptoScrypt(p *ParamsOfScrypt) (*ResultOfScrypt, error) {
}

// Generates a key pair for signing from the secret key.
// **NOTE:** In the result the secret key is actually the concatenation
// of secret and public keys (128 symbols hex string) by design of [NaCL](http://nacl.cr.yp.to/sign.html).
// See also [the stackexchange question](https://crypto.stackexchange.com/questions/54353/).
func (c *Client) CryptoNaclSignKeypairFromSecretKey(p *ParamsOfNaclSignKeyPairFromSecret) (*KeyPair, error) {
result := new(KeyPair)

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 09 Jul 21 11:03 UTC
// DON'T EDIT THIS FILE! It is generated via 'task generate' at 22 Jul 21 08:39 UTC
//
// Mod debot
//
Expand Down
2 changes: 1 addition & 1 deletion client/mod_net.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 09 Jul 21 11:03 UTC
// DON'T EDIT THIS FILE! It is generated via 'task generate' at 22 Jul 21 08:39 UTC
//
// Mod net
//
Expand Down
2 changes: 1 addition & 1 deletion client/mod_processing.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 09 Jul 21 11:03 UTC
// DON'T EDIT THIS FILE! It is generated via 'task generate' at 22 Jul 21 08:39 UTC
//
// Mod processing
//
Expand Down
2 changes: 1 addition & 1 deletion client/mod_tvm.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 09 Jul 21 11:03 UTC
// DON'T EDIT THIS FILE! It is generated via 'task generate' at 22 Jul 21 08:39 UTC
//
// Mod tvm
//
Expand Down
2 changes: 1 addition & 1 deletion client/mod_utils.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 09 Jul 21 11:03 UTC
// DON'T EDIT THIS FILE! It is generated via 'task generate' at 22 Jul 21 08:39 UTC
//
// Mod utils
//
Expand Down

0 comments on commit 9b6b751

Please sign in to comment.