Skip to content

Commit

Permalink
up 1.32
Browse files Browse the repository at this point in the history
  • Loading branch information
nerzh committed Apr 17, 2022
1 parent 5d53143 commit 23819b3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.31.0-orange)](https://github.com/tonlabs/TON-SDK)
[![SPM](https://img.shields.io/badge/SDK%20VERSION-1.32.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.

Expand Down
14 changes: 13 additions & 1 deletion Sources/EverscaleClientSwift/Client/ClientTypes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ public enum TSDKClientErrorCode: Int, Codable {
case LocalStorageError = 35
}

public enum TSDKNetworkQueriesProtocol: String, Codable {
case HTTP = "HTTP"
case WS = "WS"
}

/// Network protocol used to perform GraphQL queries.

public enum TSDKAppRequestResultEnumTypes: String, Codable {
case Error = "Error"
case Ok = "Ok"
Expand Down Expand Up @@ -114,11 +121,15 @@ public struct TSDKNetworkConfig: Codable {
/// 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 witherror.
/// Must be specified in milliseconds. Default is 60000 (1 min).
public var query_timeout: UInt32?
/// Queries protocol.
/// `HTTP` or `WS`.
/// /// Default is `HTTP`.
public var queries_protocol: TSDKNetworkQueriesProtocol?
/// Access key to GraphQL API.
/// At the moment is not used in production.
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, access_key: String? = nil) {
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, access_key: String? = nil) {
self.server_address = server_address
self.endpoints = endpoints
self.network_retries_count = network_retries_count
Expand All @@ -132,6 +143,7 @@ public struct TSDKNetworkConfig: Codable {
self.latency_detection_interval = latency_detection_interval
self.max_latency = max_latency
self.query_timeout = query_timeout
self.queries_protocol = queries_protocol
self.access_key = access_key
}
}
Expand Down

0 comments on commit 23819b3

Please sign in to comment.