ouroboros-peatio-ripple 3.1.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 38ad125936163eecb9f7bd091e9aaca9276394c3cb53d41e79f7c12456e309a2
4
+ data.tar.gz: 878219232203d7cb48e730c170e511d8b986ec44a8db7ba989e0fd7451b80c13
5
+ SHA512:
6
+ metadata.gz: 620d9b6d0b4f4471c78b00a856a9782d6a533cbb35e01c55b0355b47fd38951af29c422bd5db4a202378cdf99b3482d4d6404235d4196f0a85c772d8f8b2dcf4
7
+ data.tar.gz: 415b913931ee961ef2e171e4ad980670386f689f7c4e5f73d769911f0e6a0911298da8bed4633a0c5cefa2f2fd42272799c5823f68766744e89b99dfdfd83c47
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.6.0
7
+ before_install: gem install bundler -v 1.17.2
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in peatio-ripple.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,179 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ peatio-ripple (3.1.0)
5
+ activesupport (~> 6.1.0)
6
+ better-faraday (~> 2.0.1)
7
+ faraday (~> 1.10)
8
+ memoist (~> 0.16.0)
9
+ net-http-persistent (~> 4.0.1)
10
+ peatio (>= 3.1.1)
11
+
12
+ GEM
13
+ remote: https://rubygems.org/
14
+ specs:
15
+ activemodel (6.1.7.2)
16
+ activesupport (= 6.1.7.2)
17
+ activesupport (6.1.7.2)
18
+ concurrent-ruby (~> 1.0, >= 1.0.2)
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)
26
+ amqp (1.8.0)
27
+ amq-protocol (>= 2.2.0)
28
+ eventmachine
29
+ better-faraday (2.0.1)
30
+ activesupport (>= 4.0, < 7.0)
31
+ faraday (>= 1.0, < 3.0)
32
+ bunny (2.20.3)
33
+ amq-protocol (~> 2.3, >= 2.3.1)
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)
40
+ cookiejar (0.3.3)
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)
46
+ addressable (>= 2.3.4)
47
+ cookiejar (!= 0.3.1)
48
+ em-socksify (>= 0.3)
49
+ eventmachine (>= 1.0.3)
50
+ http_parser.rb (>= 0.6.0)
51
+ em-socksify (0.3.2)
52
+ eventmachine (>= 1.0.0.beta.4)
53
+ em-synchrony (1.0.6)
54
+ eventmachine (>= 1.0.0.beta.1)
55
+ em-websocket (0.5.3)
56
+ eventmachine (>= 0.12.9)
57
+ http_parser.rb (~> 0)
58
+ eventmachine (1.2.7)
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)
83
+ cookiejar (>= 0.3.0)
84
+ em-http-request (>= 1.1.6)
85
+ eventmachine (>= 0.12.0)
86
+ faye-websocket (>= 0.11.0)
87
+ multi_json (>= 1.0.0)
88
+ rack (>= 1.0.0)
89
+ websocket-driver (>= 0.5.1)
90
+ faye-websocket (0.11.1)
91
+ eventmachine (>= 0.12.0)
92
+ websocket-driver (>= 0.5.1)
93
+ hashdiff (1.0.1)
94
+ http_parser.rb (0.8.0)
95
+ i18n (1.12.0)
96
+ concurrent-ruby (~> 1.0)
97
+ jwt (2.7.0)
98
+ memoist (0.16.2)
99
+ method_source (1.0.0)
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)
106
+ connection_pool (~> 2.2)
107
+ peatio (3.1.1)
108
+ activemodel (> 5.2)
109
+ amqp
110
+ bunny
111
+ clamp
112
+ em-synchrony (~> 1.0)
113
+ em-websocket
114
+ eventmachine
115
+ faraday (~> 1.10)
116
+ faye (~> 1.2)
117
+ jwt
118
+ mysql2
119
+ prometheus-client
120
+ thin
121
+ prometheus-client (4.0.0)
122
+ pry (0.14.2)
123
+ coderay (~> 1.1)
124
+ method_source (~> 1.0)
125
+ pry-byebug (3.10.1)
126
+ byebug (~> 11.0)
127
+ pry (>= 0.13, < 0.15)
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)
140
+ diff-lcs (>= 1.2.0, < 2.0)
141
+ rspec-support (~> 3.12.0)
142
+ rspec-mocks (3.12.3)
143
+ diff-lcs (>= 1.2.0, < 2.0)
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)
152
+ daemons (~> 1.0, >= 1.0.9)
153
+ eventmachine (~> 1.0, >= 1.0.4)
154
+ rack (>= 1, < 3)
155
+ tzinfo (2.0.6)
156
+ concurrent-ruby (~> 1.0)
157
+ webmock (3.18.1)
158
+ addressable (>= 2.8.0)
159
+ crack (>= 0.3.2)
160
+ hashdiff (>= 0.4.0, < 2.0.0)
161
+ websocket-driver (0.7.5)
162
+ websocket-extensions (>= 0.1.0)
163
+ websocket-extensions (0.1.5)
164
+ zeitwerk (2.6.7)
165
+
166
+ PLATFORMS
167
+ arm64-darwin-21
168
+
169
+ DEPENDENCIES
170
+ bundler (~> 2.4.7)
171
+ mocha (~> 1.8)
172
+ peatio-ripple!
173
+ pry-byebug
174
+ rake (~> 13.0)
175
+ rspec (~> 3.0)
176
+ webmock (~> 3.5)
177
+
178
+ BUNDLED WITH
179
+ 2.4.7
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Maksym Naichuk
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,67 @@
1
+ # Peatio::Ripple
2
+
3
+ Peatio ripple plugin for Rubykube stack
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'peatio-ripple'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install peatio-ripple
20
+
21
+ ## Usage
22
+
23
+ For Peatio Ripple plugin integration you need to do the following steps:
24
+
25
+ ### Image Build.
26
+
27
+ 1. Add peatio-ripple gem into your Gemfile.plugin
28
+ ```ruby
29
+ gem 'peatio-ripple', '~> 0.2.0'
30
+ ```
31
+
32
+ 2. Run `bundle install` for updating Gemfile.lock
33
+
34
+ 3. Build custom Peatio [docker image with Ripple plugin](https://github.com/rubykube/peatio/blob/master/docs/plugins.md#build)
35
+
36
+ 4. Push your image using `docker push`
37
+
38
+ 5. Update your deployment to use image with peatio-ripple gem
39
+
40
+ ### Peatio Configuration.
41
+
42
+ 1. Create Ripple Blockchain [config example](../config/blockchains.yml).
43
+ * No additional steps are needed
44
+
45
+ 2. Create Ripple Currency [config example](../config/currencies.yml).
46
+ * No additional steps are needed
47
+
48
+ 3. Create Ripple Wallets [config example](../config/wallets.yml)(deposit and hot wallets are required).
49
+ * No additional steps are needed
50
+
51
+
52
+ ## Development
53
+
54
+ Plugin development [example](https://github.com/rubykube/peatio/blob/master/docs/coins/development.md).
55
+
56
+ ## Contributing
57
+
58
+ Bug reports and pull requests are welcome on GitHub at https://github.com/rubykube/peatio-ripple.
59
+
60
+ ## License
61
+
62
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
63
+
64
+ ## Consulting
65
+
66
+ You can contact Openware for finding certified vendors:
67
+ [Openware.com](https://www.openware.com)
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "peatio/ripple"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,10 @@
1
+ - key: xrp-testnet
2
+ name: Ripple Testnet
3
+ client: ripple # API client name.
4
+ server: http://user:password@127.0.0.1:5005 # Public Ripple node endpoint.
5
+ height: 19706874 # Initial block number from which sync will be started.
6
+ min_confirmations: 6 # Minimal confirmations needed for withdraw and deposit confirmation.
7
+ explorer:
8
+ address: https://test.bithomp.com/explorer/#{address}
9
+ transaction: https://test.bithomp.com/explorer/#{txid}
10
+ status: active
@@ -0,0 +1,18 @@
1
+ - id: xrp
2
+ name: Ripple
3
+ blockchain_key: xrp-testnet
4
+ symbol: 'ꭆ'
5
+ type: coin
6
+ precision: 8
7
+ base_factor: 1_000_000
8
+ enabled: true
9
+ # Deposits with less amount are skipped during blockchain synchronization.
10
+ # We advise to set value 10 times bigger than the network fee to prevent losses.
11
+ min_deposit_amount: 0.0001
12
+ min_collection_amount: 0.0001
13
+ withdraw_limit_24h: 100
14
+ withdraw_limit_72h: 200
15
+ deposit_fee: 0
16
+ withdraw_fee: 0
17
+ position: 1
18
+ options: {}
@@ -0,0 +1,46 @@
1
+ - name: Ripple Deposit Wallet
2
+ blockchain_key: xrp-testnet
3
+ currency_id: xrp
4
+ address: 'r4kpJtnx4goLYXoRdi7mbkRpZ9Xpx2RyPN' # IMPORTANT: Always wrap this value in quotes!
5
+ kind: deposit # Wallet kind (deposit, hot, warm, cold or fee).
6
+ nsig: 1 # Number of signatures required for performing withdraw.
7
+ max_balance: 0.0
8
+ status: active
9
+ gateway: rippled # Gateway client name.
10
+ settings:
11
+ #
12
+ # Rippled gateway client settings.
13
+ uri: http://127.0.0.1:5005
14
+ secret: 'changeme'
15
+
16
+ - name: Ripple Hot Wallet
17
+ blockchain_key: xrp-testnet
18
+ currency_id: xrp
19
+ # Address where deposits will be collected to.
20
+ address: 'r4kpJtnx4goLYXoRdi7mbkRpZ9Xpx2RyPN' # IMPORTANT: Always wrap this value in quotes!
21
+ kind: hot # Wallet kind (deposit, hot, warm, cold or fee).
22
+ nsig: 1 # Number of signatures required for performing withdraw.
23
+ max_balance: 100.0
24
+ status: active
25
+ gateway: rippled # Gateway client name.
26
+ settings:
27
+ #
28
+ # Rippled gateway client settings.
29
+ uri: http://127.0.0.1:5005
30
+ secret: 'changeme'
31
+
32
+ - name: Ripple Warm Wallet
33
+ blockchain_key: xrp-testnet
34
+ currency_id: xrp
35
+ # Address where deposits will be collected to.
36
+ address: 'r4kpJtnx4goLYXoRdi7mbkRpZ9Xpx2RyPN' # IMPORTANT: Always wrap this value in quotes!
37
+ kind: warm # Wallet kind (deposit, hot, warm, cold or fee).
38
+ nsig: 1 # Number of signatures required for performing withdraw.
39
+ max_balance: 1000.0
40
+ status: active
41
+ gateway: rippled # Gateway client name.
42
+ settings:
43
+ #
44
+ # Rippled gateway client settings.
45
+ uri: http://user:password@127.0.0.1:5005
46
+ secret: 'changeme'
@@ -0,0 +1,29 @@
1
+ # Integration.
2
+
3
+ For Peatio Ripple plugin integration you need to do the following steps:
4
+
5
+ ## Image Build.
6
+
7
+ 1. Add peatio-ripple gem into your Gemfile.plugin
8
+ ```ruby
9
+ gem 'peatio-ripple', '~> 0.1.1'
10
+ ```
11
+
12
+ 2. Run `bundle install` for updating Gemfile.lock
13
+
14
+ 3. Build custom Peatio [docker image with Ripple plugin](https://github.com/rubykube/peatio/blob/master/docs/plugins.md#build)
15
+
16
+ 4. Push your image using `docker push`
17
+
18
+ 5. Update your deployment to use image with peatio-ripple gem
19
+
20
+ ## Peatio Configuration.
21
+
22
+ 1. Create Ripple Blockchain [config example](../config/blockchains.yml).
23
+ * No additional steps are needed
24
+
25
+ 2. Create Ripple Currency [config example](../config/currencies.yml).
26
+ * No additional steps are needed
27
+
28
+ 3. Create Ripple Wallets [config example](../config/wallets.yml)(deposit and hot wallets are required).
29
+ * No additional steps are needed
data/docs/json-rpc.md ADDED
@@ -0,0 +1,31 @@
1
+ # JSON RPC
2
+
3
+ The next list of JSON RPC calls where used for plugin development.
4
+ For response examples see spec/resources:
5
+
6
+ * account_info
7
+ `curl --data-binary '{"jsonrpc":"2.0","id":1,"method":"fee", "params": [{}]}' -H 'Content-Type: application/json' http://user:password@127.0.0.1:5005`
8
+
9
+ * fee
10
+ `curl --data-binary '{"jsonrpc":"2.0","id":1,"method":"ledger", "params": [{ "ledger_index": "validated" }]}' -H 'Content-Type: application/json' http://user:password@127.0.0.1:5005`
11
+
12
+ * ledger
13
+ `curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockcount", "params": [] }' -H 'Content-Type: application/json' http://user:password@127.0.0.1:5005`
14
+
15
+ * ledger(transaction: true)
16
+ `curl --data-binary '{"jsonrpc":"2.0","id":1,"method":"ledger", "params": [{ "ledger_index": "validated", "transactions": true }]}' -H 'Content-Type: application/json' http://user:password@127.0.0.1:5005`
17
+
18
+ * sign
19
+ `curl --data-binary '{"jsonrpc":"2.0","id":1,"method":"sign", "params": [{ "secret": "snKAbE6d1wPqeaDai541Wirqq3Pd3", "tx_json": { "Account": "rsFyWHyiDd2bvbnAFPXZnsZyfcQttv4T4c", "Amount": "10000000", "Fee":"10", "Destination": "rB94e2mZZcApwEFeW6oWuME351w1yQpJQy", "TransactionType": "Payment", "LastLedgerSequence": 19697030 } }]}' -H 'Content-Type: application/json' http://user:password@127.0.0.1:5005`
20
+
21
+ * submit
22
+ `curl --data-binary '{"jsonrpc":"2.0","id":1,"method":"submit", "params": [{ "tx_blob": "12000022800000002400000001201B012C8FC061400000000098968068400000000000000A732102B9C6E7141E6C573B4B458EDA44A1E823C404AA16142C1F26EF714163A3F2FB6E7446304402206796D95E0DF6F0012AE1679B37A2254677E3492CE41261FC23E2BBDBDAF8B93302202C70611478BA8AAB1C7A97C472C9CC9C4A315349CD90C2DDDDD84C95AD938E8381141F02F845784D34EF689AE436709184E69BF17A8883146F46A80656A321D5A1E2224A73DA60C23F218A93" }]}' -H 'Content-Type: application/json' http://user:password@127.0.0.1:5005`
23
+
24
+ * tx
25
+ `curl --data-binary '{"jsonrpc":"2.0","id":1,"method":"tx", "params": [{ "transaction": "70C40F4A172051B786E954ADE38080311BEE81C788B4257C67F1DBCB7D487F24" }]}' -H 'Content-Type: application/json' http://user:password@127.0.0.1:5005`
26
+
27
+ * wallet_propose
28
+ `curl --data-binary '{"jsonrpc":"2.0","id":1,"method":"wallet_propose", "params": [{ "key_type": "secp256k1"}]}' -H 'Content-Type: application/json' http://user:password@127.0.0.1:5005`
29
+
30
+ * methodnotfound
31
+ `curl --data-binary '{"jsonrpc": "2.0", "id": 1, "method": "methodnotfound", "params": [] }' -H 'Content-Type: application/json' http://user:password@127.0.0.1:5005`
data/docs/testnet.md ADDED
@@ -0,0 +1,13 @@
1
+ # Getting Ripple in testnet.
2
+
3
+ ## Faucet
4
+
5
+ * [developers.ripple.com](https://developers.ripple.com/xrp-test-net-faucet.html)
6
+
7
+ ## Wallet
8
+
9
+ * [ripplerm.github.io](https://ripplerm.github.io/ripple-wallet/)
10
+
11
+ ## Explorer
12
+
13
+ * [test.bithomp.com](https://test.bithomp.com/explorer/)
@@ -0,0 +1,133 @@
1
+
2
+ module Peatio
3
+ module Ripple
4
+ class Blockchain < Peatio::Blockchain::Abstract
5
+
6
+ # Flow:
7
+ # get block_number from params
8
+ # fetch transactions from this block
9
+ # build transactions from prev step
10
+
11
+ UndefinedCurrencyError = Class.new(StandardError)
12
+
13
+ DEFAULT_FEATURES = { case_sensitive: true, cash_addr_format: false }.freeze
14
+
15
+ def initialize(custom_features = {})
16
+ @features = DEFAULT_FEATURES.merge(custom_features).slice(*SUPPORTED_FEATURES)
17
+ @settings = {}
18
+ end
19
+
20
+ def configure(settings = {})
21
+ # Clean client state during configure.
22
+ @client = nil
23
+ @settings.merge!(settings.slice(*SUPPORTED_SETTINGS))
24
+ end
25
+
26
+ def fetch_block!(ledger_index)
27
+ ledger = client.json_rpc(:ledger,
28
+ [
29
+ {
30
+ ledger_index: ledger_index || 'validated',
31
+ transactions: true,
32
+ expand: true
33
+ }
34
+ ]).dig('ledger')
35
+
36
+ return if ledger.blank?
37
+ ledger.fetch('transactions').each_with_object([]) do |tx, txs_array|
38
+ next unless valid_transaction?(tx)
39
+
40
+ txs = build_transaction(tx).map do |ntx|
41
+ Peatio::Transaction.new(ntx.merge(block_number: ledger_index))
42
+ end
43
+ txs_array.append(*txs)
44
+ end.yield_self { |txs_array| Peatio::Block.new(ledger_index, txs_array) }
45
+ rescue Client::Error => e
46
+ raise Peatio::Blockchain::ClientError, e
47
+ end
48
+
49
+ def latest_block_number
50
+ client.json_rpc(:ledger, [{ ledger_index: 'validated' }]).fetch('ledger_index')
51
+ rescue Client::Error => e
52
+ raise Peatio::Blockchain::ClientError, e
53
+ end
54
+
55
+ def load_balance_of_address!(address, currency_id)
56
+ currency = settings[:currencies].find { |c| c[:id] == currency_id.to_s }
57
+ raise UndefinedCurrencyError unless currency
58
+
59
+ client.json_rpc(:account_info,
60
+ [account: normalize_address(address), ledger_index: 'validated', strict: true])
61
+ .fetch('account_data')
62
+ .fetch('Balance')
63
+ .to_d
64
+ .yield_self { |amount| convert_from_base_unit(amount, currency) }
65
+
66
+ rescue Client::Error => e
67
+ raise Peatio::Blockchain::ClientError, e
68
+ end
69
+
70
+ private
71
+
72
+ def build_transaction(tx_hash)
73
+ destination_tag = tx_hash['DestinationTag'] || destination_tag_from(tx_hash['Destination'])
74
+ address = "#{to_address(tx_hash)}?dt=#{destination_tag}"
75
+
76
+ settings_fetch(:currencies).each_with_object([]) do |currency, formatted_txs|
77
+ formatted_txs << { hash: tx_hash['hash'],
78
+ txout: tx_hash.dig('metaData','TransactionIndex'),
79
+ to_address: address,
80
+ status: check_status(tx_hash),
81
+ currency_id: currency[:id],
82
+ amount: convert_from_base_unit(tx_hash.dig('metaData', 'delivered_amount'), currency) }
83
+ end
84
+ end
85
+
86
+ def settings_fetch(key)
87
+ @settings.fetch(key) { raise Peatio::Blockchain::MissingSettingError, key.to_s }
88
+ end
89
+
90
+ def check_status(tx_hash)
91
+ tx_hash.dig('metaData', 'TransactionResult') == 'tesSUCCESS' ? 'success' : 'failed'
92
+ end
93
+
94
+ def valid_transaction?(tx)
95
+ inspect_address!(tx['Account'])[:is_valid] &&
96
+ tx['TransactionType'].to_s == 'Payment' &&
97
+ String === tx.dig('metaData', 'delivered_amount')
98
+ end
99
+
100
+ def inspect_address!(address)
101
+ {
102
+ address: normalize_address(address),
103
+ is_valid: valid_address?(normalize_address(address))
104
+ }
105
+ end
106
+
107
+ def normalize_address(address)
108
+ address.gsub(/\?dt=\d*\Z/, '')
109
+ end
110
+
111
+ def valid_address?(address)
112
+ /\Ar[0-9a-zA-Z]{24,34}(:?\?dt=[1-9]\d*)?\z/.match?(address)
113
+ end
114
+
115
+ def destination_tag_from(address)
116
+ address =~ /\?dt=(\d*)\Z/
117
+ $1.to_i
118
+ end
119
+
120
+ def to_address(tx)
121
+ normalize_address(tx['Destination'])
122
+ end
123
+
124
+ def convert_from_base_unit(value, currency)
125
+ value.to_d / currency.fetch(:base_factor).to_d
126
+ end
127
+
128
+ def client
129
+ @client ||= Client.new(settings_fetch(:server))
130
+ end
131
+ end
132
+ end
133
+ end
@@ -0,0 +1,63 @@
1
+ require 'memoist'
2
+ require 'faraday'
3
+ require 'better-faraday'
4
+
5
+ module Peatio
6
+ module Ripple
7
+ class Client
8
+ Error = Class.new(StandardError)
9
+ ConnectionError = Class.new(Error)
10
+
11
+ class ResponseError < Error
12
+ def initialize(code, msg)
13
+ @code = code
14
+ @msg = msg
15
+ end
16
+
17
+ def message
18
+ "#{@msg} (#{@code})"
19
+ end
20
+ end
21
+
22
+ extend Memoist
23
+
24
+ def initialize(endpoint)
25
+ @json_rpc_endpoint = URI.parse(endpoint)
26
+ @json_rpc_call_id = 0
27
+ end
28
+
29
+ def json_rpc(method, params = [])
30
+ response = connection.post \
31
+ '/',
32
+ { jsonrpc: '2.0', id: rpc_call_id, method: method, params: params }.to_json,
33
+ { 'Accept' => 'application/json',
34
+ 'Content-Type' => 'application/json' }
35
+ response.assert_2xx!
36
+ response = JSON.parse(response.body)
37
+ response.fetch('result').tap do |result|
38
+ raise ResponseError.new(result['error_code'], result['error_message']) if result['status'] == 'error'
39
+ end
40
+ response.fetch('result')
41
+ rescue Faraday::Error => e
42
+ raise ConnectionError, e
43
+ end
44
+
45
+ private
46
+
47
+ def rpc_call_id
48
+ @json_rpc_call_id += 1
49
+ end
50
+
51
+ def connection
52
+ @connection ||= Faraday.new(@json_rpc_endpoint) do |f|
53
+ f.adapter :net_http_persistent, pool_size: 5
54
+ end.tap do |connection|
55
+ unless @json_rpc_endpoint.user.blank?
56
+ connection.basic_auth(@json_rpc_endpoint.user,
57
+ @json_rpc_endpoint.password)
58
+ end
59
+ end
60
+ end
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,35 @@
1
+ module Peatio
2
+ module Ripple
3
+ module Hooks
4
+ class << self
5
+ def check_compatibility
6
+ if Peatio::Blockchain::VERSION >= '2.0'
7
+ [
8
+ "Ripple plugin was designed for work with 1.x. Blockchain.",
9
+ "You have #{Peatio::Ripple::Blockchain::VERSION}."
10
+ ].join('\n').tap { |s| Kernel.abort s }
11
+ end
12
+
13
+ if Peatio::Wallet::VERSION >= '2.0'
14
+ [
15
+ "Ripple plugin was designed for work with 1.x. Wallet.",
16
+ "You have #{Peatio::Ripple::Wallet::VERSION}."
17
+ ].join('\n').tap { |s| Kernel.abort s }
18
+ end
19
+ end
20
+
21
+ def register
22
+ Peatio::Blockchain.registry[:ripple] = Ripple::Blockchain
23
+ Peatio::Wallet.registry[:rippled] = Ripple::Wallet
24
+ end
25
+ end
26
+
27
+ if defined?(Rails::Railtie)
28
+ require "peatio/ripple/railtie"
29
+ else
30
+ check_compatibility
31
+ register
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,21 @@
1
+ # encoding: UTF-8
2
+ # frozen_string_literal: true
3
+
4
+ #= PasswordGenerator
5
+ #
6
+ #== Usage
7
+ #
8
+ # >> PasswordGenerator.generate
9
+ # => "2pN@cxj+zs!SVogtPZ&u"
10
+ #
11
+ # >> PasswordGenerator.generate(40)
12
+ # => "B5xPy2unMKjRchfS($7v)q4N%oF*lGz@+OJ6LbVD"
13
+ module PasswordGenerator
14
+ CHARS = ('0'..'9').to_a + ('A'..'Z').to_a + ('a'..'z').to_a + %w{! @ # $ % & / ( ) + ? *}
15
+
16
+ class << self
17
+ def generate(length = 20)
18
+ CHARS.sort_by { rand }.join[0...length]
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,13 @@
1
+ module Peatio
2
+ module Ripple
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 Ripple
3
+ VERSION = "3.1.0".freeze
4
+ end
5
+ end
@@ -0,0 +1,156 @@
1
+ module Peatio
2
+ module Ripple
3
+ class Wallet < Peatio::Wallet::Abstract
4
+
5
+ Error = Class.new(StandardError)
6
+
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
+ @settings.merge!(settings.slice(*SUPPORTED_SETTINGS))
18
+
19
+ @wallet = @settings.fetch(:wallet) do
20
+ raise Peatio::Wallet::MissingSettingError, :wallet
21
+ end.slice(:uri, :address, :secret)
22
+
23
+ @currency = @settings.fetch(:currency) do
24
+ raise Peatio::Wallet::MissingSettingError, :currency
25
+ end.slice(:id, :base_factor, :options)
26
+ end
27
+
28
+ def create_address!(_setting)
29
+ {
30
+ address: "#{@wallet[:address]}?dt=#{SecureRandom.random_number(10**6)}",
31
+ secret: @wallet[:secret]
32
+ }
33
+ end
34
+
35
+ def create_raw_address(options = {})
36
+ secret = options.fetch(:secret) { PasswordGenerator.generate(64) }
37
+ result = client.json_rpc(:wallet_propose, [{ passphrase: secret }])
38
+
39
+ result.slice('key_type', 'master_seed', 'master_seed_hex',
40
+ 'master_key', 'public_key', 'public_key_hex')
41
+ .merge(address: normalize_address(result.fetch('account_id')), secret: secret)
42
+ .symbolize_keys
43
+ end
44
+
45
+ def create_transaction!(transaction, options = {})
46
+ tx_blob = sign_transaction(transaction, options)
47
+ client.json_rpc(:submit, [tx_blob]).yield_self do |result|
48
+ error_message = {
49
+ message: result.fetch('engine_result_message'),
50
+ status: result.fetch('engine_result')
51
+ }
52
+
53
+ # TODO: It returns provision results. Transaction may fail or success
54
+ # than change status to opposite one before ledger is final.
55
+ # Need to set special status and recheck this transaction status
56
+ if result['engine_result'].to_s == 'tesSUCCESS' && result['status'].to_s == 'success'
57
+ transaction.currency_id = 'xrp' if transaction.currency_id.blank?
58
+ transaction.hash = result.fetch('tx_json').fetch('hash')
59
+ else
60
+ raise Error, "XRP withdrawal from #{@wallet.fetch(:address)} to #{transaction.to_address} failed. Message: #{error_message}."
61
+ end
62
+ transaction
63
+ end
64
+ end
65
+
66
+ def sign_transaction(transaction, options = {})
67
+ account_address = normalize_address(@wallet[:address])
68
+ destination_address = normalize_address(transaction.to_address)
69
+ destination_tag = destination_tag_from(transaction.to_address)
70
+ fee = calculate_current_fee
71
+
72
+ amount = convert_to_base_unit(transaction.amount)
73
+
74
+ # Subtract fees from initial deposit amount in case of deposit collection
75
+ amount -= fee if options.dig(:subtract_fee)
76
+ transaction.amount = convert_from_base_unit(amount) unless transaction.amount == amount
77
+
78
+ params = [{
79
+ secret: @wallet.fetch(:secret),
80
+ tx_json: {
81
+ Account: account_address,
82
+ Amount: amount.to_s,
83
+ Fee: fee.to_s,
84
+ Destination: destination_address,
85
+ DestinationTag: destination_tag,
86
+ TransactionType: 'Payment',
87
+ LastLedgerSequence: latest_block_number + 4
88
+ }
89
+ }]
90
+
91
+ client.json_rpc(:sign, params).yield_self do |result|
92
+ if result['status'].to_s == 'success'
93
+ { tx_blob: result['tx_blob'] }
94
+ else
95
+ raise Error, "XRP sign transaction from #{account_address} to #{destination_address} failed: #{result}."
96
+ end
97
+ end
98
+ end
99
+
100
+ # Returns fee in drops that is enough to process transaction in current ledger
101
+ def calculate_current_fee
102
+ client.json_rpc(:fee, {}).yield_self do |result|
103
+ result.dig('drops', 'open_ledger_fee').to_i
104
+ end
105
+ end
106
+
107
+ def latest_block_number
108
+ client.json_rpc(:ledger, [{ ledger_index: 'validated' }]).fetch('ledger_index')
109
+ rescue Client::Error => e
110
+ raise Peatio::Blockchain::ClientError, e
111
+ end
112
+
113
+ def load_balance!
114
+ client.json_rpc(:account_info,
115
+ [account: normalize_address(@wallet.fetch(:address)), ledger_index: 'validated', strict: true])
116
+ .fetch('account_data')
117
+ .fetch('Balance')
118
+ .to_d
119
+ .yield_self { |amount| convert_from_base_unit(amount) }
120
+
121
+ rescue Client::Error => e
122
+ raise Peatio::Wallet::ClientError, e
123
+ end
124
+
125
+ private
126
+
127
+ def destination_tag_from(address)
128
+ address =~ /\?dt=(\d*)\Z/
129
+ $1.to_i
130
+ end
131
+
132
+ def normalize_address(address)
133
+ address.gsub(/\?dt=\d*\Z/, '')
134
+ end
135
+
136
+ def convert_from_base_unit(value)
137
+ value.to_d / @currency.fetch(:base_factor).to_d
138
+ end
139
+
140
+ def convert_to_base_unit(value)
141
+ x = value.to_d * @currency.fetch(:base_factor)
142
+ unless (x % 1).zero?
143
+ raise Peatio::Ripple::Wallet::Error,
144
+ "Failed to convert value to base (smallest) unit because it exceeds the maximum precision: " \
145
+ "#{value.to_d} - #{x.to_d} must be equal to zero."
146
+ end
147
+ x.to_i
148
+ end
149
+
150
+ def client
151
+ uri = @wallet.fetch(:uri) { raise Peatio::Wallet::MissingSettingError, :uri }
152
+ @client ||= Client.new(uri)
153
+ end
154
+ end
155
+ end
156
+ end
@@ -0,0 +1,15 @@
1
+ require "peatio/ripple/version"
2
+ require "active_support/core_ext/object/blank"
3
+ require "peatio"
4
+
5
+ module Peatio
6
+ module Ripple
7
+ require "peatio/ripple/client"
8
+ require "peatio/ripple/blockchain"
9
+ require "peatio/ripple/wallet"
10
+ require "peatio/ripple/password_generator"
11
+
12
+ require "peatio/ripple/hooks"
13
+ require "peatio/ripple/version"
14
+ end
15
+ end
@@ -0,0 +1,39 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "peatio/ripple/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "ouroboros-peatio-ripple"
8
+ spec.version = Peatio::Ripple::VERSION
9
+ spec.authors = ["Maksym N."]
10
+ spec.email = ["mnaichuk@heliostech.fr"]
11
+
12
+ spec.summary = %q{Gem for extending Peatio plugable system with Ripple implementation.}
13
+ spec.description = %q{Ripple Peatio gem which implements Peatio::Blockchain::Abstract & Peatio::Wallet::Abstract.}
14
+ spec.homepage = "https://openware.com/"
15
+ spec.license = "MIT"
16
+
17
+ # Specify which files should be added to the gem when it is released.
18
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
19
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
20
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
21
+ end
22
+ spec.bindir = "exe"
23
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
+ spec.require_paths = ["lib"]
25
+
26
+ spec.add_dependency "activesupport", "~> 6.1.0"
27
+ spec.add_dependency "peatio", ">= 3.1.1"
28
+ spec.add_dependency "faraday", "~> 1.10"
29
+ spec.add_dependency "memoist", "~> 0.16.0"
30
+ spec.add_dependency "better-faraday", "~> 2.0.1"
31
+ spec.add_dependency 'net-http-persistent', '~> 4.0.1'
32
+
33
+ spec.add_development_dependency "bundler", "~> 2.4.7"
34
+ spec.add_development_dependency "rake", "~> 13.0"
35
+ spec.add_development_dependency "rspec", "~> 3.0"
36
+ spec.add_development_dependency "mocha", "~> 1.8"
37
+ spec.add_development_dependency "pry-byebug"
38
+ spec.add_development_dependency "webmock", "~> 3.5"
39
+ end
metadata ADDED
@@ -0,0 +1,236 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ouroboros-peatio-ripple
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Maksym N.
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2026-08-17 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: 6.1.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 6.1.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: peatio
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 3.1.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 3.1.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: faraday
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.10'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.10'
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: better-faraday
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 2.0.1
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 2.0.1
83
+ - !ruby/object:Gem::Dependency
84
+ name: net-http-persistent
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 4.0.1
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 4.0.1
97
+ - !ruby/object:Gem::Dependency
98
+ name: bundler
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 2.4.7
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 2.4.7
111
+ - !ruby/object:Gem::Dependency
112
+ name: rake
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '13.0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '13.0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rspec
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '3.0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '3.0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: mocha
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '1.8'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '1.8'
153
+ - !ruby/object:Gem::Dependency
154
+ name: pry-byebug
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: webmock
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '3.5'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: '3.5'
181
+ description: Ripple Peatio gem which implements Peatio::Blockchain::Abstract & Peatio::Wallet::Abstract.
182
+ email:
183
+ - mnaichuk@heliostech.fr
184
+ executables: []
185
+ extensions: []
186
+ extra_rdoc_files: []
187
+ files:
188
+ - ".gitignore"
189
+ - ".rspec"
190
+ - ".travis.yml"
191
+ - Gemfile
192
+ - Gemfile.lock
193
+ - LICENSE.txt
194
+ - README.md
195
+ - Rakefile
196
+ - bin/console
197
+ - bin/setup
198
+ - config/blockchains.yml
199
+ - config/currencies.yml
200
+ - config/wallets.yml
201
+ - docs/integration.md
202
+ - docs/json-rpc.md
203
+ - docs/testnet.md
204
+ - lib/peatio/ripple.rb
205
+ - lib/peatio/ripple/blockchain.rb
206
+ - lib/peatio/ripple/client.rb
207
+ - lib/peatio/ripple/hooks.rb
208
+ - lib/peatio/ripple/password_generator.rb
209
+ - lib/peatio/ripple/railtie.rb
210
+ - lib/peatio/ripple/version.rb
211
+ - lib/peatio/ripple/wallet.rb
212
+ - ouroboros-peatio-ripple.gemspec
213
+ homepage: https://openware.com/
214
+ licenses:
215
+ - MIT
216
+ metadata: {}
217
+ post_install_message:
218
+ rdoc_options: []
219
+ require_paths:
220
+ - lib
221
+ required_ruby_version: !ruby/object:Gem::Requirement
222
+ requirements:
223
+ - - ">="
224
+ - !ruby/object:Gem::Version
225
+ version: '0'
226
+ required_rubygems_version: !ruby/object:Gem::Requirement
227
+ requirements:
228
+ - - ">="
229
+ - !ruby/object:Gem::Version
230
+ version: '0'
231
+ requirements: []
232
+ rubygems_version: 3.1.6
233
+ signing_key:
234
+ specification_version: 4
235
+ summary: Gem for extending Peatio plugable system with Ripple implementation.
236
+ test_files: []