peatio-ndc 0.1.2 → 0.1.3

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: a03e52e0c58b810d748551008411f42e8c6873e1652a9e02508da335d1de0b04
4
- data.tar.gz: 2936ca54a8e8da5bfe4063109b8a6737f20f42af9ab74c222b1d8e781ece2cf9
3
+ metadata.gz: a74d54d24d9beba483d2fd18c97f18635418b8dec777318c34535ac85a7574d0
4
+ data.tar.gz: 4e6269c094d64bc07d1fa13625d0d8232c95e112793bc3799a11d1f1ab301a79
5
5
  SHA512:
6
- metadata.gz: 304d9c2495db3da4e713fbe67ac154639e4beecedcfeda05e1f0f65cc21bb4a89ae1766d8c8feba10ccb84dc998a5ff5418ea1662137a53be9958bf641886095
7
- data.tar.gz: cfec5b5b58128f86b336a9b4770f00338439d68b28d5879943a1cd0a0d6da066b09ac35a6ca55260fe643b94ba8ab0e211423d3b357a66ec5ad4cdd19a12391d
6
+ metadata.gz: ac39f68e7eb73fd7942be8289f9447773904dafe76701ac3c37876b4ad33b5471b992d969db2eb1c61bb5b889744a7c9a58c80845d16bf209e160d09a5306ece
7
+ data.tar.gz: 02071ceedfd5f61e13daf1079e33a4fb3e4d05c6e31a1080bceb9c7deb5533ca24247c19e8c4645895edd8cfec66a84e7864fde335201458ad77fec5fe1abd95
data/.gitignore CHANGED
@@ -9,4 +9,3 @@
9
9
 
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
- *.gem
data/.travis.yml CHANGED
@@ -4,5 +4,5 @@ language: ruby
4
4
  cache: bundler
5
5
  rvm:
6
6
  - 2.5.3
7
- - 2.6.2
8
- before_install: gem install bundler -v 1.16.3
7
+ - 2.6.5
8
+ before_install: gem install bundler -v 1.17.0
data/Gemfile CHANGED
@@ -2,5 +2,5 @@ source "https://rubygems.org"
2
2
 
3
3
  git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
4
 
5
- # Specify your gem's dependencies in peatio-cpuchain.gemspec
5
+ # Specify your gem's dependencies in peatio-umbru.gemspec
6
6
  gemspec
data/Gemfile.lock CHANGED
@@ -1,13 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- peatio-ndc (0.1.1)
4
+ peatio-ndc (0.1.3)
5
5
  activesupport (~> 5.2.3)
6
6
  better-faraday (~> 1.0.5)
7
7
  faraday (~> 0.15.4)
8
8
  memoist (~> 0.16.0)
9
- net-http-persistent (~> 3.0.1)
10
- peatio (~> 0.6.3)
9
+ peatio (= 2.4.3)
11
10
 
12
11
  GEM
13
12
  remote: https://rubygems.org/
@@ -21,29 +20,53 @@ GEM
21
20
  tzinfo (~> 1.1)
22
21
  addressable (2.7.0)
23
22
  public_suffix (>= 2.0.2, < 5.0)
24
- amq-protocol (2.3.0)
23
+ amq-protocol (2.3.1)
25
24
  amqp (1.8.0)
26
25
  amq-protocol (>= 2.2.0)
27
26
  eventmachine
28
27
  better-faraday (1.0.8)
29
28
  activesupport (>= 4.0, < 6.0)
30
29
  faraday (~> 0.12)
31
- bunny (2.14.4)
32
- amq-protocol (~> 2.3, >= 2.3.0)
33
- byebug (11.1.1)
30
+ bunny (2.15.0)
31
+ amq-protocol (~> 2.3, >= 2.3.1)
32
+ byebug (11.1.3)
34
33
  clamp (1.3.1)
35
34
  coderay (1.1.2)
36
35
  concurrent-ruby (1.1.6)
37
- connection_pool (2.2.2)
36
+ cookiejar (0.3.3)
38
37
  crack (0.4.3)
