1
0
mirror of https://github.com/dap-ps/discover.git synced 2025-01-31 11:35:18 +00:00

configure development to connect to ropsten

This commit is contained in:
Richard Ramos 2019-08-12 09:54:36 -04:00 committed by Andy Tudhope
parent 6e6c90cf13
commit ca9b539b3e
2 changed files with 27 additions and 22 deletions

View File

@ -48,18 +48,14 @@ module.exports = {
// default environment, merges with the settings in default // default environment, merges with the settings in default
// assumed to be the intended environment by `embark run` and `embark blockchain` // assumed to be the intended environment by `embark run` and `embark blockchain`
development: { development: {
ethereumClientName: 'geth', // Can be geth or parity (default:geth) networkType: 'testnet',
// ethereumClientBin: "geth", // path to the client binary. Useful if it is not in the global PATH syncMode: 'light',
networkType: 'custom', // Can be: testnet, rinkeby, livenet or custom, in which case, it will use the specified networkId accounts: [
networkId: 1337, // Network id used when networkType is custom {
isDev: true, // Uses and ephemeral proof-of-authority network with a pre-funded developer account, mining enabled nodeAccounts: true,
datadir: '.embark/development/datadir', // Data directory for the databases and keystore (Geth 1.8.15 and Parity 2.0.4 can use the same base folder, till now they does not conflict with each other) password: process.env.WALLET_PASSWORD,
mineWhenNeeded: true, // Uses our custom script (if isDev is false) to mine only when needed },
nodiscover: true, // Disables the peer discovery mechanism (manual peer addition) ],
maxpeers: 0, // Maximum number of network peers (network disabled if set to 0) (default: 25)
proxy: true, // Proxy is used to present meaningful information about transactions
targetGasLimit: 9000000, // Target gas limit sets the artificial target gas floor for the blocks to mine
simulatorBlocktime: 0, // Specify blockTime in seconds for automatic mining. Default is 0 and no auto-mining.
}, },
// merges with the settings in default // merges with the settings in default

View File

@ -80,20 +80,29 @@ module.exports = {
// default environment, merges with the settings in default // default environment, merges with the settings in default
// assumed to be the intended environment by `embark run` // assumed to be the intended environment by `embark run`
development: { development: {
deployment: {
accounts: [
{
mnemonic: process.env.WALLET_MNEMONIC,
},
],
host: `ropsten.infura.io/v3/8675214b97b44e96b70d05326c61fd6a`,
port: false,
type: 'rpc',
protocol: 'https',
},
dappConnection: [
'$WEB3',
'https://ropsten.infura.io/v3/8675214b97b44e96b70d05326c61fd6a',
],
dappAutoEnable: false,
gasPrice: "10000000000",
contracts: { contracts: {
MiniMeTokenFactory: {},
MiniMeToken: { MiniMeToken: {
args: [ address: '0xc55cf4b03948d7ebc8b9e8bad92643703811d162',
'$MiniMeTokenFactory',
'0x0000000000000000000000000000000000000000',
0,
'SNTMiniMeToken',
18,
'SNT',
true,
],
}, },
}, },
tracking: 'shared.development.chains.json',
}, },
// merges with the settings in default // merges with the settings in default