From 59902403e2c09eba5bcc27b454793b8efa52e67d Mon Sep 17 00:00:00 2001 From: nerzh Date: Thu, 13 Oct 2022 17:17:42 +0200 Subject: [PATCH] up 1.38 --- README.md | 2 +- Sources/EverscaleClientSwift/Client/ClientTypes.swift | 10 ++++------ Sources/EverscaleClientSwift/Net/NetTypes.swift | 1 + 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index a0efd1a..3fe0872 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Swift Client for Everscale SDK [![SPM](https://img.shields.io/badge/swift-package%20manager-green)](https://swift.org/package-manager/) -[![SPM](https://img.shields.io/badge/SDK%20VERSION-1.37.2-orange)](https://github.com/tonlabs/TON-SDK) +[![SPM](https://img.shields.io/badge/SDK%20VERSION-1.38.0-orange)](https://github.com/tonlabs/TON-SDK) Swift is a strongly typed language that has long been used not only for iOS development. Apple is actively promoting it to new platforms and today it can be used for almost any task. Thanks to this, this implementation provides the work of Everscale SDK on many platforms at once, including the native one for mobile phones. Let me remind you that swift can also be built for android. diff --git a/Sources/EverscaleClientSwift/Client/ClientTypes.swift b/Sources/EverscaleClientSwift/Client/ClientTypes.swift index 5cae119..476dd43 100644 --- a/Sources/EverscaleClientSwift/Client/ClientTypes.swift +++ b/Sources/EverscaleClientSwift/Client/ClientTypes.swift @@ -100,11 +100,11 @@ public struct TSDKClientConfig: Codable { } public struct TSDKNetworkConfig: Codable { - /// **This field is deprecated, but left for backward-compatibility.** DApp Server public address. + /// **This field is deprecated, but left for backward-compatibility.** Evernode endpoint. public var server_address: String? - /// List of DApp Server addresses. + /// List of Evernode endpoints. /// Any correct URL format can be specified, including IP addresses. This parameter is prevailing over `server_address`. - /// Check the full list of [supported network endpoints](../ton-os-api/networks.md). + /// Check the full list of [supported network endpoints](https://docs.everos.dev/ever-sdk/reference/ever-os-api/networks). public var endpoints: [String]? /// Deprecated. /// You must use `network.max_reconnect_timeout` that allows to specify maximum network resolving timeout. @@ -154,9 +154,7 @@ public struct TSDKNetworkConfig: Codable { /// Subsequent REMP status awaiting timeout. If no status recieved during the timeout than fallback transaction scenario is activated. /// Must be specified in milliseconds. Default is 5000 (5 sec). public var next_remp_status_timeout: UInt32? - /// Access key to GraphQL API. - /// You can specify here Basic Auth secret (Evercloud project secret) in hex stringor serialized JWT in base64 string. - /// Will be passed on as Authorization: Basic ... or Authorization: Bearer ... header. + /// Access key to GraphQL API (Project secret) public var access_key: String? public init(server_address: String? = nil, endpoints: [String]? = nil, network_retries_count: Int8? = nil, max_reconnect_timeout: UInt32? = nil, reconnect_timeout: UInt32? = nil, message_retries_count: Int8? = nil, message_processing_timeout: UInt32? = nil, wait_for_timeout: UInt32? = nil, out_of_sync_threshold: UInt32? = nil, sending_endpoint_count: UInt8? = nil, latency_detection_interval: UInt32? = nil, max_latency: UInt32? = nil, query_timeout: UInt32? = nil, queries_protocol: TSDKNetworkQueriesProtocol? = nil, first_remp_status_timeout: UInt32? = nil, next_remp_status_timeout: UInt32? = nil, access_key: String? = nil) { diff --git a/Sources/EverscaleClientSwift/Net/NetTypes.swift b/Sources/EverscaleClientSwift/Net/NetTypes.swift index f0f51b0..f2c97ba 100644 --- a/Sources/EverscaleClientSwift/Net/NetTypes.swift +++ b/Sources/EverscaleClientSwift/Net/NetTypes.swift @@ -17,6 +17,7 @@ public enum TSDKNetErrorCode: Int, Codable { case NoEndpointsProvided = 612 case GraphqlWebsocketInitError = 613 case NetworkModuleResumed = 614 + case Unauthorized = 615 } public enum TSDKSortDirection: String, Codable {