39
38
  safe_yaml (~> 1.0.0)
39
+ daemons (1.3.1)
40
40
  diff-lcs (1.3)
41
+ em-http-request (1.1.5)
42
+ addressable (>= 2.3.4)
43
+ cookiejar (!= 0.3.1)
44
+ em-socksify (>= 0.3)
45
+ eventmachine (>= 1.0.3)
46
+ http_parser.rb (>= 0.6.0)
47
+ em-socksify (0.3.2)
48
+ eventmachine (>= 1.0.0.beta.4)
49
+ em-synchrony (1.0.6)
50
+ eventmachine (>= 1.0.0.beta.1)
41
51
  em-websocket (0.5.1)
42
52
  eventmachine (>= 0.12.9)
43
53
  http_parser.rb (~> 0.6.0)
44
54
  eventmachine (1.2.7)
45
55
  faraday (0.15.4)
46
56
  multipart-post (>= 1.2, < 3)
57
+ faraday_middleware (0.13.1)
58
+ faraday (>= 0.7.4, < 1.0)
59
+ faye (1.2.5)
60
+ cookiejar (>= 0.3.0)
61
+ em-http-request (>= 0.3.0)
62
+ eventmachine (>= 0.12.0)
63
+ faye-websocket (>= 0.9.1)
64
+ multi_json (>= 1.0.0)
65
+ rack (>= 1.0.0)
66
+ websocket-driver (>= 0.5.1)
67
+ faye-websocket (0.10.9)
68
+ eventmachine (>= 0.12.0)
69
+ websocket-driver (>= 0.5.1)
47
70
  hashdiff (1.0.1)
48
71
  http_parser.rb (0.6.0)
49
72
  i18n (1.8.2)
@@ -51,43 +74,53 @@ GEM
51
74
  jwt (2.2.1)
52
75
  memoist (0.16.2)
53
76
  method_source (1.0.0)
54
- minitest (5.14.0)
77
+ minitest (5.14.1)
55
78
  mocha (1.11.2)
79
+ multi_json (1.14.1)
56
80
  multipart-post (2.1.1)
57
81
  mysql2 (0.5.3)
58
- net-http-persistent (3.0.1)
59
- connection_pool (~> 2.2)
60
- peatio (0.6.3)
82
+ peatio (2.4.3)
61
83
  activemodel (> 5.2, <= 6.0.0)
62
84
  amqp
63
85
  bunny
64
86
  clamp
87
+ em-synchrony (~> 1.0)
65
88
  em-websocket
66
89
  eventmachine
90
+ faraday_middleware (~> 0.13.1)
91
+ faye (~> 1.2)
67
92
  jwt
68
93
  mysql2
69
- pry (0.13.0)
94
+ prometheus-client
95
+ thin
96
+ prometheus-client (2.0.0)
97
+ pry (0.13.1)
70
98
  coderay (~> 1.1)
71
99
  method_source (~> 1.0)
72
100
  pry-byebug (3.9.0)
73
101
  byebug (~> 11.0)
74
102
  pry (~> 0.13.0)
75
- public_suffix (4.0.3)
103
+ public_suffix (4.0.5)
104
+ rack (2.2.2)
76
105
  rake (10.5.0)
77
106
  rspec (3.9.0)
78
107
  rspec-core (~> 3.9.0)
79
108
  rspec-expectations (~> 3.9.0)
80
109
  rspec-mocks (~> 3.9.0)
81
- rspec-core (3.9.1)
82
- rspec-support (~> 3.9.1)
83
- rspec-expectations (3.9.1)
110
+ rspec-core (3.9.2)
111
+ rspec-support (~> 3.9.3)
112
+ rspec-expectations (3.9.2)
84
113
  diff-lcs (>= 1.2.0, < 2.0)
85
114
  rspec-support (~> 3.9.0)
86
115
  rspec-mocks (3.9.1)
87
116
  diff-lcs (>= 1.2.0, < 2.0)
88
117
  rspec-support (~> 3.9.0)
