2020-01-31 16:29:38 +00:00
|
|
|
module.exports = {
|
2017-02-10 00:38:02 +00:00
|
|
|
"default": {
|
2017-07-05 12:35:51 +00:00
|
|
|
"versions": {
|
2020-01-17 17:32:32 +00:00
|
|
|
"solc": "0.4.26"
|
2017-07-05 12:35:51 +00:00
|
|
|
},
|
|
|
|
"dappConnection": [
|
2019-12-16 07:42:44 +00:00
|
|
|
"$EMBARK",
|
2017-07-05 12:35:51 +00:00
|
|
|
"$WEB3",
|
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",
|
|
|
|
"http://localhost:8550"
|
2017-07-05 12:35:51 +00:00
|
|
|
],
|
2017-02-10 00:38:02 +00:00
|
|
|
"gas": "auto",
|
2019-08-30 20:50:20 +00:00
|
|
|
"deploy": {
|
2017-07-16 18:11:37 +00:00
|
|
|
"Ownable": {
|
|
|
|
"deploy": false
|
|
|
|
},
|
2017-02-10 00:38:02 +00:00
|
|
|
"SimpleStorage": {
|
2018-02-08 00:39:11 +00:00
|
|
|
"fromIndex": 0,
|
2020-01-31 16:29:38 +00:00
|
|
|
"args": [100]
|
2017-02-10 00:38:02 +00:00
|
|
|
},
|
|
|
|
"AnotherStorage": {
|
|
|
|
"args": [
|
2019-11-12 15:43:35 +00:00
|
|
|
"$SimpleStorage",
|
|
|
|
"embark.eth"
|
2017-02-10 00:38:02 +00:00
|
|
|
]
|
2017-02-10 02:05:45 +00:00
|
|
|
},
|
|
|
|
"Token": {
|
|
|
|
"deploy": false,
|
|
|
|
"args": [1000]
|
|
|
|
},
|
2017-12-20 14:41:52 +00:00
|
|
|
"Test": {
|
2020-01-31 16:29:38 +00:00
|
|
|
"onDeploy": ["Test.methods.changeAddress('$MyToken')"]
|
2017-12-20 14:41:52 +00:00
|
|
|
},
|
2017-02-10 02:05:45 +00:00
|
|
|
"MyToken": {
|
|
|
|
"instanceOf": "Token"
|
|
|
|
},
|
|
|
|
"MyToken2": {
|
|
|
|
"instanceOf": "Token",
|
2017-02-10 02:41:45 +00:00
|
|
|
"args": [200]
|
2017-02-10 02:05:45 +00:00
|
|
|
},
|
|
|
|
"AlreadyDeployedToken": {
|
2017-10-07 19:20:51 +00:00
|
|
|
"address": "0xece374063fe5cc7efbaca0a498477cada94e5ad6",
|
2017-02-10 02:05:45 +00:00
|
|
|
"instanceOf": "Token"
|
2017-12-19 19:07:48 +00:00
|
|
|
},
|
|
|
|
"MyToken3": {
|
|
|
|
"instanceOf": "Tokn"
|
2018-03-04 23:46:12 +00:00
|
|
|
},
|
2018-03-05 01:07:39 +00:00
|
|
|
"ContractArgs": {
|
|
|
|
"args": {
|
|
|
|
"initialValue": 123,
|
|
|
|
"_addresses": ["$MyToken2", "$SimpleStorage"]
|
|
|
|
}
|
|
|
|
},
|
2018-03-04 23:46:12 +00:00
|
|
|
"SomeContract": {
|
|
|
|
"args": [
|
|
|
|
["$MyToken2", "$SimpleStorage"],
|
|
|
|
100
|
|
|
|
]
|
2017-02-10 00:38:02 +00:00
|
|
|
}
|
2017-12-21 16:21:36 +00:00
|
|
|
},
|
2020-01-31 16:29:38 +00:00
|
|
|
afterDeploy: async ({contracts, web3}) => {
|
|
|
|
await contracts.Test.methods.changeAddress(contracts.MyToken.options.address).send();
|
|
|
|
const accounts = await web3.eth.getAccounts();
|
|
|
|
await contracts.Test.methods.changeAddress(accounts[0]).send();
|
|
|
|
}
|
2017-02-10 02:41:45 +00:00
|
|
|
},
|
|
|
|
"development": {
|
2019-08-30 20:50:20 +00:00
|
|
|
"deploy": {
|
2017-02-10 02:41:45 +00:00
|
|
|
"MyToken2": {
|
|
|
|
"instanceOf": "Token",
|
|
|
|
"args": [2000]
|
|
|
|
}
|
|
|
|
}
|
2017-02-10 00:38:02 +00:00
|
|
|
}
|
2020-01-31 16:29:38 +00:00
|
|
|
};
|