Skip to content

Commit

Permalink
up 1.37.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nerzh committed Sep 9, 2022
1 parent 6fd91c2 commit c554f60
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 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.0-orange)](https://github.com/tonlabs/TON-SDK)
[![SPM](https://img.shields.io/badge/SDK%20VERSION-1.37.1-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
5 changes: 2 additions & 3 deletions Sources/EverscaleClientSwift/Boc/Boc.swift
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public final class TSDKBocModule {
}
}

/// Save BOC into cache
/// Save BOC into cache or increase pin counter for existing pinned BOC
public func cache_set(_ payload: TSDKParamsOfBocCacheSet, _ handler: @escaping (TSDKBindingResponse<TSDKResultOfBocCacheSet, TSDKClientError>) throws -> Void
) throws {
let method: String = "cache_set"
Expand All @@ -133,8 +133,7 @@ public final class TSDKBocModule {
}
}

/// Unpin BOCs with specified pin.
/// BOCs which don't have another pins will be removed from cache
/// Unpin BOCs with specified pin defined in the `cache_set`. Decrease pin reference counter for BOCs with specified pin defined in the `cache_set`. BOCs which have only 1 pin and its reference counter become 0 will be removed from cache
public func cache_unpin(_ payload: TSDKParamsOfBocCacheUnpin, _ handler: @escaping (TSDKBindingResponse<TSDKNoneResult, TSDKClientError>) throws -> Void
) throws {
let method: String = "cache_unpin"
Expand Down
2 changes: 1 addition & 1 deletion Sources/EverscaleClientSwift/Client/ClientTypes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public struct TSDKClientError: Codable, Error {
public var message: String
public var localizedDescription: String { self.message }
public var data: AnyValue = [:].toAnyValue()

public init(_ error: Error) {
self.code = 0
self.message = error.localizedDescription
Expand All @@ -68,7 +69,6 @@ public struct TSDKClientError: Codable, Error {
self.data = [:].toAnyValue()
}


public init(code: UInt32, message: String, data: AnyValue = [:].toAnyValue()) {
self.code = code
self.message = message
Expand Down
2 changes: 1 addition & 1 deletion Sources/EverscaleClientSwift/Net/Net.swift
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public final class TSDKNetModule {

/// Creates a subscription
/// The subscription is a persistent communication channel betweenclient and Everscale Network.
/// ### Important Notes on SubscriptionsUnfortunately sometimes the connection with the network brakes down.
/// ### Important Notes on SubscriptionsUnfortunately sometimes the connection with the network breakes down.
/// In this situation the library attempts to reconnect to the network.
/// This reconnection sequence can take significant time.
/// All of this time the client is disconnected from the network.
Expand Down
5 changes: 2 additions & 3 deletions Sources/EverscaleClientSwift/Tvm/TvmTypes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public struct TSDKAccountForExecutor: Codable {

public struct TSDKTransactionFees: Codable {
/// Deprecated.
/// Left for backward compatibility. Does not participate in account transaction fees calculation.
/// Contains the same data as ext_in_msg_fee field
public var in_msg_fwd_fee: Int
/// Fee for account storage
public var storage_fee: Int
Expand All @@ -73,8 +73,7 @@ public struct TSDKTransactionFees: Codable {
/// Contains the same data as total_fwd_fees field. Deprecated because of its confusing name, that is not the same with GraphQL API Transaction type's field.
public var out_msgs_fwd_fee: Int
/// Deprecated.
/// This is the field that is named as `total_fees` in GraphQL API Transaction type. `total_account_fees` name is misleading, because it does not mean account fees, instead it meansvalidators total fees received for the transaction execution. It does not include some forward fees that accountactually pays now, but validators will receive later during value delivery to another account (not even in the receivingtransaction).
/// Because of all of this, this field is not interesting for those who wants to understandthe real account fees, this is why it is deprecated and left for backward compatibility.
/// Contains the same data as account_fees field
public var total_account_fees: Int
/// Deprecated because it means total value sent in the transaction, which does not relate to any fees.
public var total_output: Int
Expand Down

0 comments on commit c554f60

Please sign in to comment.