everscale-client-ruby 1.1.53 → 1.1.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,44 +19,80 @@ module TonClient
19
19
  # debot_handle: DebotHandle - # # Debot handle which references an instance of debot engine.
20
20
  # debot_abi: String - # # Debot abi as json string.
21
21
  # info: DebotInfo - # # Debot metadata.
22
+ # Async
22
23
  def init(payload, &block)
23
24
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
24
25
  end
25
26
 
27
+ # Sync
28
+ def init_sync(payload)
29
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
30
+ end
31
+
26
32
  # INPUT: ParamsOfStart
27
33
  # debot_handle: DebotHandle - # # Debot handle which references an instance of debot engine.
34
+ # Async
28
35
  def start(payload, &block)
29
36
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
30
37
  end
31
38
 
39
+ # Sync
40
+ def start_sync(payload)
41
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
42
+ end
43
+
32
44
  # INPUT: ParamsOfFetch
33
45
  # address: String - # # Debot smart contract address.
34
46
  # RESPONSE: ResultOfFetch
35
47
  # info: DebotInfo - # # Debot metadata.
48
+ # Async
36
49
  def fetch(payload, &block)
37
50
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
38
51
  end
39
52
 
53
+ # Sync
54
+ def fetch_sync(payload)
55
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
56
+ end
57
+
40
58
  # INPUT: ParamsOfExecute
41
59
  # debot_handle: DebotHandle - # # Debot handle which references an instance of debot engine.
42
60
  # action: DebotAction - # # Debot Action that must be executed.
61
+ # Async
43
62
  def execute(payload, &block)
44
63
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
45
64
  end
46
65
 
66
+ # Sync
67
+ def execute_sync(payload)
68
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
69
+ end
70
+
47
71
  # INPUT: ParamsOfSend
48
72
  # debot_handle: DebotHandle - # # Debot handle which references an instance of debot engine.
49
73
  # message: String - # # BOC of internal message to debot encoded in base64 format.
74
+ # Async
50
75
  def send(payload, &block)
51
76
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
52
77
  end
53
78
 
79
+ # Sync
80
+ def send_sync(payload)
81
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
82
+ end
83
+
54
84
  # INPUT: ParamsOfRemove
55
85
  # debot_handle: DebotHandle - # # Debot handle which references an instance of debot engine.
86
+ # Async
56
87
  def remove(payload, &block)
57
88
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
58
89
  end
59
90
 
91
+ # Sync
92
+ def remove_sync(payload)
93
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
94
+ end
95
+
60
96
  end
61
97
  end
62
98
 
@@ -18,18 +18,30 @@ module TonClient
18
18
  # variables: Value - # # Variables used in query. # # Must be a map with named values that can be used in query.
19
19
  # RESPONSE: ResultOfQuery
20
20
  # result: Value - # # Result provided by DAppServer.
21
+ # Async
21
22
  def query(payload, &block)
22
23
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
23
24
  end
24
25
 
26
+ # Sync
27
+ def query_sync(payload)
28
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
29
+ end
30
+
25
31
  # INPUT: ParamsOfBatchQuery
26
32
  # operations: Array - # # List of query operations that must be performed per single fetch.
27
33
  # RESPONSE: ResultOfBatchQuery
28
34
  # results: Array - # # Result values for batched queries. # # Returns an array of values. Each value corresponds to `queries` item.
35
+ # Async
29
36
  def batch_query(payload, &block)
30
37
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
31
38
  end
32
39
 
40
+ # Sync
41
+ def batch_query_sync(payload)
42
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
43
+ end
44
+
33
45
  # INPUT: ParamsOfQueryCollection
34
46
  # collection: String - # # Collection name (accounts, blocks, transactions, messages, block_signatures)
35
47
  # filter: Value - # # Collection filter
@@ -38,10 +50,16 @@ module TonClient
38
50
  # limit: Number<Optional> - # # Number of documents to return
39
51
  # RESPONSE: ResultOfQueryCollection
40
52
  # result: Array - # # Objects that match the provided criteria
53
+ # Async
41
54
  def query_collection(payload, &block)
