ton-sdk-ruby 0.0.2 → 0.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f2ffe9ccf081b6ce5dde3e15203bc8cd37606349e63e5e73f168c56e645c50dd
4
- data.tar.gz: a08dd39e5fc498ef1eafd80f0fe4299a206b6a2289cf45d9277adace66f92df4
3
+ metadata.gz: 25a0c3e316b01ed8e0cc0ab2ef117cb474e79dc62a5c906bba2961cc38cffa4e
4
+ data.tar.gz: cdafc6b80d047df373fa13f556d7796285a264272edae1a2e07494ec66ca361d
5
5
  SHA512:
6
- metadata.gz: 13bd2bc3a2380d11671d864200cc1303a02b34b7cd2241c662057653880c3862ff5fe1ac8fb101d09094289e1e7c10640faf0eddd444072f680ff61745108da7
7
- data.tar.gz: e1852a2db5bf31de029d19330a1ba1c29a3d7db3124215a7e93c5a5b508c1ccd43a82c2f71c22d352e0dc8f9470befc33afef69fa4e385e280f0a29da003ad58
6
+ metadata.gz: f92e1abe5d87b03477d00cc383c3b93055f1a979134542c8a0b71a7c858073141276bb28102c4adc2361a066b866eb330b3129f35953de321884208db450c7da
7
+ data.tar.gz: 3e231351b1b6d5b776430ea24e6291ffd04e81479eba66520bda2fbe23ad836035ee7ed1352051bfdb21b2cfee4cff862eb24b904d2b3090a8543a2d0344ea63
@@ -2,6 +2,7 @@ module TonSdkRuby
2
2
 
3
3
  class BitArray < Array
4
4
  extend TonSdkRuby
5
+ include TonSdkRuby
5
6
 
6
7
  attr_accessor :read_cursor
7
8
 
@@ -1,6 +1,7 @@
1
1
  module TonSdkRuby
2
2
  class Builder
3
3
  extend TonSdkRuby
4
+ include TonSdkRuby
4
5
 
5
6
  attr_reader :size, :refs, :bits
6
7
 
@@ -176,6 +176,9 @@ module TonSdkRuby
176
176
 
177
177
 
178
178
  class Cell
179
+ extend TonSdkRuby
180
+ include TonSdkRuby
181
+
179
182
  attr_accessor :bits, :refs, :type, :mask
180
183
  attr_reader :hashes, :depths
181
184
  private :bits, :refs, :type, :mask, :hashes, :depths
@@ -359,4 +362,4 @@ module TonSdkRuby
359
362
  end
360
363
 
361
364
  end
362
- end
365
+ end
@@ -2,6 +2,7 @@ module TonSdkRuby
2
2
 
3
3
  class Hashmap
4
4
  extend TonSdkRuby
5
+ include TonSdkRuby
5
6
 
6
7
  attr_reader :hashmap, :key_size
7
8
 
@@ -1,6 +1,7 @@
1
1
  module TonSdkRuby
2
2
  class Mask
3
3
  extend TonSdkRuby
4
+ include TonSdkRuby
4
5
 
5
6
  attr_accessor :hash_index, :hash_count, :value
6
7
 
@@ -2,6 +2,7 @@ module TonSdkRuby
2
2
 
3
3
  class Slice
4
4
  extend TonSdkRuby
5
+ include TonSdkRuby
5
6
 
6
7
  def initialize(bits, refs)
7
8
  @bits = bits
@@ -6,6 +6,7 @@ require "ed25519"
6
6
 
7
7
  module TonSdkRuby
8
8
  class TonMnemonic
9
+ extend TonSdkRuby
9
10
  include TonSdkRuby
10
11
 
11
12
  TON_PBKDF_ITERATIONS = 100_000
@@ -141,4 +142,4 @@ module TonSdkRuby
141
142
  words.map { |v| v.downcase.strip }
142
143
  end
143
144
  end
144
- end
145
+ end
@@ -1,6 +1,7 @@
1
1
  module TonSdkRuby
2
2
  class Provider
3
3
  extend TonSdkRuby
4
+ include TonSdkRuby
4
5
 
5
6
  attr_accessor :provider
6
7
 
@@ -2,6 +2,7 @@ module TonSdkRuby
2
2
 
3
3
  class TonCenter
4
4
  extend TonSdkRuby
5
+ include TonSdkRuby
5
6
 
6
7
  URL = 'https://toncenter.com/api/v2/jsonRPC'
7
8
  attr_accessor :api_key, :url
@@ -8,6 +8,7 @@ module TonSdkRuby
8
8
 
9
9
  class Address
10
10
  extend TonSdkRuby
11
+ include TonSdkRuby
11
12
 
12
13
  NONE = nil
13
14
 
@@ -1,6 +1,7 @@
1
1
  module TonSdkRuby
2
2
  class TickTockOptions
3
3
  extend TonSdkRuby
4
+ include TonSdkRuby
4
5
 
5
6
  attr_accessor :tick, :tock
6
7
 
@@ -11,6 +12,9 @@ module TonSdkRuby
11
12
  end
12
13
 
13
14
  class SimpleLibOptions
