peatio-ripple 2.6.0 → 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/Gemfile.lock +109 -81
- data/lib/peatio/ripple/version.rb +1 -1
- data/lib/peatio/ripple/wallet.rb +6 -2
- data/peatio-ripple.gemspec +6 -6
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 993a03e642a94719fc6fd343bdc7a411de4ef919d3494f8d3132e8b2e4a447b6
|
4
|
+
data.tar.gz: '08df2aad082b3c2afaf5adf26b3955303a23cc09fe2e05df206e5a51f9d30428'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f434943ace68dafa5b99f35393b16062ea46d406724da567e38084494456884ff60c47d1d3ad203bddb40733241a2501605755da10aa786a911e74297d6995b
|
7
|
+
data.tar.gz: 22cd5badb860b0fce07cd4d335b09d1cfce71ebd2ed809588c6ccc58330944d2298a2b928f2053dbc636dab25c3decffbbb03512678e546731d7ce5b92eab27b
|
data/Gemfile.lock
CHANGED
@@ -1,46 +1,48 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
peatio-ripple (
|
5
|
-
activesupport (~>
|
6
|
-
better-faraday (~>
|
7
|
-
faraday (~>
|
4
|
+
peatio-ripple (3.1.0)
|
5
|
+
activesupport (~> 6.1.0)
|
6
|
+
better-faraday (~> 2.0.1)
|
7
|
+
faraday (~> 1.10)
|
8
8
|
memoist (~> 0.16.0)
|
9
|
-
net-http-persistent (~>
|
10
|
-
peatio (>=
|
9
|
+
net-http-persistent (~> 4.0.1)
|
10
|
+
peatio (>= 3.1.1)
|
11
11
|
|
12
12
|
GEM
|
13
13
|
remote: https://rubygems.org/
|
14
14
|
specs:
|
15
|
-
activemodel (
|
16
|
-
activesupport (=
|
17
|
-
activesupport (
|
15
|
+
activemodel (6.1.7.2)
|
16
|
+
activesupport (= 6.1.7.2)
|
17
|
+
activesupport (6.1.7.2)
|
18
18
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
19
|
-
i18n (>=
|
20
|
-
minitest (
|
21
|
-
tzinfo (~>
|
22
|
-
|
23
|
-
|
24
|
-
|
19
|
+
i18n (>= 1.6, < 2)
|
20
|
+
minitest (>= 5.1)
|
21
|
+
tzinfo (~> 2.0)
|
22
|
+
zeitwerk (~> 2.3)
|
23
|
+
addressable (2.8.1)
|
24
|
+
public_suffix (>= 2.0.2, < 6.0)
|
25
|
+
amq-protocol (2.3.2)
|
25
26
|
amqp (1.8.0)
|
26
27
|
amq-protocol (>= 2.2.0)
|
27
28
|
eventmachine
|
28
|
-
better-faraday (
|
29
|
-
activesupport (>= 4.0, <
|
30
|
-
faraday (
|
31
|
-
bunny (2.
|
29
|
+
better-faraday (2.0.1)
|
30
|
+
activesupport (>= 4.0, < 7.0)
|
31
|
+
faraday (>= 1.0, < 3.0)
|
32
|
+
bunny (2.20.3)
|
32
33
|
amq-protocol (~> 2.3, >= 2.3.1)
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
34
|
+
sorted_set (~> 1, >= 1.0.2)
|
35
|
+
byebug (11.1.3)
|
36
|
+
clamp (1.3.2)
|
37
|
+
coderay (1.1.3)
|
38
|
+
concurrent-ruby (1.2.2)
|
39
|
+
connection_pool (2.3.0)
|
38
40
|
cookiejar (0.3.3)
|
39
|
-
crack (0.4.
|
40
|
-
|
41
|
-
daemons (1.
|
42
|
-
diff-lcs (1.
|
43
|
-
em-http-request (1.1.
|
41
|
+
crack (0.4.5)
|
42
|
+
rexml
|
43
|
+
daemons (1.4.1)
|
44
|
+
diff-lcs (1.5.0)
|
45
|
+
em-http-request (1.1.7)
|
44
46
|
addressable (>= 2.3.4)
|
45
47
|
cookiejar (!= 0.3.1)
|
46
48
|
em-socksify (>= 0.3)
|
@@ -50,97 +52,123 @@ GEM
|
|
50
52
|
eventmachine (>= 1.0.0.beta.4)
|
51
53
|
em-synchrony (1.0.6)
|
52
54
|
eventmachine (>= 1.0.0.beta.1)
|
53
|
-
em-websocket (0.5.
|
55
|
+
em-websocket (0.5.3)
|
54
56
|
eventmachine (>= 0.12.9)
|
55
|
-
http_parser.rb (~> 0
|
57
|
+
http_parser.rb (~> 0)
|
56
58
|
eventmachine (1.2.7)
|
57
|
-
faraday (
|
58
|
-
|
59
|
-
|
60
|
-
faraday (
|
61
|
-
|
59
|
+
faraday (1.10.3)
|
60
|
+
faraday-em_http (~> 1.0)
|
61
|
+
faraday-em_synchrony (~> 1.0)
|
62
|
+
faraday-excon (~> 1.1)
|
63
|
+
faraday-httpclient (~> 1.0)
|
64
|
+
faraday-multipart (~> 1.0)
|
65
|
+
faraday-net_http (~> 1.0)
|
66
|
+
faraday-net_http_persistent (~> 1.0)
|
67
|
+
faraday-patron (~> 1.0)
|
68
|
+
faraday-rack (~> 1.0)
|
69
|
+
faraday-retry (~> 1.0)
|
70
|
+
ruby2_keywords (>= 0.0.4)
|
71
|
+
faraday-em_http (1.0.0)
|
72
|
+
faraday-em_synchrony (1.0.0)
|
73
|
+
faraday-excon (1.1.0)
|
74
|
+
faraday-httpclient (1.0.1)
|
75
|
+
faraday-multipart (1.0.4)
|
76
|
+
multipart-post (~> 2)
|
77
|
+
faraday-net_http (1.0.1)
|
78
|
+
faraday-net_http_persistent (1.2.0)
|
79
|
+
faraday-patron (1.0.0)
|
80
|
+
faraday-rack (1.0.0)
|
81
|
+
faraday-retry (1.0.3)
|
82
|
+
faye (1.4.0)
|
62
83
|
cookiejar (>= 0.3.0)
|
63
|
-
em-http-request (>=
|
84
|
+
em-http-request (>= 1.1.6)
|
64
85
|
eventmachine (>= 0.12.0)
|
65
|
-
faye-websocket (>= 0.
|
86
|
+
faye-websocket (>= 0.11.0)
|
66
87
|
multi_json (>= 1.0.0)
|
67
88
|
rack (>= 1.0.0)
|
68
89
|
websocket-driver (>= 0.5.1)
|
69
|
-
faye-websocket (0.
|
90
|
+
faye-websocket (0.11.1)
|
70
91
|
eventmachine (>= 0.12.0)
|
71
92
|
websocket-driver (>= 0.5.1)
|
72
93
|
hashdiff (1.0.1)
|
73
|
-
http_parser.rb (0.
|
74
|
-
i18n (1.
|
94
|
+
http_parser.rb (0.8.0)
|
95
|
+
i18n (1.12.0)
|
75
96
|
concurrent-ruby (~> 1.0)
|
76
|
-
jwt (2.
|
97
|
+
jwt (2.7.0)
|
77
98
|
memoist (0.16.2)
|
78
99
|
method_source (1.0.0)
|
79
|
-
minitest (5.
|
80
|
-
mocha (1.
|
81
|
-
multi_json (1.
|
82
|
-
multipart-post (2.
|
83
|
-
mysql2 (0.5.
|
84
|
-
net-http-persistent (
|
100
|
+
minitest (5.17.0)
|
101
|
+
mocha (1.16.1)
|
102
|
+
multi_json (1.15.0)
|
103
|
+
multipart-post (2.3.0)
|
104
|
+
mysql2 (0.5.5)
|
105
|
+
net-http-persistent (4.0.1)
|
85
106
|
connection_pool (~> 2.2)
|
86
|
-
peatio (
|
87
|
-
activemodel (> 5.2
|
107
|
+
peatio (3.1.1)
|
108
|
+
activemodel (> 5.2)
|
88
109
|
amqp
|
89
110
|
bunny
|
90
111
|
clamp
|
91
112
|
em-synchrony (~> 1.0)
|
92
113
|
em-websocket
|
93
114
|
eventmachine
|
94
|
-
|
115
|
+
faraday (~> 1.10)
|
95
116
|
faye (~> 1.2)
|
96
117
|
jwt
|
97
118
|
mysql2
|
98
119
|
prometheus-client
|
99
120
|
thin
|
100
|
-
prometheus-client (
|
101
|
-
pry (0.
|
121
|
+
prometheus-client (4.0.0)
|
122
|
+
pry (0.14.2)
|
102
123
|
coderay (~> 1.1)
|
103
124
|
method_source (~> 1.0)
|
104
|
-
pry-byebug (3.
|
125
|
+
pry-byebug (3.8.0)
|
105
126
|
byebug (~> 11.0)
|
106
|
-
pry (~> 0.
|
107
|
-
public_suffix (
|
108
|
-
rack (2.2.2)
|
109
|
-
rake (13.0.
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
rspec-
|
114
|
-
|
115
|
-
rspec-
|
116
|
-
rspec-
|
127
|
+
pry (~> 0.10)
|
128
|
+
public_suffix (5.0.1)
|
129
|
+
rack (2.2.6.2)
|
130
|
+
rake (13.0.6)
|
131
|
+
rbtree (0.4.6)
|
132
|
+
rexml (3.2.5)
|
133
|
+
rspec (3.12.0)
|
134
|
+
rspec-core (~> 3.12.0)
|
135
|
+
rspec-expectations (~> 3.12.0)
|
136
|
+
rspec-mocks (~> 3.12.0)
|
137
|
+
rspec-core (3.12.1)
|
138
|
+
rspec-support (~> 3.12.0)
|
139
|
+
rspec-expectations (3.12.2)
|
117
140
|
diff-lcs (>= 1.2.0, < 2.0)
|
118
|
-
rspec-support (~> 3.
|
119
|
-
rspec-mocks (3.
|
141
|
+
rspec-support (~> 3.12.0)
|
142
|
+
rspec-mocks (3.12.3)
|
120
143
|
diff-lcs (>= 1.2.0, < 2.0)
|
121
|
-
rspec-support (~> 3.
|
122
|
-
rspec-support (3.
|
123
|
-
|
124
|
-
|
144
|
+
rspec-support (~> 3.12.0)
|
145
|
+
rspec-support (3.12.0)
|
146
|
+
ruby2_keywords (0.0.5)
|
147
|
+
set (1.0.3)
|
148
|
+
sorted_set (1.0.3)
|
149
|
+
rbtree
|
150
|
+
set (~> 1.0)
|
151
|
+
thin (1.8.1)
|
125
152
|
daemons (~> 1.0, >= 1.0.9)
|
126
153
|
eventmachine (~> 1.0, >= 1.0.4)
|
127
154
|
rack (>= 1, < 3)
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
addressable (>= 2.3.6)
|
155
|
+
tzinfo (2.0.6)
|
156
|
+
concurrent-ruby (~> 1.0)
|
157
|
+
webmock (3.18.1)
|
158
|
+
addressable (>= 2.8.0)
|
133
159
|
crack (>= 0.3.2)
|
134
160
|
hashdiff (>= 0.4.0, < 2.0.0)
|
135
|
-
websocket-driver (0.7.
|
161
|
+
websocket-driver (0.7.5)
|
136
162
|
websocket-extensions (>= 0.1.0)
|
137
|
-
websocket-extensions (0.1.
|
163
|
+
websocket-extensions (0.1.5)
|
164
|
+
zeitwerk (2.6.7)
|
138
165
|
|
139
166
|
PLATFORMS
|
140
|
-
|
167
|
+
arm64-darwin-21
|
168
|
+
x86_64-linux
|
141
169
|
|
142
170
|
DEPENDENCIES
|
143
|
-
bundler (~>
|
171
|
+
bundler (~> 2.4.7)
|
144
172
|
mocha (~> 1.8)
|
145
173
|
peatio-ripple!
|
146
174
|
pry-byebug
|
@@ -149,4 +177,4 @@ DEPENDENCIES
|
|
149
177
|
webmock (~> 3.5)
|
150
178
|
|
151
179
|
BUNDLED WITH
|
152
|
-
|
180
|
+
2.4.7
|
data/lib/peatio/ripple/wallet.rb
CHANGED
@@ -4,8 +4,11 @@ module Peatio
|
|
4
4
|
|
5
5
|
Error = Class.new(StandardError)
|
6
6
|
|
7
|
-
|
8
|
-
|
7
|
+
DEFAULT_FEATURES = { skip_deposit_collection: false }.freeze
|
8
|
+
|
9
|
+
def initialize(custom_features = {})
|
10
|
+
@features = DEFAULT_FEATURES.merge(custom_features).slice(*SUPPORTED_FEATURES)
|
11
|
+
@settings = {}
|
9
12
|
end
|
10
13
|
|
11
14
|
def configure(settings = {})
|
@@ -51,6 +54,7 @@ module Peatio
|
|
51
54
|
# than change status to opposite one before ledger is final.
|
52
55
|
# Need to set special status and recheck this transaction status
|
53
56
|
if result['engine_result'].to_s == 'tesSUCCESS' && result['status'].to_s == 'success'
|
57
|
+
transaction.currency_id = 'xrp' if transaction.currency_id.blank?
|
54
58
|
transaction.hash = result.fetch('tx_json').fetch('hash')
|
55
59
|
else
|
56
60
|
raise Error, "XRP withdrawal from #{@wallet.fetch(:address)} to #{transaction.to_address} failed. Message: #{error_message}."
|
data/peatio-ripple.gemspec
CHANGED
@@ -23,14 +23,14 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
24
|
spec.require_paths = ["lib"]
|
25
25
|
|
26
|
-
spec.add_dependency "activesupport", "~>
|
27
|
-
spec.add_dependency "peatio", ">=
|
28
|
-
spec.add_dependency "faraday", "~>
|
26
|
+
spec.add_dependency "activesupport", "~> 6.1.0"
|
27
|
+
spec.add_dependency "peatio", ">= 3.1.1"
|
28
|
+
spec.add_dependency "faraday", "~> 1.10"
|
29
29
|
spec.add_dependency "memoist", "~> 0.16.0"
|
30
|
-
spec.add_dependency "better-faraday", "~>
|
31
|
-
spec.add_dependency 'net-http-persistent', '~>
|
30
|
+
spec.add_dependency "better-faraday", "~> 2.0.1"
|
31
|
+
spec.add_dependency 'net-http-persistent', '~> 4.0.1'
|
32
32
|
|
33
|
-
spec.add_development_dependency "bundler", "~>
|
33
|
+
spec.add_development_dependency "bundler", "~> 2.4.7"
|
34
34
|
spec.add_development_dependency "rake", "~> 13.0"
|
35
35
|
spec.add_development_dependency "rspec", "~> 3.0"
|
36
36
|
spec.add_development_dependency "mocha", "~> 1.8"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: peatio-ripple
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maksym N.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 6.1.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 6.1.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: peatio
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 3.1.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 3.1.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: faraday
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '1.10'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '1.10'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: memoist
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,42 +72,42 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 2.0.1
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 2.0.1
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: net-http-persistent
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 4.0.1
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: 4.0.1
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: bundler
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 2.4.7
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: 2.4.7
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rake
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -229,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
229
229
|
- !ruby/object:Gem::Version
|
230
230
|
version: '0'
|
231
231
|
requirements: []
|
232
|
-
rubygems_version: 3.0.3
|
232
|
+
rubygems_version: 3.0.3.1
|
233
233
|
signing_key:
|
234
234
|
specification_version: 4
|
235
235
|
summary: Gem for extending Peatio plugable system with Ripple implementation.
|