42
55
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
43
56
  end
44
57
 
58
+ # Sync
59
+ def query_collection_sync(payload)
60
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
61
+ end
62
+
45
63
  # INPUT: ParamsOfAggregateCollection
46
64
  # collection: String - # # Collection name (accounts, blocks, transactions, messages, block_signatures)
47
65
  # filter: Value - # # Collection filter
@@ -49,10 +67,16 @@ module TonClient
49
67
  # RESPONSE: ResultOfAggregateCollection
50
68
  # values: Value - # # Values for requested fields. # # Returns an array of strings. Each string refers to the corresponding `fields` item.
51
69
  # Numeric value is returned as a decimal string representations.
70
+ # Async
52
71
  def aggregate_collection(payload, &block)
53
72
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
54
73
  end
55
74
 
75
+ # Sync
76
+ def aggregate_collection_sync(payload)
77
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
78
+ end
79
+
56
80
  # INPUT: ParamsOfWaitForCollection
57
81
  # collection: String - # # Collection name (accounts, blocks, transactions, messages, block_signatures)
58
82
  # filter: Value - # # Collection filter
@@ -60,70 +84,130 @@ module TonClient
60
84
  # timeout: Number<Optional> - # # Query timeout
61
85
  # RESPONSE: ResultOfWaitForCollection
62
86
  # result: Value - # # First found object that matches the provided criteria
87
+ # Async
63
88
  def wait_for_collection(payload, &block)
64
89
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
65
90
  end
66
91
 
92
+ # Sync
93
+ def wait_for_collection_sync(payload)
94
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
95
+ end
96
+
67
97
  # INPUT: ResultOfSubscribeCollection
68
98
  # handle: Number - # # Subscription handle. # # Must be closed with `unsubscribe`
99
+ # Async
69
100
  def unsubscribe(payload, &block)
70
101
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
71
102
  end
72
103
 
104
+ # Sync
105
+ def unsubscribe_sync(payload)
106
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
107
+ end
108
+
73
109
  # INPUT: ParamsOfSubscribeCollection
74
110
  # collection: String - # # Collection name (accounts, blocks, transactions, messages, block_signatures)
75
111
  # filter: Value - # # Collection filter
76
112
  # result: String - # # Projection (result) string
77
113
  # RESPONSE: ResultOfSubscribeCollection
78
114
  # handle: Number - # # Subscription handle. # # Must be closed with `unsubscribe`
115
+ # Async
79
116
  def subscribe_collection(payload, &block)
80
117
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
81
118
  end
82
119
 
120
+ # Sync
121
+ def subscribe_collection_sync(payload)
122
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
123
+ end
124
+
83
125
  # INPUT: ParamsOfSubscribe
84
126
  # subscription: String - # # GraphQL subscription text.
85
127
  # variables: Value - # # Variables used in subscription. # # Must be a map with named values that can be used in query.
86
128
  # RESPONSE: ResultOfSubscribeCollection
87
129
  # handle: Number - # # Subscription handle. # # Must be closed with `unsubscribe`
130
+ # Async
88
131
  def subscribe(payload, &block)
89
132
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
90
133
  end
91
134
 
135
+ # Sync
136
+ def subscribe_sync(payload)
137
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
138
+ end
139
+
140
+ # Async
92
141
  def suspend(&block)
93
142
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
94
143
  end
95
144
 
145
+ # Sync
146
+ def suspend_sync()
147
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: {})
148
+ end
149
+
150
+ # Async
96
151
  def resume(&block)
97
152
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
98
153
  end
99
154
 
155
+ # Sync
156
+ def resume_sync()
157
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: {})
158
+ end
159
+
100
160
  # INPUT: ParamsOfFindLastShardBlock
101
161
  # address: String - # # Account address
102
162
  # RESPONSE: ResultOfFindLastShardBlock
103
163
  # block_id: String - # # Account shard last block ID
164
+ # Async
104
165
  def find_last_shard_block(payload, &block)
105
166
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
106
167
  end
107
168
 
169
+ # Sync
170
+ def find_last_shard_block_sync(payload)
171
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
172
+ end
173
+
108
174
  # RESPONSE: EndpointsSet
