peatio 2.6.3 → 2.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84b1d411b8dfcd1f8ee2ac2681eaeadc7ad47831a29e6b47c96e27570557a9fe
4
- data.tar.gz: 5d20b6701264f5c7d9d22228c4711cb2cbaaf5c3e3e19a1298ace9856b9b8f5a
3
+ metadata.gz: 9a111772b6f98f8e2e27dc4d3c26d815fffcc38d2d637e8e3021934d5fe77ade
4
+ data.tar.gz: 651ddb388b8ceff0efe3249e70f5edeca468255dcc06fb8f879be0543b784d1e
5
5
  SHA512:
6
- metadata.gz: 93cb0f60fa8470e1b442e5161886ded5664815d0be7322f56bd41c0264891f53f8bc526a32b288f9323b4f565e1193c2640b0802fdb9fd25ede501092bd6a1f3
7
- data.tar.gz: 8d814b72378587412fa3cb1f47882220b76ddeb83f13742ed275f1751ccd0ff047021c2db9439b0e3cb6b2b09db8230677bb17ac0fb6413aa534b83d83d297df
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.3)
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)
@@ -44,7 +44,7 @@ GEM
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
50
  em-http-request (1.1.7)
@@ -78,7 +78,7 @@ GEM
78
78
  multi_json (>= 1.0.0)
79
79
  rack (>= 1.0.0)
80
80
  websocket-driver (>= 0.5.1)
81
- faye-websocket (0.11.0)
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,7 +89,7 @@ GEM
89
89
  reline (>= 0.0.1)
90
90
  jaro_winkler (1.5.4)
91
91
  json (2.3.0)
92
- jwt (2.2.2)
92
+ jwt (2.2.3)
93
93
  method_source (1.0.0)
94
94
  minitest (5.14.1)
95
95
  multi_json (1.15.0)
@@ -153,7 +153,7 @@ GEM
153
153
  simplecov-json (0.2.1)
154
154
  json
155
155
  simplecov
156
- thin (1.8.0)
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.3)
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)
@@ -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
  # )
@@ -67,6 +69,10 @@ module Peatio #:nodoc:
67
69
  # return [Decimal] amount of the transaction
68
70
  attr_accessor :amount
69
71
 
72
+ # @!attribute [rw] fee
73
+ # return [Decimal] fee of the transaction
74
+ attr_accessor :fee
75
+
70
76
  # @!attribute [rw] block_number
71
77
  # return [Integer] transaction block number
72
78
  attr_accessor :block_number
@@ -75,6 +81,10 @@ module Peatio #:nodoc:
75
81
  # return [String] transaction currency id
76
82
  attr_accessor :currency_id
77
83
 
84
+ # @!attribute [rw] fee_currency_id
85
+ # return [String] transaction fee currency id
86
+ attr_accessor :fee_currency_id
87
+
78
88
  # @!attribute [rw] options
79
89
  # return [JSON] transaction options
80
90
  attr_accessor :options
@@ -98,6 +108,9 @@ module Peatio #:nodoc:
98
108
  validates :amount,
99
109
  numericality: { greater_than_or_equal_to: 0 }
100
110
 
111
+ validates :fee,
112
+ numericality: { greater_than_or_equal_to: 0 }, allow_blank: true
113
+
101
114
  validates :status, inclusion: { in: STATUSES }
102
115
 
103
116
  def initialize(attributes={})
@@ -1,3 +1,3 @@
1
1
  module Peatio
2
- VERSION = "2.6.3"
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.3
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: 2021-03-02 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