2018-05-11 22:51:11 +00:00
|
|
|
module.exports = {
|
2018-06-18 19:59:48 +00:00
|
|
|
// default applies to all environments
|
2018-05-11 22:51:11 +00:00
|
|
|
default: {
|
2020-02-07 20:24:16 +00:00
|
|
|
library: 'embarkjs', // can be also be 'web3'
|
|
|
|
|
2018-05-11 22:51:11 +00:00
|
|
|
// order of connections the dapp should connect to
|
|
|
|
dappConnection: [
|
2019-09-24 17:35:19 +00:00
|
|
|
"$EMBARK",
|
2018-05-11 22:51:11 +00:00
|
|
|
"$WEB3", // uses pre existing web3 object if available (e.g in Mist)
|
2018-06-12 16:33:21 +00:00
|
|
|
"ws://localhost:8546",
|
2018-05-11 22:51:11 +00:00
|
|
|
"http://localhost:8545"
|
|
|
|
],
|
2018-11-07 11:35:51 +00:00
|
|
|
|
2018-11-16 09:05:42 +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,
|
|
|
|
|
2018-05-11 22:51:11 +00:00
|
|
|
gas: "auto",
|
2018-11-07 11:35:51 +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
|
2019-02-22 15:29:39 +00:00
|
|
|
// - explicit will only attempt to deploy the contracts that are explicitly specified inside the
|
2018-11-07 11:35:51 +00:00
|
|
|
// contracts section.
|
2019-08-30 20:50:20 +00:00
|
|
|
// strategy: 'implicit',
|
2018-11-07 11:35:51 +00:00
|
|
|
|
2019-07-11 20:09:52 +00:00
|
|
|
// minimalContractSize, when set to true, tells Embark to generate contract files without the heavy bytecodes
|
2019-07-23 15:28:33 +00:00
|
|
|
// Using filteredFields lets you customize which field you want to filter out of the contract file (requires minimalContractSize: true)
|
2019-07-11 20:09:52 +00:00
|
|
|
// minimalContractSize: false,
|
2019-07-23 15:28:33 +00:00
|
|
|
// filteredFields: [],
|
2019-07-11 20:09:52 +00:00
|
|
|
|
2019-08-30 20:50:20 +00:00
|
|
|
deploy: {
|
2018-05-11 22:51:11 +00:00
|
|
|
SimpleStorage: {
|
|
|
|
fromIndex: 0,
|
2018-06-18 19:59:48 +00:00
|
|
|
args: [100]
|
2018-05-11 22:51:11 +00:00
|
|
|
}
|
|
|
|
}
|
2018-08-21 18:44:58 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
// default environment, merges with the settings in default
|
|
|
|
// assumed to be the intended environment by `embark run`
|
2019-10-14 01:42:13 +00:00
|
|
|
development: {},
|
2018-08-21 18:44:58 +00:00
|
|
|
|
|
|
|
// merges with the settings in default
|
|
|
|
// used with "embark run privatenet"
|
2019-08-30 20:50:20 +00:00
|
|
|
privatenet: {},
|
2018-08-21 18:44:58 +00:00
|
|
|
|
|
|
|
// you can name an environment with specific settings and then specify with
|
|
|
|
// "embark run custom_name" or "embark blockchain custom_name"
|
2019-08-30 20:50:20 +00:00
|
|
|
// custom_name: {}
|
2018-06-18 19:59:48 +00:00
|
|
|
};
|