109
175
  # endpoints: Array - # # List of endpoints provided by server
176
+ # Async
110
177
  def fetch_endpoints(&block)
111
178
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
112
179
  end
113
180
 
181
+ # Sync
182
+ def fetch_endpoints_sync()
183
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: {})
184
+ end
185
+
114
186
  # INPUT: EndpointsSet
115
187
  # endpoints: Array - # # List of endpoints provided by server
188
+ # Async
116
189
  def set_endpoints(payload, &block)
117
190
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
118
191
  end
119
192
 
193
+ # Sync
194
+ def set_endpoints_sync(payload)
195
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
196
+ end
197
+
120
198
  # RESPONSE: ResultOfGetEndpoints
121
199
  # query: String - # # Current query endpoint
122
200
  # endpoints: Array - # # List of all endpoints used by client
201
+ # Async
123
202
  def get_endpoints(&block)
124
203
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
125
204
  end
126
205
 
206
+ # Sync
207
+ def get_endpoints_sync()
208
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: {})
209
+ end
210
+
127
211
  # INPUT: ParamsOfQueryCounterparties
128
212
  # account: String - # # Account address
129
213
  # result: String - # # Projection (result) string
@@ -131,10 +215,16 @@ module TonClient
131
215
  # after: String<Optional> - # # `cursor` field of the last received result
132
216
  # RESPONSE: ResultOfQueryCollection
133
217
  # result: Array - # # Objects that match the provided criteria
218
+ # Async
134
219
  def query_counterparties(payload, &block)
135
220
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
136
221
  end
137
222
 
223
+ # Sync
224
+ def query_counterparties_sync(payload)
225
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
226
+ end
227
+
138
228
  # INPUT: ParamsOfQueryTransactionTree
139
229
  # in_msg: String - # # Input message id.
140
230
  # abi_registry: Array<Optional> - # # List of contract ABIs that will be used to decode message bodies. Library will try to decode each returned message body using any ABI from the registry.
@@ -143,10 +233,16 @@ module TonClient
143
233
  # RESPONSE: ResultOfQueryTransactionTree
144
234
  # messages: Array - # # Messages.
145
235
  # transactions: Array - # # Transactions.
236
+ # Async
146
237
  def query_transaction_tree(payload, &block)
147
238
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
148
239
  end
149
240
 
241
+ # Sync
242
+ def query_transaction_tree_sync(payload)
243
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
244
+ end
245
+
150
246
  # INPUT: ParamsOfCreateBlockIterator
151
247
  # start_time: Number<Optional> - # # Starting time to iterate from. # # If the application specifies this parameter then the iterationincludes blocks with `gen_utime` >= `start_time`.
152
248
  # Otherwise the iteration starts from zero state.
@@ -163,18 +259,30 @@ module TonClient
163
259
  # Note that iterated items can contains additional fields that arenot requested in the `result`.
164
260
  # RESPONSE: RegisteredIterator
165
261
  # handle: Number - # # Iterator handle. # # Must be removed using `remove_iterator`when it is no more needed for the application.
262
+ # Async
166
263
  def create_block_iterator(payload, &block)
167
264
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
168
265
  end
169
266
 
267
+ # Sync
268
+ def create_block_iterator_sync(payload)
269
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
270
+ end
271
+
170
272
  # INPUT: ParamsOfResumeBlockIterator
171
273
  # resume_state: Value - # # Iterator state from which to resume. # # Same as value returned from `iterator_next`.
172
274
  # RESPONSE: RegisteredIterator
173
275
  # handle: Number - # # Iterator handle. # # Must be removed using `remove_iterator`when it is no more needed for the application.
276
+ # Async
174
277
  def resume_block_iterator(payload, &block)
175
278
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
176
279
  end
177
280
 
281
+ # Sync
282
+ def resume_block_iterator_sync(payload)
283
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
284
+ end
285
+
178
286
  # INPUT: ParamsOfCreateTransactionIterator
179
287
  # start_time: Number<Optional> - # # Starting time to iterate from. # # If the application specifies this parameter then the iterationincludes blocks with `gen_utime` >= `start_time`.
