peatio 2.6.1 → 2.6.5

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: 816cf9783f0a2321d3e924a47284027df67f3d10c94579281d53276157e1f4b1
4
- data.tar.gz: 65902435a19ec3ffe29157f11199372ba32b372ea70c6247caed4d08114df171
3
+ metadata.gz: 9a111772b6f98f8e2e27dc4d3c26d815fffcc38d2d637e8e3021934d5fe77ade
4
+ data.tar.gz: 651ddb388b8ceff0efe3249e70f5edeca468255dcc06fb8f879be0543b784d1e
5
5
  SHA512:
6
- metadata.gz: 1caa69c4adf1c4363614726ee6f3e0cdceab0e95bb4717c14b5fa6049f8ed48bf3d945bab12d4f151b0916e101680e216019a49c565f4d156debbb3e5be7d9ff
7
- data.tar.gz: 7ccc91b495a65117dcfe47cd94cd58e1d8fb953b7c764f5d06060700e3e967e9e2b9fa43ec76db3fed81064263c21fd4b881b3aa614bf4042cd05464ff0b14ce
6
+ metadata.gz: a77b65e4848c9c900c7a99e412d700c7acb9b629d8ab1c5064720dc9fbecdf4e78f226350e3c529097059277417eb0b1897b55e3dc8dbfc1cad49f55f178cb49
7
+ data.tar.gz: 6cfaa859901df9e423bcf9a363d1bcfe9f548b5a1d0094da3e697ed21a77d5a1af2d54d3aa247444a7fa82866384298c2ce0c3e64ae079c63bf0df522ba4a967
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- peatio (2.6.1)
4
+ peatio (2.6.5)
5
5
  activemodel (> 5.2, <= 6.0.0)
6
6
  amqp
7
7
  bunny
@@ -27,7 +27,7 @@ GEM
27
27
  minitest (~> 5.1)
28
28
  tzinfo (~> 1.1)
29
29
  zeitwerk (~> 2.1, >= 2.1.8)
30
- addressable (2.7.0)
30
+ addressable (2.8.0)
31
31
  public_suffix (>= 2.0.2, < 5.0)
32
32
  amq-protocol (2.3.1)
33
33
  amqp (1.8.0)
@@ -40,14 +40,14 @@ GEM
40
40
  bunny-mock (1.7.0)
41
41
  bunny (>= 1.7)
42
42
  byebug (11.1.3)
43
- clamp (1.3.1)
43
+ clamp (1.3.2)
44
44
  coderay (1.1.3)
45
45
  concurrent-ruby (1.1.6)
46
46
  cookiejar (0.3.3)
47
- daemons (1.3.1)
47
+ daemons (1.4.0)
48
48
  diff-lcs (1.3)
49
49
  docile (1.3.2)
50
- em-http-request (1.1.6)
50
+ em-http-request (1.1.7)
51
51
  addressable (>= 2.3.4)
52
52
  cookiejar (!= 0.3.1)
53
53
  em-socksify (>= 0.3)
@@ -59,26 +59,26 @@ GEM
59
59
  eventmachine
60
60
  em-synchrony (1.0.6)
61
61
  eventmachine (>= 1.0.0.beta.1)
62
- em-websocket (0.5.1)
62
+ em-websocket (0.5.2)
63
63
  eventmachine (>= 0.12.9)
64
64
  http_parser.rb (~> 0.6.0)
65
65
  em-websocket-client (0.1.2)
66
66
  eventmachine
67
67
  websocket
68
68
  eventmachine (1.2.7)
69
- faraday (0.17.3)
69
+ faraday (0.17.4)
70
70
  multipart-post (>= 1.2, < 3)
71
71
  faraday_middleware (0.13.1)
72
72
  faraday (>= 0.7.4, < 1.0)
73
- faye (1.3.0)
73
+ faye (1.4.0)
74
74
  cookiejar (>= 0.3.0)
75
- em-http-request (>= 0.3.0)
75
+ em-http-request (>= 1.1.6)
76
76
  eventmachine (>= 0.12.0)
77
- faye-websocket (>= 0.9.1)
77
+ faye-websocket (>= 0.11.0)
78
78
  multi_json (>= 1.0.0)
79
79
  rack (>= 1.0.0)
80
80
  websocket-driver (>= 0.5.1)
81
- faye-websocket (0.10.9)
81
+ faye-websocket (0.11.1)
82
82
  eventmachine (>= 0.12.0)
83
83
  websocket-driver (>= 0.5.1)
84
84
  http_parser.rb (0.6.0)
@@ -89,23 +89,23 @@ GEM
89
89
  reline (>= 0.0.1)
90
90
  jaro_winkler (1.5.4)
91
91
  json (2.3.0)
92
- jwt (2.2.1)
92
+ jwt (2.2.3)
93
93
  method_source (1.0.0)
94
94
  minitest (5.14.1)
95
- multi_json (1.14.1)
95
+ multi_json (1.15.0)
96
96
  multipart-post (2.1.1)
97
97
  mysql2 (0.5.3)
98
98
  parallel (1.19.1)
99
99
  parser (2.7.1.3)
100
100
  ast (~> 2.4.0)
101
- prometheus-client (2.0.0)
101
+ prometheus-client (2.1.0)
102
102
  pry (0.13.1)
