everscale-client-ruby 1.1.47 → 1.1.49
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.
- checksums.yaml +4 -4
- data/lib/code_generator/code_generator.rb +18 -8
- data/lib/everscale-client-ruby/Binding/binding.rb +43 -41
- data/lib/everscale-client-ruby/Client/Abi.rb +19 -17
- data/lib/everscale-client-ruby/Client/Boc.rb +23 -21
- data/lib/everscale-client-ruby/Client/Client.rb +24 -17
- data/lib/everscale-client-ruby/Client/Crypto.rb +55 -53
- data/lib/everscale-client-ruby/Client/Debot.rb +10 -8
- data/lib/everscale-client-ruby/Client/Net.rb +26 -24
- data/lib/everscale-client-ruby/Client/Processing.rb +7 -5
- data/lib/everscale-client-ruby/Client/Proofs.rb +7 -5
- data/lib/everscale-client-ruby/Client/Tvm.rb +7 -5
- data/lib/everscale-client-ruby/Client/Utils.rb +9 -7
- data/lib/everscale-client-ruby/version.rb +1 -1
- metadata +2 -2
@@ -3,11 +3,13 @@ module TonClient
|
|
3
3
|
class Net
|
4
4
|
include CommonInstanceHelpers
|
5
5
|
|
6
|
-
attr_reader :context
|
6
|
+
attr_reader :context, :request_id, :requests
|
7
7
|
MODULE = self.to_s.downcase.gsub(/^(.+::|)(\w+)$/, '\2').freeze
|
8
8
|
|
9
|
-
def initialize(context: nil)
|
9
|
+
def initialize(context: nil, request_id: nil, requests: nil)
|
10
10
|
@context = context
|
11
|
+
@request_id = request_id
|
12
|
+
@requests = requests
|
11
13
|
end
|
12
14
|
|
13
15
|
# INPUT: ParamsOfQuery
|
@@ -16,7 +18,7 @@ module TonClient
|
|
16
18
|
# RESPONSE: ResultOfQuery
|
17
19
|
# result: Value - # # Result provided by DAppServer.
|
18
20
|
def query(payload, &block)
|
19
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
21
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
20
22
|
end
|
21
23
|
|
22
24
|
# INPUT: ParamsOfBatchQuery
|
@@ -24,7 +26,7 @@ module TonClient
|
|
24
26
|
# RESPONSE: ResultOfBatchQuery
|
25
27
|
# results: Array - # # Result values for batched queries. # # Returns an array of values. Each value corresponds to `queries` item.
|
26
28
|
def batch_query(payload, &block)
|
27
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
29
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
28
30
|
end
|
29
31
|
|
30
32
|
# INPUT: ParamsOfQueryCollection
|
@@ -36,7 +38,7 @@ module TonClient
|
|
36
38
|
# RESPONSE: ResultOfQueryCollection
|
37
39
|
# result: Array - # # Objects that match the provided criteria
|
38
40
|
def query_collection(payload, &block)
|
39
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
41
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
40
42
|
end
|
41
43
|
|
42
44
|
# INPUT: ParamsOfAggregateCollection
|
@@ -47,7 +49,7 @@ module TonClient
|
|
47
49
|
# values: Value - # # Values for requested fields. # # Returns an array of strings. Each string refers to the corresponding `fields` item.
|
48
50
|
# Numeric value is returned as a decimal string representations.
|
49
51
|
def aggregate_collection(payload, &block)
|
50
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
52
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
51
53
|
end
|
52
54
|
|
53
55
|
# INPUT: ParamsOfWaitForCollection
|
@@ -58,13 +60,13 @@ module TonClient
|
|
58
60
|
# RESPONSE: ResultOfWaitForCollection
|
59
61
|
# result: Value - # # First found object that matches the provided criteria
|
60
62
|
def wait_for_collection(payload, &block)
|
61
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
63
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
62
64
|
end
|
63
65
|
|
64
66
|
# INPUT: ResultOfSubscribeCollection
|
65
67
|
# handle: Number - # # Subscription handle. # # Must be closed with `unsubscribe`
|
66
68
|
def unsubscribe(payload, &block)
|
67
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
69
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
68
70
|
end
|
69
71
|
|
70
72
|
# INPUT: ParamsOfSubscribeCollection
|
@@ -74,7 +76,7 @@ module TonClient
|
|
74
76
|
# RESPONSE: ResultOfSubscribeCollection
|
75
77
|
# handle: Number - # # Subscription handle. # # Must be closed with `unsubscribe`
|
76
78
|
def subscribe_collection(payload, &block)
|
77
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
79
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
78
80
|
end
|
79
81
|
|
80
82
|
# INPUT: ParamsOfSubscribe
|
@@ -83,15 +85,15 @@ module TonClient
|
|
83
85
|
# RESPONSE: ResultOfSubscribeCollection
|
84
86
|
# handle: Number - # # Subscription handle. # # Must be closed with `unsubscribe`
|
85
87
|
def subscribe(payload, &block)
|
86
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
88
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
87
89
|
end
|
88
90
|
|
89
91
|
def suspend(&block)
|
90
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
|
92
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
|
91
93
|
end
|
92
94
|
|
93
95
|
def resume(&block)
|
94
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
|
96
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
|
95
97
|
end
|
96
98
|
|
97
99
|
# INPUT: ParamsOfFindLastShardBlock
|
@@ -99,26 +101,26 @@ module TonClient
|
|
99
101
|
# RESPONSE: ResultOfFindLastShardBlock
|
100
102
|
# block_id: String - # # Account shard last block ID
|
101
103
|
def find_last_shard_block(payload, &block)
|
102
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
104
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
103
105
|
end
|
104
106
|
|
105
107
|
# RESPONSE: EndpointsSet
|
106
108
|
# endpoints: Array - # # List of endpoints provided by server
|
107
109
|
def fetch_endpoints(&block)
|
108
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
|
110
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
|
109
111
|
end
|
110
112
|
|
111
113
|
# INPUT: EndpointsSet
|
112
114
|
# endpoints: Array - # # List of endpoints provided by server
|
113
115
|
def set_endpoints(payload, &block)
|
114
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
116
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
115
117
|
end
|
116
118
|
|
117
119
|
# RESPONSE: ResultOfGetEndpoints
|
118
120
|
# query: String - # # Current query endpoint
|
119
121
|
# endpoints: Array - # # List of all endpoints used by client
|
120
122
|
def get_endpoints(&block)
|
121
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
|
123
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
|
122
124
|
end
|
123
125
|
|
124
126
|
# INPUT: ParamsOfQueryCounterparties
|
@@ -129,7 +131,7 @@ module TonClient
|
|
129
131
|
# RESPONSE: ResultOfQueryCollection
|
130
132
|
# result: Array - # # Objects that match the provided criteria
|
131
133
|
def query_counterparties(payload, &block)
|
132
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
134
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
133
135
|
end
|
134
136
|
|
135
137
|
# INPUT: ParamsOfQueryTransactionTree
|
@@ -141,7 +143,7 @@ module TonClient
|
|
141
143
|
# messages: Array - # # Messages.
|
142
144
|
# transactions: Array - # # Transactions.
|
143
145
|
def query_transaction_tree(payload, &block)
|
144
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
146
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
145
147
|
end
|
146
148
|
|
147
149
|
# INPUT: ParamsOfCreateBlockIterator
|
@@ -161,7 +163,7 @@ module TonClient
|
|
161
163
|
# RESPONSE: RegisteredIterator
|
162
164
|
# handle: Number - # # Iterator handle. # # Must be removed using `remove_iterator`when it is no more needed for the application.
|
163
165
|
def create_block_iterator(payload, &block)
|
164
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
166
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
165
167
|
end
|
166
168
|
|
167
169
|
# INPUT: ParamsOfResumeBlockIterator
|
@@ -169,7 +171,7 @@ module TonClient
|
|
169
171
|
# RESPONSE: RegisteredIterator
|
170
172
|
# handle: Number - # # Iterator handle. # # Must be removed using `remove_iterator`when it is no more needed for the application.
|
171
173
|
def resume_block_iterator(payload, &block)
|
172
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
174
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
173
175
|
end
|
174
176
|
|
175
177
|
# INPUT: ParamsOfCreateTransactionIterator
|
@@ -195,7 +197,7 @@ module TonClient
|
|
195
197
|
# RESPONSE: RegisteredIterator
|
196
198
|
# handle: Number - # # Iterator handle. # # Must be removed using `remove_iterator`when it is no more needed for the application.
|
197
199
|
def create_transaction_iterator(payload, &block)
|
198
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
200
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
199
201
|
end
|
200
202
|
|
201
203
|
# INPUT: ParamsOfResumeTransactionIterator
|
@@ -207,7 +209,7 @@ module TonClient
|
|
207
209
|
# RESPONSE: RegisteredIterator
|
208
210
|
# handle: Number - # # Iterator handle. # # Must be removed using `remove_iterator`when it is no more needed for the application.
|
209
211
|
def resume_transaction_iterator(payload, &block)
|
210
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
212
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
211
213
|
end
|
212
214
|
|
213
215
|
# INPUT: ParamsOfIteratorNext
|
@@ -222,13 +224,13 @@ module TonClient
|
|
222
224
|
# 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.
|
223
225
|
# Note that `resume_state` corresponds to the iteration positionafter the returned items.
|
224
226
|
def iterator_next(payload, &block)
|
225
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
227
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
226
228
|
end
|
227
229
|
|
228
230
|
# INPUT: RegisteredIterator
|
229
231
|
# handle: Number - # # Iterator handle. # # Must be removed using `remove_iterator`when it is no more needed for the application.
|
230
232
|
def remove_iterator(payload, &block)
|
231
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
233
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
232
234
|
end
|
233
235
|
|
234
236
|
end
|
@@ -3,11 +3,13 @@ module TonClient
|
|
3
3
|
class Processing
|
4
4
|
include CommonInstanceHelpers
|
5
5
|
|
6
|
-
attr_reader :context
|
6
|
+
attr_reader :context, :request_id, :requests
|
7
7
|
MODULE = self.to_s.downcase.gsub(/^(.+::|)(\w+)$/, '\2').freeze
|
8
8
|
|
9
|
-
def initialize(context: nil)
|
9
|
+
def initialize(context: nil, request_id: nil, requests: nil)
|
10
10
|
@context = context
|
11
|
+
@request_id = request_id
|
12
|
+
@requests = requests
|
11
13
|
end
|
12
14
|
|
13
15
|
# INPUT: ParamsOfSendMessage
|
@@ -20,7 +22,7 @@ module TonClient
|
|
20
22
|
# 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`.
|
21
23
|
# 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`.
|
22
24
|
def send_message(payload, &block)
|
23
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
25
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
24
26
|
end
|
25
27
|
|
26
28
|
# INPUT: ParamsOfWaitForTransaction
|
@@ -38,7 +40,7 @@ module TonClient
|
|
38
40
|
# decoded: DecodedOutput<Optional> - # # Optional decoded message bodies according to the optional `abi` parameter.
|
39
41
|
# fees: TransactionFees - # # Transaction fees
|
40
42
|
def wait_for_transaction(payload, &block)
|
41
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
43
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
42
44
|
end
|
43
45
|
|
44
46
|
# INPUT: ParamsOfProcessMessage
|
@@ -50,7 +52,7 @@ module TonClient
|
|
50
52
|
# decoded: DecodedOutput<Optional> - # # Optional decoded message bodies according to the optional `abi` parameter.
|
51
53
|
# fees: TransactionFees - # # Transaction fees
|
52
54
|
def process_message(payload, &block)
|
53
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
55
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
54
56
|
end
|
55
57
|
|
56
58
|
end
|
@@ -3,29 +3,31 @@ module TonClient
|
|
3
3
|
class Proofs
|
4
4
|
include CommonInstanceHelpers
|
5
5
|
|
6
|
-
attr_reader :context
|
6
|
+
attr_reader :context, :request_id, :requests
|
7
7
|
MODULE = self.to_s.downcase.gsub(/^(.+::|)(\w+)$/, '\2').freeze
|
8
8
|
|
9
|
-
def initialize(context: nil)
|
9
|
+
def initialize(context: nil, request_id: nil, requests: nil)
|
10
10
|
@context = context
|
11
|
+
@request_id = request_id
|
12
|
+
@requests = requests
|
11
13
|
end
|
12
14
|
|
13
15
|
# INPUT: ParamsOfProofBlockData
|
14
16
|
# 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.
|
15
17
|
def proof_block_data(payload, &block)
|
16
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
18
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
17
19
|
end
|
18
20
|
|
19
21
|
# INPUT: ParamsOfProofTransactionData
|
20
22
|
# 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.
|
21
23
|
def proof_transaction_data(payload, &block)
|
22
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
24
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
23
25
|
end
|
24
26
|
|
25
27
|
# INPUT: ParamsOfProofMessageData
|
26
28
|
# 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`.
|
27
29
|
def proof_message_data(payload, &block)
|
28
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
30
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
29
31
|
end
|
30
32
|
|
31
33
|
end
|
@@ -3,11 +3,13 @@ module TonClient
|
|
3
3
|
class Tvm
|
4
4
|
include CommonInstanceHelpers
|
5
5
|
|
6
|
-
attr_reader :context
|
6
|
+
attr_reader :context, :request_id, :requests
|
7
7
|
MODULE = self.to_s.downcase.gsub(/^(.+::|)(\w+)$/, '\2').freeze
|
8
8
|
|
9
|
-
def initialize(context: nil)
|
9
|
+
def initialize(context: nil, request_id: nil, requests: nil)
|
10
10
|
@context = context
|
11
|
+
@request_id = request_id
|
12
|
+
@requests = requests
|
11
13
|
end
|
12
14
|
|
13
15
|
# INPUT: ParamsOfRunExecutor
|
@@ -25,7 +27,7 @@ module TonClient
|
|
25
27
|
# account: String - # # Updated account state BOC. # # Encoded as `base64`
|
26
28
|
# fees: TransactionFees - # # Transaction fees
|
27
29
|
def run_executor(payload, &block)
|
28
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
30
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
29
31
|
end
|
30
32
|
|
31
33
|
# INPUT: ParamsOfRunTvm
|
@@ -40,7 +42,7 @@ module TonClient
|
|
40
42
|
# decoded: DecodedOutput<Optional> - # # Optional decoded message bodies according to the optional `abi` parameter.
|
41
43
|
# account: String - # # Updated account state BOC. # # Encoded as `base64`. Attention! Only `account_state.storage.state.data` part of the BOC is updated.
|
42
44
|
def run_tvm(payload, &block)
|
43
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
45
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
44
46
|
end
|
45
47
|
|
46
48
|
# INPUT: ParamsOfRunGet
|
@@ -53,7 +55,7 @@ module TonClient
|
|
53
55
|
# RESPONSE: ResultOfRunGet
|
54
56
|
# output: Value - # # Values returned by get-method on stack
|
55
57
|
def run_get(payload, &block)
|
56
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
58
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
57
59
|
end
|
58
60
|
|
59
61
|
end
|
@@ -3,11 +3,13 @@ module TonClient
|
|
3
3
|
class Utils
|
4
4
|
include CommonInstanceHelpers
|
5
5
|
|
6
|
-
attr_reader :context
|
6
|
+
attr_reader :context, :request_id, :requests
|
7
7
|
MODULE = self.to_s.downcase.gsub(/^(.+::|)(\w+)$/, '\2').freeze
|
8
8
|
|
9
|
-
def initialize(context: nil)
|
9
|
+
def initialize(context: nil, request_id: nil, requests: nil)
|
10
10
|
@context = context
|
11
|
+
@request_id = request_id
|
12
|
+
@requests = requests
|
11
13
|
end
|
12
14
|
|
13
15
|
# INPUT: ParamsOfConvertAddress
|
@@ -16,7 +18,7 @@ module TonClient
|
|
16
18
|
# RESPONSE: ResultOfConvertAddress
|
17
19
|
# address: String - # # Address in the specified format
|
18
20
|
def convert_address(payload, &block)
|
19
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
21
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
20
22
|
end
|
21
23
|
|
22
24
|
# INPUT: ParamsOfGetAddressType
|
@@ -24,7 +26,7 @@ module TonClient
|
|
24
26
|
# RESPONSE: ResultOfGetAddressType
|
25
27
|
# address_type: AccountAddressType - # # Account address type.
|
26
28
|
def get_address_type(payload, &block)
|
27
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
29
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
28
30
|
end
|
29
31
|
|
30
32
|
# INPUT: ParamsOfCalcStorageFee
|
@@ -33,7 +35,7 @@ module TonClient
|
|
33
35
|
# RESPONSE: ResultOfCalcStorageFee
|
34
36
|
# fee: String -
|
35
37
|
def calc_storage_fee(payload, &block)
|
36
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
38
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
37
39
|
end
|
38
40
|
|
39
41
|
# INPUT: ParamsOfCompressZstd
|
@@ -42,7 +44,7 @@ module TonClient
|
|
42
44
|
# RESPONSE: ResultOfCompressZstd
|
43
45
|
# compressed: String - # # Compressed data. # # Must be encoded as base64.
|
44
46
|
def compress_zstd(payload, &block)
|
45
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
47
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
46
48
|
end
|
47
49
|
|
48
50
|
# INPUT: ParamsOfDecompressZstd
|
@@ -50,7 +52,7 @@ module TonClient
|
|
50
52
|
# RESPONSE: ResultOfDecompressZstd
|
51
53
|
# decompressed: String - # # Decompressed data. # # Must be encoded as base64.
|
52
54
|
def decompress_zstd(payload, &block)
|
53
|
-
TonBinding.requestLibrary(context: context, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
55
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
54
56
|
end
|
55
57
|
|
56
58
|
end
|
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.
|
4
|
+
version: 1.1.49
|
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-
|
11
|
+
date: 2022-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|