everscale-client-ruby 1.1.50 → 1.1.53
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 +11 -8
- data/lib/everscale-client-ruby/Binding/binding.rb +41 -38
- data/lib/everscale-client-ruby/Client/Abi.rb +18 -17
- data/lib/everscale-client-ruby/Client/Boc.rb +22 -21
- data/lib/everscale-client-ruby/Client/Client.rb +18 -17
- data/lib/everscale-client-ruby/Client/Crypto.rb +54 -53
- data/lib/everscale-client-ruby/Client/Debot.rb +9 -8
- data/lib/everscale-client-ruby/Client/Net.rb +25 -24
- data/lib/everscale-client-ruby/Client/Processing.rb +6 -5
- data/lib/everscale-client-ruby/Client/Proofs.rb +6 -5
- data/lib/everscale-client-ruby/Client/Tvm.rb +6 -5
- data/lib/everscale-client-ruby/Client/Utils.rb +8 -7
- data/lib/everscale-client-ruby/Helpers/CommonHelpers.rb +38 -1
- data/lib/everscale-client-ruby/version.rb +1 -1
- data/lib/everscale-client-ruby.rb +1 -1
- metadata +6 -20
@@ -3,13 +3,14 @@ module TonClient
|
|
3
3
|
class Crypto
|
4
4
|
include CommonInstanceHelpers
|
5
5
|
|
6
|
-
attr_reader :context, :request_id, :requests
|
6
|
+
attr_reader :context, :request_id, :requests, :monitor
|
7
7
|
MODULE = self.to_s.downcase.gsub(/^(.+::|)(\w+)$/, '\2').freeze
|
8
8
|
|
9
|
-
def initialize(context: nil, request_id: nil, requests: nil)
|
9
|
+
def initialize(context: nil, request_id: nil, requests: nil, monitor: nil)
|
10
10
|
@context = context
|
11
11
|
@request_id = request_id
|
12
12
|
@requests = requests
|
13
|
+
@monitor = monitor
|
13
14
|
end
|
14
15
|
|
15
16
|
# INPUT: ParamsOfFactorize
|
@@ -17,7 +18,7 @@ module TonClient
|
|
17
18
|
# RESPONSE: ResultOfFactorize
|
18
19
|
# factors: Array - # # Two factors of composite or empty if composite can't be factorized.
|
19
20
|
def factorize(payload, &block)
|
20
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
21
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
21
22
|
end
|
22
23
|
|
23
24
|
# INPUT: ParamsOfModularPower
|
@@ -27,7 +28,7 @@ module TonClient
|
|
27
28
|
# RESPONSE: ResultOfModularPower
|
28
29
|
# modular_power: String - # # Result of modular exponentiation
|
29
30
|
def modular_power(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)
|
31
|
+
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
32
|
end
|
32
33
|
|
33
34
|
# INPUT: ParamsOfTonCrc16
|
@@ -35,7 +36,7 @@ module TonClient
|
|
35
36
|
# RESPONSE: ResultOfTonCrc16
|
36
37
|
# crc: Number - # # Calculated CRC for input data.
|
37
38
|
def ton_crc16(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)
|
39
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
39
40
|
end
|
40
41
|
|
41
42
|
# INPUT: ParamsOfGenerateRandomBytes
|
@@ -43,7 +44,7 @@ module TonClient
|
|
43
44
|
# RESPONSE: ResultOfGenerateRandomBytes
|
44
45
|
# bytes: String - # # Generated bytes encoded in `base64`.
|
45
46
|
def generate_random_bytes(payload, &block)
|
46
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
47
|
+
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
48
|
end
|
48
49
|
|
49
50
|
# INPUT: ParamsOfConvertPublicKeyToTonSafeFormat
|
@@ -51,14 +52,14 @@ module TonClient
|
|
51
52
|
# RESPONSE: ResultOfConvertPublicKeyToTonSafeFormat
|
52
53
|
# ton_public_key: String - # # Public key represented in TON safe format.
|
53
54
|
def convert_public_key_to_ton_safe_format(payload, &block)
|
54
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
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)
|
55
56
|
end
|
56
57
|
|
57
58
|
# RESPONSE: KeyPair
|
58
59
|
# public: String - # # Public key - 64 symbols hex string
|
59
60
|
# secret: String - # # Private key - u64 symbols hex string
|
60
61
|
def generate_random_sign_keys(&block)
|
61
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
|
62
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
|
62
63
|
end
|
63
64
|
|
64
65
|
# INPUT: ParamsOfSign
|
@@ -68,7 +69,7 @@ module TonClient
|
|
68
69
|
# signed: String - # # Signed data combined with signature encoded in `base64`.
|
69
70
|
# signature: String - # # Signature encoded in `hex`.
|
70
71
|
def sign(payload, &block)
|
71
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
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)
|
72
73
|
end
|
73
74
|
|
74
75
|
# INPUT: ParamsOfVerifySignature
|
@@ -77,7 +78,7 @@ module TonClient
|
|
77
78
|
# RESPONSE: ResultOfVerifySignature
|
78
79
|
# unsigned: String - # # Unsigned data encoded in `base64`.
|
79
80
|
def verify_signature(payload, &block)
|
80
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
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)
|
81
82
|
end
|
82
83
|
|
83
84
|
# INPUT: ParamsOfHash
|
@@ -85,7 +86,7 @@ module TonClient
|
|
85
86
|
# RESPONSE: ResultOfHash
|
86
87
|
# hash: String - # # Hash of input `data`. # # Encoded with 'hex'.
|
87
88
|
def sha256(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)
|
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)
|
89
90
|
end
|
90
91
|
|
91
92
|
# INPUT: ParamsOfHash
|
@@ -93,7 +94,7 @@ module TonClient
|
|
93
94
|
# RESPONSE: ResultOfHash
|
94
95
|
# hash: String - # # Hash of input `data`. # # Encoded with 'hex'.
|
95
96
|
def sha512(payload, &block)
|
96
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
97
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
97
98
|
end
|
98
99
|
|
99
100
|
# INPUT: ParamsOfScrypt
|
@@ -106,7 +107,7 @@ module TonClient
|
|
106
107
|
# RESPONSE: ResultOfScrypt
|
107
108
|
# key: String - # # Derived key. # # Encoded with `hex`.
|
108
109
|
def scrypt(payload, &block)
|
109
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
110
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
110
111
|
end
|
111
112
|
|
112
113
|
# INPUT: ParamsOfNaclSignKeyPairFromSecret
|
@@ -115,7 +116,7 @@ module TonClient
|
|
115
116
|
# public: String - # # Public key - 64 symbols hex string
|
116
117
|
# secret: String - # # Private key - u64 symbols hex string
|
117
118
|
def nacl_sign_keypair_from_secret_key(payload, &block)
|
118
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
119
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
119
120
|
end
|
120
121
|
|
121
122
|
# INPUT: ParamsOfNaclSign
|
@@ -124,7 +125,7 @@ module TonClient
|
|
124
125
|
# RESPONSE: ResultOfNaclSign
|
125
126
|
# signed: String - # # Signed data, encoded in `base64`.
|
126
127
|
def nacl_sign(payload, &block)
|
127
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
128
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
128
129
|
end
|
129
130
|
|
130
131
|
# INPUT: ParamsOfNaclSignOpen
|
@@ -133,7 +134,7 @@ module TonClient
|
|
133
134
|
# RESPONSE: ResultOfNaclSignOpen
|
134
135
|
# unsigned: String - # # Unsigned data, encoded in `base64`.
|
135
136
|
def nacl_sign_open(payload, &block)
|
136
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
137
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
137
138
|
end
|
138
139
|
|
139
140
|
# INPUT: ParamsOfNaclSign
|
@@ -142,7 +143,7 @@ module TonClient
|
|
142
143
|
# RESPONSE: ResultOfNaclSignDetached
|
143
144
|
# signature: String - # # Signature encoded in `hex`.
|
144
145
|
def nacl_sign_detached(payload, &block)
|
145
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
146
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
146
147
|
end
|
147
148
|
|
148
149
|
# INPUT: ParamsOfNaclSignDetachedVerify
|
@@ -152,14 +153,14 @@ module TonClient
|
|
152
153
|
# RESPONSE: ResultOfNaclSignDetachedVerify
|
153
154
|
# succeeded: Boolean - # # `true` if verification succeeded or `false` if it failed
|
154
155
|
def nacl_sign_detached_verify(payload, &block)
|
155
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
156
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
156
157
|
end
|
157
158
|
|
158
159
|
# RESPONSE: KeyPair
|
159
160
|
# public: String - # # Public key - 64 symbols hex string
|
160
161
|
# secret: String - # # Private key - u64 symbols hex string
|
161
162
|
def nacl_box_keypair(&block)
|
162
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
|
163
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
|
163
164
|
end
|
164
165
|
|
165
166
|
# INPUT: ParamsOfNaclBoxKeyPairFromSecret
|
@@ -168,7 +169,7 @@ module TonClient
|
|
168
169
|
# public: String - # # Public key - 64 symbols hex string
|
169
170
|
# secret: String - # # Private key - u64 symbols hex string
|
170
171
|
def nacl_box_keypair_from_secret_key(payload, &block)
|
171
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
172
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
172
173
|
end
|
173
174
|
|
174
175
|
# INPUT: ParamsOfNaclBox
|
@@ -179,7 +180,7 @@ module TonClient
|
|
179
180
|
# RESPONSE: ResultOfNaclBox
|
180
181
|
# encrypted: String - # # Encrypted data encoded in `base64`.
|
181
182
|
def nacl_box(payload, &block)
|
182
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
183
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
183
184
|
end
|
184
185
|
|
185
186
|
# INPUT: ParamsOfNaclBoxOpen
|
@@ -190,7 +191,7 @@ module TonClient
|
|
190
191
|
# RESPONSE: ResultOfNaclBoxOpen
|
191
192
|
# decrypted: String - # # Decrypted data encoded in `base64`.
|
192
193
|
def nacl_box_open(payload, &block)
|
193
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
194
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
194
195
|
end
|
195
196
|
|
196
197
|
# INPUT: ParamsOfNaclSecretBox
|
@@ -200,7 +201,7 @@ module TonClient
|
|
200
201
|
# RESPONSE: ResultOfNaclBox
|
201
202
|
# encrypted: String - # # Encrypted data encoded in `base64`.
|
202
203
|
def nacl_secret_box(payload, &block)
|
203
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
204
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
204
205
|
end
|
205
206
|
|
206
207
|
# INPUT: ParamsOfNaclSecretBoxOpen
|
@@ -210,7 +211,7 @@ module TonClient
|
|
210
211
|
# RESPONSE: ResultOfNaclBoxOpen
|
211
212
|
# decrypted: String - # # Decrypted data encoded in `base64`.
|
212
213
|
def nacl_secret_box_open(payload, &block)
|
213
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
214
|
+
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
215
|
end
|
215
216
|
|
216
217
|
# INPUT: ParamsOfMnemonicWords
|
@@ -218,7 +219,7 @@ module TonClient
|
|
218
219
|
# RESPONSE: ResultOfMnemonicWords
|
219
220
|
# words: String - # # The list of mnemonic words
|
220
221
|
def mnemonic_words(payload, &block)
|
221
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
222
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
222
223
|
end
|
223
224
|
|
224
225
|
# INPUT: ParamsOfMnemonicFromRandom
|
@@ -227,7 +228,7 @@ module TonClient
|
|
227
228
|
# RESPONSE: ResultOfMnemonicFromRandom
|
228
229
|
# phrase: String - # # String of mnemonic words
|
229
230
|
def mnemonic_from_random(payload, &block)
|
230
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
231
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
231
232
|
end
|
232
233
|
|
233
234
|
# INPUT: ParamsOfMnemonicFromEntropy
|
@@ -237,7 +238,7 @@ module TonClient
|
|
237
238
|
# RESPONSE: ResultOfMnemonicFromEntropy
|
238
239
|
# phrase: String - # # Phrase
|
239
240
|
def mnemonic_from_entropy(payload, &block)
|
240
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
241
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
241
242
|
end
|
242
243
|
|
243
244
|
# INPUT: ParamsOfMnemonicVerify
|
@@ -247,7 +248,7 @@ module TonClient
|
|
247
248
|
# RESPONSE: ResultOfMnemonicVerify
|
248
249
|
# valid: Boolean - # # Flag indicating if the mnemonic is valid or not
|
249
250
|
def mnemonic_verify(payload, &block)
|
250
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
251
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
251
252
|
end
|
252
253
|
|
253
254
|
# INPUT: ParamsOfMnemonicDeriveSignKeys
|
@@ -259,7 +260,7 @@ module TonClient
|
|
259
260
|
# public: String - # # Public key - 64 symbols hex string
|
260
261
|
# secret: String - # # Private key - u64 symbols hex string
|
261
262
|
def mnemonic_derive_sign_keys(payload, &block)
|
262
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
263
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
263
264
|
end
|
264
265
|
|
265
266
|
# INPUT: ParamsOfHDKeyXPrvFromMnemonic
|
@@ -269,7 +270,7 @@ module TonClient
|
|
269
270
|
# RESPONSE: ResultOfHDKeyXPrvFromMnemonic
|
270
271
|
# xprv: String - # # Serialized extended master private key
|
271
272
|
def hdkey_xprv_from_mnemonic(payload, &block)
|
272
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
273
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
273
274
|
end
|
274
275
|
|
275
276
|
# INPUT: ParamsOfHDKeyDeriveFromXPrv
|
@@ -279,7 +280,7 @@ module TonClient
|
|
279
280
|
# RESPONSE: ResultOfHDKeyDeriveFromXPrv
|
280
281
|
# xprv: String - # # Serialized extended private key
|
281
282
|
def hdkey_derive_from_xprv(payload, &block)
|
282
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
283
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
283
284
|
end
|
284
285
|
|
285
286
|
# INPUT: ParamsOfHDKeyDeriveFromXPrvPath
|
@@ -288,7 +289,7 @@ module TonClient
|
|
288
289
|
# RESPONSE: ResultOfHDKeyDeriveFromXPrvPath
|
289
290
|
# xprv: String - # # Derived serialized extended private key
|
290
291
|
def hdkey_derive_from_xprv_path(payload, &block)
|
291
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
292
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
292
293
|
end
|
293
294
|
|
294
295
|
# INPUT: ParamsOfHDKeySecretFromXPrv
|
@@ -296,7 +297,7 @@ module TonClient
|
|
296
297
|
# RESPONSE: ResultOfHDKeySecretFromXPrv
|
297
298
|
# secret: String - # # Private key - 64 symbols hex string
|
298
299
|
def hdkey_secret_from_xprv(payload, &block)
|
299
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
300
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
300
301
|
end
|
301
302
|
|
302
303
|
# INPUT: ParamsOfHDKeyPublicFromXPrv
|
@@ -304,7 +305,7 @@ module TonClient
|
|
304
305
|
# RESPONSE: ResultOfHDKeyPublicFromXPrv
|
305
306
|
# public: String - # # Public key - 64 symbols hex string
|
306
307
|
def hdkey_public_from_xprv(payload, &block)
|
307
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
308
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
308
309
|
end
|
309
310
|
|
310
311
|
# INPUT: ParamsOfChaCha20
|
@@ -314,7 +315,7 @@ module TonClient
|
|
314
315
|
# RESPONSE: ResultOfChaCha20
|
315
316
|
# data: String - # # Encrypted/decrypted data. # # Encoded with `base64`.
|
316
317
|
def chacha20(payload, &block)
|
317
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
318
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
318
319
|
end
|
319
320
|
|
320
321
|
# INPUT: ParamsOfCreateCryptoBox
|
@@ -323,13 +324,13 @@ module TonClient
|
|
323
324
|
# RESPONSE: RegisteredCryptoBox
|
324
325
|
# handle: CryptoBoxHandle -
|
325
326
|
def create_crypto_box(payload, &block)
|
326
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
327
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
327
328
|
end
|
328
329
|
|
329
330
|
# INPUT: RegisteredCryptoBox
|
330
331
|
# handle: CryptoBoxHandle -
|
331
332
|
def remove_crypto_box(payload, &block)
|
332
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
333
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
333
334
|
end
|
334
335
|
|
335
336
|
# INPUT: RegisteredCryptoBox
|
@@ -337,7 +338,7 @@ module TonClient
|
|
337
338
|
# RESPONSE: ResultOfGetCryptoBoxInfo
|
338
339
|
# encrypted_secret: String - # # Secret (seed phrase) encrypted with salt and password.
|
339
340
|
def get_crypto_box_info(payload, &block)
|
340
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
341
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
341
342
|
end
|
342
343
|
|
343
344
|
# INPUT: RegisteredCryptoBox
|
@@ -347,7 +348,7 @@ module TonClient
|
|
347
348
|
# dictionary: MnemonicDictionary -
|
348
349
|
# wordcount: Number -
|
349
350
|
def get_crypto_box_seed_phrase(payload, &block)
|
350
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
351
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
351
352
|
end
|
352
353
|
|
353
354
|
# INPUT: ParamsOfGetSigningBoxFromCryptoBox
|
@@ -357,7 +358,7 @@ module TonClient
|
|
357
358
|
# RESPONSE: RegisteredSigningBox
|
358
359
|
# handle: SigningBoxHandle - # # Handle of the signing box.
|
359
360
|
def get_signing_box_from_crypto_box(payload, &block)
|
360
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
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)
|
361
362
|
end
|
362
363
|
|
363
364
|
# INPUT: ParamsOfGetEncryptionBoxFromCryptoBox
|
@@ -368,19 +369,19 @@ module TonClient
|
|
368
369
|
# RESPONSE: RegisteredEncryptionBox
|
369
370
|
# handle: EncryptionBoxHandle - # # Handle of the encryption box.
|
370
371
|
def get_encryption_box_from_crypto_box(payload, &block)
|
371
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
372
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
372
373
|
end
|
373
374
|
|
374
375
|
# INPUT: RegisteredCryptoBox
|
375
376
|
# handle: CryptoBoxHandle -
|
376
377
|
def clear_crypto_box_secret_cache(payload, &block)
|
377
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
378
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
378
379
|
end
|
379
380
|
|
380
381
|
# RESPONSE: RegisteredSigningBox
|
381
382
|
# handle: SigningBoxHandle - # # Handle of the signing box.
|
382
383
|
def register_signing_box(&block)
|
383
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
|
384
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
|
384
385
|
end
|
385
386
|
|
386
387
|
# INPUT: KeyPair
|
@@ -389,7 +390,7 @@ module TonClient
|
|
389
390
|
# RESPONSE: RegisteredSigningBox
|
390
391
|
# handle: SigningBoxHandle - # # Handle of the signing box.
|
391
392
|
def get_signing_box(payload, &block)
|
392
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
393
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
393
394
|
end
|
394
395
|
|
395
396
|
# INPUT: RegisteredSigningBox
|
@@ -397,7 +398,7 @@ module TonClient
|
|
397
398
|
# RESPONSE: ResultOfSigningBoxGetPublicKey
|
398
399
|
# pubkey: String - # # Public key of signing box. # # Encoded with hex
|
399
400
|
def signing_box_get_public_key(payload, &block)
|
400
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
401
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
401
402
|
end
|
402
403
|
|
403
404
|
# INPUT: ParamsOfSigningBoxSign
|
@@ -406,25 +407,25 @@ module TonClient
|
|
406
407
|
# RESPONSE: ResultOfSigningBoxSign
|
407
408
|
# signature: String - # # Data signature. # # Encoded with `hex`.
|
408
409
|
def signing_box_sign(payload, &block)
|
409
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
410
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
410
411
|
end
|
411
412
|
|
412
413
|
# INPUT: RegisteredSigningBox
|
413
414
|
# handle: SigningBoxHandle - # # Handle of the signing box.
|
414
415
|
def remove_signing_box(payload, &block)
|
415
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
416
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
416
417
|
end
|
417
418
|
|
418
419
|
# RESPONSE: RegisteredEncryptionBox
|
419
420
|
# handle: EncryptionBoxHandle - # # Handle of the encryption box.
|
420
421
|
def register_encryption_box(&block)
|
421
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
|
422
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)
|
422
423
|
end
|
423
424
|
|
424
425
|
# INPUT: RegisteredEncryptionBox
|
425
426
|
# handle: EncryptionBoxHandle - # # Handle of the encryption box.
|
426
427
|
def remove_encryption_box(payload, &block)
|
427
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
428
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
428
429
|
end
|
429
430
|
|
430
431
|
# INPUT: ParamsOfEncryptionBoxGetInfo
|
@@ -432,7 +433,7 @@ module TonClient
|
|
432
433
|
# RESPONSE: ResultOfEncryptionBoxGetInfo
|
433
434
|
# info: EncryptionBoxInfo - # # Encryption box information
|
434
435
|
def encryption_box_get_info(payload, &block)
|
435
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
436
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
436
437
|
end
|
437
438
|
|
438
439
|
# INPUT: ParamsOfEncryptionBoxEncrypt
|
@@ -441,7 +442,7 @@ module TonClient
|
|
441
442
|
# RESPONSE: ResultOfEncryptionBoxEncrypt
|
442
443
|
# data: String - # # Encrypted data, encoded in Base64. # # Padded to cipher block size
|
443
444
|
def encryption_box_encrypt(payload, &block)
|
444
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
445
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
445
446
|
end
|
446
447
|
|
447
448
|
# INPUT: ParamsOfEncryptionBoxDecrypt
|
@@ -450,7 +451,7 @@ module TonClient
|
|
450
451
|
# RESPONSE: ResultOfEncryptionBoxDecrypt
|
451
452
|
# data: String - # # Decrypted data, encoded in Base64.
|
452
453
|
def encryption_box_decrypt(payload, &block)
|
453
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
454
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
454
455
|
end
|
455
456
|
|
456
457
|
# INPUT: ParamsOfCreateEncryptionBox
|
@@ -458,7 +459,7 @@ module TonClient
|
|
458
459
|
# RESPONSE: RegisteredEncryptionBox
|
459
460
|
# handle: EncryptionBoxHandle - # # Handle of the encryption box.
|
460
461
|
def create_encryption_box(payload, &block)
|
461
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
462
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
462
463
|
end
|
463
464
|
|
464
465
|
end
|
@@ -3,13 +3,14 @@ module TonClient
|
|
3
3
|
class Debot
|
4
4
|
include CommonInstanceHelpers
|
5
5
|
|
6
|
-
attr_reader :context, :request_id, :requests
|
6
|
+
attr_reader :context, :request_id, :requests, :monitor
|
7
7
|
MODULE = self.to_s.downcase.gsub(/^(.+::|)(\w+)$/, '\2').freeze
|
8
8
|
|
9
|
-
def initialize(context: nil, request_id: nil, requests: nil)
|
9
|
+
def initialize(context: nil, request_id: nil, requests: nil, monitor: nil)
|
10
10
|
@context = context
|
11
11
|
@request_id = request_id
|
12
12
|
@requests = requests
|
13
|
+
@monitor = monitor
|
13
14
|
end
|
14
15
|
|
15
16
|
# INPUT: ParamsOfInit
|
@@ -19,13 +20,13 @@ module TonClient
|
|
19
20
|
# debot_abi: String - # # Debot abi as json string.
|
20
21
|
# info: DebotInfo - # # Debot metadata.
|
21
22
|
def init(payload, &block)
|
22
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
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
|
|
25
26
|
# INPUT: ParamsOfStart
|
26
27
|
# debot_handle: DebotHandle - # # Debot handle which references an instance of debot engine.
|
27
28
|
def start(payload, &block)
|
28
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
29
|
+
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, monitor: monitor, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
29
30
|
end
|
30
31
|
|
31
32
|
# INPUT: ParamsOfFetch
|
@@ -33,27 +34,27 @@ module TonClient
|
|
33
34
|
# RESPONSE: ResultOfFetch
|
34
35
|
# info: DebotInfo - # # Debot metadata.
|
35
36
|
def fetch(payload, &block)
|
36
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
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)
|
37
38
|
end
|
38
39
|
|
39
40
|
# INPUT: ParamsOfExecute
|
40
41
|
# debot_handle: DebotHandle - # # Debot handle which references an instance of debot engine.
|
41
42
|
# action: DebotAction - # # Debot Action that must be executed.
|
42
43
|
def execute(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)
|
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)
|
44
45
|
end
|
45
46
|
|
46
47
|
# INPUT: ParamsOfSend
|
47
48
|
# debot_handle: DebotHandle - # # Debot handle which references an instance of debot engine.
|
48
49
|
# message: String - # # BOC of internal message to debot encoded in base64 format.
|
49
50
|
def send(payload, &block)
|
50
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
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)
|
51
52
|
end
|
52
53
|
|
53
54
|
# INPUT: ParamsOfRemove
|
54
55
|
# debot_handle: DebotHandle - # # Debot handle which references an instance of debot engine.
|
55
56
|
def remove(payload, &block)
|
56
|
-
TonBinding.requestLibrary(context: context, request_id: request_id, requests: requests, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
57
|
+
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
58
|
end
|
58
59
|
|
59
60
|
end
|