Skip to content

Commit

Permalink
[v1.39.0-rc] Add support for SDK 1.39.0
Browse files Browse the repository at this point in the history
  • Loading branch information
risentveber committed Dec 9, 2022
1 parent 919fac8 commit 9767280
Show file tree
Hide file tree
Showing 12 changed files with 137 additions and 36 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

[![EVER-SDK](https://img.shields.io/badge/EVER_SDK-1.38.1-green.svg)](https://github.com/tonlabs/EVER-SDK/tree/1.38.1)
[![EVER-SDK](https://img.shields.io/badge/EVER_SDK-1.39.0-green.svg)](https://github.com/tonlabs/EVER-SDK/tree/1.39.0)
[![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)
Expand Down
114 changes: 95 additions & 19 deletions api-spec.json

Large diffs are not rendered by default.

18 changes: 17 additions & 1 deletion 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 12 Nov 22 09:13 UTC
// DON'T EDIT THIS FILE! It is generated via 'task generate' at 09 Dec 22 11:48 UTC
//
// Mod abi
//
Expand Down Expand Up @@ -445,6 +445,16 @@ type AbiContract struct {
Fields []AbiParam `json:"fields"` // optional
}

type DataLayout string

const (

// Decode message body as function input parameters.
InputDataLayout DataLayout = "Input"
// Decode message body as function output.
OutputDataLayout DataLayout = "Output"
)

type ParamsOfEncodeMessageBody struct {
// Contract ABI.
Abi Abi `json:"abi"`
Expand Down Expand Up @@ -611,6 +621,9 @@ type ParamsOfDecodeMessage struct {
Message string `json:"message"`
// Flag allowing partial BOC decoding when ABI doesn't describe the full body BOC. Controls decoder behaviour when after decoding all described in ABI params there are some data left in BOC: `true` - return decoded values `false` - return error of incomplete BOC deserialization (default).
AllowPartial null.Bool `json:"allow_partial"` // optional
// Function name or function id if is known in advance.
FunctionName null.String `json:"function_name"` // optional
DataLayout *DataLayout `json:"data_layout"` // optional
}

type DecodedMessageBody struct {
Expand All @@ -633,6 +646,9 @@ type ParamsOfDecodeMessageBody struct {
IsInternal bool `json:"is_internal"`
// Flag allowing partial BOC decoding when ABI doesn't describe the full body BOC. Controls decoder behaviour when after decoding all described in ABI params there are some data left in BOC: `true` - return decoded values `false` - return error of incomplete BOC deserialization (default).
AllowPartial null.Bool `json:"allow_partial"` // optional
// Function name or function id if is known in advance.
FunctionName null.String `json:"function_name"` // optional
DataLayout *DataLayout `json:"data_layout"` // optional
}

type ParamsOfEncodeAccount struct {
Expand Down
4 changes: 2 additions & 2 deletions 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 12 Nov 22 09:13 UTC
// DON'T EDIT THIS FILE! It is generated via 'task generate' at 09 Dec 22 11:48 UTC
//
// Mod boc
//
Expand Down Expand Up @@ -121,7 +121,7 @@ type ResultOfParse struct {
type ParamsOfParseShardstate struct {
// BOC encoded as base64.
Boc string `json:"boc"`
// Shardstate identificator.
// Shardstate identifier.
ID string `json:"id"`
// Workchain shardstate belongs to.
WorkchainID int32 `json:"workchain_id"`
Expand Down
4 changes: 2 additions & 2 deletions 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 12 Nov 22 09:13 UTC
// DON'T EDIT THIS FILE! It is generated via 'task generate' at 09 Dec 22 11:48 UTC
//
// Mod client
//
Expand Down Expand Up @@ -178,7 +178,7 @@ const (

// Each GraphQL query uses separate HTTP request.
HTTPNetworkQueriesProtocol NetworkQueriesProtocol = "HTTP"
// All GraphQL queries will be served using single web socket connection.
// All GraphQL queries will be served using single web socket connection. SDK is tested to reliably handle 5000 parallel network requests (sending and processing messages, quering and awaiting blockchain data).
WsNetworkQueriesProtocol NetworkQueriesProtocol = "WS"
)

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 12 Nov 22 09:13 UTC
// DON'T EDIT THIS FILE! It is generated via 'task generate' at 09 Dec 22 11:48 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 12 Nov 22 09:13 UTC
// DON'T EDIT THIS FILE! It is generated via 'task generate' at 09 Dec 22 11:48 UTC
//
// Mod debot
//
Expand Down
17 changes: 13 additions & 4 deletions 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 12 Nov 22 09:13 UTC
// DON'T EDIT THIS FILE! It is generated via 'task generate' at 09 Dec 22 11:48 UTC
//
// Mod net
//
Expand Down Expand Up @@ -30,6 +30,7 @@ const (
NetworkModuleResumedNetErrorCode = 614
UnauthorizedNetErrorCode = 615
QueryTransactionTreeTimeoutNetErrorCode = 616
GraphqlConnectionErrorNetErrorCode = 617
)

func init() { // nolint gochecknoinits
Expand All @@ -49,6 +50,7 @@ func init() { // nolint gochecknoinits
errorCodesToErrorTypes[NetworkModuleResumedNetErrorCode] = "NetworkModuleResumedNetErrorCode"
errorCodesToErrorTypes[UnauthorizedNetErrorCode] = "UnauthorizedNetErrorCode"
errorCodesToErrorTypes[QueryTransactionTreeTimeoutNetErrorCode] = "QueryTransactionTreeTimeoutNetErrorCode"
errorCodesToErrorTypes[GraphqlConnectionErrorNetErrorCode] = "GraphqlConnectionErrorNetErrorCode"
}

type OrderBy struct {
Expand Down Expand Up @@ -362,8 +364,15 @@ type ParamsOfQueryTransactionTree struct {
// If some of the following messages and transactions are missing yet
// The maximum waiting time is regulated by this option.
//
// Default value is 60000 (1 min).
// Default value is 60000 (1 min). If `timeout` is set to 0 then function will wait infinitely
// until the whole transaction tree is executed.
Timeout null.Uint32 `json:"timeout"` // optional
// Maximum transaction count to wait.
// If transaction tree contains more transaction then this parameter then only first `transaction_max_count` transaction are awaited and returned.
//
// Default value is 50. If `transaction_max_count` is set to 0 then no limitation on
// transaction count is used and all transaction are returned.
TransactionMaxCount null.Uint32 `json:"transaction_max_count"` // optional
}

type ResultOfQueryTransactionTree struct {
Expand Down Expand Up @@ -650,7 +659,7 @@ func (c *Client) NetQueryCounterparties(p *ParamsOfQueryCounterparties) (*Result
//
// Function reads transactions layer by layer, by pages of 20 transactions.
//
// The retrieval prosess goes like this:
// The retrieval process goes like this:
// Let's assume we have an infinite chain of transactions and each transaction generates 5 messages.
// 1. Retrieve 1st message (input parameter) and corresponding transaction - put it into result.
// It is the first level of the tree of transactions - its root.
Expand Down Expand Up @@ -722,7 +731,7 @@ func (c *Client) NetCreateBlockIterator(p *ParamsOfCreateBlockIterator) (*Regist
}

// Resumes block iterator.
// The iterator stays exactly at the same position where the `resume_state` was catched.
// The iterator stays exactly at the same position where the `resume_state` was caught.
//
// Application should call the `remove_iterator` when iterator is no longer required.
func (c *Client) NetResumeBlockIterator(p *ParamsOfResumeBlockIterator) (*RegisteredIterator, error) {
Expand Down
4 changes: 2 additions & 2 deletions 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 12 Nov 22 09:13 UTC
// DON'T EDIT THIS FILE! It is generated via 'task generate' at 09 Dec 22 11:48 UTC
//
// Mod processing
//
Expand Down Expand Up @@ -148,7 +148,7 @@ type RempIncludedIntoBlockProcessingEvent struct {
JSON json.RawMessage `json:"json"`
}

// Notifies the app that the block candicate with the message has been accepted by the thread's validators.
// Notifies the app that the block candidate with the message has been accepted by the thread's validators.
type RempIncludedIntoAcceptedBlockProcessingEvent struct {
MessageID string `json:"message_id"`
Timestamp big.Int `json:"timestamp"`
Expand Down
2 changes: 1 addition & 1 deletion client/mod_proofs.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 12 Nov 22 09:13 UTC
// DON'T EDIT THIS FILE! It is generated via 'task generate' at 09 Dec 22 11:48 UTC
//
// Mod proofs
//
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 12 Nov 22 09:13 UTC
// DON'T EDIT THIS FILE! It is generated via 'task generate' at 09 Dec 22 11:48 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 12 Nov 22 09:13 UTC
// DON'T EDIT THIS FILE! It is generated via 'task generate' at 09 Dec 22 11:48 UTC
//
// Mod utils
//
Expand Down

0 comments on commit 9767280

Please sign in to comment.