peatio-bitcoincash 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 153350f03989bb74fea9f1b21b3a5140a68f647df3c43344a13e04262cfafab2
4
- data.tar.gz: ad36fcbc23051f3f0e03f333771ca50e18c265931735817abfa2145f171baab5
3
+ metadata.gz: 3979dc394da296bce86b48dfa6b6e3cfe37c56d29b1de70bd4091f23dc73e365
4
+ data.tar.gz: 74c24510c907debafa2d00f5f638f8d8da0e99d11b60e8e8343da69ac35f4f2c
5
5
  SHA512:
6
- metadata.gz: 107a2d7934d667803dff0ec8f93384ce5adde514c639f32d1f6e6ce7a2554e3cbf9d654666548a1a7916fa2e98c49206d14f9d0bc936193a9e2b5c0f3522a244
7
- data.tar.gz: 832f33bd88fdb6e27ae559625167a830cfd0c84a54eae21d3e90ae7821a4bc1edd393a3e54ec6f2ed8c9aec0582f29a7b1c6d208945944c6244c6fe7cc3ef476
6
+ metadata.gz: 7e32ddfa9a717d99756252bfe043c4ca6c333330e68a9d4f56efa2c40c7687e7b7e2d8ef918f556b4aad6f0d0ef6c9743a3209663c5ecd5d02614e3301b6704d
7
+ data.tar.gz: fe02752a85107a89ef7cfbbbb63bd249b9335353f81580cb836dd9cf6f3132670ae5546cec66449812d937cf23a28df9b35443e60abd26d3dd7a96d59d93bc1f
data/Gemfile.lock CHANGED
@@ -1,50 +1,52 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- peatio-bitcoincash (2.6.0)
5
- activesupport (~> 5.2.3)
6
- better-faraday (~> 1.0.5)
4
+ peatio-bitcoincash (3.1.0)
5
+ activesupport (~> 6.1.0)
6
+ better-faraday (~> 2.0.1)
7
7
  cash-addr (~> 0.2.0)
8
- faraday (~> 0.17)
8
+ faraday (~> 1.10)
9
9
  memoist (~> 0.16.0)
10
- net-http-persistent (~> 3.0.1)
11
- peatio (>= 0.6.3)
10
+ net-http-persistent (~> 4.0.1)
11
+ peatio (>= 3.1.1)
12
12
 
13
13
  GEM
14
14
  remote: https://rubygems.org/
15
15
  specs:
16
- activemodel (5.2.4.2)
17
- activesupport (= 5.2.4.2)
18
- activesupport (5.2.4.2)
16
+ activemodel (6.1.7.2)
17
+ activesupport (= 6.1.7.2)
18
+ activesupport (6.1.7.2)
19
19
  concurrent-ruby (~> 1.0, >= 1.0.2)
20
- i18n (>= 0.7, < 2)
21
- minitest (~> 5.1)
22
- tzinfo (~> 1.1)
23
- addressable (2.7.0)
24
- public_suffix (>= 2.0.2, < 5.0)
25
- amq-protocol (2.3.1)
20
+ i18n (>= 1.6, < 2)
21
+ minitest (>= 5.1)
22
+ tzinfo (~> 2.0)
23
+ zeitwerk (~> 2.3)
24
+ addressable (2.8.1)
25
+ public_suffix (>= 2.0.2, < 6.0)
26
+ amq-protocol (2.3.2)
26
27
  amqp (1.8.0)
27
28
  amq-protocol (>= 2.2.0)
28
29
  eventmachine
29
30
  base58 (0.2.3)
30
- better-faraday (1.0.8)
31
- activesupport (>= 4.0, < 6.0)
32
- faraday (~> 0.12)
33
- bunny (2.15.0)
31
+ better-faraday (2.0.1)
32
+ activesupport (>= 4.0, < 7.0)
33
+ faraday (>= 1.0, < 3.0)
34
+ bunny (2.20.3)
34
35
  amq-protocol (~> 2.3, >= 2.3.1)