15
+ extend TonSdkRuby
16
+ include TonSdkRuby
17
+
14
18
  attr_accessor :public, :root
15
19
 
16
20
  def initialize(public_value, root_value)
@@ -20,6 +24,9 @@ module TonSdkRuby
20
24
  end
21
25
 
22
26
  class TickTock
27
+ extend TonSdkRuby
28
+ include TonSdkRuby
29
+
23
30
  attr_reader :data, :cell
24
31
 
25
32
  def initialize(options)
@@ -39,6 +46,9 @@ module TonSdkRuby
39
46
  end
40
47
 
41
48
  class SimpleLib
49
+ extend TonSdkRuby
50
+ include TonSdkRuby
51
+
42
52
  attr_reader :data, :cell
43
53
 
44
54
  def initialize(options)
@@ -59,6 +69,9 @@ module TonSdkRuby
59
69
  end
60
70
 
61
71
  class StateInitOptions
72
+ extend TonSdkRuby
73
+ include TonSdkRuby
74
+
62
75
  attr_accessor :split_depth, :special, :code, :data, :library
63
76
 
64
77
  def initialize(options = {})
@@ -71,6 +84,9 @@ module TonSdkRuby
71
84
  end
72
85
 
73
86
  class StateInit
87
+ extend TonSdkRuby
88
+ include TonSdkRuby
89
+
74
90
  attr_reader :data, :cell
75
91
 
76
92
  def initialize(state_init_options)
@@ -115,6 +131,9 @@ module TonSdkRuby
115
131
  end
116
132
 
117
133
  class IntMsgInfo
134
+ extend TonSdkRuby
135
+ include TonSdkRuby
136
+
118
137
  attr_accessor :tag, :ihr_disabled, :bounce, :bounced, :src, :dest, :value,
119
138
  :ihr_fee, :fwd_fee, :created_lt, :created_at
120
139
 
@@ -134,6 +153,9 @@ module TonSdkRuby
134
153
  end
135
154
 
136
155
  class ExtInMsgInfo
156
+ extend TonSdkRuby
157
+ include TonSdkRuby
158
+
137
159
  attr_accessor :tag, :src, :dest, :import_fee
138
160
 
139
161
  def initialize(options = {})
@@ -145,6 +167,9 @@ module TonSdkRuby
145
167
  end
146
168
 
147
169
  class CommonMsgInfo
170
+ extend TonSdkRuby
171
+ include TonSdkRuby
172
+
148
173
  attr_reader :data, :cell
149
174
 
150
175
  def initialize(data)
@@ -234,6 +259,9 @@ module TonSdkRuby
234
259
  end
235
260
 
236
261
  class MessageOptions
262
+ extend TonSdkRuby
263
+ include TonSdkRuby
264
+
237
265
  attr_accessor :info, :init, :body
238
266
 
239
267
  def initialize(options = {})
@@ -244,6 +272,9 @@ module TonSdkRuby
244
272
  end
245
273
 
246
274
  class Message
275
+ extend TonSdkRuby
276
+ include TonSdkRuby
277
+
247
278
  attr_reader :data, :cell
248
279
 
249
280
  def initialize(options)
@@ -296,6 +327,9 @@ module TonSdkRuby
296
327
  end
297
328
 
298
329
  class ActionSendMsg
330
+ extend TonSdkRuby
331
+ include TonSdkRuby
332
+
299
333
  attr_reader :tag, :mode, :out_msg
300
334
 
301
335
  def initialize(options)
@@ -306,6 +340,9 @@ module TonSdkRuby
306
340
  end
307
341
 
308
342
  class ActionSetCode
343
+ extend TonSdkRuby
344
+ include TonSdkRuby
345
+
309
346
  attr_reader :tag, :new_code
310
347
 
311
348
  def initialize(options)
@@ -315,6 +352,9 @@ module TonSdkRuby
315
352
  end
316
353
 
317
354
  class OutAction
355
+ extend TonSdkRuby
356
+ include TonSdkRuby
357
+
318
358
  def initialize(data)
319
359
  case data.tag
320
360
  when 'action_send_msg' then action_send_msg(data)
@@ -363,6 +403,9 @@ module TonSdkRuby
363
403
  end
364
404
 
365
405
  class OutListOptions
406
+ extend TonSdkRuby
407
+ include TonSdkRuby
408
+
366
409
  attr_reader :actions
367
410
 
368
411
  def initialize(options)
@@ -371,6 +414,8 @@ module TonSdkRuby
371
414
  end
372
415
 
373
416
  class OutList
417
+ extend TonSdkRuby
418
+ include TonSdkRuby
374
419
 
375
420
  attr_reader :cell, :data
376
421
  def initialize(action)
@@ -4,6 +4,7 @@ module TonSdkRuby
4
4
 
5
5
  class Coins
6
6
  extend TonSdkRuby
7
+ include TonSdkRuby
7
8
 
8
9
  attr_reader :value, :decimals, :multiplier
9
10
  private :value, :decimals, :multiplier
@@ -1,4 +1,4 @@
1
1
  module TonSdkRuby
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.4"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ton-sdk-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - nerzh