ton-client-ruby 1.1.11 → 1.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/code_generator/code_generator.rb +2 -3
- data/lib/ton-client-ruby/Client/Debot.rb +1 -1
- data/lib/ton-client-ruby/version.rb +1 -1
- data/lib/ton-client-ruby.rb +14 -14
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75ecb42739e96bec6c1d10a707132bca2e8ea6d5b9ca4d9c8873377e7fd176cd
|
4
|
+
data.tar.gz: a3bce7a17dc09d78a535652118117ee949faf204c0cd1662d5ec41bd11314c27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cd7ede2622ebf6f50b02c03c30ad40fc341fef27082136310294844d2bf050579f649175e8d4e22557434dcc305bd7615f90384db4e764ae05b766a13af221d
|
7
|
+
data.tar.gz: 744a09948f81d6498ecf7d6f17c5f71b55279d00d02663479cbdcea2238c6434bdea5013b083596ca166c9aebf70929a6795f6c664e2bbaaa21fbdbd8789f227
|
@@ -283,13 +283,12 @@ cd ton-client-ruby\n
|
|
283
283
|
private def gen_function(function, types)
|
284
284
|
content = getFunctionComment(function, types)
|
285
285
|
content << "#{TAB}#{TAB}def #{function.name}"
|
286
|
-
sdk_method_name = function.name == 'init' ? "'initialize'" : '__method__.to_s'
|
287
286
|
if function.arguments.empty?
|
288
287
|
content << "(&block)\n"
|
289
|
-
content << "#{TAB}#{TAB}#{TAB}core.requestLibrary(context: context.id, method_name: full_method_name(MODULE,
|
288
|
+
content << "#{TAB}#{TAB}#{TAB}core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: {}, &block)\n"
|
290
289
|
else
|
291
290
|
content << "(payload, &block)\n"
|
292
|
-
content << "#{TAB}#{TAB}#{TAB}core.requestLibrary(context: context.id, method_name: full_method_name(MODULE,
|
291
|
+
content << "#{TAB}#{TAB}#{TAB}core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)\n"
|
293
292
|
end
|
294
293
|
content << "#{TAB}#{TAB}end\n\n"
|
295
294
|
|
@@ -18,7 +18,7 @@ module TonClient
|
|
18
18
|
# debot_abi: String - # # Debot abi as json string.
|
19
19
|
# info: DebotInfo - # # Debot metadata.
|
20
20
|
def init(payload, &block)
|
21
|
-
core.requestLibrary(context: context.id, method_name: full_method_name(MODULE,
|
21
|
+
core.requestLibrary(context: context.id, method_name: full_method_name(MODULE, __method__.to_s), payload: payload, &block)
|
22
22
|
end
|
23
23
|
|
24
24
|
# INPUT: ParamsOfStart
|
data/lib/ton-client-ruby.rb
CHANGED
@@ -4,20 +4,20 @@ require 'json'
|
|
4
4
|
require 'byebug'
|
5
5
|
require 'dotenv'
|
6
6
|
require 'fileutils'
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
7
|
+
require_relative './ton-client-ruby/Helpers/CommonHelpers.rb'
|
8
|
+
require_relative './ton-client-ruby/Binding/struct.rb'
|
9
|
+
require_relative './ton-client-ruby/Binding/binding.rb'
|
10
|
+
require_relative './ton-client-ruby/Client/Context.rb'
|
11
|
+
require_relative './ton-client-ruby/Client/Client.rb'
|
12
|
+
require_relative './ton-client-ruby/Client/Crypto.rb'
|
13
|
+
require_relative './ton-client-ruby/Client/Abi.rb'
|
14
|
+
require_relative './ton-client-ruby/Client/Boc.rb'
|
15
|
+
require_relative './ton-client-ruby/Client/Net.rb'
|
16
|
+
require_relative './ton-client-ruby/Client/Processing.rb'
|
17
|
+
require_relative './ton-client-ruby/Client/Tvm.rb'
|
18
|
+
require_relative './ton-client-ruby/Client/Utils.rb'
|
19
|
+
require_relative './ton-client-ruby/Client/Debot.rb'
|
20
|
+
require_relative './ton-client-ruby/version'
|
21
21
|
|
22
22
|
module TonClient
|
23
23
|
|