35
- byebug (11.1.1)
36
+ sorted_set (~> 1, >= 1.0.2)
37
+ byebug (11.1.3)
36
38
  cash-addr (0.2.0)
37
39
  base58 (~> 0.2.2)
38
- clamp (1.3.1)
39
- coderay (1.1.2)
40
- concurrent-ruby (1.1.6)
41
- connection_pool (2.2.2)
40
+ clamp (1.3.2)
41
+ coderay (1.1.3)
42
+ concurrent-ruby (1.2.2)
43
+ connection_pool (2.3.0)
42
44
  cookiejar (0.3.3)
43
- crack (0.4.3)
44
- safe_yaml (~> 1.0.0)
45
- daemons (1.3.1)
46
- diff-lcs (1.3)
47
- em-http-request (1.1.5)
45
+ crack (0.4.5)
46
+ rexml
47
+ daemons (1.4.1)
48
+ diff-lcs (1.5.0)
49
+ em-http-request (1.1.7)
48
50
  addressable (>= 2.3.4)
49
51
  cookiejar (!= 0.3.1)
50
52
  em-socksify (>= 0.3)
@@ -54,97 +56,123 @@ GEM
54
56
  eventmachine (>= 1.0.0.beta.4)
55
57
  em-synchrony (1.0.6)
56
58
  eventmachine (>= 1.0.0.beta.1)
57
- em-websocket (0.5.1)
59
+ em-websocket (0.5.3)
58
60
  eventmachine (>= 0.12.9)
59
- http_parser.rb (~> 0.6.0)
61
+ http_parser.rb (~> 0)
60
62
  eventmachine (1.2.7)
61
- faraday (0.17.3)
62
- multipart-post (>= 1.2, < 3)
63
- faraday_middleware (0.13.1)
64
- faraday (>= 0.7.4, < 1.0)
65
- faye (1.2.5)
63
+ faraday (1.10.3)
64
+ faraday-em_http (~> 1.0)
65
+ faraday-em_synchrony (~> 1.0)
66
+ faraday-excon (~> 1.1)
67
+ faraday-httpclient (~> 1.0)
68
+ faraday-multipart (~> 1.0)
69
+ faraday-net_http (~> 1.0)
70
+ faraday-net_http_persistent (~> 1.0)
71
+ faraday-patron (~> 1.0)
72
+ faraday-rack (~> 1.0)
73
+ faraday-retry (~> 1.0)
74
+ ruby2_keywords (>= 0.0.4)
75
+ faraday-em_http (1.0.0)
76
+ faraday-em_synchrony (1.0.0)
77
+ faraday-excon (1.1.0)
78
+ faraday-httpclient (1.0.1)
79
+ faraday-multipart (1.0.4)
80
+ multipart-post (~> 2)
81
+ faraday-net_http (1.0.1)
82
+ faraday-net_http_persistent (1.2.0)
83
+ faraday-patron (1.0.0)
84
+ faraday-rack (1.0.0)
85
+ faraday-retry (1.0.3)
86
+ faye (1.4.0)
66
87
  cookiejar (>= 0.3.0)
67
- em-http-request (>= 0.3.0)
88
+ em-http-request (>= 1.1.6)
68
89
  eventmachine (>= 0.12.0)
69
- faye-websocket (>= 0.9.1)
90
+ faye-websocket (>= 0.11.0)
70
91
  multi_json (>= 1.0.0)
71
92
  rack (>= 1.0.0)
72
93
  websocket-driver (>= 0.5.1)
73
- faye-websocket (0.10.9)
94
+ faye-websocket (0.11.1)
74
95
  eventmachine (>= 0.12.0)
75
96
  websocket-driver (>= 0.5.1)
76
97
  hashdiff (1.0.1)
77
- http_parser.rb (0.6.0)
78
- i18n (1.8.2)
98
+ http_parser.rb (0.8.0)
99
+ i18n (1.12.0)
79
100
  concurrent-ruby (~> 1.0)
80
- jwt (2.2.1)
101
+ jwt (2.7.0)
81
102
  memoist (0.16.2)
82
103
  method_source (1.0.0)
