2019-04-08 14:46:14 +00:00
|
|
|
module.exports = {
|
|
|
|
// default applies to all environments
|
|
|
|
default: {
|
|
|
|
// Blockchain node to deploy the contracts
|
|
|
|
deployment: {
|
2019-04-24 15:03:54 +00:00
|
|
|
host: 'localhost', // Host of the blockchain node
|
2019-04-08 14:46:14 +00:00
|
|
|
port: 8546, // Port of the blockchain node
|
2019-04-24 15:03:54 +00:00
|
|
|
type: 'ws', // Type of connection (ws or rpc),
|
2019-04-08 14:46:14 +00:00
|
|
|
// Accounts to use instead of the default account to populate your wallet
|
|
|
|
// The order here corresponds to the order of `web3.eth.getAccounts`, so the first one is the `defaultAccount`
|
2019-04-24 15:03:54 +00:00
|
|
|
/* ,accounts: [
|
2019-04-08 14:46:14 +00:00
|
|
|
{
|
|
|
|
privateKey: "your_private_key",
|
|
|
|
balance: "5 ether" // You can set the balance of the account in the dev environment
|
|
|
|
// Balances are in Wei, but you can specify the unit with its name
|
|
|
|
},
|
|
|
|
{
|
|
|
|
privateKeyFile: "path/to/file", // Either a keystore or a list of keys, separated by , or ;
|
|
|
|
password: "passwordForTheKeystore" // Needed to decrypt the keystore file
|
|
|
|
},
|
|
|
|
{
|
|
|
|
mnemonic: "12 word mnemonic",
|
|
|
|
addressIndex: "0", // Optional. The index to start getting the address
|
|
|
|
numAddresses: "1", // Optional. The number of addresses to get
|
|
|
|
hdpath: "m/44'/60'/0'/0/" // Optional. HD derivation path
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"nodeAccounts": true // Uses the Ethereum node's accounts
|
|
|
|
}
|
2019-04-24 15:03:54 +00:00
|
|
|
] */
|
2019-04-08 14:46:14 +00:00
|
|
|
},
|
|
|
|
// order of connections the dapp should connect to
|
|
|
|
dappConnection: [
|
2019-04-24 15:03:54 +00:00
|
|
|
'$WEB3', // uses pre existing web3 object if available (e.g in Mist)
|
|
|
|
'ws://localhost:8546',
|
|
|
|
'http://localhost:8545',
|
2019-04-08 14:46:14 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
// Automatically call `ethereum.enable` if true.
|
|
|
|
// If false, the following code must run before sending any transaction: `await EmbarkJS.enableEthereum();`
|
|
|
|
// Default value is true.
|
|
|
|
// dappAutoEnable: true,
|
|
|
|
|
2019-04-24 15:03:54 +00:00
|
|
|
gas: 'auto',
|
2019-04-08 14:46:14 +00:00
|
|
|
|
|
|
|
// Strategy for the deployment of the contracts:
|
|
|
|
// - implicit will try to deploy all the contracts located inside the contracts directory
|
|
|
|
// or the directory configured for the location of the contracts. This is default one
|
|
|
|
// when not specified
|
|
|
|
// - explicit will only attempt to deploy the contracts that are explicitly specified inside the
|
|
|
|
// contracts section.
|
2019-04-24 15:03:54 +00:00
|
|
|
// strategy: 'implicit',
|
2019-04-08 14:46:14 +00:00
|
|
|
|
|
|
|
contracts: {
|
2019-04-19 09:03:03 +00:00
|
|
|
Discover: {
|
2019-04-24 15:03:54 +00:00
|
|
|
args: { _SNT: '0x744d70fdbe2ba4cf95131626614a1763df805b9e' },
|
2019-04-08 20:38:00 +00:00
|
|
|
},
|
2019-04-24 15:03:54 +00:00
|
|
|
MiniMeToken: { deploy: false },
|
|
|
|
TestBancorFormula: { deploy: false },
|
|
|
|
},
|
2019-04-08 14:46:14 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
// default environment, merges with the settings in default
|
|
|
|
// assumed to be the intended environment by `embark run`
|
|
|
|
development: {
|
|
|
|
dappConnection: [
|
2019-04-24 15:03:54 +00:00
|
|
|
'ws://localhost:8546',
|
|
|
|
'http://localhost:8545',
|
|
|
|
'$WEB3', // uses pre existing web3 object if available (e.g in Mist)
|
|
|
|
],
|
2019-04-08 14:46:14 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
// merges with the settings in default
|
|
|
|
// used with "embark run privatenet"
|
2019-04-24 15:03:54 +00:00
|
|
|
privatenet: {},
|
2019-04-08 14:46:14 +00:00
|
|
|
|
|
|
|
// merges with the settings in default
|
|
|
|
// used with "embark run testnet"
|
2019-04-24 15:03:54 +00:00
|
|
|
testnet: {},
|
2019-04-08 14:46:14 +00:00
|
|
|
|
|
|
|
// merges with the settings in default
|
|
|
|
// used with "embark run livenet"
|
2019-04-24 15:03:54 +00:00
|
|
|
livenet: {},
|
2019-04-08 14:46:14 +00:00
|
|
|
|
|
|
|
// you can name an environment with specific settings and then specify with
|
|
|
|
// "embark run custom_name" or "embark blockchain custom_name"
|
2019-04-24 15:03:54 +00:00
|
|
|
// custom_name: {
|
|
|
|
// }
|
|
|
|
}
|