peatio-dogecoin 0.2.2 → 0.2.7

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: 3015b6c71efc7fa62a0592abaff68f3f7e4efde0bf0c7a220352225e1ade8bf9
4
- data.tar.gz: 8a37dbc9475791c5af0e5d6df1ed175841cab55d46240d0a7d4e7e517655c129
3
+ metadata.gz: a44caa1669112e4277499dbe23688d892bd0ef16e4b1328dab33705a46dbe667
4
+ data.tar.gz: 3b98ac6b7ffd54d16fbee132ee2f51c53ecc4c6572fa9dd9f5cb5cff46751bc3
5
5
  SHA512:
6
- metadata.gz: 1799c475751126946e8ff6a01d9a8e3fef3fbfea4cad36023a5f4175ec07bd5ce21d44ad414c732c11b0e151b9650d003c5b53dcee87415a641ef1401bb1f511
7
- data.tar.gz: 7ab180aa820994e4c98e690f1b15c7a2f8f793409f0326daf0502efc61497cdc2de421910a46a15825be995ac21e2466a1945120c14bf7d28bc312bc6ebf7460
6
+ metadata.gz: 7a3dcb256a45fc024eefe507ea08c44d7a9631794970d7f23f400c2a694dbdd1d8902c6c489f80fab0faba346ba78567d48a98bdd2f739274e23f92c60460438
7
+ data.tar.gz: 8646d097eccce7c8121c7da3ce4dcc48db469c84a23f63c7c4222b90e6bcf522cf7b3b698e5dae67e9742fd7fbd72bb21031de0857b4d0d1d0f66d89c87fe6c5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- peatio-dogecoin (0.2.1)
4
+ peatio-dogecoin (0.2.7)
5
5
  activesupport (~> 5.2.3)
6
6
  better-faraday (~> 1.0.5)
7
7
  faraday (~> 0.15.4)
@@ -11,9 +11,9 @@ PATH
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- activemodel (5.2.4.1)
15
- activesupport (= 5.2.4.1)
16
- activesupport (5.2.4.1)
14
+ activemodel (5.2.4.2)
15
+ activesupport (= 5.2.4.2)
16
+ activesupport (5.2.4.2)
17
17
  concurrent-ruby (~> 1.0, >= 1.0.2)
18
18
  i18n (>= 0.7, < 2)
19
19
  minitest (~> 5.1)
@@ -20,8 +20,8 @@ module Peatio
20
20
  def fetch_block!(block_number)
21
21
  block_hash = client.json_rpc(:getblockhash, [block_number])
22
22
 
23
- client.json_rpc(:getblock, ["#{block_hash}"])
24
- .fetch('tx').each_with_object([]) do |tx, txs_array|
23
+ client.json_rpc(:getblock, [block_hash]).fetch('tx')
24
+ .each_with_object([]) do |tx, txs_array|
25
25
  txs = build_transaction(tx).map do |ntx|
26
26
  Peatio::Transaction.new(ntx.merge(block_number: block_number))
27
27
  end
@@ -54,7 +54,7 @@ module Peatio
54
54
  private
55
55
 
56
56
  def build_transaction(tx_hash)
57
- tx_hash.fetch('vout')
57
+ client.json_rpc(:getrawtransaction, [tx_hash, true]).fetch('vout')
58
58
  .select do |entry|
59
59
  entry.fetch('value').to_d > 0 &&
60
60
  entry['scriptPubKey'].has_key?('addresses')
@@ -1,5 +1,5 @@
1
1
  module Peatio
2
2
  module Dogecoin
3
- VERSION = "0.2.2".freeze
3
+ VERSION = "0.2.7".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peatio-dogecoin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Pepers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-23 00:00:00.000000000 Z
11
+ date: 2020-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -224,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
224
  - !ruby/object:Gem::Version
225
225
  version: '0'
226
226
  requirements: []
227
- rubygems_version: 3.0.3
227
+ rubygems_version: 3.1.2
228
228
  signing_key:
229
229
  specification_version: 4
230
230
  summary: Gem for extending Peatio plugable system with Dogecoin implementation.