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 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.
Copy file name to clipboardExpand all lines: Sources/EverscaleClientSwift/Abi/AbiTypes.swift
+17-2Lines changed: 17 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,11 @@ public enum TSDKMessageSourceEnumTypes: String, Codable {
54
54
case EncodingParams ="EncodingParams"
55
55
}
56
56
57
+
publicenumTSDKDataLayout:String,Codable{
58
+
case Input ="Input"
59
+
case Output ="Output"
60
+
}
61
+
57
62
publicstructTSDKAbi:Codable{
58
63
publicvartype:TSDKAbiEnumTypes
59
64
publicvarvalue:AnyValue?
@@ -471,11 +476,16 @@ public struct TSDKParamsOfDecodeMessage: Codable {
471
476
publicvarmessage:String
472
477
/// Flag allowing partial BOC decoding when ABI doesn't describe the full body BOC. Controls decoder behaviour when after decoding all described in ABI params there are some data left in BOC: `true` - return decoded values `false` - return error of incomplete BOC deserialization (default)
473
478
publicvarallow_partial:Bool?
479
+
/// Function name or function id if is known in advance
@@ -506,12 +516,17 @@ public struct TSDKParamsOfDecodeMessageBody: Codable {
506
516
publicvaris_internal:Bool
507
517
/// Flag allowing partial BOC decoding when ABI doesn't describe the full body BOC. Controls decoder behaviour when after decoding all described in ABI params there are some data left in BOC: `true` - return decoded values `false` - return error of incomplete BOC deserialization (default)
508
518
publicvarallow_partial:Bool?
519
+
/// Function name or function id if is known in advance
Copy file name to clipboardExpand all lines: Sources/EverscaleClientSwift/Client/ClientTypes.swift
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -131,11 +131,11 @@ public struct TSDKNetworkConfig: Codable {
131
131
/// Default is 1.
132
132
publicvarsending_endpoint_count:UInt8?
133
133
/// Frequency of sync latency detection.
134
-
/// Library periodically checks the current endpoint for blockchain data syncronization latency.
134
+
/// Library periodically checks the current endpoint for blockchain data synchronization latency.
135
135
/// If the latency (time-lag) is less then `NetworkConfig.max_latency`then library selects another endpoint.
136
136
/// Must be specified in milliseconds. Default is 60000 (1 min).
137
137
publicvarlatency_detection_interval:UInt32?
138
-
/// Maximum value for the endpoint's blockchain data syncronization latency (time-lag). Library periodically checks the current endpoint for blockchain data synchronization latency. If the latency (time-lag) is less then `NetworkConfig.max_latency` then library selects another endpoint.
138
+
/// Maximum value for the endpoint's blockchain data synchronization latency (time-lag). Library periodically checks the current endpoint for blockchain data synchronization latency. If the latency (time-lag) is less then `NetworkConfig.max_latency` then library selects another endpoint.
139
139
/// Must be specified in milliseconds. Default is 60000 (1 min).
140
140
publicvarmax_latency:UInt32?
141
141
/// Default timeout for http requests.
@@ -147,11 +147,11 @@ public struct TSDKNetworkConfig: Codable {
Copy file name to clipboardExpand all lines: Sources/EverscaleClientSwift/Net/Net.swift
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -111,7 +111,7 @@ public final class TSDKNetModule {
111
111
112
112
/// Creates a subscription
113
113
/// The subscription is a persistent communication channel betweenclient and Everscale Network.
114
-
/// ### Important Notes on SubscriptionsUnfortunately sometimes the connection with the network breakes down.
114
+
/// ### Important Notes on SubscriptionsUnfortunately sometimes the connection with the network breaks down.
115
115
/// In this situation the library attempts to reconnect to the network.
116
116
/// This reconnection sequence can take significant time.
117
117
/// All of this time the client is disconnected from the network.
@@ -217,7 +217,7 @@ public final class TSDKNetModule {
217
217
/// If the chain of transactions execution is in progress while the function is running,it will wait for the next transactions to appear until the full tree or more than 50 transactionsare received.
218
218
/// All the retrieved messages and transactions are includedinto `result.messages` and `result.transactions` respectively.
219
219
/// Function reads transactions layer by layer, by pages of 20 transactions.
220
-
/// The retrieval prosess goes like this:
220
+
/// The retrieval process goes like this:
221
221
/// Let's assume we have an infinite chain of transactions and each transaction generates 5 messages.
222
222
/// 1. Retrieve 1st message (input parameter) and corresponding transaction - put it into result.
223
223
/// It is the first level of the tree of transactions - its root.
@@ -261,7 +261,7 @@ public final class TSDKNetModule {
261
261
}
262
262
263
263
/// Resumes block iterator.
264
-
/// The iterator stays exactly at the same position where the `resume_state` was catched.
264
+
/// The iterator stays exactly at the same position where the `resume_state` was caught.
265
265
/// Application should call the `remove_iterator` when iterator is no longer required.
Copy file name to clipboardExpand all lines: Sources/EverscaleClientSwift/Tvm/Tvm.swift
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ public final class TSDKTvmModule {
10
10
/// Emulates all the phases of contract execution locally
11
11
/// Performs all the phases of contract execution on Transaction Executor -the same component that is used on Validator Nodes.
12
12
/// Can be used for contract debugging, to find out the reason why a message was not delivered successfully.
13
-
/// Validators throw away the failed external inbound messages (if they failed bedore `ACCEPT`) in the real network.
13
+
/// Validators throw away the failed external inbound messages (if they failed before `ACCEPT`) in the real network.
14
14
/// This is why these messages are impossible to debug in the real network.
15
15
/// With the help of run_executor you can do that. In fact, `process_message` functionperforms local check with `run_executor` if there was no transaction as a result of processingand returns the error, if there is one.
16
16
/// Another use case to use `run_executor` is to estimate fees for message execution.
0 commit comments