sibit 0.18.2 → 0.18.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8ca0eb020ad7fad1626643ba08dc54ee7d08de9776a8c31a2596a2aa1414d63
4
- data.tar.gz: 8624b9cb75385f0e75e21edeab19545fa56a700583dea5a64fa135c5a73a0481
3
+ metadata.gz: c6805c243e46030be83939f3f77aed146e40aa753693316b649fa465c8f1cacf
4
+ data.tar.gz: 4ae1c9f68bc690ea3e73ef1686707c078bd262c4c98f87d6689c7c952bae9845
5
5
  SHA512:
6
- metadata.gz: eb1b32bfbf32de73e37a59cc99607e5c4fc42187de5fe55e25b9d54f17f1e7423aeffbbef85c3ed61dace466e3d91f71f96799ba518fbdd06425ce3d7c9acac5
7
- data.tar.gz: d877f747c08c6536a46030b36b7a1fe10884cfbd847e7ddb82f257bbe0b9d97743eb9aa555f43ca596c6bcb7dbe10e3054dabfa3960052d25501a0742d714612
6
+ metadata.gz: f496223f5853ec59fa7b2f4647d06ffc735d7a810cc23b09cecd7621e88657b3fbcdb1d897609060913246dc20e784b916d4d997fd909f1a69e0ace2249e99bb
7
+ data.tar.gz: 2da853866f8a5db42323da57b79fbc244c7eccf9d58140a5b1faa33e218f72e12d31b025c1748ab582e86d8f5983166bed3b68ca40c5e92745537d2174072e8d
data/lib/sibit/fake.rb CHANGED
@@ -34,6 +34,14 @@ class Sibit
34
34
  4_000
35
35
  end
36
36
 
37
+ def next_of(_hash)
38
+ nil
39
+ end
40
+
41
+ def height(_hash)
42
+ 1
43
+ end
44
+
37
45
  def fees
38
46
  { S: 12, M: 45, L: 100, XL: 200 }
39
47
  end
data/lib/sibit/version.rb CHANGED
@@ -26,5 +26,5 @@
26
26
  # License:: MIT
27
27
  class Sibit
28
28
  # Current version of the library.
29
- VERSION = '0.18.2'
29
+ VERSION = '0.18.3'
30
30
  end
data/lib/sibit.rb CHANGED
@@ -81,6 +81,20 @@ class Sibit
81
81
  end
82
82
  end
83
83
 
84
+ # Get the height of the block.
85
+ def height(hash)
86
+ first_one do |api|
87
+ api.height(hash)
88
+ end
89
+ end
90
+
91
+ # Get the hash of the next block.
92
+ def next_of(hash)
93
+ first_one do |api|
94
+ api.next_of(hash)
95
+ end
96
+ end
97
+
84
98
  # Get recommended fees, in satoshi per byte. The method returns
85
99
  # a hash: { S: 12, M: 45, L: 100, XL: 200 }
86
100
  def fees
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sibit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.2
4
+ version: 0.18.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko