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: { testnet: {
enabled: true, enabled: true,
proxy: false,
networkType: "testnet", networkType: "testnet",
syncMode: "light", syncMode: "light",
rpcHost: "localhost", rpcHost: "localhost",
@ -40,6 +41,7 @@ module.exports = {
}, },
livenet: { livenet: {
enabled: true, enabled: true,
proxy: false,
networkType: "livenet", networkType: "livenet",
syncMode: "light", syncMode: "light",
rpcHost: "localhost", rpcHost: "localhost",

View File

@ -45,5 +45,27 @@ module.exports = {
"args": ["$SpaceshipToken"] "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, port: 5001,
getUrl: "http://localhost:8080/ipfs/" 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/"
}
]
} }
}; };