mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-14 17:24:58 +00:00
update contracts configs from json to js
This commit is contained in:
parent
24eadbd94f
commit
cc3b748232
23
templates/boilerplate/config/contracts.js
Normal file
23
templates/boilerplate/config/contracts.js
Normal 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 ]
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
{
|
||||
"default": {
|
||||
"deployment": {
|
||||
"host": "localhost",
|
||||
"port": 8545,
|
||||
"type": "rpc"
|
||||
},
|
||||
"dappConnection": [
|
||||
"$WEB3",
|
||||
"http://localhost:8545"
|
||||
],
|
||||
"gas": "auto",
|
||||
"contracts": {
|
||||
}
|
||||
}
|
||||
}
|
23
templates/demo/config/contracts.js
Normal file
23
templates/demo/config/contracts.js
Normal 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 ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
23
templates/simple/contracts.js
Normal file
23
templates/simple/contracts.js
Normal 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 ]
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
{
|
||||
"default": {
|
||||
"deployment": {
|
||||
"host": "localhost",
|
||||
"port": 8545,
|
||||
"type": "rpc"
|
||||
},
|
||||
"dappConnection": [
|
||||
"$WEB3",
|
||||
"http://localhost:8545"
|
||||
],
|
||||
"gas": "auto",
|
||||
"contracts": {
|
||||
}
|
||||
}
|
||||
}
|
@ -3,7 +3,7 @@
|
||||
"app": {},
|
||||
"buildDir": "build/",
|
||||
"config": {
|
||||
"contracts": "contracts.json",
|
||||
"contracts": "contracts.js",
|
||||
"blockchain": false,
|
||||
"storage": false,
|
||||
"communication": false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user