embark-area-51/test_apps/test_app/config/contracts.js

102 lines
2.1 KiB
JavaScript
Raw Normal View History

module.exports = {
default: {
deployment: {
host: "localhost",
port: 8545,
type: "rpc"
},
dappConnection: [
"$WEB3",
2018-02-08 00:39:11 +00:00
"ws://localhost:8546",
"http://localhost:8550",
"http://localhost:8545",
"http://localhost:8550"
],
gas: "auto",
contracts: {
Ownable: {
deploy: false
2017-07-16 18:11:37 +00:00
},
SimpleStorage: {
fromIndex: 0,
args: [
2017-02-10 00:38:02 +00:00
100
2018-06-06 14:39:02 +00:00
],
onDeploy: [
"SimpleStorage.methods.setRegistar(web3.eth.defaultAccount).send()"
2017-02-10 00:38:02 +00:00
]
},
AnotherStorage: {
args: [
2017-02-10 00:38:02 +00:00
"$SimpleStorage"
]
2017-02-10 02:05:45 +00:00
},
Token: {
deploy: false,
args: [1000]
2017-02-10 02:05:45 +00:00
},
Test: {
onDeploy: [
2018-01-05 20:10:47 +00:00
"Test.methods.changeAddress('$MyToken')"
]
},
MyToken: {
instanceOf: "Token"
2017-02-10 02:05:45 +00:00
},
MyToken2: {
instanceOf: "Token",
args: [200]
2017-02-10 02:05:45 +00:00
},
AlreadyDeployedToken: {
address: "0xece374063fe5cc7efbaca0a498477cada94e5ad6",
instanceOf: "Token"
2017-12-19 19:07:48 +00:00
},
MyToken3: {
instanceOf: "Tokn"
},
ContractArgs: {
args: {
initialValue: 123,
"_addresses": ["$MyToken2", "$SimpleStorage"]
}
},
SomeContract: {
args: [
["$MyToken2", "$SimpleStorage"],
100
]
},
ERC20: {
file: "zeppelin-solidity/contracts/token/ERC20/ERC20.sol"
2018-04-18 19:36:54 +00:00
},
SimpleStorageTest: {
file: "./some_folder/test_contract.sol",
args: [
1000
]
},
Identity: {
file: "https://github.com/status-im/contracts/blob/master/contracts/identity/Identity.sol"
},
SimpleStorageWithHttpImport: {
fromIndex: 0,
args: [
100
]
2017-02-10 00:38:02 +00:00
}
2017-12-21 16:21:36 +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
]
},
development: {
contracts: {
MyToken2: {
instanceOf: "Token",
args: [2000]
}
}
2017-02-10 00:38:02 +00:00
}
};