mirror of https://github.com/embarklabs/embark.git
convert test_app contracts config from json format to js object
This commit is contained in:
parent
b804f51de5
commit
24eadbd94f
|
@ -1,97 +1,97 @@
|
|||
module.exports = {
|
||||
"default": {
|
||||
"deployment": {
|
||||
"host": "localhost",
|
||||
"port": 8545,
|
||||
"type": "rpc"
|
||||
default: {
|
||||
deployment: {
|
||||
host: "localhost",
|
||||
port: 8545,
|
||||
type: "rpc"
|
||||
},
|
||||
"dappConnection": [
|
||||
dappConnection: [
|
||||
"$WEB3",
|
||||
"ws://localhost:8546",
|
||||
"http://localhost:8550",
|
||||
"http://localhost:8545",
|
||||
"http://localhost:8550"
|
||||
],
|
||||
"gas": "auto",
|
||||
"contracts": {
|
||||
"Ownable": {
|
||||
"deploy": false
|
||||
gas: "auto",
|
||||
contracts: {
|
||||
Ownable: {
|
||||
deploy: false
|
||||
},
|
||||
"SimpleStorage": {
|
||||
"fromIndex": 0,
|
||||
"args": [
|
||||
SimpleStorage: {
|
||||
fromIndex: 0,
|
||||
args: [
|
||||
100
|
||||
]
|
||||
},
|
||||
"AnotherStorage": {
|
||||
"args": [
|
||||
AnotherStorage: {
|
||||
args: [
|
||||
"$SimpleStorage"
|
||||
]
|
||||
},
|
||||
"Token": {
|
||||
"deploy": false,
|
||||
"args": [1000]
|
||||
Token: {
|
||||
deploy: false,
|
||||
args: [1000]
|
||||
},
|
||||
"Test": {
|
||||
"onDeploy": [
|
||||
Test: {
|
||||
onDeploy: [
|
||||
"Test.methods.changeAddress('$MyToken')"
|
||||
]
|
||||
},
|
||||
"MyToken": {
|
||||
"instanceOf": "Token"
|
||||
MyToken: {
|
||||
instanceOf: "Token"
|
||||
},
|
||||
"MyToken2": {
|
||||
"instanceOf": "Token",
|
||||
"args": [200]
|
||||
MyToken2: {
|
||||
instanceOf: "Token",
|
||||
args: [200]
|
||||
},
|
||||
"AlreadyDeployedToken": {
|
||||
"address": "0xece374063fe5cc7efbaca0a498477cada94e5ad6",
|
||||
"instanceOf": "Token"
|
||||
AlreadyDeployedToken: {
|
||||
address: "0xece374063fe5cc7efbaca0a498477cada94e5ad6",
|
||||
instanceOf: "Token"
|
||||
},
|
||||
"MyToken3": {
|
||||
"instanceOf": "Tokn"
|
||||
MyToken3: {
|
||||
instanceOf: "Tokn"
|
||||
},
|
||||
"ContractArgs": {
|
||||
"args": {
|
||||
"initialValue": 123,
|
||||
ContractArgs: {
|
||||
args: {
|
||||
initialValue: 123,
|
||||
"_addresses": ["$MyToken2", "$SimpleStorage"]
|
||||
}
|
||||
},
|
||||
"SomeContract": {
|
||||
"args": [
|
||||
SomeContract: {
|
||||
args: [
|
||||
["$MyToken2", "$SimpleStorage"],
|
||||
100
|
||||
]
|
||||
},
|
||||
"ERC20": {
|
||||
"file": "zeppelin-solidity/contracts/token/ERC20/ERC20.sol"
|
||||
ERC20: {
|
||||
file: "zeppelin-solidity/contracts/token/ERC20/ERC20.sol"
|
||||
},
|
||||
"SimpleStorageTest": {
|
||||
"file": "./some_folder/test_contract.sol",
|
||||
"args": [
|
||||
SimpleStorageTest: {
|
||||
file: "./some_folder/test_contract.sol",
|
||||
args: [
|
||||
1000
|
||||
]
|
||||
},
|
||||
"Identity": {
|
||||
"file": "https://github.com/status-im/contracts/blob/master/contracts/identity/Identity.sol"
|
||||
Identity: {
|
||||
file: "https://github.com/status-im/contracts/blob/master/contracts/identity/Identity.sol"
|
||||
},
|
||||
"SimpleStorageWithHttpImport": {
|
||||
"fromIndex": 0,
|
||||
"args": [
|
||||
SimpleStorageWithHttpImport: {
|
||||
fromIndex: 0,
|
||||
args: [
|
||||
100
|
||||
]
|
||||
}
|
||||
},
|
||||
"afterDeploy": [
|
||||
afterDeploy: [
|
||||
"Test.methods.changeAddress('$MyToken')",
|
||||
"web3.eth.getAccounts((err, accounts) => Test.methods.changeAddress(accounts[0]))"
|
||||
]
|
||||
},
|
||||
"development": {
|
||||
"contracts": {
|
||||
"MyToken2": {
|
||||
"instanceOf": "Token",
|
||||
"args": [2000]
|
||||
development: {
|
||||
contracts: {
|
||||
MyToken2: {
|
||||
instanceOf: "Token",
|
||||
args: [2000]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue