2018-05-11 18:11:05 -04:00
|
|
|
module.exports = {
|
2018-05-11 18:22:32 -04:00
|
|
|
default: {
|
|
|
|
deployment: {
|
|
|
|
host: "localhost",
|
2018-07-06 14:43:01 -04:00
|
|
|
port: 8546,
|
|
|
|
type: "ws"
|
2017-07-05 08:35:51 -04:00
|
|
|
},
|
2018-05-11 18:22:32 -04:00
|
|
|
dappConnection: [
|
2017-07-05 08:35:51 -04:00
|
|
|
"$WEB3",
|
2018-02-07 19:39:11 -05:00
|
|
|
"ws://localhost:8546",
|
2017-07-06 18:48:20 -04:00
|
|
|
"http://localhost:8550",
|
|
|
|
"http://localhost:8545",
|
|
|
|
"http://localhost:8550"
|
2017-07-05 08:35:51 -04:00
|
|
|
],
|
2018-05-11 18:22:32 -04:00
|
|
|
gas: "auto",
|
|
|
|
contracts: {
|
|
|
|
Ownable: {
|
|
|
|
deploy: false
|
2017-07-16 14:11:37 -04:00
|
|
|
},
|
2018-05-11 18:22:32 -04:00
|
|
|
SimpleStorage: {
|
|
|
|
fromIndex: 0,
|
2018-07-25 16:01:42 -04:00
|
|
|
args: [100],
|
|
|
|
onDeploy: ["SimpleStorage.methods.setRegistar(web3.eth.defaultAccount).send()"]
|
2017-02-09 19:38:02 -05:00
|
|
|
},
|
2018-05-11 18:22:32 -04:00
|
|
|
AnotherStorage: {
|
2018-07-25 16:01:42 -04:00
|
|
|
args: ["$SimpleStorage"]
|
2017-02-09 21:05:45 -05:00
|
|
|
},
|
2018-05-11 18:22:32 -04:00
|
|
|
Token: {
|
|
|
|
deploy: false,
|
|
|
|
args: [1000]
|
2017-02-09 21:05:45 -05:00
|
|
|
},
|
2018-05-11 18:22:32 -04:00
|
|
|
Test: {
|
2018-10-05 14:49:10 +05:30
|
|
|
onDeploy: ["Test.methods.changeAddress('$MyToken')", "Test.methods.changeENS('embark.eth')"]
|
2017-12-20 09:41:52 -05:00
|
|
|
},
|
2018-05-11 18:22:32 -04:00
|
|
|
MyToken: {
|
|
|
|
instanceOf: "Token"
|
2017-02-09 21:05:45 -05:00
|
|
|
},
|
2018-05-11 18:22:32 -04:00
|
|
|
MyToken2: {
|
|
|
|
instanceOf: "Token",
|
|
|
|
args: [200]
|
2017-02-09 21:05:45 -05:00
|
|
|
},
|
2018-05-11 18:22:32 -04:00
|
|
|
AlreadyDeployedToken: {
|
|
|
|
address: "0xece374063fe5cc7efbaca0a498477cada94e5ad6",
|
|
|
|
instanceOf: "Token"
|
2017-12-19 14:07:48 -05:00
|
|
|
},
|
2018-05-11 18:22:32 -04:00
|
|
|
MyToken3: {
|
|
|
|
instanceOf: "Tokn"
|
2018-03-04 18:46:12 -05:00
|
|
|
},
|
2018-05-11 18:22:32 -04:00
|
|
|
ContractArgs: {
|
|
|
|
args: {
|
|
|
|
initialValue: 123,
|
2018-03-04 20:07:39 -05:00
|
|
|
"_addresses": ["$MyToken2", "$SimpleStorage"]
|
|
|
|
}
|
|
|
|
},
|
2018-05-11 18:22:32 -04:00
|
|
|
SomeContract: {
|
2018-09-15 12:20:20 -04:00
|
|
|
deployIf: 'await MyToken.methods.isAvailable().call()',
|
2018-05-11 18:22:32 -04:00
|
|
|
args: [
|
2018-03-04 18:46:12 -05:00
|
|
|
["$MyToken2", "$SimpleStorage"],
|
|
|
|
100
|
|
|
|
]
|
2018-04-12 17:54:08 -04:00
|
|
|
},
|
2018-05-11 18:22:32 -04:00
|
|
|
ERC20: {
|
|
|
|
file: "zeppelin-solidity/contracts/token/ERC20/ERC20.sol"
|
2018-04-18 15:36:54 -04:00
|
|
|
},
|
2018-05-11 18:22:32 -04:00
|
|
|
SimpleStorageTest: {
|
|
|
|
file: "./some_folder/test_contract.sol",
|
2018-07-25 16:01:42 -04:00
|
|
|
args: [1000]
|
2018-04-18 14:56:18 -04:00
|
|
|
},
|
2018-09-14 15:21:45 -04:00
|
|
|
StandardToken: {
|
|
|
|
file: "https://github.com/status-im/contracts/blob/151-embark31/contracts/token/StandardToken.sol",
|
2018-09-14 14:20:41 -04:00
|
|
|
deploy: false
|
2018-04-20 11:39:17 -04:00
|
|
|
},
|
2018-05-11 18:22:32 -04:00
|
|
|
SimpleStorageWithHttpImport: {
|
|
|
|
fromIndex: 0,
|
2018-07-25 16:01:42 -04:00
|
|
|
args: [100]
|
2017-02-09 19:38:02 -05:00
|
|
|
}
|
2017-12-21 11:21:36 -05:00
|
|
|
},
|
2018-05-11 18:22:32 -04:00
|
|
|
afterDeploy: [
|
2018-01-05 15:10:47 -05:00
|
|
|
"Test.methods.changeAddress('$MyToken')",
|
|
|
|
"web3.eth.getAccounts((err, accounts) => Test.methods.changeAddress(accounts[0]))"
|
2017-12-21 11:21:36 -05:00
|
|
|
]
|
2017-02-09 21:41:45 -05:00
|
|
|
},
|
2018-05-11 18:22:32 -04:00
|
|
|
development: {
|
|
|
|
contracts: {
|
|
|
|
MyToken2: {
|
|
|
|
instanceOf: "Token",
|
|
|
|
args: [2000]
|
2017-02-09 21:41:45 -05:00
|
|
|
}
|
|
|
|
}
|
2017-02-09 19:38:02 -05:00
|
|
|
}
|
2018-05-11 18:11:05 -04:00
|
|
|
};
|