Gaëtan Renaudeau
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with
22 additions and
19 deletions
-
package.json
-
src/helpers/SettingsDefaults.js
-
src/helpers/explorers.js
-
src/helpers/getAddressForCurrency/index.js
-
yarn.lock
|
|
@ -42,7 +42,7 @@ |
|
|
|
"@ledgerhq/hw-transport": "^4.12.0", |
|
|
|
"@ledgerhq/hw-transport-node-hid": "^4.12.0", |
|
|
|
"@ledgerhq/ledger-core": "1.4.1", |
|
|
|
"@ledgerhq/live-common": "2.16.1", |
|
|
|
"@ledgerhq/live-common": "2.17.0", |
|
|
|
"axios": "^0.18.0", |
|
|
|
"babel-runtime": "^6.26.0", |
|
|
|
"bcryptjs": "^2.4.3", |
|
|
|
|
|
@ -13,29 +13,30 @@ type ConfirmationDefaults = { |
|
|
|
// This is approximated to be a 30mn confirmation in number of blocks on blockchains
|
|
|
|
// to disable the confirmations feature simply set 0.
|
|
|
|
const confirmationsNbPerCoin: CryptoCurrencyConfig<number> = { |
|
|
|
bitcoin: 2, |
|
|
|
ethereum: 120, |
|
|
|
ripple: 0, |
|
|
|
bitcoin_cash: 2, |
|
|
|
litecoin: 6, |
|
|
|
dash: 12, |
|
|
|
ethereum_classic: 120, |
|
|
|
qtum: 15, |
|
|
|
zcash: 12, |
|
|
|
bitcoin_gold: 2, |
|
|
|
stratis: 12, // FIXME can't grab the block time info anywhere...
|
|
|
|
bitcoin_testnet: 2, |
|
|
|
bitcoin: 2, |
|
|
|
dash: 12, |
|
|
|
digibyte: 30, |
|
|
|
dogecoin: 30, |
|
|
|
ethereum_classic: 120, |
|
|
|
ethereum_testnet: 120, |
|
|
|
ethereum: 120, |
|
|
|
hcash: 12, // FIXME can't grab the block time info anywhere...
|
|
|
|
komodo: 30, |
|
|
|
litecoin: 6, |
|
|
|
peercoin: 4, |
|
|
|
pivx: 12, // FIXME can't grab the block time info anywhere...
|
|
|
|
zencash: 12, |
|
|
|
posw: 28, |
|
|
|
qtum: 15, |
|
|
|
ripple: 0, |
|
|
|
stealthcoin: 12, // FIXME can't grab the block time info anywhere...
|
|
|
|
stratis: 12, // FIXME can't grab the block time info anywhere...
|
|
|
|
vertcoin: 12, |
|
|
|
peercoin: 4, |
|
|
|
viacoin: 75, |
|
|
|
stealthcoin: 12, // FIXME can't grab the block time info anywhere...
|
|
|
|
digibyte: 30, |
|
|
|
bitcoin_testnet: 2, |
|
|
|
ethereum_testnet: 120, |
|
|
|
zcash: 12, |
|
|
|
zencash: 12, |
|
|
|
} |
|
|
|
|
|
|
|
export const currencySettingsDefaults = (currency: CryptoCurrency): ConfirmationDefaults => { |
|
|
|
|
|
@ -19,6 +19,7 @@ const txExplorers: CryptoCurrencyConfig<Explorer> = { |
|
|
|
litecoin: op => `http://explorer.litecoin.net/tx/${op.hash}`, |
|
|
|
peercoin: op => `https://explorer.peercoin.net/tx/${op.hash}`, |
|
|
|
pivx: () => null, // FIXME can't find a reliable/official explorer
|
|
|
|
posw: () => null, // FIXME can't find a reliable/official explorer
|
|
|
|
qtum: op => `https://explorer.qtum.org/tx/${op.hash}`, |
|
|
|
ripple: op => `https://bithomp.com/explorer/${op.hash}`, |
|
|
|
stealthcoin: () => null, // FIXME can't find a reliable/official explorer
|
|
|
|
|
|
@ -34,6 +34,7 @@ const all: CryptoCurrencyConfig<Resolver> = { |
|
|
|
litecoin: btc, |
|
|
|
peercoin: btc, |
|
|
|
pivx: btc, |
|
|
|
posw: btc, |
|
|
|
qtum: btc, |
|
|
|
ripple, |
|
|
|
stealthcoin: btc, |
|
|
|
|
|
@ -1464,9 +1464,9 @@ |
|
|
|
npm "^5.7.1" |
|
|
|
prebuild-install "^2.2.2" |
|
|
|
|
|
|
|
"@ledgerhq/live-common@2.16.1": |
|
|
|
version "2.16.1" |
|
|
|
resolved "https://registry.yarnpkg.com/@ledgerhq/live-common/-/live-common-2.16.1.tgz#f3e1d2a616d5181a71c3982158a5d17d3c562ca1" |
|
|
|
"@ledgerhq/live-common@2.17.0": |
|
|
|
version "2.17.0" |
|
|
|
resolved "https://registry.yarnpkg.com/@ledgerhq/live-common/-/live-common-2.17.0.tgz#3d220a4f690842d7c5a8532ba979ac4510291f42" |
|
|
|
dependencies: |
|
|
|
axios "^0.18.0" |
|
|
|
invariant "^2.2.2" |
|
|
|