103
103
  coderay (~> 1.1)
104
104
  method_source (~> 1.0)
105
105
  pry-byebug (3.9.0)
106
106
  byebug (~> 11.0)
107
107
  pry (~> 0.13.0)
108
- public_suffix (4.0.5)
108
+ public_suffix (4.0.6)
109
109
  rack (2.2.2)
110
110
  rainbow (3.0.0)
111
111
  rake (13.0.1)
@@ -153,7 +153,7 @@ GEM
153
153
  simplecov-json (0.2.1)
154
154
  json
155
155
  simplecov
156
- thin (1.7.2)
156
+ thin (1.8.1)
157
157
  daemons (~> 1.0, >= 1.0.9)
158
158
  eventmachine (~> 1.0, >= 1.0.4)
159
159
  rack (>= 1, < 3)
@@ -162,7 +162,7 @@ GEM
162
162
  thread_safe (~> 0.1)
163
163
  unicode-display_width (1.7.0)
164
164
  websocket (1.2.8)
165
- websocket-driver (0.7.2)
165
+ websocket-driver (0.7.5)
166
166
  websocket-extensions (>= 0.1.0)
167
167
  websocket-extensions (0.1.5)
168
168
  zeitwerk (2.3.0)
data/README.md CHANGED
@@ -1,3 +1,15 @@
1
+ ![Cryptocurrency Exchange Platform - OpenDAX](https://github.com/openware/meta/raw/main/images/github_opendax.png)
2
+
3
+ <h3 align="center">
4
+ <a href="https://www.openware.com/sdk">Guide</a> <span>&vert;</span>
5
+ <a href="https://www.openware.com/sdk/api.html">API Docs</a> <span>&vert;</span>
6
+ <a href="https://www.openware.com/">Consulting</a> <span>&vert;</span>
7
+ <a href="https://t.me/peatio">Community</a>
8
+ </h3>
9
+ <h6 align="center">Peatio is part of <a href="https://github.com/openware/opendax">OpenDAX Trading Platform</a></h6>
10
+
11
+ ---
12
+
1
13
  # Peatio
2
14
 
3
15
  Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/peatio`. To experiment with that code, run `bin/console` for an interactive prompt.
@@ -18,8 +18,10 @@ module Peatio #:nodoc:
18
18
  # txout: 1,
19
19
  # to_address: '0x9af4f143cd5ecfba0fcdd863c5ef52d5ccb4f3e5',
20
20
  # amount: 0.01,
21
+ # fee: 0.0004,
21
22
  # block_number: 7732274,
22
23
  # currency_id: 'eth',
24
+ # fee_currency_id: 'eth',
23
25
  # status: 'success'
24
26
  # }
25
27
  # )
@@ -40,8 +42,10 @@ module Peatio #:nodoc:
40
42
  # the transaction amount has been successfully transferred
41
43
  #
42
44
  # failed - the transaction is failed in the blockchain.
45
+ #
46
+ # rejected - the transaction is rejected by user.
43
47
 
44
- STATUSES = %w[success pending failed].freeze
48
+ STATUSES = %w[success pending failed rejected].freeze
45
49
 
46
50
  DEFAULT_STATUS = 'pending'.freeze
47
51
 
@@ -65,6 +69,10 @@ module Peatio #:nodoc:
65
69
  # return [Decimal] amount of the transaction
66
70
  attr_accessor :amount
67
71
 
72
+ # @!attribute [rw] fee
73
+ # return [Decimal] fee of the transaction
74
+ attr_accessor :fee
75
+
68
76
  # @!attribute [rw] block_number
69
77
  # return [Integer] transaction block number
70
78
  attr_accessor :block_number
@@ -73,6 +81,14 @@ module Peatio #:nodoc:
73
81
  # return [String] transaction currency id
74
82
  attr_accessor :currency_id
75
83
 
84
+ # @!attribute [rw] fee_currency_id
85
+ # return [String] transaction fee currency id
86
+ attr_accessor :fee_currency_id
87
+
88
+ # @!attribute [rw] options
89
+ # return [JSON] transaction options
90
+ attr_accessor :options
91
+
76
92
  validates :to_address,
77
93
  :amount,
78
94
  :currency_id,
@@ -92,6 +108,9 @@ module Peatio #:nodoc:
92
108
  validates :amount,
93
109
  numericality: { greater_than_or_equal_to: 0 }
94
110
 
111
+ validates :fee,
112
+ numericality: { greater_than_or_equal_to: 0 }, allow_blank: true
113
+
95
114
  validates :status, inclusion: { in: STATUSES }
96
115
 
97
116
  def initialize(attributes={})
@@ -1,3 +1,3 @@
1
1
  module Peatio
2
- VERSION = "2.6.1"
2
+ VERSION = "2.6.5"
3
3
  end
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: 2.6.1
4
+ version: 2.6.5
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: 2020-06-10 00:00:00.000000000 Z
12
+ date: 2021-08-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel
@@ -457,7 +457,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
457
457
  - !ruby/object:Gem::Version
458
458
  version: '0'
459
459
  requirements: []
460
- rubygems_version: 3.0.3
460
+ rubygems_version: 3.0.3.1
461
461
  signing_key:
462
462
  specification_version: 4
463
463
  summary: Peatio is a gem for running critical core services