2
0
mirror of synced 2025-02-23 12:28:44 +00:00
emizzle 5f5f5f47da Added handling for metamask event subs
Metamask doesn’t allow event subscriptions, so user is redirected to the error page with the error.
2018-07-11 23:54:18 +07:00

66 lines
2.0 KiB
JavaScript

module.exports = {
// default applies to all enviroments
default: {
// rpc to deploy the contracts
deployment: {
protocol: 'http',
host: "localhost",
port: 8545,
type: "rpc",
accounts: [
{
"mnemonic": "acquire hole quarter security auto wedding leader audit baby dawn gravity obvious",
"addressIndex": "0", // Optional. The index to start getting the address
"numAddresses": "2", // Optional. The number of addresses to get
"hdpath": "m/44'/60'/0'/0/",// Optional. HD derivation path
"balance": "5 ether"
}
]
},
// order of connections the dapp should connect to
dappConnection: [
"$WEB3", // uses pre existing web3 object if available (e.g in Mist)
"ws://localhost:8546",
"http://localhost:8545"
],
contracts: {
DTwitter: {
args: [ ]
}
},
gas: "auto",
gasLimit: 9000000
},
testnet: {
deployment:{
// accounts: [
// {
// "mnemonic": "wave pigeon sustain sock boring monitor left sight hedgehog weapon champion session",
// "addressIndex": "0", // Optional. The index to start getting the address
// "numAddresses": "2", // Optional. The number of addresses to get
// "hdpath": "m/44'/60'/0'/0/" // Optional. HD derivation path
// }
// ],
accounts: [
{
"mnemonic": "acquire hole quarter security auto wedding leader audit baby dawn gravity obvious",
"addressIndex": "0", // Optional. The index to start getting the address
"numAddresses": "2", // Optional. The number of addresses to get
"hdpath": "m/44'/60'/0'/0/" // Optional. HD derivation path
}
],
contracts: {
DTwitter: {
args: [ ]
}
},
gasLimit: 9000000,
gasPrice: 91200,
host: "rinkeby.infura.io/nmY8WtT4QfEwz2S7wTbl",
port: false,
protocol: 'https',
type: "rpc"
}
}
}