aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/config.js
diff options
context:
space:
mode:
authorbitpshr <mail@bitpshr.net>2018-04-19 05:02:08 +0800
committerbitpshr <mail@bitpshr.net>2018-04-19 05:02:08 +0800
commitc9f83fe8bc60a87876242a2dfb5350fceafffca1 (patch)
tree2def53846824b39fde470931cf36ee67a8e4a03b /app/scripts/config.js
parent7e21fc2aa780ccb4ffb2f642156385db22c47a52 (diff)
downloadtangerine-wallet-browser-c9f83fe8bc60a87876242a2dfb5350fceafffca1.tar
tangerine-wallet-browser-c9f83fe8bc60a87876242a2dfb5350fceafffca1.tar.gz
tangerine-wallet-browser-c9f83fe8bc60a87876242a2dfb5350fceafffca1.tar.bz2
tangerine-wallet-browser-c9f83fe8bc60a87876242a2dfb5350fceafffca1.tar.lz
tangerine-wallet-browser-c9f83fe8bc60a87876242a2dfb5350fceafffca1.tar.xz
tangerine-wallet-browser-c9f83fe8bc60a87876242a2dfb5350fceafffca1.tar.zst
tangerine-wallet-browser-c9f83fe8bc60a87876242a2dfb5350fceafffca1.zip
Add JSDoc to various background scripts
Diffstat (limited to 'app/scripts/config.js')
-rw-r--r--app/scripts/config.js39
1 files changed, 37 insertions, 2 deletions
diff --git a/app/scripts/config.js b/app/scripts/config.js
index a8470ed82..634d7a013 100644
--- a/app/scripts/config.js
+++ b/app/scripts/config.js
@@ -15,7 +15,41 @@ const BETA_UI_NETWORK_TYPE = 'networkBeta'
global.METAMASK_DEBUG = process.env.METAMASK_DEBUG
-module.exports = {
+/**
+ * @typedef {Object} UrlConfig
+ * @property {string} localhost URL of local RPC provider
+ * @property {string} mainnet URL of mainnet RPC provider
+ * @property {string} ropsten URL of Ropsten testnet RPC provider
+ * @property {string} kovan URL of Kovan testnet RPC provider
+ * @property {string} rinkeby URL of Rinkeby testnet RPC provider
+ */
+
+/**
+ * @typedef {Object} NameConfig
+ * @property {string} 3 URL of local RPC provider
+ * @property {string} 4 URL of mainnet RPC provider
+ * @property {string} 42 URL of Ropsten testnet RPC provider
+ */
+
+/**
+ * @typedef {Object} EnumConfig
+ * @property {string} DEFAULT_RPC Default network provider URL
+ * @property {string} OLD_UI_NETWORK_TYPE
+ * @property {string} BETA_UI_NETWORK_TYPE
+ */
+
+/**
+ * @typedef {Object} Config
+ * @property {UrlConfig} network Network configuration parameters
+ * @property {UrlConfig} networkBeta Beta UI network configuration parameters
+ * @property {NameConfig} networkNames Network name configuration parameters
+ * @property {EnumConfig} enums Application-wide string constants
+ */
+
+/**
+ * @type {Config} Application configuration object
+ **/
+const config = {
network: {
localhost: LOCALHOST_RPC_URL,
mainnet: MAINET_RPC_URL,
@@ -23,7 +57,6 @@ module.exports = {
kovan: KOVAN_RPC_URL,
rinkeby: RINKEBY_RPC_URL,
},
- // Used for beta UI
networkBeta: {
localhost: LOCALHOST_RPC_URL,
mainnet: MAINET_RPC_URL_BETA,
@@ -42,3 +75,5 @@ module.exports = {
BETA_UI_NETWORK_TYPE,
},
}
+
+module.exports = config \ No newline at end of file