83
- minitest (5.14.0)
84
- mocha (1.11.2)
85
- multi_json (1.14.1)
86
- multipart-post (2.1.1)
87
- mysql2 (0.5.3)
88
- net-http-persistent (3.0.1)
104
+ minitest (5.17.0)
105
+ mocha (1.16.1)
106
+ multi_json (1.15.0)
107
+ multipart-post (2.3.0)
108
+ mysql2 (0.5.5)
109
+ net-http-persistent (4.0.1)
89
110
  connection_pool (~> 2.2)
90
- peatio (2.4.4)
91
- activemodel (> 5.2, <= 6.0.0)
111
+ peatio (3.1.1)
112
+ activemodel (> 5.2)
92
113
  amqp
93
114
  bunny
94
115
  clamp
95
116
  em-synchrony (~> 1.0)
96
117
  em-websocket
97
118
  eventmachine
98
- faraday_middleware (~> 0.13.1)
119
+ faraday (~> 1.10)
99
120
  faye (~> 1.2)
100
121
  jwt
101
122
  mysql2
102
123
  prometheus-client
103
124
  thin
104
- prometheus-client (2.0.0)
105
- pry (0.13.0)
125
+ prometheus-client (4.0.0)
126
+ pry (0.14.2)
106
127
  coderay (~> 1.1)
107
128
  method_source (~> 1.0)
108
- pry-byebug (3.9.0)
129
+ pry-byebug (3.8.0)
109
130
  byebug (~> 11.0)
110
- pry (~> 0.13.0)
111
- public_suffix (4.0.4)
112
- rack (2.2.2)
113
- rake (13.0.1)
114
- rspec (3.9.0)
115
- rspec-core (~> 3.9.0)
116
- rspec-expectations (~> 3.9.0)
117
- rspec-mocks (~> 3.9.0)
118
- rspec-core (3.9.1)
119
- rspec-support (~> 3.9.1)
120
- rspec-expectations (3.9.1)
131
+ pry (~> 0.10)
132
+ public_suffix (5.0.1)
133
+ rack (2.2.6.2)
134
+ rake (13.0.6)
135
+ rbtree (0.4.6)
136
+ rexml (3.2.5)
137
+ rspec (3.12.0)
138
+ rspec-core (~> 3.12.0)
139
+ rspec-expectations (~> 3.12.0)
140
+ rspec-mocks (~> 3.12.0)
141
+ rspec-core (3.12.1)
142
+ rspec-support (~> 3.12.0)
143
+ rspec-expectations (3.12.2)
121
144
  diff-lcs (>= 1.2.0, < 2.0)
122
- rspec-support (~> 3.9.0)
123
- rspec-mocks (3.9.1)
145
+ rspec-support (~> 3.12.0)
146
+ rspec-mocks (3.12.3)
124
147
  diff-lcs (>= 1.2.0, < 2.0)
125
- rspec-support (~> 3.9.0)
126
- rspec-support (3.9.2)
127
- safe_yaml (1.0.5)
128
- thin (1.7.2)
148
+ rspec-support (~> 3.12.0)
149
+ rspec-support (3.12.0)
150
+ ruby2_keywords (0.0.5)
151
+ set (1.0.3)
152
+ sorted_set (1.0.3)
153
+ rbtree
154
+ set (~> 1.0)
155
+ thin (1.8.1)
129
156
  daemons (~> 1.0, >= 1.0.9)
130
157
  eventmachine (~> 1.0, >= 1.0.4)
131
158
  rack (>= 1, < 3)
132
- thread_safe (0.3.6)
133
- tzinfo (1.2.7)
134
- thread_safe (~> 0.1)
135
- webmock (3.8.3)
136
- addressable (>= 2.3.6)
159
+ tzinfo (2.0.6)
160
+ concurrent-ruby (~> 1.0)
161
+ webmock (3.18.1)
162
+ addressable (>= 2.8.0)
137
163
  crack (>= 0.3.2)
138
164
  hashdiff (>= 0.4.0, < 2.0.0)
