ultex-eos 0.2.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.
- checksums.yaml +7 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +145 -0
- data/LICENSE.txt +12 -0
- data/README.md +39 -0
- data/Rakefile +8 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/config/blockchains.yml +10 -0
- data/config/currencies.yml +43 -0
- data/config/wallets.yml +121 -0
- data/coverage/.last_run.json +5 -0
- data/coverage/.resultset.json +433 -0
- data/coverage/.resultset.json.lock +0 -0
- data/coverage/assets/0.10.2/application.css +799 -0
- data/coverage/assets/0.10.2/application.js +1707 -0
- data/coverage/assets/0.10.2/colorbox/border.png +0 -0
- data/coverage/assets/0.10.2/colorbox/controls.png +0 -0
- data/coverage/assets/0.10.2/colorbox/loading.gif +0 -0
- data/coverage/assets/0.10.2/colorbox/loading_background.png +0 -0
- data/coverage/assets/0.10.2/favicon_green.png +0 -0
- data/coverage/assets/0.10.2/favicon_red.png +0 -0
- data/coverage/assets/0.10.2/favicon_yellow.png +0 -0
- data/coverage/assets/0.10.2/loading.gif +0 -0
- data/coverage/assets/0.10.2/magnify.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/coverage/assets/0.10.2/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/coverage/index.html +2730 -0
- data/docs/deposit.md +5 -0
- data/docs/integration.md +31 -0
- data/docs/rpc.md +28 -0
- data/docs/testnet.md +13 -0
- data/docs/tokens.md +6 -0
- data/lib/ultex/eos.rb +21 -0
- data/lib/ultex/eos/blockchain.rb +107 -0
- data/lib/ultex/eos/client.rb +66 -0
- data/lib/ultex/eos/hooks.rb +44 -0
- data/lib/ultex/eos/railtie.rb +15 -0
- data/lib/ultex/eos/transaction_serializer.rb +81 -0
- data/lib/ultex/eos/version.rb +7 -0
- data/lib/ultex/eos/wallet.rb +99 -0
- data/ultex-eos.gemspec +44 -0
- metadata +305 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 19a6286dadbb0c3ad237fe1db18445eb87a24467ba515319a356634a39ea4d3a
|
|
4
|
+
data.tar.gz: 137cb8cbaefdbc0610d1d290269aa1c8f5dfd2023e60626a8662dcc7e1ba04a3
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 875bc87b53e789d32670fba41c18d40d229064aa0d4fd7d4d531bbb1fd4fcca3ec06a2856eaa5cfbac68e10264f66cb7dbb517cc7fbde3c555076b0aa366e916
|
|
7
|
+
data.tar.gz: f93708d76c1aff7a451bfee919f32a79bcb5aa1cae6e3948af404a977129b521f7aeb9b6e7577de998c010e8d9972ab34e8b57a975d3e3f4adc0490f71433731
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
ultex-eos (0.2.1)
|
|
5
|
+
activesupport (~> 5.2.3)
|
|
6
|
+
better-faraday (~> 1.0.5)
|
|
7
|
+
faraday (~> 0.15.4)
|
|
8
|
+
memoist (~> 0.16.0)
|
|
9
|
+
net-http-persistent (~> 3.0.1)
|
|
10
|
+
peatio (~> 0.6.1)
|
|
11
|
+
|
|
12
|
+
GEM
|
|
13
|
+
remote: https://rubygems.org/
|
|
14
|
+
specs:
|
|
15
|
+
activemodel (5.2.3)
|
|
16
|
+
activesupport (= 5.2.3)
|
|
17
|
+
activesupport (5.2.3)
|
|
18
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
19
|
+
i18n (>= 0.7, < 2)
|
|
20
|
+
minitest (~> 5.1)
|
|
21
|
+
tzinfo (~> 1.1)
|
|
22
|
+
addressable (2.6.0)
|
|
23
|
+
public_suffix (>= 2.0.2, < 4.0)
|
|
24
|
+
amq-protocol (2.3.0)
|
|
25
|
+
amqp (1.8.0)
|
|
26
|
+
amq-protocol (>= 2.2.0)
|
|
27
|
+
eventmachine
|
|
28
|
+
ast (2.4.0)
|
|
29
|
+
better-faraday (1.0.8)
|
|
30
|
+
activesupport (>= 4.0, < 6.0)
|
|
31
|
+
faraday (~> 0.12)
|
|
32
|
+
bunny (2.14.2)
|
|
33
|
+
amq-protocol (~> 2.3, >= 2.3.0)
|
|
34
|
+
byebug (11.0.1)
|
|
35
|
+
clamp (1.3.1)
|
|
36
|
+
coderay (1.1.2)
|
|
37
|
+
concurrent-ruby (1.1.5)
|
|
38
|
+
connection_pool (2.2.2)
|
|
39
|
+
crack (0.4.3)
|
|
40
|
+
safe_yaml (~> 1.0.0)
|
|
41
|
+
diff-lcs (1.3)
|
|
42
|
+
docile (1.3.2)
|
|
43
|
+
em-websocket (0.5.1)
|
|
44
|
+
eventmachine (>= 0.12.9)
|
|
45
|
+
http_parser.rb (~> 0.6.0)
|
|
46
|
+
eventmachine (1.2.7)
|
|
47
|
+
faraday (0.15.4)
|
|
48
|
+
multipart-post (>= 1.2, < 3)
|
|
49
|
+
hashdiff (0.4.0)
|
|
50
|
+
http_parser.rb (0.6.0)
|
|
51
|
+
i18n (1.6.0)
|
|
52
|
+
concurrent-ruby (~> 1.0)
|
|
53
|
+
irb (1.0.0)
|
|
54
|
+
jaro_winkler (1.5.3)
|
|
55
|
+
json (2.2.0)
|
|
56
|
+
jwt (2.2.1)
|
|
57
|
+
memoist (0.16.0)
|
|
58
|
+
metaclass (0.0.4)
|
|
59
|
+
method_source (0.9.2)
|
|
60
|
+
minitest (5.11.3)
|
|
61
|
+
mocha (1.9.0)
|
|
62
|
+
metaclass (~> 0.0.1)
|
|
63
|
+
multipart-post (2.1.1)
|
|
64
|
+
mysql2 (0.5.2)
|
|
65
|
+
net-http-persistent (3.0.1)
|
|
66
|
+
connection_pool (~> 2.2)
|
|
67
|
+
parallel (1.17.0)
|
|
68
|
+
parser (2.6.3.0)
|
|
69
|
+
ast (~> 2.4.0)
|
|
70
|
+
peatio (0.6.1)
|
|
71
|
+
activemodel (~> 5.2.3)
|
|
72
|
+
amqp
|
|
73
|
+
bunny
|
|
74
|
+
clamp
|
|
75
|
+
em-websocket
|
|
76
|
+
eventmachine
|
|
77
|
+
jwt
|
|
78
|
+
mysql2
|
|
79
|
+
pry (0.12.2)
|
|
80
|
+
coderay (~> 1.1.0)
|
|
81
|
+
method_source (~> 0.9.0)
|
|
82
|
+
pry-byebug (3.7.0)
|
|
83
|
+
byebug (~> 11.0)
|
|
84
|
+
pry (~> 0.10)
|
|
85
|
+
public_suffix (3.1.0)
|
|
86
|
+
rainbow (3.0.0)
|
|
87
|
+
rake (10.5.0)
|
|
88
|
+
rspec (3.8.0)
|
|
89
|
+
rspec-core (~> 3.8.0)
|
|
90
|
+
rspec-expectations (~> 3.8.0)
|
|
91
|
+
rspec-mocks (~> 3.8.0)
|
|
92
|
+
rspec-core (3.8.1)
|
|
93
|
+
rspec-support (~> 3.8.0)
|
|
94
|
+
rspec-expectations (3.8.4)
|
|
95
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
96
|
+
rspec-support (~> 3.8.0)
|
|
97
|
+
rspec-mocks (3.8.1)
|
|
98
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
99
|
+
rspec-support (~> 3.8.0)
|
|
100
|
+
rspec-support (3.8.2)
|
|
101
|
+
rubocop (0.71.0)
|
|
102
|
+
jaro_winkler (~> 1.5.1)
|
|
103
|
+
parallel (~> 1.10)
|
|
104
|
+
parser (>= 2.6)
|
|
105
|
+
rainbow (>= 2.2.2, < 4.0)
|
|
106
|
+
ruby-progressbar (~> 1.7)
|
|
107
|
+
unicode-display_width (>= 1.4.0, < 1.7)
|
|
108
|
+
rubocop-github (0.13.0)
|
|
109
|
+
rubocop (~> 0.70)
|
|
110
|
+
rubocop-performance (~> 1.3.0)
|
|
111
|
+
rubocop-performance (1.3.0)
|
|
112
|
+
rubocop (>= 0.68.0)
|
|
113
|
+
ruby-progressbar (1.10.1)
|
|
114
|
+
safe_yaml (1.0.5)
|
|
115
|
+
simplecov (0.16.1)
|
|
116
|
+
docile (~> 1.1)
|
|
117
|
+
json (>= 1.8, < 3)
|
|
118
|
+
simplecov-html (~> 0.10.0)
|
|
119
|
+
simplecov-html (0.10.2)
|
|
120
|
+
thread_safe (0.3.6)
|
|
121
|
+
tzinfo (1.2.5)
|
|
122
|
+
thread_safe (~> 0.1)
|
|
123
|
+
unicode-display_width (1.6.0)
|
|
124
|
+
webmock (3.6.0)
|
|
125
|
+
addressable (>= 2.3.6)
|
|
126
|
+
crack (>= 0.3.2)
|
|
127
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
|
128
|
+
|
|
129
|
+
PLATFORMS
|
|
130
|
+
ruby
|
|
131
|
+
|
|
132
|
+
DEPENDENCIES
|
|
133
|
+
bundler (~> 1.17)
|
|
134
|
+
irb
|
|
135
|
+
mocha (~> 1.8)
|
|
136
|
+
ultex-eos!
|
|
137
|
+
pry-byebug
|
|
138
|
+
rake (~> 10.0)
|
|
139
|
+
rspec (~> 3.0)
|
|
140
|
+
rubocop-github
|
|
141
|
+
simplecov
|
|
142
|
+
webmock (~> 3.5)
|
|
143
|
+
|
|
144
|
+
BUNDLED WITH
|
|
145
|
+
1.17.3
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Copyright (C) Openware SAS - All Rights Reserved
|
|
2
|
+
|
|
3
|
+
NOTICE: All information contained herein is, and remains
|
|
4
|
+
the property of Openware SAS and its suppliers, if any.
|
|
5
|
+
The intellectual and technical concepts contained herein are proprietary to Openware SAS
|
|
6
|
+
and its suppliers and may be covered by U.S. and Foreign Patents,
|
|
7
|
+
patents in process, and are protected by trade secret or copyright law.
|
|
8
|
+
Dissemination of this information or reproduction of this material
|
|
9
|
+
is strictly forbidden unless prior written permission is obtained
|
|
10
|
+
from Openware SAS.
|
|
11
|
+
|
|
12
|
+
Proprietary and confidential
|
data/README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Peatio::Eos
|
|
2
|
+
|
|
3
|
+
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/eos`. To experiment with that code, run `bin/console` for an interactive prompt.
|
|
4
|
+
|
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
Add this line to your application's Gemfile:
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
gem 'peatio-eos'
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
And then execute:
|
|
16
|
+
|
|
17
|
+
$ bundle
|
|
18
|
+
|
|
19
|
+
Or install it yourself as:
|
|
20
|
+
|
|
21
|
+
$ gem install peatio-eos
|
|
22
|
+
|
|
23
|
+
## Usage
|
|
24
|
+
|
|
25
|
+
TODO: Write usage instructions here
|
|
26
|
+
|
|
27
|
+
## Development
|
|
28
|
+
|
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
30
|
+
|
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
32
|
+
|
|
33
|
+
## Contributing
|
|
34
|
+
|
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/peatio-eos.
|
|
36
|
+
|
|
37
|
+
## License
|
|
38
|
+
|
|
39
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
require "bundler/setup"
|
|
5
|
+
require "ultex/eos"
|
|
6
|
+
|
|
7
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
|
8
|
+
# with your gem easier. You can also use a different console, if you like.
|
|
9
|
+
|
|
10
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
11
|
+
# require "pry"
|
|
12
|
+
# Pry.start
|
|
13
|
+
|
|
14
|
+
require "irb"
|
|
15
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
- key: eos-testnet
|
|
2
|
+
name: Eos Testnet
|
|
3
|
+
client: eos # API client name.
|
|
4
|
+
server: http://127.0.0.1:8888 # Public Eos node endpoint.
|
|
5
|
+
height: 30818213 # Initial block number from which sync will be started.
|
|
6
|
+
min_confirmations: 20 # Minimal confirmations needed for withdraw and deposit confirmation.
|
|
7
|
+
explorer:
|
|
8
|
+
address: https://jungle.bloks.io/account/#{address}
|
|
9
|
+
transaction: https://jungle.bloks.io/transaction/#{txid}
|
|
10
|
+
status: active
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
- id: eos
|
|
2
|
+
name: EOS
|
|
3
|
+
blockchain_key: eos-testnet
|
|
4
|
+
symbol: 'E'
|
|
5
|
+
type: coin
|
|
6
|
+
precision: 4
|
|
7
|
+
base_factor: 100_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.0
|
|
14
|
+
withdraw_limit_72h: 500.0
|
|
15
|
+
deposit_fee: 0
|
|
16
|
+
withdraw_fee: 0
|
|
17
|
+
position: 1
|
|
18
|
+
options:
|
|
19
|
+
#NOT OPTIONAL
|
|
20
|
+
eos_token_name: "EOS"
|
|
21
|
+
|
|
22
|
+
# EOS TOKEN config example
|
|
23
|
+
|
|
24
|
+
- id: jungle
|
|
25
|
+
name: JUNGLE
|
|
26
|
+
blockchain_key: eos-testnet
|
|
27
|
+
symbol: 'J'
|
|
28
|
+
type: coin
|
|
29
|
+
precision: 4
|
|
30
|
+
base_factor: 100_000_000
|
|
31
|
+
enabled: true
|
|
32
|
+
# Deposits with less amount are skipped during blockchain synchronization.
|
|
33
|
+
# We advise to set value 10 times bigger than the network fee to prevent losses.
|
|
34
|
+
min_deposit_amount: 0.0001
|
|
35
|
+
min_collection_amount: 0.0001
|
|
36
|
+
withdraw_limit_24h: 100.0
|
|
37
|
+
withdraw_limit_72h: 500.0
|
|
38
|
+
deposit_fee: 0
|
|
39
|
+
withdraw_fee: 0
|
|
40
|
+
position: 1
|
|
41
|
+
options:
|
|
42
|
+
#NOT OPTIONAL
|
|
43
|
+
eos_token_name: "JUNGLE"
|
data/config/wallets.yml
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
- name: Eos Deposit Wallet
|
|
2
|
+
blockchain_key: eos-testnet
|
|
3
|
+
currency_id: eos
|
|
4
|
+
# Address where deposits will be collected to.
|
|
5
|
+
address: 'eosaddress12' # IMPORTANT: Always wrap this value in quotes!
|
|
6
|
+
kind: deposit # Wallet kind (deposit, hot, warm, cold or fee).
|
|
7
|
+
nsig: 1 # Number of signatures required for performing withdraw.
|
|
8
|
+
max_balance: 0.0
|
|
9
|
+
status: active
|
|
10
|
+
gateway: eos # Gateway client name.
|
|
11
|
+
settings:
|
|
12
|
+
#
|
|
13
|
+
# Eos gateway client settings.
|
|
14
|
+
#
|
|
15
|
+
# We need to communicate with keosd to sign transaction,
|
|
16
|
+
# keosd is running on non default eos port which is 8900
|
|
17
|
+
# and passed to json_rpc function when we sign transaction
|
|
18
|
+
uri: http://127.0.0.1:8888
|
|
19
|
+
secret: 'changeme' # Public key of wallet.
|
|
20
|
+
|
|
21
|
+
- name: Eos Hot Wallet
|
|
22
|
+
blockchain_key: eos-testnet
|
|
23
|
+
currency_id: eos
|
|
24
|
+
# Address where deposits will be collected to.
|
|
25
|
+
address: 'eosaddress12' # IMPORTANT: Always wrap this value in quotes!
|
|
26
|
+
kind: hot # Wallet kind (deposit, hot, warm, cold or fee).
|
|
27
|
+
nsig: 1 # Number of signatures required for performing withdraw.
|
|
28
|
+
max_balance: 1000.0
|
|
29
|
+
status: active
|
|
30
|
+
gateway: eos # Gateway client name.
|
|
31
|
+
settings:
|
|
32
|
+
#
|
|
33
|
+
# Eos gateway client settings.
|
|
34
|
+
#
|
|
35
|
+
# We need to communicate with keosd to sign transaction,
|
|
36
|
+
# keosd is running on non default eos port which is 8900
|
|
37
|
+
# and passed to json_rpc function when we sign transaction
|
|
38
|
+
uri: http://127.0.0.1:8888
|
|
39
|
+
secret: 'changeme' # Public key of wallet.
|
|
40
|
+
|
|
41
|
+
- name: Eos Warm Wallet
|
|
42
|
+
blockchain_key: eos-testnet
|
|
43
|
+
currency_id: eos
|
|
44
|
+
# Address where deposits will be collected to.
|
|
45
|
+
address: 'eosaddress12' # IMPORTANT: Always wrap this value in quotes!
|
|
46
|
+
kind: warm # Wallet kind (deposit, hot, warm, cold or fee).
|
|
47
|
+
nsig: 1 # Number of signatures required for performing withdraw.
|
|
48
|
+
max_balance: 10000.0
|
|
49
|
+
status: active
|
|
50
|
+
gateway: eos # Gateway client name.
|
|
51
|
+
settings:
|
|
52
|
+
#
|
|
53
|
+
# Eos gateway client settings.
|
|
54
|
+
#
|
|
55
|
+
# We need to communicate with keosd to sign transaction,
|
|
56
|
+
# keosd is running on non default eos port which is 8900
|
|
57
|
+
# and passed to json_rpc function when we sign transaction
|
|
58
|
+
uri: http://127.0.0.1:8888
|
|
59
|
+
secret: 'changeme' # Public key of wallet.
|
|
60
|
+
|
|
61
|
+
# EOS Token config example
|
|
62
|
+
|
|
63
|
+
- name: Jungle Deposit Wallet
|
|
64
|
+
blockchain_key: eos-testnet
|
|
65
|
+
currency_id: jungle
|
|
66
|
+
# Address where deposits will be collected to.
|
|
67
|
+
address: 'eosaddress12' # IMPORTANT: Always wrap this value in quotes!
|
|
68
|
+
kind: deposit # Wallet kind (deposit, hot, warm, cold or fee).
|
|
69
|
+
nsig: 1 # Number of signatures required for performing withdraw.
|
|
70
|
+
max_balance: 0.0
|
|
71
|
+
status: active
|
|
72
|
+
gateway: eos # Gateway client name.
|
|
73
|
+
settings:
|
|
74
|
+
#
|
|
75
|
+
# Eos gateway client settings.
|
|
76
|
+
#
|
|
77
|
+
# We need to communicate with keosd to sign transaction,
|
|
78
|
+
# keosd is running on non default eos port which is 8900
|
|
79
|
+
# and passed to json_rpc function when we sign transaction
|
|
80
|
+
uri: http://127.0.0.1:8888
|
|
81
|
+
secret: 'changeme' # Public key of wallet.
|
|
82
|
+
|
|
83
|
+
- name: Jungle Hot Wallet
|
|
84
|
+
blockchain_key: eos-testnet
|
|
85
|
+
currency_id: jungle
|
|
86
|
+
# Address where deposits will be collected to.
|
|
87
|
+
address: 'eosaddress12' # IMPORTANT: Always wrap this value in quotes!
|
|
88
|
+
kind: hot # Wallet kind (deposit, hot, warm, cold or fee).
|
|
89
|
+
nsig: 1 # Number of signatures required for performing withdraw.
|
|
90
|
+
max_balance: 1000.0
|
|
91
|
+
status: active
|
|
92
|
+
gateway: eos # Gateway client name.
|
|
93
|
+
settings:
|
|
94
|
+
#
|
|
95
|
+
# Eos gateway client settings.
|
|
96
|
+
#
|
|
97
|
+
# We need to communicate with keosd to sign transaction,
|
|
98
|
+
# keosd is running on non default eos port which is 8900
|
|
99
|
+
# and passed to json_rpc function when we sign transaction
|
|
100
|
+
uri: http://127.0.0.1:8888
|
|
101
|
+
secret: 'changeme' # Public key of wallet.
|
|
102
|
+
|
|
103
|
+
- name: Jungle Warm Wallet
|
|
104
|
+
blockchain_key: eos-testnet
|
|
105
|
+
currency_id: jungle
|
|
106
|
+
# Address where deposits will be collected to.
|
|
107
|
+
address: 'eosaddress12' # IMPORTANT: Always wrap this value in quotes!
|
|
108
|
+
kind: warm # Wallet kind (deposit, hot, warm, cold or fee).
|
|
109
|
+
nsig: 1 # Number of signatures required for performing withdraw.
|
|
110
|
+
max_balance: 10000.0
|
|
111
|
+
status: active
|
|
112
|
+
gateway: eos # Gateway client name.
|
|
113
|
+
settings:
|
|
114
|
+
#
|
|
115
|
+
# Eos gateway client settings.
|
|
116
|
+
#
|
|
117
|
+
# We need to communicate with keosd to sign transaction,
|
|
118
|
+
# keosd is running on non default eos port which is 8900
|
|
119
|
+
# and passed to json_rpc function when we sign transaction
|
|
120
|
+
uri: http://127.0.0.1:8888
|
|
121
|
+
secret: 'changeme' # Public key of wallet.
|
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
{
|
|
2
|
+
"RSpec": {
|
|
3
|
+
"coverage": {
|
|
4
|
+
"/home/valera/work/back/peatio-contrib/peatio-eos/lib/peatio/eos.rb": [
|
|
5
|
+
null,
|
|
6
|
+
null,
|
|
7
|
+
1,
|
|
8
|
+
1,
|
|
9
|
+
1,
|
|
10
|
+
1,
|
|
11
|
+
null,
|
|
12
|
+
1,
|
|
13
|
+
1,
|
|
14
|
+
1,
|
|
15
|
+
1,
|
|
16
|
+
null,
|
|
17
|
+
1,
|
|
18
|
+
1,
|
|
19
|
+
1,
|
|
20
|
+
1,
|
|
21
|
+
null,
|
|
22
|
+
1,
|
|
23
|
+
1,
|
|
24
|
+
null,
|
|
25
|
+
null
|
|
26
|
+
],
|
|
27
|
+
"/home/valera/work/back/peatio-contrib/peatio-eos/lib/peatio/eos/blockchain.rb": [
|
|
28
|
+
null,
|
|
29
|
+
null,
|
|
30
|
+
1,
|
|
31
|
+
1,
|
|
32
|
+
1,
|
|
33
|
+
1,
|
|
34
|
+
null,
|
|
35
|
+
1,
|
|
36
|
+
null,
|
|
37
|
+
1,
|
|
38
|
+
1,
|
|
39
|
+
null,
|
|
40
|
+
1,
|
|
41
|
+
15,
|
|
42
|
+
15,
|
|
43
|
+
null,
|
|
44
|
+
null,
|
|
45
|
+
1,
|
|
46
|
+
null,
|
|
47
|
+
10,
|
|
48
|
+
null,
|
|
49
|
+
10,
|
|
50
|
+
10,
|
|
51
|
+
11,
|
|
52
|
+
null,
|
|
53
|
+
10,
|
|
54
|
+
null,
|
|
55
|
+
null,
|
|
56
|
+
1,
|
|
57
|
+
4,
|
|
58
|
+
null,
|
|
59
|
+
18,
|
|
60
|
+
10,
|
|
61
|
+
null,
|
|
62
|
+
18,
|
|
63
|
+
4,
|
|
64
|
+
null,
|
|
65
|
+
0,
|
|
66
|
+
null,
|
|
67
|
+
null,
|
|
68
|
+
1,
|
|
69
|
+
2,
|
|
70
|
+
1,
|
|
71
|
+
null,
|
|
72
|
+
1,
|
|
73
|
+
null,
|
|
74
|
+
1,
|
|
75
|
+
null,
|
|
76
|
+
null,
|
|
77
|
+
1,
|
|
78
|
+
null,
|
|
79
|
+
0,
|
|
80
|
+
null,
|
|
81
|
+
null,
|
|
82
|
+
1,
|
|
83
|
+
1,
|
|
84
|
+
null,
|
|
85
|
+
0,
|
|
86
|
+
null,
|
|
87
|
+
null,
|
|
88
|
+
1,
|
|
89
|
+
null,
|
|
90
|
+
1,
|
|
91
|
+
21,
|
|
92
|
+
null,
|
|
93
|
+
17,
|
|
94
|
+
null,
|
|
95
|
+
20,
|
|
96
|
+
null,
|
|
97
|
+
16,
|
|
98
|
+
16,
|
|
99
|
+
null,
|
|
100
|
+
34,
|
|
101
|
+
16,
|
|
102
|
+
16,
|
|
103
|
+
null,
|
|
104
|
+
null,
|
|
105
|
+
null,
|
|
106
|
+
16,
|
|
107
|
+
15,
|
|
108
|
+
null,
|
|
109
|
+
null,
|
|
110
|
+
null,
|
|
111
|
+
null,
|
|
112
|
+
null,
|
|
113
|
+
null,
|
|
114
|
+
null,
|
|
115
|
+
null,
|
|
116
|
+
null,
|
|
117
|
+
1,
|
|
118
|
+
1,
|
|
119
|
+
null,
|
|
120
|
+
null,
|
|
121
|
+
1,
|
|
122
|
+
16,
|
|
123
|
+
null,
|
|
124
|
+
null,
|
|
125
|
+
1,
|
|
126
|
+
6,
|
|
127
|
+
null,
|
|
128
|
+
null,
|
|
129
|
+
1,
|
|
130
|
+
23,
|
|
131
|
+
null,
|
|
132
|
+
null,
|
|
133
|
+
null,
|
|
134
|
+
null
|
|
135
|
+
],
|
|
136
|
+
"/home/valera/work/back/peatio-contrib/peatio-eos/lib/peatio/eos/client.rb": [
|
|
137
|
+
null,
|
|
138
|
+
null,
|
|
139
|
+
1,
|
|
140
|
+
1,
|
|
141
|
+
1,
|
|
142
|
+
null,
|
|
143
|
+
1,
|
|
144
|
+
1,
|
|
145
|
+
1,
|
|
146
|
+
1,
|
|
147
|
+
1,
|
|
148
|
+
null,
|
|
149
|
+
1,
|
|
150
|
+
1,
|
|
151
|
+
0,
|
|
152
|
+
null,
|
|
153
|
+
null,
|
|
154
|
+
null,
|
|
155
|
+
1,
|
|
156
|
+
null,
|
|
157
|
+
1,
|
|
158
|
+
8,
|
|
159
|
+
8,
|
|
160
|
+
null,
|
|
161
|
+
null,
|
|
162
|
+
1,
|
|
163
|
+
null,
|
|
164
|
+
null,
|
|
165
|
+
null,
|
|
166
|
+
12,
|
|
167
|
+
12,
|
|
168
|
+
12,
|
|
169
|
+
12,
|
|
170
|
+
null,
|
|
171
|
+
null,
|
|
172
|
+
12,
|
|
173
|
+
12,
|
|
174
|
+
12,
|
|
175
|
+
12,
|
|
176
|
+
null,
|
|
177
|
+
12,
|
|
178
|
+
12,
|
|
179
|
+
12,
|
|
180
|
+
null,
|
|
181
|
+
20,
|
|
182
|
+
10,
|
|
183
|
+
null,
|
|
184
|
+
0,
|
|
185
|
+
null,
|
|
186
|
+
0,
|
|
187
|
+
null,
|
|
188
|
+
null,
|
|
189
|
+
1,
|
|
190
|
+
null,
|
|
191
|
+
1,
|
|
192
|
+
12,
|
|
193
|
+
12,
|
|
194
|
+
null,
|
|
195
|
+
null,
|
|
196
|
+
null,
|
|
197
|
+
null,
|
|
198
|
+
null
|
|
199
|
+
],
|
|
200
|
+
"/home/valera/work/back/peatio-contrib/peatio-eos/lib/peatio/eos/wallet.rb": [
|
|
201
|
+
null,
|
|
202
|
+
null,
|
|
203
|
+
1,
|
|
204
|
+
1,
|
|
205
|
+
1,
|
|
206
|
+
1,
|
|
207
|
+
null,
|
|
208
|
+
1,
|
|
209
|
+
null,
|
|
210
|
+
1,
|
|
211
|
+
null,
|
|
212
|
+
1,
|
|
213
|
+
null,
|
|
214
|
+
1,
|
|
215
|
+
8,
|
|
216
|
+
null,
|
|
217
|
+
null,
|
|
218
|
+
1,
|
|
219
|
+
10,
|
|
220
|
+
null,
|
|
221
|
+
10,
|
|
222
|
+
1,
|
|
223
|
+
null,
|
|
224
|
+
null,
|
|
225
|
+
9,
|
|
226
|
+
1,
|
|
227
|
+
null,
|
|
228
|
+
8,
|
|
229
|
+
null,
|
|
230
|
+
null,
|
|
231
|
+
1,
|
|
232
|
+
null,
|
|
233
|
+
null,
|
|
234
|
+
1,
|
|
235
|
+
1,
|
|
236
|
+
null,
|
|
237
|
+
0,
|
|
238
|
+
null,
|
|
239
|
+
null,
|
|
240
|
+
1,
|
|
241
|
+
1,
|
|
242
|
+
1,
|
|
243
|
+
1,
|
|
244
|
+
null,
|
|
245
|
+
1,
|
|
246
|
+
null,
|
|
247
|
+
1,
|
|
248
|
+
null,
|
|
249
|
+
1,
|
|
250
|
+
1,
|
|
251
|
+
null,
|
|
252
|
+
1,
|
|
253
|
+
null,
|
|
254
|
+
1,
|
|
255
|
+
null,
|
|
256
|
+
null,
|
|
257
|
+
1,
|
|
258
|
+
null,
|
|
259
|
+
null,
|
|
260
|
+
1,
|
|
261
|
+
1,
|
|
262
|
+
null,
|
|
263
|
+
0,
|
|
264
|
+
null,
|
|
265
|
+
null,
|
|
266
|
+
1,
|
|
267
|
+
1,
|
|
268
|
+
null,
|
|
269
|
+
1,
|
|
270
|
+
1,
|
|
271
|
+
null,
|
|
272
|
+
0,
|
|
273
|
+
null,
|
|
274
|
+
null,
|
|
275
|
+
1,
|
|
276
|
+
null,
|
|
277
|
+
1,
|
|
278
|
+
1,
|
|
279
|
+
null,
|
|
280
|
+
null,
|
|
281
|
+
1,
|
|
282
|
+
1,
|
|
283
|
+
null,
|
|
284
|
+
null,
|
|
285
|
+
1,
|
|
286
|
+
1,
|
|
287
|
+
null,
|
|
288
|
+
null,
|
|
289
|
+
1,
|
|
290
|
+
1,
|
|
291
|
+
null,
|
|
292
|
+
null,
|
|
293
|
+
1,
|
|
294
|
+
6,
|
|
295
|
+
6,
|
|
296
|
+
null,
|
|
297
|
+
null,
|
|
298
|
+
null,
|
|
299
|
+
null
|
|
300
|
+
],
|
|
301
|
+
"/home/valera/work/back/peatio-contrib/peatio-eos/lib/peatio/eos/transaction_serializer.rb": [
|
|
302
|
+
null,
|
|
303
|
+
null,
|
|
304
|
+
1,
|
|
305
|
+
1,
|
|
306
|
+
1,
|
|
307
|
+
1,
|
|
308
|
+
1,
|
|
309
|
+
null,
|
|
310
|
+
1,
|
|
311
|
+
null,
|
|
312
|
+
null,
|
|
313
|
+
null,
|
|
314
|
+
null,
|
|
315
|
+
null,
|
|
316
|
+
null,
|
|
317
|
+
null,
|
|
318
|
+
null,
|
|
319
|
+
null,
|
|
320
|
+
null,
|
|
321
|
+
null,
|
|
322
|
+
1,
|
|
323
|
+
1,
|
|
324
|
+
null,
|
|
325
|
+
null,
|
|
326
|
+
null,
|
|
327
|
+
1,
|
|
328
|
+
null,
|
|
329
|
+
null,
|
|
330
|
+
null,
|
|
331
|
+
null,
|
|
332
|
+
null,
|
|
333
|
+
null,
|
|
334
|
+
null,
|
|
335
|
+
null,
|
|
336
|
+
null,
|
|
337
|
+
null,
|
|
338
|
+
null,
|
|
339
|
+
null,
|
|
340
|
+
null,
|
|
341
|
+
null,
|
|
342
|
+
null,
|
|
343
|
+
null,
|
|
344
|
+
null,
|
|
345
|
+
null,
|
|
346
|
+
null,
|
|
347
|
+
null,
|
|
348
|
+
null,
|
|
349
|
+
null,
|
|
350
|
+
1,
|
|
351
|
+
1,
|
|
352
|
+
null,
|
|
353
|
+
null,
|
|
354
|
+
1,
|
|
355
|
+
null,
|
|
356
|
+
null,
|
|
357
|
+
null,
|
|
358
|
+
null,
|
|
359
|
+
null,
|
|
360
|
+
null,
|
|
361
|
+
null,
|
|
362
|
+
null,
|
|
363
|
+
null,
|
|
364
|
+
null,
|
|
365
|
+
null,
|
|
366
|
+
null,
|
|
367
|
+
null,
|
|
368
|
+
null,
|
|
369
|
+
null,
|
|
370
|
+
null,
|
|
371
|
+
null,
|
|
372
|
+
null,
|
|
373
|
+
null,
|
|
374
|
+
null,
|
|
375
|
+
null,
|
|
376
|
+
null,
|
|
377
|
+
null,
|
|
378
|
+
null,
|
|
379
|
+
null,
|
|
380
|
+
null,
|
|
381
|
+
null,
|
|
382
|
+
null
|
|
383
|
+
],
|
|
384
|
+
"/home/valera/work/back/peatio-contrib/peatio-eos/lib/peatio/eos/hooks.rb": [
|
|
385
|
+
null,
|
|
386
|
+
null,
|
|
387
|
+
1,
|
|
388
|
+
1,
|
|
389
|
+
1,
|
|
390
|
+
1,
|
|
391
|
+
1,
|
|
392
|
+
null,
|
|
393
|
+
1,
|
|
394
|
+
1,
|
|
395
|
+
1,
|
|
396
|
+
null,
|
|
397
|
+
null,
|
|
398
|
+
0,
|
|
399
|
+
null,
|
|
400
|
+
null,
|
|
401
|
+
0,
|
|
402
|
+
null,
|
|
403
|
+
null,
|
|
404
|
+
1,
|
|
405
|
+
null,
|
|
406
|
+
null,
|
|
407
|
+
0,
|
|
408
|
+
null,
|
|
409
|
+
null,
|
|
410
|
+
0,
|
|
411
|
+
null,
|
|
412
|
+
null,
|
|
413
|
+
null,
|
|
414
|
+
1,
|
|
415
|
+
1,
|
|
416
|
+
1,
|
|
417
|
+
null,
|
|
418
|
+
null,
|
|
419
|
+
null,
|
|
420
|
+
1,
|
|
421
|
+
0,
|
|
422
|
+
null,
|
|
423
|
+
1,
|
|
424
|
+
1,
|
|
425
|
+
null,
|
|
426
|
+
null,
|
|
427
|
+
null,
|
|
428
|
+
null
|
|
429
|
+
]
|
|
430
|
+
},
|
|
431
|
+
"timestamp": 1568283952
|
|
432
|
+
}
|
|
433
|
+
}
|