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 +4 -4
- data/Gemfile.lock +4 -4
- data/lib/peatio/dogecoin/blockchain.rb +3 -3
- data/lib/peatio/dogecoin/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a44caa1669112e4277499dbe23688d892bd0ef16e4b1328dab33705a46dbe667
|
|
4
|
+
data.tar.gz: 3b98ac6b7ffd54d16fbee132ee2f51c53ecc4c6572fa9dd9f5cb5cff46751bc3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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.
|
|
15
|
-
activesupport (= 5.2.4.
|
|
16
|
-
activesupport (5.2.4.
|
|
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, [
|
|
24
|
-
.
|
|
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')
|
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.
|
|
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-
|
|
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.
|
|
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.
|