add comments to configs

This commit is contained in:
Iuri Matias 2018-08-21 14:44:58 -04:00
parent fa551f67a3
commit 0aa9d7547e
11 changed files with 274 additions and 7 deletions

View File

@ -1,4 +1,5 @@
module.exports = { module.exports = {
// applies to all environments
default: { default: {
enabled: true, enabled: true,
rpcHost: "localhost", // HTTP-RPC server listening interface (default: "localhost") rpcHost: "localhost", // HTTP-RPC server listening interface (default: "localhost")
@ -11,6 +12,9 @@ module.exports = {
wsHost: "localhost", // WS-RPC server listening interface (default: "localhost") wsHost: "localhost", // WS-RPC server listening interface (default: "localhost")
wsPort: 8546 // WS-RPC server listening port (default: 8546) wsPort: 8546 // WS-RPC server listening port (default: 8546)
}, },
// default environment, merges with the settings in default
// assumed to be the intended environment by `embark run` and `embark blockchain`
development: { development: {
networkType: "custom", // Can be: testnet, rinkeby, livenet or custom, in which case, it will use the specified networkId networkType: "custom", // Can be: testnet, rinkeby, livenet or custom, in which case, it will use the specified networkId
networkId: "1337", // Network id used when networkType is custom networkId: "1337", // Network id used when networkType is custom
@ -24,6 +28,9 @@ module.exports = {
simulatorMnemonic: "example exile argue silk regular smile grass bomb merge arm assist farm", // Mnemonic used by the simulator to generate a wallet simulatorMnemonic: "example exile argue silk regular smile grass bomb merge arm assist farm", // Mnemonic used by the simulator to generate a wallet
simulatorBlocktime: 0 // Specify blockTime in seconds for automatic mining. Default is 0 and no auto-mining. simulatorBlocktime: 0 // Specify blockTime in seconds for automatic mining. Default is 0 and no auto-mining.
}, },
// merges with the settings in default
// used with "embark run privatenet" and/or "embark blockchain privatenet"
privatenet: { privatenet: {
networkType: "custom", networkType: "custom",
networkId: "1337", networkId: "1337",
@ -42,6 +49,9 @@ module.exports = {
simulatorMnemonic: "example exile argue silk regular smile grass bomb merge arm assist farm", simulatorMnemonic: "example exile argue silk regular smile grass bomb merge arm assist farm",
simulatorBlocktime: 0 simulatorBlocktime: 0
}, },
// merges with the settings in default
// used with "embark run testnet" and/or "embark blockchain testnet"
testnet: { testnet: {
networkType: "testnet", networkType: "testnet",
syncMode: "light", syncMode: "light",
@ -49,6 +59,9 @@ module.exports = {
password: "config/testnet/password" password: "config/testnet/password"
} }
}, },
// merges with the settings in default
// used with "embark run livenet" and/or "embark blockchain livenet"
livenet: { livenet: {
networkType: "livenet", networkType: "livenet",
syncMode: "light", syncMode: "light",
@ -57,5 +70,10 @@ module.exports = {
account: { account: {
password: "config/livenet/password" password: "config/livenet/password"
} }
} },
// you can name an environment with specific settings and then specify with
// "embark run custom_name" or "embark blockchain custom_name"
//custom_name: {
//}
}; };

View File

@ -1,13 +1,40 @@
module.exports = { module.exports = {
// default applies to all environments
default: { default: {
enabled: true, enabled: true,
provider: "whisper", // Communication provider. Currently, Embark only supports whisper provider: "whisper", // Communication provider. Currently, Embark only supports whisper
available_providers: ["whisper"], // Array of available providers available_providers: ["whisper"], // Array of available providers
},
// default environment, merges with the settings in default
// assumed to be the intended environment by `embark run`
development: {
connection: { connection: {
host: "localhost", // Host of the blockchain node host: "localhost", // Host of the blockchain node
port: 8546, // Port of the blockchain node port: 8546, // Port of the blockchain node
type: "ws" // Type of connection (ws or rpc) type: "ws" // Type of connection (ws or rpc)
} }
} }
// merges with the settings in default
// used with "embark run privatenet"
privatenet: {
},
// merges with the settings in default
// used with "embark run testnet"
testnet: {
},
// merges with the settings in default
// used with "embark run livenet"
livenet: {
},
// you can name an environment with specific settings and then specify with
// "embark run custom_name"
//custom_name: {
//}
}; };

View File

@ -37,5 +37,30 @@ module.exports = {
// args: [ 100 ] // args: [ 100 ]
//} //}
} }
} },
// default environment, merges with the settings in default
// assumed to be the intended environment by `embark run`
development: {
},
// merges with the settings in default
// used with "embark run privatenet"
privatenet: {
},
// merges with the settings in default
// used with "embark run testnet"
testnet: {
},
// merges with the settings in default
// used with "embark run livenet"
livenet: {
},
// you can name an environment with specific settings and then specify with
// "embark run custom_name" or "embark blockchain custom_name"
//custom_name: {
//}
}; };

