Configuring Infura on testnet

This commit is contained in:
Richard Ramos 2018-07-02 20:14:09 -04:00
parent 350bfb5f9b
commit 4db9455c7f
3 changed files with 37 additions and 0 deletions

View File

@ -29,6 +29,7 @@ module.exports = {
},
testnet: {
enabled: true,
proxy: false,
networkType: "testnet",
syncMode: "light",
rpcHost: "localhost",
@ -40,6 +41,7 @@ module.exports = {
},
livenet: {
enabled: true,
proxy: false,
networkType: "livenet",
syncMode: "light",
rpcHost: "localhost",

View File

@ -45,5 +45,27 @@ module.exports = {
"args": ["$SpaceshipToken"]
}
}
},
testnet: {
deployment:{
"accounts": [
{
"privateKey": "..............."
},
],
host: "ropsten.infura.io/...............",
port: false,
protocol: 'https', // <=== must be specified for infura, can also be http, or ws
type: "rpc"
},
contracts: {
"SpaceshipToken": {
address: "0x79Dc5C2B0b607702f977265595eF33efe68974A6"
},
"SpaceshipMarketplace": {
address: "0xD6B7b28F61BCbE8f044095029FCD3745bea68F4d"
}
}
}
};

View File

@ -31,5 +31,18 @@ module.exports = {
port: 5001,
getUrl: "http://localhost:8080/ipfs/"
}
},
testnet: {
enabled: true,
provider: "ipfs",
dappConnection: [
{
provider: "ipfs",
host: "ipfs.infura.io",
port: 5001,
protocol: "http",
getUrl: "http://ipfs.infura.io/ipfs/"
}
]
}
};