peatio-goldcash 2.6.3 → 2.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/config/blockchains.yml +1 -1
- data/config/wallets.yml +3 -3
- data/lib/peatio/goldcash/blockchain.rb +4 -4
- data/lib/peatio/goldcash/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdd7d06a900e2a60f1068f6a3c218b0e9d00d9d15e03c9095c3fdda8d1d01285
|
4
|
+
data.tar.gz: 9600a042dd679483e35dcd6dc4dd75fcae0e7ab0d48340106ed1a775f21f5eab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22adc1e5395d4e30dce871ae99105d6928b46dbb995dc166399d339e7d0c998af6f5f6dfac66c9750deaeb78cb6bdedaa9dc131ec8136e1f9170ac64c1b37529
|
7
|
+
data.tar.gz: 262e63da1e84bddf48b8f9ac948466833b52968ca55b68e99fda409167a40b08eca9db700f81f603376b93e7b596c23a242db1078facee6987682e1e6e4ece42
|
data/Gemfile.lock
CHANGED
data/config/blockchains.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: Goldcash Mainnet
|
3
3
|
client: goldcash # API client name.
|
4
4
|
server: http://user:password@127.0.0.1:8345 # Public Goldcash node endpoint.
|
5
|
-
height:
|
5
|
+
height: 10000 # 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: http://goldcashblockexplorer.co.uk/address/#{address}
|
data/config/wallets.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
blockchain_key: gold-mainnet
|
3
3
|
currency_id: gold
|
4
4
|
# Address where deposits will be collected to.
|
5
|
-
address: '
|
5
|
+
address: 'GNVfBQ8nnuktSYspWzY3H5SbFhizSzi28F' # 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
|
@@ -17,7 +17,7 @@
|
|
17
17
|
blockchain_key: gold-mainnet
|
18
18
|
currency_id: gold
|
19
19
|
# Address where deposits will be collected to.
|
20
|
-
address: '
|
20
|
+
address: 'GNVfBQ8nnuktSYspWzY3H5SbFhizSzi28F' # 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
23
|
max_balance: 100.0
|
@@ -32,7 +32,7 @@
|
|
32
32
|
blockchain_key: gold-mainnet
|
33
33
|
currency_id: gold
|
34
34
|
# Address where deposits will be collected to.
|
35
|
-
address: '
|
35
|
+
address: 'GNVfBQ8nnuktSYspWzY3H5SbFhizSzi28F' # 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
38
|
max_balance: 500.0
|
@@ -26,13 +26,13 @@ module Peatio
|
|
26
26
|
end
|
27
27
|
txs_array.append(*txs)
|
28
28
|
end.yield_self { |txs_array| Peatio::Block.new(block_number, txs_array) }
|
29
|
-
rescue Client::Error => e
|
29
|
+
rescue Goldcash::Client::Error => e
|
30
30
|
raise Peatio::Blockchain::ClientError, e
|
31
31
|
end
|
32
32
|
|
33
33
|
def latest_block_number
|
34
34
|
client.json_rpc(:getblockcount)
|
35
|
-
rescue Client::Error => e
|
35
|
+
rescue Goldcash::Client::Error => e
|
36
36
|
raise Peatio::Blockchain::ClientError, e
|
37
37
|
end
|
38
38
|
|
@@ -46,7 +46,7 @@ module Peatio
|
|
46
46
|
end
|
47
47
|
|
48
48
|
address_with_balance[1].to_d
|
49
|
-
rescue Client::Error => e
|
49
|
+
rescue Goldcash::Client::Error => e
|
50
50
|
raise Peatio::Blockchain::ClientError, e
|
51
51
|
end
|
52
52
|
|
@@ -73,7 +73,7 @@ module Peatio
|
|
73
73
|
end
|
74
74
|
|
75
75
|
def client
|
76
|
-
@client ||= Client.new(settings_fetch(:server))
|
76
|
+
@client ||= Goldcash::Client.new(settings_fetch(:server))
|
77
77
|
end
|
78
78
|
|
79
79
|
def settings_fetch(key)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: peatio-goldcash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Olaf W.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|