89
- rspec-support (3.9.2)
118
+ rspec-support (3.9.3)
90
119
  safe_yaml (1.0.5)
120
+ thin (1.7.2)
121
+ daemons (~> 1.0, >= 1.0.9)
122
+ eventmachine (~> 1.0, >= 1.0.4)
123
+ rack (>= 1, < 3)
91
124
  thread_safe (0.3.6)
92
125
  tzinfo (1.2.7)
93
126
  thread_safe (~> 0.1)
@@ -95,15 +128,18 @@ GEM
95
128
  addressable (>= 2.3.6)
96
129
  crack (>= 0.3.2)
97
130
  hashdiff (>= 0.4.0, < 2.0.0)
131
+ websocket-driver (0.7.1)
132
+ websocket-extensions (>= 0.1.0)
133
+ websocket-extensions (0.1.4)
98
134
 
99
135
  PLATFORMS
100
136
  ruby
101
137
 
102
138
  DEPENDENCIES
103
- bundler (~> 1.17)
139
+ bundler (~> 1.17.3)
104
140
  mocha (~> 1.8)
105
141
  peatio-ndc!
106
- pry-byebug
142
+ pry-byebug (~> 3.7)
107
143
  rake (~> 10.0)
108
144
  rspec (~> 3.0)
109
145
  webmock (~> 3.5)
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2019 Tanvir Rahaman aka BitBD
3
+ Copyright (c) 2020 Md Tanvir Rahaman, NEXBIT.IO
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # Peatio::NDC
2
- [![Gem Version](https://badge.fury.io/rb/peatio-ndc.svg)](https://badge.fury.io/rb/peatio-ndc)
3
2
 
4
- Peatio ndc plugin for nPro [peatio] stack
3
+ Peatio ndc plugin for Rubykube stack
5
4
 
6
5
  ## Installation
7
6
 
@@ -21,18 +20,18 @@ Or install it yourself as:
21
20
 
22
21
  ## Usage
23
22
 
24
- For Peatio CPUchain plugin integration you need to do the following steps:
23
+ For Peatio NDC plugin integration you need to do the following steps:
25
24
 
26
25
  ### Image Build.
27
26
 
28
27
  1. Add peatio-ndc gem into your Gemfile.plugin
29
28
  ```ruby
30
- gem 'peatio-ndc', '~> 0.1.0'
29
+ gem 'peatio-ndc', '~> 0.1.3'
31
30
  ```
32
31
 
33
32
  2. Run `bundle install` for updating Gemfile.lock
34
33
 
35
- 3. Build custom Peatio
34
+ 3. Build custom Peatio [docker image with NDC plugin](https://github.com/nexbitio/peatio/blob/master/docs/plugins.md#build)
36
35
 
37
36
  4. Push your image using `docker push`
38
37
 
@@ -40,17 +39,23 @@ gem 'peatio-ndc', '~> 0.1.0'
40
39
 
41
40
  ### Peatio Configuration.
42
41
 
43
- 1. Create ndc Blockchain [config example](../config/blockchains.yml).
42
+ 1. Create NDC Blockchain [config example](../config/blockchains.yml).
44
43
  * No additional steps are needed
45
44
 
46
- 2. Create ndc Currency [config example](../config/currencies.yml).
45
+ 2. Create NDC Currency [config example](../config/currencies.yml).
47
46
  * No additional steps are needed
48
47
 
49
- 3. Create ndc Wallets [config example](../config/wallets.yml)(deposit and hot wallets are required).
48
+ 3. Create NDC Wallets [config example](../config/wallets.yml)(deposit and hot wallets are required).
50
49
  * No additional steps are needed
51
50
 
52
51
 
52
+ ## Development
53
53
 
54
+ Plugin development [example](https://github.com/nexbitio/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/nexbitio/peatio-ndc.
54
59
 
55
60
  ## License
56
61
 
@@ -59,4 +64,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
59
64
  ## Consulting
60
65
 
61
66
  You can contact Openware for finding certified vendors:
62
- [platform.ndc.io](https://platform.ndc.io)
67
+ [NEXBIT.IO](https://www.nexbit.io)
@@ -1,8 +1,8 @@
1
- - key: ndc-mainnet
2
- name: Ndc Mainnet
3
- client: ndcd # API client name.
4
- server: http://user:password@127.0.0.1:13519 # Public Nexbit node endpoint.
5
- height: 1200 # Initial block number from which sync will be started.
1
+ - key: ndc-mainet
2
+ name: NDC Mainet
3
+ client: ndc # API client name.
4
+ server: http://user:password@127.0.0.1:17798 # Public ndc node endpoint.
5
+ height: 5000 # Initial block number from which sync will be started.
6
6
  min_confirmations: 6 # Minimal confirmations needed for withdraw and deposit confirmation.
7
7
  explorer:
8
8
  address: https://explorer.ndcwallet.pro/address/#{address}
@@ -1,15 +1,15 @@
1
1
  - id: ndc
2
2
  name: NDC
3
- blockchain_key: ndc-mainnet
4
- symbol: 'n'
3
+ blockchain_key: ndc-mainet
4
+ symbol: 'C'
5
5
  type: coin
6
6
  precision: 8
7
7
  base_factor: 100_000_000
8
8
  enabled: true
9
9
  # Deposits with less amount are skipped during blockchain synchronization.
10
10
  # We advise to set value 10 times bigger than the network fee to prevent losses.
11
- min_deposit_amount: 0.0003
12
- min_collection_amount: 0.0003
11
+ min_deposit_amount: 0.0004488
12
+ min_collection_amount: 0.0004488
13
13
  withdraw_limit_24h: 0.5
14
14
  withdraw_limit_72h: 1.2
15
15
  deposit_fee: 0
data/config/wallets.yml CHANGED
@@ -1,8 +1,8 @@
1
1
  - name: NDC Deposit Wallet
2
- blockchain_key: ndc-mainnet
2
+ blockchain_key: ndc-mainet
3
3
  currency_id: ndc
4
4
  # Address where deposits will be collected to.
5
- address: 'NyWkTPkNRdpTDSfPw7gxUt9cEaC5PSsP3Y' # IMPORTANT: Always wrap this value in quotes!
5
+ address: 'NrR24vjA6AwoLw9w34hCpJKytUiAJnpSTP' # IMPORTANT: Always wrap this value in quotes!
6
6
  kind: deposit # Wallet kind (deposit, hot, warm, cold or fee).
7
7
  nsig: 1 # Number of signatures required for performing withdraw.
8
8
  max_balance: 0.0
@@ -11,34 +11,34 @@
11
11
  settings:
12
12
  #
13
13
  # NDCd gateway client settings.
14
- uri: http://user:password@127.0.0.1:13519
14
+ uri: http://user:password@127.0.0.1:17798
15
15
 
16
16
  - name: NDC Hot Wallet
17
- blockchain_key: ndc-mainnet
17
+ blockchain_key: ndc-mainet
18
18
  currency_id: ndc
19
19
  # Address where deposits will be collected to.
20
- address: 'NyWkTPkNRdpTDSfPw7gxUt9cEaC5PSsP3Y' # IMPORTANT: Always wrap this value in quotes!
20
+ address: 'NrR24vjA6AwoLw9w34hCpJKytUiAJnpSTP' # IMPORTANT: Always wrap this value in quotes!
21
21
  kind: hot # Wallet kind (deposit, hot, warm, cold or fee).
22
22
  nsig: 1 # Number of signatures required for performing withdraw.
23
- max_balance: 500000.0
23
+ max_balance: 5.0
24
24
  status: active
25
25
  gateway: ndcd # Gateway client name.
26
26
  settings:
27
27
  #
28
- # NDCd gateway client settings.
29
- uri: http://user:password@127.0.0.1:13519
28
+ # NDC gateway client settings.
29
+ uri: http://user:password@127.0.0.1:17798
30
30
 
31
31
  - name: NDC Warm Wallet
32
- blockchain_key: ndc-mainnet
32
+ blockchain_key: ndc-mainet
33
33
  currency_id: ndc
34
34
  # Address where deposits will be collected to.
35
- address: 'NyWkTPkNRdpTDSfPw7gxUt9cEaC5PSsP3Y' # IMPORTANT: Always wrap this value in quotes!
35
+ address: 'NrR24vjA6AwoLw9w34hCpJKytUiAJnpSTP' # IMPORTANT: Always wrap this value in quotes!
36
36
  kind: warm # Wallet kind (deposit, hot, warm, cold or fee).
37
37
  nsig: 1 # Number of signatures required for performing withdraw.
38
- max_balance: 500000.0
38
+ max_balance: 50.0
39
39
  status: active
40
40
  gateway: ndcd # Gateway client name.
41
41
  settings:
42
42
  #
43
43
  # NDCd gateway client settings.
44
- uri: http://user:password@127.0.0.1:13519
44
+ uri: http://user:password@127.0.0.1:17798
data/docs/integration.md CHANGED
@@ -4,26 +4,26 @@ For Peatio NDC plugin integration you need to do the following steps:
4
4
 
5
5
  ## Image Build.
6
6
 
7
- 1. Add peatio-ndcd gem into your Gemfile.plugin
7
+ 1. Add peatio-ndc gem into your Gemfile.plugin
8
8
  ```ruby
9
- gem 'peatio-ndcd', '~> 0.1.0'
9
+ gem 'peatio-ndc', '~> 0.1.3'
10
10
  ```
11
11
 
12
12
  2. Run `bundle install` for updating Gemfile.lock
13
13
 
14
- 3. Build custom Peatio
14
+ 3. Build custom Peatio [docker image with NDC plugin](https://github.com/nexbitio/peatio/blob/master/docs/plugins.md#build)
15
15
 
16
16
  4. Push your image using `docker push`
17
17
 
18
- 5. Update your deployment to use image with peatio-ndcd gem
18
+ 5. Update your deployment to use image with peatio-ndc gem
19
19
 
20
20
  ## Peatio Configuration.
21
21
 
22
- 1. Create CPUchain Blockchain [config example](../config/blockchains.yml).
22
+ 1. Create NDC Blockchain [config example](../config/blockchains.yml).
23
23
  * No additional steps are needed
24
24
 
25
- 2. Create CPUchain Currency [config example](../config/currencies.yml).
25
+ 2. Create NDC Currency [config example](../config/currencies.yml).
26
26
  * No additional steps are needed
27
27
 
28
- 3. Create CPUchain Wallets [config example](../config/wallets.yml)(deposit and hot wallets are required).
28
+ 3. Create NDC Wallets [config example](../config/wallets.yml)(deposit and hot wallets are required).
29
29
  * No additional steps are needed
data/docs/json-rpc.md CHANGED
@@ -5,25 +5,25 @@ For response examples see spec/resources:
5
5
 
6
6
  * getbalance
7
7
 
8
- `curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getbalance", "params": [] }' -H 'content-type: text/plain;' http://user:password@127.0.0.1:13519`
8
+ `curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getbalance", "params": [] }' -H 'content-type: text/plain;' http://user:password@127.0.0.1:17798`
9
9
  * getblock
10
10
 
11
- `curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblock", "params": ["5a471d4fd13d8bc3351e4d3a618fa55993326014b925346d8e9272e271e97c4e", 2] }' -H 'content-type: text/plain;' http://user:password@127.0.0.1:13519`
11
+ `curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblock", "params": ["51c209db5f7eaad7aee6983579a463eb49f03b9970d8cd852dc687a7380d3abb", 2] }' -H 'content-type: text/plain;' http://user:password@127.0.0.1:17798`
12
12
  * getblockcount
13
13
 
14
- `curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockcount", "params": [] }' -H 'content-type: text/plain;' http://user:password@127.0.0.1:13519`
14
+ `curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockcount", "params": [] }' -H 'content-type: text/plain;' http://user:password@127.0.0.1:17798`
15
15
  * getblockhash
16
16
 
17
- `curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockhash", "params": [40500] }' -H 'content-type: text/plain;' http://user:password@127.0.0.1:13519 `
17
+ `curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockhash", "params": [40500] }' -H 'content-type: text/plain;' http://user:password@127.0.0.1:17798 `
18
18
  * getnewaddress
19
19
 
20
- `curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnewaddress", "params": [] }' -H 'content-type: text/plain;' http://user:password@127.0.0.1:13519 `
20
+ `curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnewaddress", "params": [] }' -H 'content-type: text/plain;' http://user:password@127.0.0.1:17798 `
21
21
  * listaddressgroupings
22
22
 
23
- `curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressgroupings", "params": [] }' -H 'content-type: text/plain;' http://user:password@127.0.0.1:13519`
23
+ `curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listaddressgroupings", "params": [] }' -H 'content-type: text/plain;' http://user:password@127.0.0.1:17798`
24
24
  * sendtoaddress
25
25
 
26
- `curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendtoaddress", "params": ["NRnrwkUBQ2E4ZJ3bj8jvn4Nwx4nJ2U7wXF", 0.11] }' -H 'content-type: text/plain;' http://user:password@127.0.0.1:13519`
26
+ `curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "sendtoaddress", "params": ["NrR24vjA6AwoLw9w34hCpJKytUiAJnpSTP", 0.11] }' -H 'content-type: text/plain;' http://user:password@127.0.0.1:17798`
27
27
  * methodnotfound
28
28
 
29
- `curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "methodnotfound", "params": [] }' -H 'content-type: text/plain;' http://user:password@127.0.0.1:13519`
29
+ `curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "methodnotfound", "params": [] }' -H 'content-type: text/plain;' http://user:password@127.0.0.1:17798`
@@ -1,5 +1,5 @@
1
1
  module Peatio
2
- module Nexbit
2
+ module Ndc
3
3
  module Hooks
4
4
  BLOCKCHAIN_VERSION_REQUIREMENT = "~> 1.0.0"
5
5
  WALLET_VERSION_REQUIREMENT = "~> 1.0.0"
@@ -9,8 +9,8 @@ module Peatio
9
9
  unless Gem::Requirement.new(BLOCKCHAIN_VERSION_REQUIREMENT)
10
10
  .satisfied_by?(Gem::Version.new(Peatio::Blockchain::VERSION))
11
11
  [
12
- "Nexbit blockchain version requiremnt was not suttisfied by Peatio::Blockchain.",
13
- "Nexbit blockchain requires #{BLOCKCHAIN_VERSION_REQUIREMENT}.",
12
+ "Ndc blockchain version requiremnt was not suttisfied by Peatio::Blockchain.",
13
+ "Ndc blockchain requires #{BLOCKCHAIN_VERSION_REQUIREMENT}.",
14
14
  "Peatio::Blockchain version is #{Peatio::Blockchain::VERSION}"
15
15
  ].join('\n').tap { |s| Kernel.abort s }
16
16
  end
@@ -18,21 +18,21 @@ module Peatio
18
18
  unless Gem::Requirement.new(WALLET_VERSION_REQUIREMENT)
19
19
  .satisfied_by?(Gem::Version.new(Peatio::Wallet::VERSION))
20
20
  [
21
- "Nexbit wallet version requiremnt was not suttisfied by Peatio::Wallet.",
22
- "Nexbit wallet requires #{WALLET_VERSION_REQUIREMENT}.",
21
+ "Ndc wallet version requiremnt was not suttisfied by Peatio::Wallet.",
22
+ "Ndc wallet requires #{WALLET_VERSION_REQUIREMENT}.",
23
23
  "Peatio::Wallet version is #{Peatio::Wallet::VERSION}"
24
24
  ].join('\n').tap { |s| Kernel.abort s }
25
25
  end
26
26
  end
27
27
 
28
28
  def register
29
- Peatio::Blockchain.registry[:nexbit] = Nexbit::Blockchain.new
30
- Peatio::Wallet.registry[:nexbitd] = Nexbit::Wallet.new
29
+ Peatio::Blockchain.registry[:ndc] = Ndc::Blockchain.new
30
+ Peatio::Wallet.registry[:ndcd] = Ndc::Wallet.new
31
31
  end
32
32
  end
33
33
 
34
34
  if defined?(Rails::Railtie)
35
- require "peatio/nexbit/railtie"
35
+ require "peatio/ndc/railtie"
36
36
  else
37
37
  check_compatibility
38
38
  register
@@ -1,5 +1,5 @@
1
1
  module Peatio
2
- module Nexbit
2
+ module Ndc
3
3
  class Railtie < Rails::Railtie
4
4
  config.before_initialize do
5
5
  Hooks.check_compatibility
@@ -1,5 +1,5 @@
1
1
  module Peatio
2
2
  module Ndc
3
- VERSION = "0.1.2".freeze
3
+ VERSION = "0.1.3".freeze
4
4
  end
5
5
  end
data/lib/peatio/ndc.rb CHANGED
@@ -6,13 +6,10 @@ module Peatio
6
6
  module Ndc
7
7
  require "bigdecimal"
8
8
  require "bigdecimal/util"
9
-
10
9
  require "peatio/ndc/blockchain"
11
10
  require "peatio/ndc/client"
12
11
  require "peatio/ndc/wallet"
13
-
14
12
  require "peatio/ndc/hooks"
15
-
16
13
  require "peatio/ndc/version"
17
14
  end
18
15
  end
data/peatio-ndc.gemspec CHANGED
@@ -7,26 +7,15 @@ Gem::Specification.new do |spec|
7
7
  spec.name = "peatio-ndc"
8
8
  spec.version = Peatio::Ndc::VERSION
9
9
  spec.authors = ["BitBD"]
10
- spec.email = ["developers@nexbit.io"]
10
+ spec.email = ["me@bitbd.co"]
11
11
 
12
12
  spec.summary = %q{Gem for extending Peatio plugable system with Ndc implementation.}
13
- spec.description = %q{NDC Peatio gem which implements Peatio::Blockchain::Abstract & Peatio::Wallet::Abstract to make NDC easy integration in peatio platform}
14
- spec.homepage = "https://ndexnetwork.com/"
13
+ spec.description = %q{Ndc Peatio gem which implements Peatio::Blockchain::Abstract & Peatio::Wallet::Abstract.}
14
+ spec.homepage = "https://ndcwallet.pro/"
15
15
  spec.license = "MIT"
16
16
 
17
17
  # Specify which files should be added to the gem when it is released.
18
18
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
19
- if spec.respond_to?(:metadata)
20
-
21
- spec.metadata["homepage_uri"] = spec.homepage
22
- spec.metadata["source_code_uri"] = "https://github.com/ndexnetwork/peatio-ndc"
23
- spec.metadata["changelog_uri"] = "https://github.com/ndexnetwork/peatio-ndc/blob/master/CHANGELOG.md"
24
- else
25
- raise "RubyGems 2.0 or newer is required to protect against " \
26
- "public gem pushes."
27
- end
28
- # Specify which files should be added to the gem when it is released.
29
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
30
19
  spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
31
20
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
32
21
  end
@@ -38,12 +27,12 @@ Gem::Specification.new do |spec|
38
27
  spec.add_dependency "better-faraday", "~> 1.0.5"
39
28
  spec.add_dependency "faraday", "~> 0.15.4"
40
29
  spec.add_dependency "memoist", "~> 0.16.0"
41
- spec.add_dependency "peatio", "~> 0.6.3"
42
- spec.add_dependency "net-http-persistent", "~> 3.0.1"
30
+ spec.add_dependency "peatio", "= 2.4.3"
31
+
43
32
 
44
- spec.add_development_dependency "bundler", "~> 1.17"
33
+ spec.add_development_dependency "bundler", "~> 1.17.3"
45
34
  spec.add_development_dependency "mocha", "~> 1.8"
46
- spec.add_development_dependency "pry-byebug"
35
+ spec.add_development_dependency "pry-byebug", "~> 3.7"
47
36
  spec.add_development_dependency "rake", "~> 10.0"
48
37
  spec.add_development_dependency "rspec", "~> 3.0"
49
38
  spec.add_development_dependency "webmock", "~> 3.5"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peatio-ndc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - BitBD
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-04 00:00:00.000000000 Z
11
+ date: 2020-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -70,44 +70,30 @@ dependencies:
70
70
  name: peatio
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 0.6.3
75
+ version: 2.4.3
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 0.6.3
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: 3.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: 3.0.1
82
+ version: 2.4.3
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: bundler
99
85
  requirement: !ruby/object:Gem::Requirement
100
86
  requirements:
101
87
  - - "~>"
102
88
  - !ruby/object:Gem::Version
103
- version: '1.17'
89
+ version: 1.17.3
104
90
  type: :development
105
91
  prerelease: false
106
92
  version_requirements: !ruby/object:Gem::Requirement
107
93
  requirements:
108
94
  - - "~>"
109
95
  - !ruby/object:Gem::Version
110
- version: '1.17'
96
+ version: 1.17.3
111
97
  - !ruby/object:Gem::Dependency
112
98
  name: mocha
113
99
  requirement: !ruby/object:Gem::Requirement
@@ -126,16 +112,16 @@ dependencies:
126
112
  name: pry-byebug
127
113
  requirement: !ruby/object:Gem::Requirement
128
114
  requirements:
129
- - - ">="
115
+ - - "~>"
130
116
  - !ruby/object:Gem::Version
131
- version: '0'
117
+ version: '3.7'
132
118
  type: :development
133
119
  prerelease: false
134
120
  version_requirements: !ruby/object:Gem::Requirement
135
121
  requirements:
136
- - - ">="
122
+ - - "~>"
137
123
  - !ruby/object:Gem::Version
138
- version: '0'
124
+ version: '3.7'
139
125
  - !ruby/object:Gem::Dependency
140
126
  name: rake
141
127
  requirement: !ruby/object:Gem::Requirement
@@ -178,10 +164,9 @@ dependencies:
178
164
  - - "~>"
179
165
  - !ruby/object:Gem::Version
180
166
  version: '3.5'
181
- description: NDC Peatio gem which implements Peatio::Blockchain::Abstract & Peatio::Wallet::Abstract
182
- to make NDC easy integration in peatio platform
167
+ description: Ndc Peatio gem which implements Peatio::Blockchain::Abstract & Peatio::Wallet::Abstract.
183
168
  email:
184
- - developers@nexbit.io
169
+ - me@bitbd.co
185
170
  executables: []
186
171
  extensions: []
187
172
  extra_rdoc_files: []
@@ -209,13 +194,10 @@ files:
209
194
  - lib/peatio/ndc/version.rb
210
195
  - lib/peatio/ndc/wallet.rb
211
196
  - peatio-ndc.gemspec
212
- homepage: https://ndexnetwork.com/
197
+ homepage: https://ndcwallet.pro/
213
198
  licenses:
214
199
  - MIT
215
- metadata:
216
- homepage_uri: https://ndexnetwork.com/
217
- source_code_uri: https://github.com/ndexnetwork/peatio-ndc
218
- changelog_uri: https://github.com/ndexnetwork/peatio-ndc/blob/master/CHANGELOG.md
200
+ metadata: {}
219
201
  post_install_message:
220
202
  rdoc_options: []
221
203
  require_paths:
@@ -231,8 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
231
213
  - !ruby/object:Gem::Version
232
214
  version: '0'
233
215
  requirements: []
234
- rubyforge_project:
235
- rubygems_version: 2.7.6
216
+ rubygems_version: 3.0.1
236
217
  signing_key:
237
218
  specification_version: 4
238
219
  summary: Gem for extending Peatio plugable system with Ndc implementation.