peatio-dash 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -0
- data/Gemfile.lock +141 -0
- data/Rakefile +3 -1
- data/bin/console +1 -0
- data/lib/peatio/dash.rb +15 -3
- data/lib/peatio/dash/blockchain.rb +85 -0
- data/lib/peatio/dash/client.rb +70 -0
- data/lib/peatio/dash/hooks.rb +44 -0
- data/lib/peatio/dash/railtie.rb +15 -0
- data/lib/peatio/dash/version.rb +3 -1
- data/lib/peatio/dash/wallet.rb +60 -0
- data/peatio-dash.gemspec +19 -6
- metadata +162 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 727229fcd3f00d3351bf9264f755551128651208358769172bf23a60f67b4eda
|
4
|
+
data.tar.gz: 47102d95576153e18af8195d448f8ba4e651de92499d37560c799283d59c45c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 654419080581c1af51dd8656b7f0f719c1d3e6e6614d810fb6323b82b81ecea7114697fca229713876932a186d6a2bf9abec4dc2b98968cf977594a81c87fb2b
|
7
|
+
data.tar.gz: 0bc977fc0ae1494997394a41ae00a7a2a2511ac1354f813143a4f7f55c27eeaeef5a09c57a206925226974a7bd7ad99f16e9f7fffcbee45843a40ce130acd44c
|
data/Gemfile
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,141 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
peatio-dash (0.1.0)
|
5
|
+
activesupport (~> 5.2.3)
|
6
|
+
better-faraday (~> 1.0.5)
|
7
|
+
faraday (~> 0.15.4)
|
8
|
+
memoist (~> 0.16.0)
|
9
|
+
peatio (~> 0.6.1)
|
10
|
+
|
11
|
+
GEM
|
12
|
+
remote: https://rubygems.org/
|
13
|
+
specs:
|
14
|
+
activemodel (5.2.3)
|
15
|
+
activesupport (= 5.2.3)
|
16
|
+
activesupport (5.2.3)
|
17
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
18
|
+
i18n (>= 0.7, < 2)
|
19
|
+
minitest (~> 5.1)
|
20
|
+
tzinfo (~> 1.1)
|
21
|
+
addressable (2.6.0)
|
22
|
+
public_suffix (>= 2.0.2, < 4.0)
|
23
|
+
amq-protocol (2.3.0)
|
24
|
+
amqp (1.8.0)
|
25
|
+
amq-protocol (>= 2.2.0)
|
26
|
+
eventmachine
|
27
|
+
ast (2.4.0)
|
28
|
+
better-faraday (1.0.6)
|
29
|
+
activesupport (>= 4.0, < 6.0)
|
30
|
+
faraday (~> 0.12)
|
31
|
+
bunny (2.14.2)
|
32
|
+
amq-protocol (~> 2.3, >= 2.3.0)
|
33
|
+
byebug (11.0.1)
|
34
|
+
clamp (1.3.0)
|
35
|
+
coderay (1.1.2)
|
36
|
+
concurrent-ruby (1.1.5)
|
37
|
+
crack (0.4.3)
|
38
|
+
safe_yaml (~> 1.0.0)
|
39
|
+
diff-lcs (1.3)
|
40
|
+
docile (1.3.2)
|
41
|
+
em-websocket (0.5.1)
|
42
|
+
eventmachine (>= 0.12.9)
|
43
|
+
http_parser.rb (~> 0.6.0)
|
44
|
+
eventmachine (1.2.7)
|
45
|
+
faraday (0.15.4)
|
46
|
+
multipart-post (>= 1.2, < 3)
|
47
|
+
hashdiff (0.4.0)
|
48
|
+
http_parser.rb (0.6.0)
|
49
|
+
i18n (1.6.0)
|
50
|
+
concurrent-ruby (~> 1.0)
|
51
|
+
irb (1.0.0)
|
52
|
+
jaro_winkler (1.5.2)
|
53
|
+
json (2.2.0)
|
54
|
+
jwt (2.2.1)
|
55
|
+
memoist (0.16.0)
|
56
|
+
metaclass (0.0.4)
|
57
|
+
method_source (0.9.2)
|
58
|
+
minitest (5.11.3)
|
59
|
+
mocha (1.8.0)
|
60
|
+
metaclass (~> 0.0.1)
|
61
|
+
multipart-post (2.1.1)
|
62
|
+
mysql2 (0.5.2)
|
63
|
+
parallel (1.17.0)
|
64
|
+
parser (2.6.3.0)
|
65
|
+
ast (~> 2.4.0)
|
66
|
+
peatio (0.6.1)
|
67
|
+
activemodel (~> 5.2.3)
|
68
|
+
amqp
|
69
|
+
bunny
|
70
|
+
clamp
|
71
|
+
em-websocket
|
72
|
+
eventmachine
|
73
|
+
jwt
|
74
|
+
mysql2
|
75
|
+
pry (0.12.2)
|
76
|
+
coderay (~> 1.1.0)
|
77
|
+
method_source (~> 0.9.0)
|
78
|
+
pry-byebug (3.7.0)
|
79
|
+
byebug (~> 11.0)
|
80
|
+
pry (~> 0.10)
|
81
|
+
public_suffix (3.1.0)
|
82
|
+
rainbow (3.0.0)
|
83
|
+
rake (10.5.0)
|
84
|
+
rspec (3.8.0)
|
85
|
+
rspec-core (~> 3.8.0)
|
86
|
+
rspec-expectations (~> 3.8.0)
|
87
|
+
rspec-mocks (~> 3.8.0)
|
88
|
+
rspec-core (3.8.1)
|
89
|
+
rspec-support (~> 3.8.0)
|
90
|
+
rspec-expectations (3.8.4)
|
91
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
92
|
+
rspec-support (~> 3.8.0)
|
93
|
+
rspec-mocks (3.8.1)
|
94
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
95
|
+
rspec-support (~> 3.8.0)
|
96
|
+
rspec-support (3.8.2)
|
97
|
+
rubocop (0.71.0)
|
98
|
+
jaro_winkler (~> 1.5.1)
|
99
|
+
parallel (~> 1.10)
|
100
|
+
parser (>= 2.6)
|
101
|
+
rainbow (>= 2.2.2, < 4.0)
|
102
|
+
ruby-progressbar (~> 1.7)
|
103
|
+
unicode-display_width (>= 1.4.0, < 1.7)
|
104
|
+
rubocop-github (0.13.0)
|
105
|
+
rubocop (~> 0.70)
|
106
|
+
rubocop-performance (~> 1.3.0)
|
107
|
+
rubocop-performance (1.3.0)
|
108
|
+
rubocop (>= 0.68.0)
|
109
|
+
ruby-progressbar (1.10.1)
|
110
|
+
safe_yaml (1.0.5)
|
111
|
+
simplecov (0.16.1)
|
112
|
+
docile (~> 1.1)
|
113
|
+
json (>= 1.8, < 3)
|
114
|
+
simplecov-html (~> 0.10.0)
|
115
|
+
simplecov-html (0.10.2)
|
116
|
+
thread_safe (0.3.6)
|
117
|
+
tzinfo (1.2.5)
|
118
|
+
thread_safe (~> 0.1)
|
119
|
+
unicode-display_width (1.6.0)
|
120
|
+
webmock (3.6.0)
|
121
|
+
addressable (>= 2.3.6)
|
122
|
+
crack (>= 0.3.2)
|
123
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
124
|
+
|
125
|
+
PLATFORMS
|
126
|
+
ruby
|
127
|
+
|
128
|
+
DEPENDENCIES
|
129
|
+
bundler (~> 1.17)
|
130
|
+
irb
|
131
|
+
mocha (~> 1.8)
|
132
|
+
peatio-dash!
|
133
|
+
pry-byebug
|
134
|
+
rake (~> 10.0)
|
135
|
+
rspec (~> 3.0)
|
136
|
+
rubocop-github
|
137
|
+
simplecov
|
138
|
+
webmock (~> 3.5)
|
139
|
+
|
140
|
+
BUNDLED WITH
|
141
|
+
1.17.3
|
data/Rakefile
CHANGED
data/bin/console
CHANGED
data/lib/peatio/dash.rb
CHANGED
@@ -1,8 +1,20 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "active_support/core_ext/object/blank"
|
4
|
+
require "active_support/core_ext/enumerable"
|
5
|
+
require "peatio"
|
2
6
|
|
3
7
|
module Peatio
|
4
8
|
module Dash
|
5
|
-
|
6
|
-
|
9
|
+
require "bigdecimal"
|
10
|
+
require "bigdecimal/util"
|
11
|
+
|
12
|
+
require "peatio/dash/blockchain"
|
13
|
+
require "peatio/dash/client"
|
14
|
+
require "peatio/dash/wallet"
|
15
|
+
|
16
|
+
require "peatio/dash/hooks"
|
17
|
+
|
18
|
+
require "peatio/dash/version"
|
7
19
|
end
|
8
20
|
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Peatio
|
4
|
+
module Dash
|
5
|
+
# TODO: Processing of unconfirmed transactions from mempool isn't supported now.
|
6
|
+
class Blockchain < Peatio::Blockchain::Abstract
|
7
|
+
DEFAULT_FEATURES = {case_sensitive: true, cash_addr_format: false}.freeze
|
8
|
+
|
9
|
+
def initialize(custom_features={})
|
10
|
+
@features = DEFAULT_FEATURES.merge(custom_features).slice(*SUPPORTED_FEATURES)
|
11
|
+
@settings = {}
|
12
|
+
end
|
13
|
+
|
14
|
+
def configure(settings={})
|
15
|
+
# Clean client state during configure.
|
16
|
+
@client = nil
|
17
|
+
@settings.merge!(settings.slice(*SUPPORTED_SETTINGS))
|
18
|
+
end
|
19
|
+
|
20
|
+
def fetch_block!(block_number)
|
21
|
+
block_hash = client.json_rpc(:getblockhash, [block_number])
|
22
|
+
|
23
|
+
block_txs = client.json_rpc(:getblock, [block_hash, 2])
|
24
|
+
.fetch("tx").each_with_object([]) do |tx, txs_array|
|
25
|
+
txs = build_transaction(tx).map do |ntx|
|
26
|
+
Peatio::Transaction.new(ntx.merge(block_number: block_number))
|
27
|
+
end
|
28
|
+
txs_array.append(*txs)
|
29
|
+
end
|
30
|
+
|
31
|
+
Peatio::Block.new(block_number, block_txs)
|
32
|
+
rescue Client::Error => e
|
33
|
+
raise Peatio::Blockchain::ClientError, e
|
34
|
+
end
|
35
|
+
|
36
|
+
def latest_block_number
|
37
|
+
client.json_rpc(:getblockcount)
|
38
|
+
rescue Client::Error => e
|
39
|
+
raise Peatio::Blockchain::ClientError, e
|
40
|
+
end
|
41
|
+
|
42
|
+
def load_balance_of_address!(address, _currency_id)
|
43
|
+
address_with_balance = client.json_rpc(:listaddressgroupings)
|
44
|
+
.flatten(1)
|
45
|
+
.find {|addr| addr[0] == address }
|
46
|
+
|
47
|
+
raise Peatio::Blockchain::UnavailableAddressBalanceError, address if address_with_balance.blank?
|
48
|
+
|
49
|
+
address_with_balance[1].to_d
|
50
|
+
rescue Client::Error => e
|
51
|
+
raise Peatio::Blockchain::ClientError, e
|
52
|
+
end
|
53
|
+
|
54
|
+
private
|
55
|
+
|
56
|
+
def filter_vout(tx_hash)
|
57
|
+
tx_hash.fetch("vout").select do |entry|
|
58
|
+
entry.fetch("value").to_d.positive? && entry["scriptPubKey"].has_key?("addresses")
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
def build_transaction(tx_hash)
|
63
|
+
filter_vout(tx_hash).each_with_object([]) do |entry, formatted_txs|
|
64
|
+
no_currency_tx = {hash: tx_hash["txid"], txout: entry["n"],
|
65
|
+
to_address: entry["scriptPubKey"]["addresses"][0],
|
66
|
+
amount: entry.fetch("value").to_d,
|
67
|
+
status: "success"}
|
68
|
+
|
69
|
+
# Build transaction for each currency belonging to blockchain.
|
70
|
+
settings_fetch(:currencies).pluck(:id).each do |currency_id|
|
71
|
+
formatted_txs << no_currency_tx.merge(currency_id: currency_id)
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
def client
|
77
|
+
@client ||= Client.new(settings_fetch(:server))
|
78
|
+
end
|
79
|
+
|
80
|
+
def settings_fetch(key)
|
81
|
+
@settings.fetch(key) { raise Peatio::Blockchain::MissingSettingError, key.to_s }
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "memoist"
|
4
|
+
require "faraday"
|
5
|
+
require "better-faraday"
|
6
|
+
|
7
|
+
module Peatio
|
8
|
+
module Dash
|
9
|
+
class Client
|
10
|
+
Error = Class.new(StandardError)
|
11
|
+
class ConnectionError < Error; end
|
12
|
+
|
13
|
+
class ResponseError < Error
|
14
|
+
def initialize(code, msg)
|
15
|
+
@code = code
|
16
|
+
@msg = msg
|
17
|
+
end
|
18
|
+
|
19
|
+
def message
|
20
|
+
"#{@msg} (#{@code})"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
extend Memoist
|
25
|
+
|
26
|
+
def initialize(endpoint)
|
27
|
+
@json_rpc_endpoint = URI.parse(endpoint)
|
28
|
+
end
|
29
|
+
|
30
|
+
def json_rpc(method, params=[])
|
31
|
+
response = post(method, params)
|
32
|
+
|
33
|
+
response.assert_2xx!
|
34
|
+
response = JSON.parse(response.body)
|
35
|
+
|
36
|
+
response["error"].tap do |e|
|
37
|
+
raise ResponseError.new(e["code"], e["message"]) if e
|
38
|
+
end
|
39
|
+
|
40
|
+
response.fetch("result")
|
41
|
+
rescue StandardError => e
|
42
|
+
case e
|
43
|
+
when Faraday::Error
|
44
|
+
raise ConnectionError, e
|
45
|
+
when Error
|
46
|
+
raise e
|
47
|
+
else
|
48
|
+
raise Error, e
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
private
|
53
|
+
|
54
|
+
def post(method, params)
|
55
|
+
connection.post("/", {jsonrpc: "1.0", method: method, params: params}.to_json,
|
56
|
+
"Accept" => "application/json", "Content-Type" => "application/json")
|
57
|
+
end
|
58
|
+
|
59
|
+
def connection
|
60
|
+
Faraday.new(@json_rpc_endpoint).tap do |connection|
|
61
|
+
unless @json_rpc_endpoint.user.blank?
|
62
|
+
connection.basic_auth(@json_rpc_endpoint.user,
|
63
|
+
@json_rpc_endpoint.password)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
memoize :connection
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Peatio
|
4
|
+
module Dash
|
5
|
+
module Hooks
|
6
|
+
BLOCKCHAIN_VERSION_REQUIREMENT = "~> 1.0.0"
|
7
|
+
WALLET_VERSION_REQUIREMENT = "~> 1.0.0"
|
8
|
+
|
9
|
+
class << self
|
10
|
+
def check_compatibility
|
11
|
+
unless Gem::Requirement.new(BLOCKCHAIN_VERSION_REQUIREMENT)
|
12
|
+
.satisfied_by?(Gem::Version.new(Peatio::Blockchain::VERSION))
|
13
|
+
[
|
14
|
+
"Dash blockchain version requiremnt was not suttisfied by Peatio::Blockchain.",
|
15
|
+
"Dash blockchain requires #{BLOCKCHAIN_VERSION_REQUIREMENT}.",
|
16
|
+
"Peatio::Blockchain version is #{Peatio::Blockchain::VERSION}"
|
17
|
+
].join('\n').tap {|s| Kernel.abort s }
|
18
|
+
end
|
19
|
+
|
20
|
+
unless Gem::Requirement.new(WALLET_VERSION_REQUIREMENT)
|
21
|
+
.satisfied_by?(Gem::Version.new(Peatio::Wallet::VERSION))
|
22
|
+
[
|
23
|
+
"Dash wallet version requiremnt was not suttisfied by Peatio::Wallet.",
|
24
|
+
"Dash wallet requires #{WALLET_VERSION_REQUIREMENT}.",
|
25
|
+
"Peatio::Wallet version is #{Peatio::Wallet::VERSION}"
|
26
|
+
].join('\n').tap {|s| Kernel.abort s }
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def register
|
31
|
+
Peatio::Blockchain.registry[:dash] = Dash::Blockchain.new
|
32
|
+
Peatio::Wallet.registry[:dashd] = Dash::Wallet.new
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
if defined?(Rails::Railtie)
|
37
|
+
require "peatio/dash/railtie"
|
38
|
+
else
|
39
|
+
check_compatibility
|
40
|
+
register
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
data/lib/peatio/dash/version.rb
CHANGED
@@ -0,0 +1,60 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Peatio
|
4
|
+
module Dash
|
5
|
+
class Wallet < Peatio::Wallet::Abstract
|
6
|
+
def initialize(settings={})
|
7
|
+
@settings = settings
|
8
|
+
end
|
9
|
+
|
10
|
+
def configure(settings={})
|
11
|
+
# Clean client state during configure.
|
12
|
+
@client = nil
|
13
|
+
|
14
|
+
@settings.merge!(settings.slice(*SUPPORTED_SETTINGS))
|
15
|
+
|
16
|
+
@wallet = @settings.fetch(:wallet) {
|
17
|
+
raise Peatio::Wallet::MissingSettingError, :wallet
|
18
|
+
}.slice(:uri, :address)
|
19
|
+
|
20
|
+
@currency = @settings.fetch(:currency) {
|
21
|
+
raise Peatio::Wallet::MissingSettingError, :currency
|
22
|
+
}.slice(:id, :base_factor, :options)
|
23
|
+
end
|
24
|
+
|
25
|
+
def create_address!(_options={})
|
26
|
+
{address: client.json_rpc(:getnewaddress)}
|
27
|
+
rescue Dash::Client::Error => e
|
28
|
+
raise Peatio::Wallet::ClientError, e
|
29
|
+
end
|
30
|
+
|
31
|
+
def create_transaction!(transaction, options={})
|
32
|
+
txid = client.json_rpc(:sendtoaddress,
|
33
|
+
[
|
34
|
+
transaction.to_address,
|
35
|
+
transaction.amount,
|
36
|
+
"",
|
37
|
+
"",
|
38
|
+
options[:subtract_fee].to_s == "true" # subtract fee from transaction amount.
|
39
|
+
])
|
40
|
+
transaction.hash = txid
|
41
|
+
transaction
|
42
|
+
rescue Dash::Client::Error => e
|
43
|
+
raise Peatio::Wallet::ClientError, e
|
44
|
+
end
|
45
|
+
|
46
|
+
def load_balance!
|
47
|
+
client.json_rpc(:getbalance).to_d
|
48
|
+
rescue Dash::Client::Error => e
|
49
|
+
raise Peatio::Wallet::ClientError, e
|
50
|
+
end
|
51
|
+
|
52
|
+
private
|
53
|
+
|
54
|
+
def client
|
55
|
+
uri = @wallet.fetch(:uri) { raise Peatio::Wallet::MissingSettingError, :uri }
|
56
|
+
@client ||= Client.new(uri)
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
data/peatio-dash.gemspec
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
|
2
|
-
lib = File.expand_path("
|
3
|
+
lib = File.expand_path("lib", __dir__)
|
3
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
5
|
require "peatio/dash/version"
|
5
6
|
|
@@ -9,8 +10,8 @@ Gem::Specification.new do |spec|
|
|
9
10
|
spec.authors = ["MoD"]
|
10
11
|
spec.email = ["mod@websys.io"]
|
11
12
|
|
12
|
-
spec.summary =
|
13
|
-
spec.description =
|
13
|
+
spec.summary = "Peatio Blockchain Plugin"
|
14
|
+
spec.description = "Peatio Blockchain Plugin for Rubykube"
|
14
15
|
spec.homepage = "https://www.openware.com"
|
15
16
|
spec.license = "Proprietary"
|
16
17
|
|
@@ -28,14 +29,26 @@ Gem::Specification.new do |spec|
|
|
28
29
|
|
29
30
|
# Specify which files should be added to the gem when it is released.
|
30
31
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
31
|
-
spec.files
|
32
|
-
`git ls-files -z`.split("\x0").reject {
|
32
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
33
|
+
`git ls-files -z`.split("\x0").reject {|f| f.match(%r{^(test|spec|features)/}) }
|
33
34
|
end
|
34
35
|
spec.bindir = "exe"
|
35
|
-
spec.executables = spec.files.grep(%r{^exe/}) {
|
36
|
+
spec.executables = spec.files.grep(%r{^exe/}) {|f| File.basename(f) }
|
36
37
|
spec.require_paths = ["lib"]
|
37
38
|
|
39
|
+
spec.add_dependency "activesupport", "~> 5.2.3"
|
40
|
+
spec.add_dependency "better-faraday", "~> 1.0.5"
|
41
|
+
spec.add_dependency "faraday", "~> 0.15.4"
|
42
|
+
spec.add_dependency "memoist", "~> 0.16.0"
|
43
|
+
spec.add_dependency "peatio", "~> 0.6.1"
|
44
|
+
|
38
45
|
spec.add_development_dependency "bundler", "~> 1.17"
|
46
|
+
spec.add_development_dependency "irb"
|
47
|
+
spec.add_development_dependency "mocha", "~> 1.8"
|
48
|
+
spec.add_development_dependency "pry-byebug"
|
39
49
|
spec.add_development_dependency "rake", "~> 10.0"
|
40
50
|
spec.add_development_dependency "rspec", "~> 3.0"
|
51
|
+
spec.add_development_dependency "rubocop-github"
|
52
|
+
spec.add_development_dependency "simplecov"
|
53
|
+
spec.add_development_dependency "webmock", "~> 3.5"
|
41
54
|
end
|
metadata
CHANGED
@@ -1,15 +1,85 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: peatio-dash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MoD
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 5.2.3
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 5.2.3
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: better-faraday
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.0.5
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.0.5
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: faraday
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.15.4
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.15.4
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: memoist
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.16.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.16.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: peatio
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.6.1
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.6.1
|
13
83
|
- !ruby/object:Gem::Dependency
|
14
84
|
name: bundler
|
15
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -24,6 +94,48 @@ dependencies:
|
|
24
94
|
- - "~>"
|
25
95
|
- !ruby/object:Gem::Version
|
26
96
|
version: '1.17'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: irb
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: mocha
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '1.8'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '1.8'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: pry-byebug
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
27
139
|
- !ruby/object:Gem::Dependency
|
28
140
|
name: rake
|
29
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,6 +164,48 @@ dependencies:
|
|
52
164
|
- - "~>"
|
53
165
|
- !ruby/object:Gem::Version
|
54
166
|
version: '3.0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: rubocop-github
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: simplecov
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: webmock
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - "~>"
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '3.5'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - "~>"
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '3.5'
|
55
209
|
description: Peatio Blockchain Plugin for Rubykube
|
56
210
|
email:
|
57
211
|
- mod@websys.io
|
@@ -63,13 +217,19 @@ files:
|
|
63
217
|
- ".rspec"
|
64
218
|
- ".travis.yml"
|
65
219
|
- Gemfile
|
220
|
+
- Gemfile.lock
|
66
221
|
- LICENSE.txt
|
67
222
|
- README.md
|
68
223
|
- Rakefile
|
69
224
|
- bin/console
|
70
225
|
- bin/setup
|
71
226
|
- lib/peatio/dash.rb
|
227
|
+
- lib/peatio/dash/blockchain.rb
|
228
|
+
- lib/peatio/dash/client.rb
|
229
|
+
- lib/peatio/dash/hooks.rb
|
230
|
+
- lib/peatio/dash/railtie.rb
|
72
231
|
- lib/peatio/dash/version.rb
|
232
|
+
- lib/peatio/dash/wallet.rb
|
73
233
|
- peatio-dash.gemspec
|
74
234
|
homepage: https://www.openware.com
|
75
235
|
licenses:
|