180
288
  # Otherwise the iteration starts from zero state.
@@ -197,10 +305,16 @@ module TonClient
197
305
  # include_transfers: Boolean<Optional> - # # Include `transfers` field in iterated transactions. # # If this parameter is `true` then each transaction contains field`transfers` with list of transfer. See more about this structure in function description.
198
306
  # RESPONSE: RegisteredIterator
199
307
  # handle: Number - # # Iterator handle. # # Must be removed using `remove_iterator`when it is no more needed for the application.
308
+ # Async
200
309
  def create_transaction_iterator(payload, &block)
201
310
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
202
311
  end
203
312
 
313
+ # Sync
314
+ def create_transaction_iterator_sync(payload)
315
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
316
+ end
317
+
204
318
  # INPUT: ParamsOfResumeTransactionIterator
205
319
  # resume_state: Value - # # Iterator state from which to resume. # # Same as value returned from `iterator_next`.
206
320
  # accounts_filter: Array<Optional> - # # Account address filter. # # Application can specify the list of accounts for whichit wants to iterate transactions.
@@ -209,10 +323,16 @@ module TonClient
209
323
  # So it is the application's responsibility to specify the correct filter combination.
210
324
  # RESPONSE: RegisteredIterator
211
325
  # handle: Number - # # Iterator handle. # # Must be removed using `remove_iterator`when it is no more needed for the application.
326
+ # Async
212
327
  def resume_transaction_iterator(payload, &block)
213
328
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
214
329
  end
215
330
 
331
+ # Sync
332
+ def resume_transaction_iterator_sync(payload)
333
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
334
+ end
335
+
216
336
  # INPUT: ParamsOfIteratorNext
217
337
  # iterator: Number - # # Iterator handle
218
338
  # limit: Number<Optional> - # # Maximum count of the returned items. # # If value is missing or is less than 1 the library uses 1.
@@ -224,16 +344,28 @@ module TonClient
224
344
  # has_more: Boolean - # # Indicates that there are more available items in iterated range.
225
345
  # resume_state: Value<Optional> - # # Optional iterator state that can be used for resuming iteration. # # This field is returned only if the `return_resume_state` parameteris specified.
226
346
  # Note that `resume_state` corresponds to the iteration positionafter the returned items.
347
+ # Async
227
348
  def iterator_next(payload, &block)
228
349
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
229
350
  end
230
351
 
352
+ # Sync
353
+ def iterator_next_sync(payload)
354
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
355
+ end
356
+
231
357
  # INPUT: RegisteredIterator
232
358
  # handle: Number - # # Iterator handle. # # Must be removed using `remove_iterator`when it is no more needed for the application.
359
+ # Async
233
360
  def remove_iterator(payload, &block)
234
361
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
235
362
  end
236
363
 
364
+ # Sync
365
+ def remove_iterator_sync(payload)
366
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
367
+ end
368
+
237
369
  end
238
370
  end
239
371
 
@@ -22,10 +22,16 @@ module TonClient
22
22
  # RESPONSE: ResultOfSendMessage
23
23
  # shard_block_id: String - # # The last generated shard block of the message destination account before the message was sent. # # This block id must be used as a parameter of the`wait_for_transaction`.
24
24
  # sending_endpoints: Array - # # The list of endpoints to which the message was sent. # # This list id must be used as a parameter of the`wait_for_transaction`.
25
+ # Async
25
26
  def send_message(payload, &block)
26
27
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
27
28
  end
28
29
 
30
+ # Sync
31
+ def send_message_sync(payload)
32
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
33
+ end
34
+
29
35
  # INPUT: ParamsOfWaitForTransaction
30
36
  # abi: Value<Optional> - # # Optional ABI for decoding the transaction result. # # If it is specified, then the output messages' bodies will bedecoded according to this ABI.
31
37
  # The `abi_decoded` result field will be filled out.
@@ -40,10 +46,16 @@ module TonClient
40
46
  # out_messages: Array - # # List of output messages' BOCs. # # Encoded as `base64`