View File

@ -1,6 +1,38 @@
module.exports = { module.exports = {
// default applies to all environments
default: { default: {
available_providers: ["ens"], available_providers: ["ens"],
provider: "ens" provider: "ens"
},
// default environment, merges with the settings in default
// assumed to be the intended environment by `embark run`
development: {
register: {
rootDomain: "embark.eth",
subdomains: {
'status': '0x1a2f3b98e434c02363f3dac3174af93c1d690914'
}
}
} }
// merges with the settings in default
// used with "embark run privatenet"
privatenet: {
},
// merges with the settings in default
// used with "embark run testnet"
testnet: {
},
// merges with the settings in default
// used with "embark run livenet"
livenet: {
},
// you can name an environment with specific settings and then specify with
// "embark run custom_name" or "embark blockchain custom_name"
//custom_name: {
//}
}; };

View File

@ -1,4 +1,5 @@
module.exports = { module.exports = {
// default applies to all environments
default: { default: {
enabled: true, enabled: true,
ipfs_bin: "ipfs", ipfs_bin: "ipfs",
@ -23,6 +24,9 @@ module.exports = {
}, },
swarmPath: "PATH/TO/SWARM/EXECUTABLE" // Path to swarm executable (default: swarm)*/ swarmPath: "PATH/TO/SWARM/EXECUTABLE" // Path to swarm executable (default: swarm)*/
}, },
// default environment, merges with the settings in default
// assumed to be the intended environment by `embark run`
development: { development: {
enabled: true, enabled: true,
provider: "ipfs", provider: "ipfs",
@ -31,5 +35,25 @@ module.exports = {
port: 5001, port: 5001,
getUrl: "http://localhost:8080/ipfs/" getUrl: "http://localhost:8080/ipfs/"
} }
} },
// merges with the settings in default
// used with "embark run privatenet"
privatenet: {
},
// merges with the settings in default
// used with "embark run testnet"
testnet: {
},
// merges with the settings in default
// used with "embark run livenet"
livenet: {
},
// you can name an environment with specific settings and then specify with
// "embark run custom_name"
//custom_name: {
//}
}; };

View File

@ -12,6 +12,9 @@ module.exports = {
wsHost: "localhost", // WS-RPC server listening interface (default: "localhost") wsHost: "localhost", // WS-RPC server listening interface (default: "localhost")
wsPort: 8546 // WS-RPC server listening port (default: 8546) wsPort: 8546 // WS-RPC server listening port (default: 8546)
}, },
// default environment, merges with the settings in default
// assumed to be the intended environment by `embark run` and `embark blockchain`
development: { development: {
networkType: "custom", // Can be: testnet, rinkeby, livenet or custom, in which case, it will use the specified networkId networkType: "custom", // Can be: testnet, rinkeby, livenet or custom, in which case, it will use the specified networkId
networkId: "1337", // Network id used when networkType is custom networkId: "1337", // Network id used when networkType is custom
@ -25,6 +28,9 @@ module.exports = {
simulatorMnemonic: "example exile argue silk regular smile grass bomb merge arm assist farm", // Mnemonic used by the simulator to generate a wallet simulatorMnemonic: "example exile argue silk regular smile grass bomb merge arm assist farm", // Mnemonic used by the simulator to generate a wallet
simulatorBlocktime: 0 // Specify blockTime in seconds for automatic mining. Default is 0 and no auto-mining. simulatorBlocktime: 0 // Specify blockTime in seconds for automatic mining. Default is 0 and no auto-mining.
}, },
// merges with the settings in default
// used with "embark run privatenet" and/or "embark blockchain privatenet"
privatenet: { privatenet: {
networkType: "custom", networkType: "custom",
networkId: "1337", networkId: "1337",
@ -45,6 +51,9 @@ module.exports = {
simulatorMnemonic: "example exile argue silk regular smile grass bomb merge arm assist farm", simulatorMnemonic: "example exile argue silk regular smile grass bomb merge arm assist farm",
simulatorBlocktime: 0 simulatorBlocktime: 0
}, },
// merges with the settings in default
// used with "embark run testnet" and/or "embark blockchain testnet"
testnet: { testnet: {
networkType: "testnet", networkType: "testnet",
syncMode: "light", syncMode: "light",
@ -52,6 +61,9 @@ module.exports = {
password: "config/testnet/password" password: "config/testnet/password"
} }
}, },
// merges with the settings in default
// used with "embark run livenet" and/or "embark blockchain livenet"
livenet: { livenet: {
networkType: "livenet", networkType: "livenet",
syncMode: "light", syncMode: "light",
@ -60,5 +72,10 @@ module.exports = {
account: { account: {
password: "config/livenet/password" password: "config/livenet/password"
} }
} },
// you can name an environment with specific settings and then specify with
// "embark run custom_name" or "embark blockchain custom_name"
//custom_name: {
//}
}; };

