peatio 2.6.4 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.drone.yml +1 -0
- data/Gemfile.lock +98 -85
- data/lib/peatio/transaction.rb +5 -0
- data/lib/peatio/version.rb +1 -1
- data/peatio.gemspec +2 -2
- metadata +4 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0456970da7a850caffb76523f45b2ca9bab8ad96d586178656193cdd06da1ffb'
|
4
|
+
data.tar.gz: 55b01e14a56d1c822ef7977846136f52887d19ee6b2a9bd2abf344665beb0c7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b65f3dbb470e0132aecd2db50ebbe9bc356559df33e1fe12cc45b329f5df1ae47e392f6087ffb205ce13f321d4e236421b84811cda7f923d315a6d252ab8e9c5
|
7
|
+
data.tar.gz: 026cdb14079808951d3c2ecea9ca479a5348d69c6126d7425ff78af7c09ff8c8963f23ff5417f039b7139cb7a348b84e65eaa68244ada1b07729cdd601ae5955
|
data/.drone.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
peatio (
|
5
|
-
activemodel (> 5.2
|
4
|
+
peatio (3.1.0)
|
5
|
+
activemodel (> 5.2)
|
6
6
|
amqp
|
7
7
|
bunny
|
8
8
|
clamp
|
@@ -19,34 +19,35 @@ PATH
|
|
19
19
|
GEM
|
20
20
|
remote: https://rubygems.org/
|
21
21
|
specs:
|
22
|
-
activemodel (6.
|
23
|
-
activesupport (= 6.
|
24
|
-
activesupport (6.
|
22
|
+
activemodel (6.1.7.1)
|
23
|
+
activesupport (= 6.1.7.1)
|
24
|
+
activesupport (6.1.7.1)
|
25
25
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
26
|
-
i18n (>=
|
27
|
-
minitest (
|
28
|
-
tzinfo (~>
|
29
|
-
zeitwerk (~> 2.
|
30
|
-
addressable (2.
|
31
|
-
public_suffix (>= 2.0.2, <
|
32
|
-
amq-protocol (2.3.
|
26
|
+
i18n (>= 1.6, < 2)
|
27
|
+
minitest (>= 5.1)
|
28
|
+
tzinfo (~> 2.0)
|
29
|
+
zeitwerk (~> 2.3)
|
30
|
+
addressable (2.8.1)
|
31
|
+
public_suffix (>= 2.0.2, < 6.0)
|
32
|
+
amq-protocol (2.3.2)
|
33
33
|
amqp (1.8.0)
|
34
34
|
amq-protocol (>= 2.2.0)
|
35
35
|
eventmachine
|
36
|
-
ast (2.4.
|
37
|
-
bump (0.
|
38
|
-
bunny (2.
|
36
|
+
ast (2.4.2)
|
37
|
+
bump (0.10.0)
|
38
|
+
bunny (2.20.3)
|
39
39
|
amq-protocol (~> 2.3, >= 2.3.1)
|
40
|
+
sorted_set (~> 1, >= 1.0.2)
|
40
41
|
bunny-mock (1.7.0)
|
41
42
|
bunny (>= 1.7)
|
42
43
|
byebug (11.1.3)
|
43
44
|
clamp (1.3.2)
|
44
45
|
coderay (1.1.3)
|
45
|
-
concurrent-ruby (1.
|
46
|
+
concurrent-ruby (1.2.0)
|
46
47
|
cookiejar (0.3.3)
|
47
|
-
daemons (1.4.
|
48
|
-
diff-lcs (1.
|
49
|
-
docile (1.
|
48
|
+
daemons (1.4.1)
|
49
|
+
diff-lcs (1.5.0)
|
50
|
+
docile (1.4.0)
|
50
51
|
em-http-request (1.1.7)
|
51
52
|
addressable (>= 2.3.4)
|
52
53
|
cookiejar (!= 0.3.1)
|
@@ -59,14 +60,14 @@ GEM
|
|
59
60
|
eventmachine
|
60
61
|
em-synchrony (1.0.6)
|
61
62
|
eventmachine (>= 1.0.0.beta.1)
|
62
|
-
em-websocket (0.5.
|
63
|
+
em-websocket (0.5.3)
|
63
64
|
eventmachine (>= 0.12.9)
|
64
|
-
http_parser.rb (~> 0
|
65
|
+
http_parser.rb (~> 0)
|
65
66
|
em-websocket-client (0.1.2)
|
66
67
|
eventmachine
|
67
68
|
websocket
|
68
69
|
eventmachine (1.2.7)
|
69
|
-
faraday (0.17.
|
70
|
+
faraday (0.17.6)
|
70
71
|
multipart-post (>= 1.2, < 3)
|
71
72
|
faraday_middleware (0.13.1)
|
72
73
|
faraday (>= 0.7.4, < 1.0)
|
@@ -81,98 +82,110 @@ GEM
|
|
81
82
|
faye-websocket (0.11.1)
|
82
83
|
eventmachine (>= 0.12.0)
|
83
84
|
websocket-driver (>= 0.5.1)
|
84
|
-
http_parser.rb (0.
|
85
|
-
i18n (1.
|
85
|
+
http_parser.rb (0.8.0)
|
86
|
+
i18n (1.12.0)
|
86
87
|
concurrent-ruby (~> 1.0)
|
87
|
-
io-console (0.
|
88
|
-
irb (1.2
|
89
|
-
reline (>= 0.0
|
90
|
-
|
91
|
-
|
92
|
-
jwt (2.2.3)
|
88
|
+
io-console (0.6.0)
|
89
|
+
irb (1.6.2)
|
90
|
+
reline (>= 0.3.0)
|
91
|
+
json (2.6.3)
|
92
|
+
jwt (2.7.0)
|
93
93
|
method_source (1.0.0)
|
94
|
-
minitest (5.
|
94
|
+
minitest (5.17.0)
|
95
95
|
multi_json (1.15.0)
|
96
|
-
multipart-post (2.
|
97
|
-
mysql2 (0.5.
|
98
|
-
parallel (1.
|
99
|
-
parser (2.
|
100
|
-
ast (~> 2.4.
|
101
|
-
prometheus-client (
|
102
|
-
pry (0.
|
96
|
+
multipart-post (2.3.0)
|
97
|
+
mysql2 (0.5.5)
|
98
|
+
parallel (1.22.1)
|
99
|
+
parser (3.2.1.0)
|
100
|
+
ast (~> 2.4.1)
|
101
|
+
prometheus-client (4.0.0)
|
102
|
+
pry (0.14.2)
|
103
103
|
coderay (~> 1.1)
|
104
104
|
method_source (~> 1.0)
|
105
|
-
pry-byebug (3.
|
105
|
+
pry-byebug (3.8.0)
|
106
106
|
byebug (~> 11.0)
|
107
|
-
pry (~> 0.
|
108
|
-
public_suffix (
|
109
|
-
rack (2.2.2)
|
110
|
-
rainbow (3.
|
111
|
-
rake (13.0.
|
112
|
-
|
107
|
+
pry (~> 0.10)
|
108
|
+
public_suffix (5.0.1)
|
109
|
+
rack (2.2.6.2)
|
110
|
+
rainbow (3.1.1)
|
111
|
+
rake (13.0.6)
|
112
|
+
rbtree (0.4.6)
|
113
|
+
regexp_parser (2.7.0)
|
114
|
+
reline (0.3.2)
|
113
115
|
io-console (~> 0.5)
|
114
|
-
rexml (3.2.
|
115
|
-
rspec (3.
|
116
|
-
rspec-core (~> 3.
|
117
|
-
rspec-expectations (~> 3.
|
118
|
-
rspec-mocks (~> 3.
|
119
|
-
rspec-core (3.
|
120
|
-
rspec-support (~> 3.
|
121
|
-
rspec-expectations (3.
|
116
|
+
rexml (3.2.5)
|
117
|
+
rspec (3.12.0)
|
118
|
+
rspec-core (~> 3.12.0)
|
119
|
+
rspec-expectations (~> 3.12.0)
|
120
|
+
rspec-mocks (~> 3.12.0)
|
121
|
+
rspec-core (3.12.1)
|
122
|
+
rspec-support (~> 3.12.0)
|
123
|
+
rspec-expectations (3.12.2)
|
122
124
|
diff-lcs (>= 1.2.0, < 2.0)
|
123
|
-
rspec-support (~> 3.
|
124
|
-
rspec-mocks (3.
|
125
|
+
rspec-support (~> 3.12.0)
|
126
|
+
rspec-mocks (3.12.3)
|
125
127
|
diff-lcs (>= 1.2.0, < 2.0)
|
126
|
-
rspec-support (~> 3.
|
127
|
-
rspec-support (3.
|
128
|
-
rspec_junit_formatter (0.
|
128
|
+
rspec-support (~> 3.12.0)
|
129
|
+
rspec-support (3.12.0)
|
130
|
+
rspec_junit_formatter (0.6.0)
|
129
131
|
rspec-core (>= 2, < 4, != 2.12.0)
|
130
|
-
rubocop (
|
131
|
-
|
132
|
+
rubocop (1.45.1)
|
133
|
+
json (~> 2.3)
|
132
134
|
parallel (~> 1.10)
|
133
|
-
parser (>= 2.
|
135
|
+
parser (>= 3.2.0.0)
|
134
136
|
rainbow (>= 2.2.2, < 4.0)
|
135
|
-
|
137
|
+
regexp_parser (>= 1.8, < 3.0)
|
138
|
+
rexml (>= 3.2.5, < 4.0)
|
139
|
+
rubocop-ast (>= 1.24.1, < 2.0)
|
136
140
|
ruby-progressbar (~> 1.7)
|
137
|
-
unicode-display_width (>=
|
138
|
-
rubocop-
|
139
|
-
|
140
|
-
|
141
|
-
rubocop
|
142
|
-
|
143
|
-
rubocop (>=
|
144
|
-
rubocop-
|
141
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
142
|
+
rubocop-ast (1.26.0)
|
143
|
+
parser (>= 3.2.1.0)
|
144
|
+
rubocop-github (0.20.0)
|
145
|
+
rubocop (>= 1.37)
|
146
|
+
rubocop-performance (>= 1.15)
|
147
|
+
rubocop-rails (>= 2.17)
|
148
|
+
rubocop-performance (1.16.0)
|
149
|
+
rubocop (>= 1.7.0, < 2.0)
|
150
|
+
rubocop-ast (>= 0.4.0)
|
151
|
+
rubocop-rails (2.17.4)
|
145
152
|
activesupport (>= 4.2.0)
|
146
153
|
rack (>= 1.1)
|
147
|
-
rubocop (>=
|
148
|
-
ruby-progressbar (1.
|
149
|
-
|
154
|
+
rubocop (>= 1.33.0, < 2.0)
|
155
|
+
ruby-progressbar (1.11.0)
|
156
|
+
set (1.0.3)
|
157
|
+
simplecov (0.22.0)
|
150
158
|
docile (~> 1.1)
|
151
159
|
simplecov-html (~> 0.11)
|
152
|
-
|
153
|
-
simplecov-
|
160
|
+
simplecov_json_formatter (~> 0.1)
|
161
|
+
simplecov-html (0.12.3)
|
162
|
+
simplecov-json (0.2.3)
|
154
163
|
json
|
155
164
|
simplecov
|
165
|
+
simplecov_json_formatter (0.1.4)
|
166
|
+
sorted_set (1.0.3)
|
167
|
+
rbtree
|
168
|
+
set (~> 1.0)
|
156
169
|
thin (1.8.1)
|
157
170
|
daemons (~> 1.0, >= 1.0.9)
|
158
171
|
eventmachine (~> 1.0, >= 1.0.4)
|
159
172
|
rack (>= 1, < 3)
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
websocket (
|
165
|
-
websocket-driver (0.7.4)
|
173
|
+
tzinfo (2.0.6)
|
174
|
+
concurrent-ruby (~> 1.0)
|
175
|
+
unicode-display_width (2.4.2)
|
176
|
+
websocket (1.2.9)
|
177
|
+
websocket-driver (0.7.5)
|
166
178
|
websocket-extensions (>= 0.1.0)
|
167
179
|
websocket-extensions (0.1.5)
|
168
|
-
zeitwerk (2.
|
180
|
+
zeitwerk (2.6.7)
|
169
181
|
|
170
182
|
PLATFORMS
|
171
|
-
|
183
|
+
arm64-darwin-21
|
184
|
+
x86_64-linux
|
172
185
|
|
173
186
|
DEPENDENCIES
|
174
187
|
bump
|
175
|
-
bundler (~>
|
188
|
+
bundler (~> 2.4.7)
|
176
189
|
bunny-mock
|
177
190
|
em-spec
|
178
191
|
em-websocket-client
|
@@ -187,4 +200,4 @@ DEPENDENCIES
|
|
187
200
|
simplecov-json
|
188
201
|
|
189
202
|
BUNDLED WITH
|
190
|
-
|
203
|
+
2.4.7
|
data/lib/peatio/transaction.rb
CHANGED
@@ -21,6 +21,7 @@ module Peatio #:nodoc:
|
|
21
21
|
# fee: 0.0004,
|
22
22
|
# block_number: 7732274,
|
23
23
|
# currency_id: 'eth',
|
24
|
+
# fee_currency_id: 'eth',
|
24
25
|
# status: 'success'
|
25
26
|
# }
|
26
27
|
# )
|
@@ -80,6 +81,10 @@ module Peatio #:nodoc:
|
|
80
81
|
# return [String] transaction currency id
|
81
82
|
attr_accessor :currency_id
|
82
83
|
|
84
|
+
# @!attribute [rw] fee_currency_id
|
85
|
+
# return [String] transaction fee currency id
|
86
|
+
attr_accessor :fee_currency_id
|
87
|
+
|
83
88
|
# @!attribute [rw] options
|
84
89
|
# return [JSON] transaction options
|
85
90
|
attr_accessor :options
|
data/lib/peatio/version.rb
CHANGED
data/peatio.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.executables = spec.files.grep(%r{^bin/}) {|f| File.basename(f) }
|
24
24
|
spec.require_paths = ["lib"]
|
25
25
|
|
26
|
-
spec.add_dependency "activemodel", "> 5.2"
|
26
|
+
spec.add_dependency "activemodel", "> 5.2"
|
27
27
|
spec.add_dependency "amqp"
|
28
28
|
spec.add_dependency "bunny"
|
29
29
|
spec.add_dependency "clamp"
|
@@ -38,7 +38,7 @@ Gem::Specification.new do |spec|
|
|
38
38
|
spec.add_dependency "thin"
|
39
39
|
|
40
40
|
spec.add_development_dependency "bump"
|
41
|
-
spec.add_development_dependency "bundler", "~>
|
41
|
+
spec.add_development_dependency "bundler", "~> 2.4.7"
|
42
42
|
spec.add_development_dependency "bunny-mock"
|
43
43
|
spec.add_development_dependency "em-spec"
|
44
44
|
spec.add_development_dependency "em-websocket-client"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: peatio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Louis B.
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2023-02-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activemodel
|
@@ -18,9 +18,6 @@ dependencies:
|
|
18
18
|
- - ">"
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '5.2'
|
21
|
-
- - "<="
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 6.0.0
|
24
21
|
type: :runtime
|
25
22
|
prerelease: false
|
26
23
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -28,9 +25,6 @@ dependencies:
|
|
28
25
|
- - ">"
|
29
26
|
- !ruby/object:Gem::Version
|
30
27
|
version: '5.2'
|
31
|
-
- - "<="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 6.0.0
|
34
28
|
- !ruby/object:Gem::Dependency
|
35
29
|
name: amqp
|
36
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -219,14 +213,14 @@ dependencies:
|
|
219
213
|
requirements:
|
220
214
|
- - "~>"
|
221
215
|
- !ruby/object:Gem::Version
|
222
|
-
version:
|
216
|
+
version: 2.4.7
|
223
217
|
type: :development
|
224
218
|
prerelease: false
|
225
219
|
version_requirements: !ruby/object:Gem::Requirement
|
226
220
|
requirements:
|
227
221
|
- - "~>"
|
228
222
|
- !ruby/object:Gem::Version
|
229
|
-
version:
|
223
|
+
version: 2.4.7
|
230
224
|
- !ruby/object:Gem::Dependency
|
231
225
|
name: bunny-mock
|
232
226
|
requirement: !ruby/object:Gem::Requirement
|