41
47
  # decoded: DecodedOutput<Optional> - # # Optional decoded message bodies according to the optional `abi` parameter.
42
48
  # fees: TransactionFees - # # Transaction fees
49
+ # Async
43
50
  def wait_for_transaction(payload, &block)
44
51
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
45
52
  end
46
53
 
54
+ # Sync
55
+ def wait_for_transaction_sync(payload)
56
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
57
+ end
58
+
47
59
  # INPUT: ParamsOfProcessMessage
48
60
  # message_encode_params: ParamsOfEncodeMessage - # # Message encode parameters.
49
61
  # send_events: Boolean - # # Flag for requesting events sending
@@ -52,10 +64,16 @@ module TonClient
52
64
  # out_messages: Array - # # List of output messages' BOCs. # # Encoded as `base64`
53
65
  # decoded: DecodedOutput<Optional> - # # Optional decoded message bodies according to the optional `abi` parameter.
54
66
  # fees: TransactionFees - # # Transaction fees
67
+ # Async
55
68
  def process_message(payload, &block)
56
69
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
57
70
  end
58
71
 
72
+ # Sync
73
+ def process_message_sync(payload)
74
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
75
+ end
76
+
59
77
  end
60
78
  end
61
79
 
@@ -15,22 +15,40 @@ module TonClient
15
15
 
16
16
  # INPUT: ParamsOfProofBlockData
17
17
  # block: Value - # # Single block's data, retrieved from TONOS API, that needs proof. Required fields are `id` and/or top-level `boc` (for block identification), others are optional.
18
+ # Async
18
19
  def proof_block_data(payload, &block)
19
20
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
20
21
  end
21
22
 
23
+ # Sync
24
+ def proof_block_data_sync(payload)
25
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
26
+ end
27
+
22
28
  # INPUT: ParamsOfProofTransactionData
23
29
  # transaction: Value - # # Single transaction's data as queried from DApp server, without modifications. The required fields are `id` and/or top-level `boc`, others are optional. In order to reduce network requests count, it is recommended to provide `block_id` and `boc` of transaction.
30
+ # Async
24
31
  def proof_transaction_data(payload, &block)
25
32
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
26
33
  end
27
34
 
35
+ # Sync
36
+ def proof_transaction_data_sync(payload)
37
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
38
+ end
39
+
28
40
  # INPUT: ParamsOfProofMessageData
29
41
  # message: Value - # # Single message's data as queried from DApp server, without modifications. The required fields are `id` and/or top-level `boc`, others are optional. In order to reduce network requests count, it is recommended to provide at least `boc` of message and non-null `src_transaction.id` or `dst_transaction.id`.
42
+ # Async
30
43
  def proof_message_data(payload, &block)
31
44
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
32
45
  end
33
46
 
47
+ # Sync
48
+ def proof_message_data_sync(payload)
49
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
50
+ end
51
+
34
52
  end
35
53
  end
36
54
 
@@ -27,10 +27,16 @@ module TonClient
27
27
  # decoded: DecodedOutput<Optional> - # # Optional decoded message bodies according to the optional `abi` parameter.
28
28
  # account: String - # # Updated account state BOC. # # Encoded as `base64`
29
29
  # fees: TransactionFees - # # Transaction fees
30
+ # Async
30
31
  def run_executor(payload, &block)
31
32
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
32
33
  end
33
34
 
35
+ # Sync
36
+ def run_executor_sync(payload)
37
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
38
+ end
39
+
34
40
  # INPUT: ParamsOfRunTvm
35
41
  # message: String - # # Input message BOC. # # Must be encoded as base64.
36
42
  # account: String - # # Account BOC. # # Must be encoded as base64.
@@ -42,10 +48,16 @@ module TonClient
42
48
  # out_messages: Array - # # List of output messages' BOCs. # # Encoded as `base64`
43
49
  # decoded: DecodedOutput<Optional> - # # Optional decoded message bodies according to the optional `abi` parameter.
44
50
  # account: String - # # Updated account state BOC. # # Encoded as `base64`. Attention! Only `account_state.storage.state.data` part of the BOC is updated.