139
- websocket-driver (0.7.1)
165
+ websocket-driver (0.7.5)
140
166
  websocket-extensions (>= 0.1.0)
141
- websocket-extensions (0.1.4)
167
+ websocket-extensions (0.1.5)
168
+ zeitwerk (2.6.7)
142
169
 
143
170
  PLATFORMS
144
- ruby
171
+ arm64-darwin-21
172
+ x86_64-linux
145
173
 
146
174
  DEPENDENCIES
147
- bundler (~> 1.17)
175
+ bundler (~> 2.4.7)
148
176
  mocha (~> 1.8)
149
177
  peatio-bitcoincash!
150
178
  pry-byebug
@@ -153,4 +181,4 @@ DEPENDENCIES
153
181
  webmock (~> 3.5)
154
182
 
155
183
  BUNDLED WITH
156
- 1.17.3
184
+ 2.4.7
@@ -1,5 +1,5 @@
1
1
  module Peatio
2
2
  module Bitcoincash
3
- VERSION = "2.6.0".freeze
3
+ VERSION = "3.1.0".freeze
4
4
  end
5
5
  end
@@ -3,8 +3,11 @@ module Peatio
3
3
  class Wallet < Peatio::Wallet::Abstract
4
4
  include CashAddressFormat
5
5
 
6
- def initialize(settings = {})
7
- @settings = settings
6
+ DEFAULT_FEATURES = { skip_deposit_collection: false }.freeze
7
+
8
+ def initialize(custom_features = {})
9
+ @features = DEFAULT_FEATURES.merge(custom_features).slice(*SUPPORTED_FEATURES)
10
+ @settings = {}
8
11
  end
9
12
 
10
13
  def configure(settings = {})
@@ -23,15 +23,15 @@ 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", "~> 5.2.3"
27
- spec.add_dependency "better-faraday", "~> 1.0.5"
28
- spec.add_dependency "faraday", "~> 0.17"
26
+ spec.add_dependency "activesupport", "~> 6.1.0"
27
+ spec.add_dependency "better-faraday", "~> 2.0.1"
28
+ spec.add_dependency "faraday", "~> 1.10"
29
29
  spec.add_dependency "memoist", "~> 0.16.0"
30
- spec.add_dependency "peatio", ">= 0.6.3"
30
+ spec.add_dependency "peatio", ">= 3.1.1"
31
31
  spec.add_dependency "cash-addr", '~> 0.2.0'
32
- spec.add_dependency 'net-http-persistent', '~> 3.0.1'
32
+ spec.add_dependency 'net-http-persistent', '~> 4.0.1'
33
33
 
34
- spec.add_development_dependency "bundler", "~> 1.17"
34
+ spec.add_development_dependency "bundler", "~> 2.4.7"
35
35
  spec.add_development_dependency "mocha", "~> 1.8"
36
36
  spec.add_development_dependency "pry-byebug"
37
37
  spec.add_development_dependency "rake", "~> 13.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peatio-bitcoincash
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dinesh Chohda
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-15 00:00:00.000000000 Z
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: 5.2.3
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: 5.2.3
26
+ version: 6.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: better-faraday
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.0.5
33
+ version: 2.0.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: 1.0.5
40
+ version: 2.0.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: '0.17'
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: '0.17'
54
+ version: '1.10'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: memoist
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: 0.6.3
75
+ version: 3.1.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: 0.6.3
82
+ version: 3.1.1
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: cash-addr
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -100,28 +100,28 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 3.0.1
103
+ version: 4.0.1
104
104
  type: :runtime
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: 3.0.1
110
+ version: 4.0.1
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: bundler
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '1.17'
117
+ version: 2.4.7
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '1.17'
124
+ version: 2.4.7
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: mocha
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -244,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
244
244
  - !ruby/object:Gem::Version
245
245
  version: '0'
246
246
  requirements: []
247
- rubygems_version: 3.0.3
247
+ rubygems_version: 3.0.3.1
248
248
  signing_key:
249
249
  specification_version: 4
250
250
  summary: Gem for extending Peatio plugable system with Bitcoincash implementation.