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