51
+ # Async
45
52
  def run_tvm(payload, &block)
46
53
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
47
54
  end
48
55
 
56
+ # Sync
57
+ def run_tvm_sync(payload)
58
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
59
+ end
60
+
49
61
  # INPUT: ParamsOfRunGet
50
62
  # account: String - # # Account BOC in `base64`
51
63
  # function_name: String - # # Function name
@@ -55,10 +67,16 @@ module TonClient
55
67
  # This may happen, for example, when elector contract contains too many participants
56
68
  # RESPONSE: ResultOfRunGet
57
69
  # output: Value - # # Values returned by get-method on stack
70
+ # Async
58
71
  def run_get(payload, &block)
59
72
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
60
73
  end
61
74
 
75
+ # Sync
76
+ def run_get_sync(payload)
77
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
78
+ end
79
+
62
80
  end
63
81
  end
64
82
 
@@ -18,44 +18,74 @@ module TonClient
18
18
  # output_format: AddressStringFormat - # # Specify the format to convert to.
19
19
  # RESPONSE: ResultOfConvertAddress
20
20
  # address: String - # # Address in the specified format
21
+ # Async
21
22
  def convert_address(payload, &block)
22
23
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
23
24
  end
24
25
 
26
+ # Sync
27
+ def convert_address_sync(payload)
28
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
29
+ end
30
+
25
31
  # INPUT: ParamsOfGetAddressType
26
32
  # address: String - # # Account address in any TON format.
27
33
  # RESPONSE: ResultOfGetAddressType
28
34
  # address_type: AccountAddressType - # # Account address type.
35
+ # Async
29
36
  def get_address_type(payload, &block)
30
37
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
31
38
  end
32
39
 
40
+ # Sync
41
+ def get_address_type_sync(payload)
42
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
43
+ end
44
+
33
45
  # INPUT: ParamsOfCalcStorageFee
34
46
  # account: String -
35
47
  # period: Number -
36
48
  # RESPONSE: ResultOfCalcStorageFee
37
49
  # fee: String -
50
+ # Async
38
51
  def calc_storage_fee(payload, &block)
39
52
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
40
53
  end
41
54
 
55
+ # Sync
56
+ def calc_storage_fee_sync(payload)
57
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
58
+ end
59
+
42
60
  # INPUT: ParamsOfCompressZstd
43
61
  # uncompressed: String - # # Uncompressed data. # # Must be encoded as base64.
44
62
  # level: Number<Optional> - # # Compression level, from 1 to 21. Where: 1 - lowest compression level (fastest compression); 21 - highest compression level (slowest compression). If level is omitted, the default compression level is used (currently `3`).
45
63
  # RESPONSE: ResultOfCompressZstd
46
64
  # compressed: String - # # Compressed data. # # Must be encoded as base64.
65
+ # Async
47
66
  def compress_zstd(payload, &block)
48
67
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
49
68
  end
50
69
 
70
+ # Sync
71
+ def compress_zstd_sync(payload)
72
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
73
+ end
74
+
51
75
  # INPUT: ParamsOfDecompressZstd
52
76
  # compressed: String - # # Compressed data. # # Must be encoded as base64.
53
77
  # RESPONSE: ResultOfDecompressZstd
54
78
  # decompressed: String - # # Decompressed data. # # Must be encoded as base64.
79
+ # Async
55
80
  def decompress_zstd(payload, &block)
56
81
  TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
57
82
  end
58
83
 
84
+ # Sync
85
+ def decompress_zstd_sync(payload)
86
+ TonBinding.send_request_sync(context: context, method_name: full_method_name(MODULE, __method__.to_s).sub(/_sync$/, ''), payload: payload)
87
+ end
88
+
59
89
  end
60
90
  end
61
91
 
@@ -1,4 +1,4 @@
1
1
  module TonClient
2
- VERSION = "1.1.53"
2
+ VERSION = "1.1.60"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: everscale-client-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.53
4
+ version: 1.1.60
5
5
  platform: ruby
6
6
  authors:
7
7
  - nerzh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-08 00:00:00.000000000 Z
11
+ date: 2022-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi