exchange-tron 2.6.1

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.
@@ -0,0 +1,62 @@
1
+ require 'memoist'
2
+ require 'faraday'
3
+ require 'better-faraday'
4
+
5
+ module Peatio
6
+ module Tron
7
+ class Client
8
+ Error = Class.new(StandardError)
9
+
10
+ class ConnectionError < Error; end
11
+
12
+ class ResponseError < Error
13
+ def initialize(code, msg)
14
+ @code = code
15
+ @msg = msg
16
+ end
17
+
18
+ def message
19
+ "#{@msg} (#{@code})"
20
+ end
21
+ end
22
+
23
+ extend Memoist
24
+
25
+ def initialize(endpoint)
26
+ @json_rpc_endpoint = URI.parse(endpoint)
27
+ end
28
+
29
+ def json_rpc(path:, params: {})
30
+ response = connection.post do |req|
31
+ req.url path
32
+ req.body = params.to_json
33
+ end
34
+ response.assert_2xx!
35
+ response = JSON.parse(response.body)
36
+ response['Error'].tap { |error| raise ResponseError.new(200, error) if error }
37
+ response
38
+ rescue => e
39
+ if e.is_a?(Error)
40
+ raise e
41
+ elsif e.is_a?(Faraday::Error)
42
+ raise ConnectionError, e
43
+ else
44
+ raise Error, e
45
+ end
46
+ end
47
+
48
+ private
49
+
50
+ def connection
51
+ @connection ||= Faraday.new(@json_rpc_endpoint) do |f|
52
+ f.adapter :net_http_persistent, pool_size: 5, idle_timeout: @idle_timeout
53
+ end.tap do |connection|
54
+ unless @json_rpc_endpoint.user.blank?
55
+ connection.basic_auth(@json_rpc_endpoint.user, @json_rpc_endpoint.password)
56
+ end
57
+ end
58
+ end
59
+ end
60
+ end
61
+ end
62
+
@@ -0,0 +1,57 @@
1
+ require 'digest/sha3'
2
+ module Encryption
3
+ extend ActiveSupport::Concern
4
+
5
+ ALGO = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
6
+
7
+ def reformat_decode_address(address)
8
+ base58_to_binary(address)
9
+ end
10
+
11
+ def reformat_encode_address(hexstring)
12
+ sha256 = sha256_encode(sha256_encode(hexstring))
13
+ (hexstring + sha256[0, 8]).hex.digits(58).reverse.map {|i| ALGO[i]}.join
14
+ end
15
+
16
+ def reformat_txid(txid)
17
+ txid
18
+ end
19
+
20
+ def encode_hex(str)
21
+ str.unpack('H*')[0]
22
+ end
23
+
24
+ def decode_hex(str)
25
+ [str].pack('H*')
26
+ end
27
+
28
+ def abi_encode(*args)
29
+ args.each_with_object('') do |arg, data|
30
+ data.concat(arg.gsub(/\A0x/, '').rjust(64, '0'))
31
+ end
32
+ end
33
+
34
+ private
35
+
36
+ def sha256_encode(hexstring)
37
+ Digest::SHA256.hexdigest([hexstring].pack('H*'))
38
+ end
39
+
40
+ def base58_to_int(base58_val)
41
+ int_val = 0
42
+ base58_val.reverse.split(//).each_with_index do |char, index|
43
+ char_index = ALGO.index(char)
44
+ int_val += (char_index) * (ALGO.length ** (index))
45
+ end
46
+ int_val
47
+ end
48
+
49
+ def base58_to_binary(base58_val)
50
+ int_encode_hex(base58_to_int(base58_val))[0, 42]
51
+ end
52
+
53
+ def int_encode_hex int
54
+ hex = int.to_s(16)
55
+ (hex.length % 2 == 0) ? hex : ('0' + hex)
56
+ end
57
+ end
@@ -0,0 +1,42 @@
1
+ module Peatio
2
+ module Tron
3
+ module Hooks
4
+ BLOCKCHAIN_VERSION_REQUIREMENT = "~> 1.0.0"
5
+ WALLET_VERSION_REQUIREMENT = "~> 1.0.0"
6
+
7
+ class << self
8
+ def check_compatibility
9
+ unless Gem::Requirement.new(BLOCKCHAIN_VERSION_REQUIREMENT)
10
+ .satisfied_by?(Gem::Version.new(Peatio::Blockchain::VERSION))
11
+ [
12
+ "Tron blockchain version requirement was not satisfied by Peatio::Blockchain.",
13
+ "Tron blockchain requires #{BLOCKCHAIN_VERSION_REQUIREMENT}.",
14
+ "Peatio::Blockchain version is #{Peatio::Blockchain::VERSION}"
15
+ ].join('\n').tap { |s| Kernel.abort s }
16
+ end
17
+
18
+ unless Gem::Requirement.new(WALLET_VERSION_REQUIREMENT)
19
+ .satisfied_by?(Gem::Version.new(Peatio::Wallet::VERSION))
20
+ [
21
+ "Tron wallet version requirement was not satisfied by Peatio::Wallet.",
22
+ "Tron wallet requires #{WALLET_VERSION_REQUIREMENT}.",
23
+ "Peatio::Wallet version is #{Peatio::Wallet::VERSION}"
24
+ ].join('\n').tap { |s| Kernel.abort s }
25
+ end
26
+ end
27
+
28
+ def register
29
+ Peatio::Blockchain.registry[:tron] = Tron::Blockchain
30
+ Peatio::Wallet.registry[:tron] = Tron::Wallet
31
+ end
32
+ end
33
+
34
+ if defined?(Rails::Railtie)
35
+ require "peatio/tron/railtie"
36
+ else
37
+ check_compatibility
38
+ register
39
+ end
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,13 @@
1
+ module Peatio
2
+ module Tron
3
+ class Railtie < Rails::Railtie
4
+ config.before_initialize do
5
+ Hooks.check_compatibility
6
+ end
7
+
8
+ config.after_initialize do
9
+ Hooks.register
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,5 @@
1
+ module Peatio
2
+ module Tron
3
+ VERSION = "2.6.1"
4
+ end
5
+ end
@@ -0,0 +1,198 @@
1
+ module Peatio
2
+ module Tron
3
+ class Wallet < Peatio::Wallet::Abstract
4
+ include Encryption
5
+
6
+ DEFAULT_FEE = { fee_limit: 1000000 }
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 = {}
12
+ end
13
+
14
+ def configure(settings = {})
15
+ # Clean client state during configure.
16
+ @client = nil
17
+
18
+ @settings.merge!(settings.slice(*SUPPORTED_SETTINGS))
19
+
20
+ @wallet = @settings.fetch(:wallet) do
21
+ raise Peatio::Wallet::MissingSettingError, :wallet
22
+ end.slice(:uri, :address, :secret)
23
+
24
+ @currency = @settings.fetch(:currency) do
25
+ raise Peatio::Wallet::MissingSettingError, :currency
26
+ end.slice(:id, :base_factor, :options)
27
+ end
28
+
29
+ def create_address!(options = {})
30
+ client.json_rpc(path: 'wallet/generateaddress')
31
+ .yield_self { |r| { address: r.fetch('address'), secret: r.fetch('privateKey') } }
32
+ rescue Tron::Client::Error => e
33
+ raise Peatio::Wallet::ClientError, e
34
+ end
35
+
36
+ def create_transaction!(transaction, options = {})
37
+ if @currency.dig(:options, :trc10_token_id).present?
38
+ create_trc10_transaction!(transaction)
39
+ elsif @currency.dig(:options, :trc20_contract_address).present?
40
+ create_trc20_transaction!(transaction, options)
41
+ else
42
+ create_coin_transaction!(transaction, options)
43
+ end
44
+ rescue Tron::Client::Error => e
45
+ raise Peatio::Wallet::ClientError, e
46
+ end
47
+
48
+ def prepare_deposit_collection!(transaction, deposit_spread, deposit_currency)
49
+ # Don't prepare for deposit_collection in case of coin(tron) deposit.
50
+ return [] if is_coin?(deposit_currency)
51
+ return [] if deposit_spread.blank?
52
+
53
+ options = DEFAULT_FEE.merge(deposit_currency.fetch(:options).slice(:fee_limit))
54
+
55
+ # We collect fees depending on the number of spread deposit size
56
+ # Example: if deposit spreads on three wallets need to collect tron fee for 3 transactions
57
+ fees = convert_from_base_unit(options.fetch(:fee_limit).to_i)
58
+ transaction.amount = fees * deposit_spread.size
59
+
60
+ [create_coin_transaction!(transaction)]
61
+ rescue Tron::Client::Error => e
62
+ raise Peatio::Wallet::ClientError, e
63
+ end
64
+
65
+ def load_balance!
66
+ if @currency.dig(:options, :trc10_token_id).present?
67
+ client.json_rpc(path: 'wallet/getaccount',
68
+ params: { address: reformat_decode_address(@wallet.fetch(:address)) }
69
+ ).fetch('assetV2', [])
70
+ .find { |a| a['key'] == @currency[:options][:trc10_token_id] }
71
+ .try(:fetch, 'value', 0)
72
+ elsif @currency.dig(:options, :trc20_contract_address).present?
73
+ client.json_rpc(path: 'wallet/triggersmartcontract',
74
+ params: {
75
+ owner_address: reformat_decode_address(@wallet.fetch(:address)),
76
+ contract_address: reformat_decode_address(@currency.dig(:options, :trc20_contract_address)),
77
+ function_selector: 'balanceOf(address)',
78
+ parameter: abi_encode(reformat_decode_address(@wallet.fetch(:address))[2..42]) }
79
+ ).fetch('constant_result')[0].hex
80
+ else
81
+ client.json_rpc(path: 'wallet/getaccount',
82
+ params: { address: reformat_decode_address(@wallet.fetch(:address)) }
83
+ ).fetch('balance', nil)
84
+ end.yield_self { |amount| convert_from_base_unit(amount.to_i) }
85
+ rescue Tron::Client::Error => e
86
+ raise Peatio::Wallet::ClientError, e
87
+ end
88
+
89
+ private
90
+
91
+ def create_trc10_transaction!(transaction, options = {})
92
+ currency_options = @currency.fetch(:options).slice(:trc10_token_id)
93
+ options.merge!(currency_options)
94
+
95
+ amount = convert_to_base_unit(transaction.amount)
96
+
97
+ txid = client.json_rpc(path: 'wallet/easytransferassetbyprivate',
98
+ params: {
99
+ privateKey: @wallet.fetch(:secret),
100
+ toAddress: reformat_decode_address(transaction.to_address),
101
+ assetId: currency_options.fetch(:trc10_token_id),
102
+ amount: amount
103
+ }).dig('transaction', 'txID')
104
+ .yield_self { |txid| reformat_txid(txid) }
105
+
106
+ unless txid
107
+ raise Peatio::Wallet::ClientError, \
108
+ "Withdrawal from #{@wallet.fetch(:address)} to #{transaction.to_address} failed."
109
+ end
110
+ transaction.hash = reformat_txid(txid)
111
+ transaction
112
+ end
113
+
114
+ def create_trc20_transaction!(transaction, options = {})
115
+ currency_options = @currency.fetch(:options).slice(:trc20_contract_address, :fee_limit)
116
+ options.merge!(DEFAULT_FEE, currency_options)
117
+
118
+ amount = convert_to_base_unit(transaction.amount)
119
+
120
+ signed_txn = sign_transaction(transaction, amount, options)
121
+
122
+ # broadcast txn
123
+ response = client.json_rpc(path: 'wallet/broadcasttransaction',
124
+ params: signed_txn)
125
+
126
+ txid = response.fetch('result', false) ? signed_txn.fetch('txID') : nil
127
+
128
+ unless txid
129
+ raise Peatio::Wallet::ClientError, \
130
+ "Withdrawal from #{@wallet.fetch(:address)} to #{transaction.to_address} failed."
131
+ end
132
+ transaction.hash = reformat_txid(txid)
133
+ transaction
134
+ end
135
+
136
+ def create_coin_transaction!(transaction, options = {})
137
+ amount = convert_to_base_unit(transaction.amount)
138
+ txid = client.json_rpc(path: 'wallet/easytransferbyprivate',
139
+ params: {
140
+ privateKey: @wallet.fetch(:secret),
141
+ toAddress: reformat_decode_address(transaction.to_address),
142
+ amount: amount
143
+ }).dig('transaction', 'txID')
144
+ .yield_self { |txid| reformat_txid(txid) }
145
+
146
+ unless txid
147
+ raise Peatio::Wallet::ClientError, \
148
+ "Withdrawal from #{@wallet.fetch(:address)} to #{transaction.to_address} failed."
149
+ end
150
+ transaction.amount = convert_from_base_unit(amount)
151
+ transaction.hash = reformat_txid(txid)
152
+ transaction
153
+ end
154
+
155
+ def sign_transaction(transaction, amount, options)
156
+ client.json_rpc(path: 'wallet/gettransactionsign',
157
+ params: {
158
+ transaction: trigger_smart_contract(transaction, amount, options),
159
+ privateKey: @wallet.fetch(:secret)
160
+ })
161
+ end
162
+
163
+ def trigger_smart_contract(transaction, amount, options)
164
+ client.json_rpc(path: 'wallet/triggersmartcontract',
165
+ params: {
166
+ contract_address: reformat_decode_address(options.fetch(:trc20_contract_address)),
167
+ function_selector: 'transfer(address,uint256)',
168
+ parameter: abi_encode(reformat_decode_address(transaction.to_address)[2..42], amount.to_s(16)),
169
+ fee_limit: options.fetch(:fee_limit),
170
+ owner_address: reformat_decode_address(@wallet.fetch(:address))
171
+ }).fetch('transaction')
172
+ end
173
+
174
+ def is_coin?(deposit_currency)
175
+ deposit_currency.dig(:options, :trc20_contract_address).blank?
176
+ end
177
+
178
+ def convert_from_base_unit(value)
179
+ value.to_d / @currency.fetch(:base_factor)
180
+ end
181
+
182
+ def convert_to_base_unit(value)
183
+ x = value.to_d * @currency.fetch(:base_factor)
184
+ unless (x % 1).zero?
185
+ raise Peatio::Wallet::ClientError,
186
+ "Failed to convert value to base (smallest) unit because it exceeds the maximum precision: " \
187
+ "#{value.to_d} - #{x.to_d} must be equal to zero."
188
+ end
189
+ x.to_i
190
+ end
191
+
192
+ def client
193
+ uri = @wallet.fetch(:uri) { raise Peatio::Wallet::MissingSettingError, :uri }
194
+ @client ||= Client.new(uri)
195
+ end
196
+ end
197
+ end
198
+ end
@@ -0,0 +1,19 @@
1
+ require "active_support/core_ext/object/blank"
2
+ require "active_support/core_ext/enumerable"
3
+ require "active_support/core_ext/string/inquiry"
4
+ require "active_support/core_ext/object/try"
5
+ require "peatio"
6
+
7
+ module Peatio
8
+ module Tron
9
+ require "bigdecimal"
10
+ require "bigdecimal/util"
11
+ require "digest/sha3"
12
+ require "peatio/tron/concerns/encryption"
13
+ require "peatio/tron/blockchain"
14
+ require "peatio/tron/client"
15
+ require "peatio/tron/wallet"
16
+ require "peatio/tron/hooks"
17
+ require "peatio/tron/version"
18
+ end
19
+ end
metadata ADDED
@@ -0,0 +1,276 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: exchange-tron
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.6.1
5
+ platform: ruby
6
+ authors:
7
+ - ABC
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-12-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 5.2.3
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 5.2.3
27
+ - !ruby/object:Gem::Dependency
28
+ name: better-faraday
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 1.0.5
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 1.0.5
41
+ - !ruby/object:Gem::Dependency
42
+ name: faraday
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.17'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.17'
55
+ - !ruby/object:Gem::Dependency
56
+ name: memoist
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.16.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.16.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: digest-sha3
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 1.1.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 1.1.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: ed25519
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: ffi
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: peatio
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: 2.6.5
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: 2.6.5
125
+ - !ruby/object:Gem::Dependency
126
+ name: net-http-persistent
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 3.0.1
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 3.0.1
139
+ - !ruby/object:Gem::Dependency
140
+ name: bundler
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: 1.3.0
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: 1.3.0
153
+ - !ruby/object:Gem::Dependency
154
+ name: mocha
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '1.8'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '1.8'
167
+ - !ruby/object:Gem::Dependency
168
+ name: pry-byebug
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: rake
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '13.0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '13.0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: rspec
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: '3.0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: '3.0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: webmock
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - "~>"
214
+ - !ruby/object:Gem::Version
215
+ version: '3.5'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - "~>"
221
+ - !ruby/object:Gem::Version
222
+ version: '3.5'
223
+ description: Tron gem which implements Peatio::Blockchain::Abstract & Peatio::Wallet::Abstract.
224
+ email:
225
+ - ''
226
+ executables: []
227
+ extensions: []
228
+ extra_rdoc_files: []
229
+ files:
230
+ - ".gitattributes"
231
+ - ".gitignore"
232
+ - ".rspec"
233
+ - ".travis.yml"
234
+ - Gemfile
235
+ - Gemfile.lock
236
+ - LICENSE.txt
237
+ - README.md
238
+ - Rakefile
239
+ - bin/console
240
+ - bin/setup
241
+ - config/blockchains.yml
242
+ - config/currencies.yml
243
+ - config/wallets.yml
244
+ - exchange-tron.gemspec
245
+ - lib/peatio/tron.rb
246
+ - lib/peatio/tron/blockchain.rb
247
+ - lib/peatio/tron/client.rb
248
+ - lib/peatio/tron/concerns/encryption.rb
249
+ - lib/peatio/tron/hooks.rb
250
+ - lib/peatio/tron/railtie.rb
251
+ - lib/peatio/tron/version.rb
252
+ - lib/peatio/tron/wallet.rb
253
+ homepage: ''
254
+ licenses:
255
+ - MIT
256
+ metadata: {}
257
+ post_install_message:
258
+ rdoc_options: []
259
+ require_paths:
260
+ - lib
261
+ required_ruby_version: !ruby/object:Gem::Requirement
262
+ requirements:
263
+ - - ">="
264
+ - !ruby/object:Gem::Version
265
+ version: '0'
266
+ required_rubygems_version: !ruby/object:Gem::Requirement
267
+ requirements:
268
+ - - ">="
269
+ - !ruby/object:Gem::Version
270
+ version: '0'
271
+ requirements: []
272
+ rubygems_version: 3.0.9
273
+ signing_key:
274
+ specification_version: 4
275
+ summary: Gem for extending Peatio plugable system with Tron implementation.
276
+ test_files: []