update contracts configs from json to js

This commit is contained in:
Iuri Matias 2018-05-11 18:51:11 -04:00
parent 24eadbd94f
commit cc3b748232
7 changed files with 70 additions and 55 deletions

View File

@ -0,0 +1,23 @@
module.exports = {
// default applies to all enviroments
default: {
// rpc to deploy the contracts
deployment: {
host: "localhost",
port: 8545,
type: "rpc"
},
// order of connections the dapp should connect to
dappConnection: [
"$WEB3", // uses pre existing web3 object if available (e.g in Mist)
"http://localhost:8545"
],
gas: "auto",
contracts: {
// example:
//SimpleStorage: {
// args: [ 100 ]
//}
}
}
}

View File

@ -1,16 +0,0 @@
{
"default": {
"deployment": {
"host": "localhost",
"port": 8545,
"type": "rpc"
},
"dappConnection": [
"$WEB3",
"http://localhost:8545"
],
"gas": "auto",
"contracts": {
}
}
}

View File

@ -0,0 +1,23 @@
module.exports = {
// default applies to all enviroments
default: {
// rpc to deploy the contracts
deployment: {
host: "localhost",
port: 8545,
type: "rpc"
},
// order of connections the dapp should connect to
dappConnection: [
"$WEB3", // uses pre existing web3 object if available (e.g in Mist)
"http://localhost:8545"
],
gas: "auto",
contracts: {
SimpleStorage: {
fromIndex: 0,
args: [ 100 ]
}
}
}
}

View File

@ -1,22 +0,0 @@
{
"default": {
"deployment": {
"host": "localhost",
"port": 8545,
"type": "rpc"
},
"dappConnection": [
"$WEB3",
"http://localhost:8545"
],
"gas": "auto",
"contracts": {
"SimpleStorage": {
"fromIndex": 0,
"args": [
100
]
}
}
}
}

View File

@ -0,0 +1,23 @@
module.exports = {
// default applies to all enviroments
default: {
// rpc to deploy the contracts
deployment: {
host: "localhost",
port: 8545,
type: "rpc"
},
// order of connections the dapp should connect to
dappConnection: [
"$WEB3", // uses pre existing web3 object if available (e.g in Mist)
"http://localhost:8545"
],
gas: "auto",
contracts: {
// example:
//SimpleStorage: {
// args: [ 100 ]
//}
}
}
}

View File

@ -1,16 +0,0 @@
{
"default": {
"deployment": {
"host": "localhost",
"port": 8545,
"type": "rpc"
},
"dappConnection": [
"$WEB3",
"http://localhost:8545"
],
"gas": "auto",
"contracts": {
}
}
}

View File

@ -3,7 +3,7 @@
"app": {}, "app": {},
"buildDir": "build/", "buildDir": "build/",
"config": { "config": {
"contracts": "contracts.json", "contracts": "contracts.js",
"blockchain": false, "blockchain": false,
"storage": false, "storage": false,
"communication": false, "communication": false,