From ce5b13223c7ff0606f7df66e40938abca89d23f0 Mon Sep 17 00:00:00 2001 From: Szymon Lesisz Date: Wed, 19 Dec 2018 18:19:03 +0100 Subject: [PATCH] add decimals to appConfig.json --- public/data/appConfig.json | 5 +++++ src/reducers/LocalStorageReducer.js | 1 + 2 files changed, 6 insertions(+) diff --git a/public/data/appConfig.json b/public/data/appConfig.json index 4a74673d..63717169 100644 --- a/public/data/appConfig.json +++ b/public/data/appConfig.json @@ -10,6 +10,7 @@ "defaultGasPrice": 64, "defaultGasLimit": 21000, "defaultGasLimitTokens": 200000, + "decimals": 18, "tokens": "./data/ethereumTokens.json", "web3": [ "wss://eth2.trezor.io/geth" @@ -29,6 +30,7 @@ "defaultGasPrice": 64, "defaultGasLimit": 21000, "defaultGasLimitTokens": 200000, + "decimals": 18, "tokens": "./data/ethereumClassicTokens.json", "web3": [ "wss://etc2.trezor.io/geth" @@ -49,6 +51,7 @@ "defaultGasPrice": 64, "defaultGasLimit": 21000, "defaultGasLimitTokens": 200000, + "decimals": 18, "tokens": "./data/ropstenTokens.json", "web3": [ "wss://ropsten1.trezor.io/geth" @@ -64,6 +67,7 @@ "symbol": "XRP", "shortcut": "xrp", "bip44": "m/44'/144'/a'/0/0", + "decimals": 6, "explorer": { "tx": "https://xrpcharts.ripple.com/#/transactions/", "address": "https://xrpcharts.ripple.com/#/graph/" @@ -76,6 +80,7 @@ "symbol": "tXRP", "shortcut": "txrp", "bip44": "m/44'/144'/a'/0/0", + "decimals": 6, "explorer": { "tx": "https://sisyfos.trezor.io/ripple-testnet-explorer/tx/", "address": "https://sisyfos.trezor.io/ripple-testnet-explorer/address/" diff --git a/src/reducers/LocalStorageReducer.js b/src/reducers/LocalStorageReducer.js index 976de717..cfe90c4b 100644 --- a/src/reducers/LocalStorageReducer.js +++ b/src/reducers/LocalStorageReducer.js @@ -21,6 +21,7 @@ export type Network = { address: string; }; tokens: string; + decimals: number, backends: Array<{ name: string; urls: Array;