View File

@ -1,12 +1,39 @@
module.exports = { module.exports = {
// default applies to all environments
default: { default: {
enabled: true, enabled: true,
provider: "whisper", // Communication provider. Currently, Embark only supports whisper provider: "whisper", // Communication provider. Currently, Embark only supports whisper
available_providers: ["whisper"], // Array of available providers available_providers: ["whisper"], // Array of available providers
},
// default environment, merges with the settings in default
// assumed to be the intended environment by `embark run`
development: {
connection: { connection: {
host: "localhost", // Host of the blockchain node host: "localhost", // Host of the blockchain node
port: 8546, // Port of the blockchain node port: 8546, // Port of the blockchain node
type: "ws" // Type of connection (ws or rpc) type: "ws" // Type of connection (ws or rpc)
} }
} }
// merges with the settings in default
// used with "embark run privatenet"
privatenet: {
},
// merges with the settings in default
// used with "embark run testnet"
testnet: {
},
// merges with the settings in default
// used with "embark run livenet"
livenet: {
},
// you can name an environment with specific settings and then specify with
// "embark run custom_name"
//custom_name: {
//}
}; };

View File

@ -37,5 +37,30 @@ module.exports = {
args: [100] args: [100]
} }
} }
} },
// default environment, merges with the settings in default
// assumed to be the intended environment by `embark run`
development: {
},
// merges with the settings in default
// used with "embark run privatenet"
privatenet: {
},
// merges with the settings in default
// used with "embark run testnet"
testnet: {
},
// merges with the settings in default
// used with "embark run livenet"
livenet: {
},
// you can name an environment with specific settings and then specify with
// "embark run custom_name" or "embark blockchain custom_name"
//custom_name: {
//}
}; };

View File

@ -1,9 +1,12 @@
module.exports = { module.exports = {
// default applies to all environments
default: { default: {
available_providers: ["ens", "ipns"], available_providers: ["ens", "ipns"],
provider: "ens" provider: "ens"
}, },
// default environment, merges with the settings in default
// assumed to be the intended environment by `embark run`
development: { development: {
register: { register: {
rootDomain: "embark.eth", rootDomain: "embark.eth",
@ -12,4 +15,24 @@ module.exports = {
} }
} }
} }
// merges with the settings in default
// used with "embark run privatenet"
privatenet: {
},
// merges with the settings in default
// used with "embark run testnet"
testnet: {
},
// merges with the settings in default
// used with "embark run livenet"
livenet: {
},
// you can name an environment with specific settings and then specify with
// "embark run custom_name" or "embark blockchain custom_name"
//custom_name: {
//}
}; };

View File

@ -1,4 +1,5 @@
module.exports = { module.exports = {
// default applies to all environments
default: { default: {
enabled: true, enabled: true,
ipfs_bin: "ipfs", ipfs_bin: "ipfs",
@ -23,6 +24,9 @@ module.exports = {
}, },
swarmPath: "PATH/TO/SWARM/EXECUTABLE" // Path to swarm executable (default: swarm)*/ swarmPath: "PATH/TO/SWARM/EXECUTABLE" // Path to swarm executable (default: swarm)*/
}, },
// default environment, merges with the settings in default
// assumed to be the intended environment by `embark run`
development: { development: {
enabled: true, enabled: true,
provider: "ipfs", provider: "ipfs",
@ -31,5 +35,25 @@ module.exports = {
port: 5001, port: 5001,
getUrl: "http://localhost:8080/ipfs/" getUrl: "http://localhost:8080/ipfs/"
} }
} },
// merges with the settings in default
// used with "embark run privatenet"
privatenet: {
},
// merges with the settings in default
// used with "embark run testnet"
testnet: {
},
// merges with the settings in default
// used with "embark run livenet"
livenet: {
},
// you can name an environment with specific settings and then specify with
// "embark run custom_name"
//custom_name: {
//}
}; };

View File

@ -37,5 +37,30 @@ module.exports = {
// args: [ 100 ] // args: [ 100 ]
//} //}
} }
} },
// default environment, merges with the settings in default
// assumed to be the intended environment by `embark run`
development: {
},
// merges with the settings in default
// used with "embark run privatenet"
privatenet: {
},
// merges with the settings in default
// used with "embark run testnet"
testnet: {
},
// merges with the settings in default
// used with "embark run livenet"
livenet: {
},
// you can name an environment with specific settings and then specify with
// "embark run custom_name" or "embark blockchain custom_name"
//custom_name: {
//}
}; };