You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 TVM (toncoin, everscale, venom, gosh) 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.
Copy file name to clipboardExpand all lines: Sources/EverscaleClientSwift/Abi/AbiTypes.swift
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,8 @@ public struct TSDKAbi: Codable {
70
70
}
71
71
72
72
publicstructTSDKFunctionHeader:Codable{
73
-
/// Message expiration time in seconds. If not specified - calculated automatically from message_expiration_timeout(), try_index and message_expiration_timeout_grow_factor() (if ABI includes `expire` header).
73
+
/// Message expiration timestamp (UNIX time) in seconds.
74
+
/// If not specified - calculated automatically from message_expiration_timeout(),try_index and message_expiration_timeout_grow_factor() (if ABI includes `expire` header).
74
75
publicvarexpire:UInt32?
75
76
/// Message creation time in milliseconds.
76
77
/// If not specified, `now` is used (if ABI includes `time` header).
@@ -103,8 +104,12 @@ public struct TSDKCallSet: Codable {
103
104
}
104
105
105
106
publicstructTSDKDeploySet:Codable{
106
-
/// Content of TVC file encoded in `base64`.
107
-
publicvartvc:String
107
+
/// Content of TVC file encoded in `base64`. For compatibility reason this field can contain an encoded `StateInit`.
108
+
publicvartvc:String?
109
+
/// Contract code BOC encoded with base64.
110
+
publicvarcode:String?
111
+
/// State init BOC encoded with base64.
112
+
publicvarstate_init:String?
108
113
/// Target workchain for destination address.
109
114
/// Default is `0`.
110
115
publicvarworkchain_id:Int32?
@@ -117,8 +122,10 @@ public struct TSDKDeploySet: Codable {
Copy file name to clipboardExpand all lines: Sources/EverscaleClientSwift/Boc/Boc.swift
+51-16Lines changed: 51 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,41 @@ public final class TSDKBocModule {
7
7
self.binding = binding
8
8
}
9
9
10
+
/// Decodes tvc according to the tvc spec. Read more about tvc structure here https://github.com/tonlabs/ever-struct/blob/main/src/scheme/mod.rs#L30
/// Decodes tvc according to the tvc spec. Read more about tvc structure here https://github.com/tonlabs/ever-struct/blob/main/src/scheme/mod.rs#L30
0 commit comments