Skip to content

Commit

Permalink
up 1.37.2
Browse files Browse the repository at this point in the history
  • Loading branch information
nerzh committed Sep 17, 2022
1 parent d4fa215 commit 7678d23
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 6 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.37.1-orange)](https://github.com/tonlabs/TON-SDK)
[![SPM](https://img.shields.io/badge/SDK%20VERSION-1.37.2-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
1 change: 1 addition & 0 deletions Sources/EverscaleClientSwift/Abi/AbiTypes.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Foundation
import SwiftExtensionsPack


Expand Down
1 change: 1 addition & 0 deletions Sources/EverscaleClientSwift/Boc/BocTypes.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Foundation
import SwiftExtensionsPack


Expand Down
11 changes: 8 additions & 3 deletions Sources/EverscaleClientSwift/Client/ClientTypes.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Foundation
import SwiftExtensionsPack


Expand Down Expand Up @@ -51,10 +52,13 @@ public enum TSDKAppRequestResultEnumTypes: String, Codable {
case Ok = "Ok"
}

public struct TSDKClientError: Codable, Error {
public struct TSDKClientError: Codable, LocalizedError {
public var code: UInt32
public var message: String
public var localizedDescription: String { self.message }
public var errorDescription: String { self.message }
public var failureReason: String { self.message }
public var recoverySuggestion: String { self.message }
public var helpAnchor: String { self.message }
public var data: AnyValue = [:].toAnyValue()

public init(_ error: Error) {
Expand Down Expand Up @@ -151,7 +155,8 @@ public struct TSDKNetworkConfig: Codable {
/// 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 Evercloud project secret ot serialized JWT.
/// 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.
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) {
Expand Down
9 changes: 7 additions & 2 deletions Sources/EverscaleClientSwift/Crypto/CryptoTypes.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Foundation
import SwiftExtensionsPack


Expand Down Expand Up @@ -119,9 +120,11 @@ public struct TSDKEncryptionBoxInfo: Codable {

public struct TSDKEncryptionAlgorithm: Codable {
public var type: TSDKEncryptionAlgorithmEnumTypes
public var value: TSDKAesParamsEB?

public init(type: TSDKEncryptionAlgorithmEnumTypes) {
public init(type: TSDKEncryptionAlgorithmEnumTypes, value: TSDKAesParamsEB? = nil) {
self.type = type
self.value = value
}
}

Expand Down Expand Up @@ -211,9 +214,11 @@ public struct TSDKCryptoBoxSecret: Codable {
/// Crypto Box Secret.
public struct TSDKBoxEncryptionAlgorithm: Codable {
public var type: TSDKBoxEncryptionAlgorithmEnumTypes
public var value: TSDKChaCha20ParamsCB?

public init(type: TSDKBoxEncryptionAlgorithmEnumTypes) {
public init(type: TSDKBoxEncryptionAlgorithmEnumTypes, value: TSDKChaCha20ParamsCB? = nil) {
self.type = type
self.value = value
}
}

Expand Down
1 change: 1 addition & 0 deletions Sources/EverscaleClientSwift/Debot/DebotTypes.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Foundation
import SwiftExtensionsPack


Expand Down
1 change: 1 addition & 0 deletions Sources/EverscaleClientSwift/Net/NetTypes.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Foundation
import SwiftExtensionsPack


Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Foundation
import SwiftExtensionsPack


Expand Down
1 change: 1 addition & 0 deletions Sources/EverscaleClientSwift/Proofs/ProofsTypes.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Foundation
import SwiftExtensionsPack


Expand Down
1 change: 1 addition & 0 deletions Sources/EverscaleClientSwift/Tvm/TvmTypes.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Foundation
import SwiftExtensionsPack


Expand Down
1 change: 1 addition & 0 deletions Sources/EverscaleClientSwift/Utils/UtilsTypes.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Foundation
import SwiftExtensionsPack


Expand Down

0 comments on commit 7678d23

Please sign in to comment.