From ca9b539b3e52d505c24f577e5d51345fa7f7edf4 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Mon, 12 Aug 2019 09:54:36 -0400 Subject: [PATCH] configure development to connect to ropsten --- config/blockchain.js | 20 ++++++++------------ config/contracts.js | 29 +++++++++++++++++++---------- 2 files changed, 27 insertions(+), 22 deletions(-) diff --git a/config/blockchain.js b/config/blockchain.js index 346d69e..bd34424 100644 --- a/config/blockchain.js +++ b/config/blockchain.js @@ -48,18 +48,14 @@ module.exports = { // default environment, merges with the settings in default // assumed to be the intended environment by `embark run` and `embark blockchain` development: { - ethereumClientName: 'geth', // Can be geth or parity (default:geth) - // ethereumClientBin: "geth", // path to the client binary. Useful if it is not in the global PATH - 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 - isDev: true, // Uses and ephemeral proof-of-authority network with a pre-funded developer account, mining enabled - 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) - 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. + networkType: 'testnet', + syncMode: 'light', + accounts: [ + { + nodeAccounts: true, + password: process.env.WALLET_PASSWORD, + }, + ], }, // merges with the settings in default diff --git a/config/contracts.js b/config/contracts.js index 426af52..8e207c6 100644 --- a/config/contracts.js +++ b/config/contracts.js @@ -80,20 +80,29 @@ module.exports = { // default environment, merges with the settings in default // assumed to be the intended environment by `embark run` 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: { - MiniMeTokenFactory: {}, MiniMeToken: { - args: [ - '$MiniMeTokenFactory', - '0x0000000000000000000000000000000000000000', - 0, - 'SNTMiniMeToken', - 18, - 'SNT', - true, - ], + address: '0xc55cf4b03948d7ebc8b9e8bad92643703811d162', }, }, + tracking: 'shared.development.chains.json', }, // merges with the settings in default