fix rebase issues

This commit is contained in:
Iuri Matias 2018-07-12 16:02:16 +03:00
parent 0067798535
commit 300d2532aa
8 changed files with 50 additions and 642 deletions

View File

@ -47,6 +47,46 @@ class ContractsManager {
self.events.emit('contractsState', self.contractsState());
});
this.events.setCommandHandler('setDashboardState', () => {
self.events.emit('contractsState', self.contractsState());
});
self.events.setCommandHandler("contracts:contract", (contractName, cb) => {
cb(self.getContract(contractName));
});
self.events.setCommandHandler("contracts:all", (contractName, cb) => {
let contracts = self.listContracts();
let results = {};
for (let className in contracts) {
let contract = contracts[className];
results[className] = {
name: contract.className,
deploy: contract.deploy,
error: contract.error,
address: contract.deployedAddress
};
}
cb(results);
});
let plugin = this.plugins.createPlugin('deployment', {});
plugin.registerAPICall(
'get',
'/embark/contract/:contractName',
(req, res) => {
self.events.request('contracts:contract', req.params.contractName, res.send.bind(res));
}
);
plugin.registerAPICall(
'get',
'/embark/contracts',
(req, res) => {
self.events.request('contracts:all', null, res.send.bind(res));
}
);
}
build(done) {

View File

@ -1,417 +0,0 @@
let async = require('async');
//require("../utils/debug_util.js")(__filename, async);
let RunCode = require('../core/runCode.js');
let DeployTracker = require('./deploy_tracker.js');
let CodeGenerator = require('./code_generator.js');
class Deploy {
constructor(options) {
this.web3 = options.web3;
this.contractsManager = options.contractsManager;
this.logger = options.logger;
this.events = options.events;
this.env = options.env;
this.chainConfig = options.chainConfig;
this.plugins = options.plugins;
this.gasLimit = options.gasLimit;
const self = this;
this.events.setCommandHandler('setDashboardState', () => {
self.events.emit('contractsState', self.contractsManager.contractsState());
});
self.events.setCommandHandler("contracts:contract", (contractName, cb) => {
cb(self.contractsManager.getContract(contractName));
});
self.events.setCommandHandler("contracts:all", (contractName, cb) => {
let contracts = self.contractsManager.listContracts();
let results = {};
for (let className in contracts) {
let contract = contracts[className];
results[className] = {
name: contract.className,
deploy: contract.deploy,
error: contract.error,
address: contract.deployedAddress
};
}
cb(results);
});
let plugin = this.plugins.createPlugin('deployment', {});
plugin.registerAPICall(
'get',
'/embark/contract/:contractName',
(req, res) => {
self.events.request('contracts:contract', req.params.contractName, res.send.bind(res));
}
);
plugin.registerAPICall(
'get',
'/embark/contracts',
(req, res) => {
self.events.request('contracts:all', null, res.send.bind(res));
}
);
}
initTracker(cb) {
this.deployTracker = new DeployTracker({
logger: this.logger, chainConfig: this.chainConfig, web3: this.web3, env: this.env
}, cb);
}
determineArguments(suppliedArgs, contract) {
let realArgs = [], l, arg, contractName, referedContract;
let args = suppliedArgs;
if (!Array.isArray(args)) {
args = [];
let abi = contract.abiDefinition.find((abi) => abi.type === 'constructor');
for (let input of abi.inputs) {
let inputValue = suppliedArgs[input.name];
if (!inputValue) {
this.logger.error(input.name + " has not been defined for " + contract.className + " constructor");
}
args.push(inputValue || "");
}
}
for (l = 0; l < args.length; l++) {
arg = args[l];
if (arg[0] === "$") {
contractName = arg.substr(1);
referedContract = this.contractsManager.getContract(contractName);
realArgs.push(referedContract.deployedAddress);
} else if (Array.isArray(arg)) {
let subRealArgs = [];
for (let sub_arg of arg) {
if (sub_arg[0] === "$") {
contractName = sub_arg.substr(1);
referedContract = this.contractsManager.getContract(contractName);
subRealArgs.push(referedContract.deployedAddress);
} else {
subRealArgs.push(sub_arg);
}
}
realArgs.push(subRealArgs);
} else {
realArgs.push(arg);
}
}
return realArgs;
}
checkAndDeployContract(contract, params, callback) {
let self = this;
let realArgs;
contract.error = false;
if (contract.deploy === false) {
self.events.emit('contractsState', self.contractsManager.contractsState());
return callback();
}
realArgs = self.determineArguments(params || contract.args, contract);
if (contract.address !== undefined) {
try {
this.web3.utils.toChecksumAddress(contract.address);
} catch(e) {
self.logger.error("error deploying " + contract.className);
self.logger.error(e.message);
contract.error = e.message;
self.events.emit('contractsState', self.contractsManager.contractsState());
return callback(e.message);
}
contract.deployedAddress = contract.address;
self.logger.info(contract.className.bold.cyan + " already deployed at ".green + contract.address.bold.cyan);
if (this.deployTracker) {
self.deployTracker.trackContract(contract.className, contract.realRuntimeBytecode, realArgs, contract.address);
self.deployTracker.save();
}
self.events.emit('contractsState', self.contractsManager.contractsState());
return callback();
}
if (!this.deployTracker) {
return self.contractToDeploy(contract, params, callback);
}
let trackedContract = self.deployTracker.getContract(contract.className, contract.realRuntimeBytecode, realArgs);
if (!trackedContract) {
return self.contractToDeploy(contract, params, callback);
}
this.web3.eth.getCode(trackedContract.address, function(_getCodeErr, codeInChain) {
if (codeInChain !== "0x") {
self.contractAlreadyDeployed(contract, trackedContract, callback);
} else {
self.contractToDeploy(contract, params, callback);
}
});
}
contractAlreadyDeployed(contract, trackedContract, callback) {
const self = this;
self.logger.info(contract.className.bold.cyan + " already deployed at ".green + trackedContract.address.bold.cyan);
contract.deployedAddress = trackedContract.address;
self.events.emit('contractsState', self.contractsManager.contractsState());
// always run contractCode so other functionality like 'afterDeploy' can also work
let codeGenerator = new CodeGenerator({contractsManager: self.contractsManager});
let contractCode = codeGenerator.generateContractCode(contract, self.gasLimit);
RunCode.doEval(contractCode, self.web3);
return callback();
}
contractToDeploy(contract, params, callback) {
const self = this;
let realArgs = self.determineArguments(params || contract.args, contract);
this.deployContract(contract, realArgs, function (err, address) {
if (err) {
return callback(new Error(err));
}
self.deployTracker.trackContract(contract.className, contract.realRuntimeBytecode, realArgs, address);
self.deployTracker.save();
self.events.emit('contractsState', self.contractsManager.contractsState());
// always run contractCode so other functionality like 'afterDeploy' can also work
let codeGenerator = new CodeGenerator({contractsManager: self.contractsManager});
let contractCode = codeGenerator.generateContractCode(contract, self.gasLimit);
RunCode.doEval(contractCode, self.web3);
if (contract.onDeploy !== undefined) {
self.logger.info('executing onDeploy commands');
let contractCode = codeGenerator.generateContractCode(contract, self.gasLimit);
RunCode.doEval(contractCode, self.web3);
let withErrors = false;
let regex = /\$\w+/g;
let onDeployCode = contract.onDeploy.map((cmd) => {
let realCmd = cmd.replace(regex, (match) => {
let referedContractName = match.slice(1);
let referedContract = self.contractsManager.getContract(referedContractName);
if (!referedContract) {
self.logger.error('error executing onDeploy for ' + contract.className);
self.logger.error(referedContractName + ' does not exist');
self.logger.error("error running onDeploy: " + cmd);
withErrors = true;
return;
}
if (referedContract && referedContract.deploy === false) {
self.logger.error('error executing onDeploy for ' + contract.className);
self.logger.error(referedContractName + " exists but has been set to not deploy");
self.logger.error("error running onDeploy: " + cmd);
withErrors = true;
return;
}
if (referedContract && !referedContract.deployedAddress) {
self.logger.error('error executing onDeploy for ' + contract.className);
self.logger.error("couldn't find a valid address for " + referedContractName + ". has it been deployed?");
self.logger.error("error running onDeploy: " + cmd);
withErrors = true;
return;
}
return referedContract.deployedAddress;
});
return realCmd;
});
if (withErrors) {
contract.error = "onDeployCmdError";
return callback(new Error("error running onDeploy"));
}
// TODO: convert to for to avoid repeated callback
for(let cmd of onDeployCode) {
self.logger.info("executing: " + cmd);
try {
RunCode.doEval(cmd, self.web3);
} catch(e) {
if (e.message.indexOf("invalid opcode") >= 0) {
self.logger.error('the transaction was rejected; this usually happens due to a throw or a require, it can also happen due to an invalid operation');
}
return callback(new Error(e));
}
}
}
callback();
});
}
deployContract(contract, params, callback) {
let self = this;
let accounts = [];
let contractParams = (params || contract.args).slice();
let contractCode = contract.code;
let deploymentAccount = self.web3.eth.defaultAccount;
let deployObject;
async.waterfall([
function getAccounts(next) {
self.web3.eth.getAccounts(function (err, _accounts) {
if (err) {
return next(new Error(err));
}
accounts = _accounts;
// applying deployer account configuration, if any
if (typeof contract.fromIndex == 'number') {
deploymentAccount = accounts[contract.fromIndex];
if (deploymentAccount === undefined) {
return next("error deploying " + contract.className + ": no account found at index " + contract.fromIndex + " check the config");
}
}
if (typeof contract.from == 'string' && typeof contract.fromIndex != 'undefined') {
self.logger.warn('Both "from" and "fromIndex" are defined for contract "'+contract.className+'". Using "from" as deployer account.');
}
if (typeof contract.from == 'string') {
deploymentAccount = contract.from;
}
deploymentAccount = deploymentAccount || accounts[0];
next();
});
},
function doLinking(next) {
// Applying linked contracts
let contractsList = self.contractsManager.listContracts();
for (let contractObj of contractsList) {
let filename = contractObj.filename;
let deployedAddress = contractObj.deployedAddress;
if (deployedAddress) {
deployedAddress = deployedAddress.substr(2);
}
let linkReference = '__' + filename + ":" + contractObj.className;
if (contractCode.indexOf(linkReference) < 0) {
continue;
}
if (linkReference.length > 40) {
return next(new Error(linkReference + " is too long, try reducing the path of the contract (" + filename + ") and/or its name " + contractObj.className));
}
let toReplace = linkReference + "_".repeat(40 - linkReference.length);
if (deployedAddress === undefined) {
let libraryName = contractObj.className;
return next(new Error(contract.className + " needs " + libraryName + " but an address was not found, did you deploy it or configured an address?"));
}
contractCode = contractCode.replace(new RegExp(toReplace, "g"), deployedAddress);
}
// saving code changes back to contract object
contract.code = contractCode;
next();
},
function applyBeforeDeploy(next) {
let beforeDeployPlugins = self.plugins.getPluginsFor('beforeDeploy');
//self.logger.info("applying beforeDeploy plugins...", beforeDeployPlugins.length);
async.eachSeries(beforeDeployPlugins, (plugin, eachPluginCb) => {
self.logger.info("running beforeDeploy plugin " + plugin.name + " .");
// calling each beforeDeploy handler declared by the plugin
async.eachSeries(plugin.beforeDeploy, (beforeDeployFn, eachCb) => {
beforeDeployFn({
embarkDeploy: self,
pluginConfig: plugin.pluginConfig,
deploymentAccount: deploymentAccount,
contract: contract,
callback:
(function(resObj){
contract.code = resObj.contractCode;
eachCb();
})
});
}, () => {
//self.logger.info('All beforeDeploy handlers of the plugin has processed.');
eachPluginCb();
});
}, () => {
//self.logger.info('All beforeDeploy plugins has been processed.');
contractCode = contract.code;
next();
});
},
function createDeployObject(next) {
let contractObject = new self.web3.eth.Contract(contract.abiDefinition);
try {
deployObject = contractObject.deploy({arguments: contractParams, data: "0x" + contractCode});
} catch(e) {
if (e.message.indexOf('Invalid number of parameters for "undefined"') >= 0) {
return next(new Error("attempted to deploy " + contract.className + " without specifying parameters"));
} else {
return next(new Error(e));
}
}
next();
},
function estimateCorrectGas(next) {
if (contract.gas === 'auto') {
return deployObject.estimateGas().then((gasValue) => {
contract.gas = gasValue;
next();
}).catch(next);
}
next();
},
function deployTheContract(next) {
self.logger.info("deploying " + contract.className.bold.cyan + " with ".green + contract.gas + " gas".green);
deployObject.send({
from: deploymentAccount,
gas: contract.gas,
gasPrice: contract.gasPrice
}).on('receipt', function(receipt) {
if (receipt.contractAddress !== undefined) {
self.logger.info(contract.className.bold.cyan + " deployed at ".green + receipt.contractAddress.bold.cyan);
contract.deployedAddress = receipt.contractAddress;
contract.transactionHash = receipt.transactionHash;
self.events.emit('contractsState', self.contractsManager.contractsState());
return next(null, receipt.contractAddress);
}
self.events.emit('contractsState', self.contractsManager.contractsState());
}).on('error', function(error) {
self.events.emit('contractsState', self.contractsManager.contractsState());
return next(new Error("error deploying =" + contract.className + "= due to error: " + error.message));
});
}
], callback);
}
deployAll(done) {
let self = this;
this.logger.info("deploying contracts");
async.eachOfSeries(this.contractsManager.listContracts(),
function (contract, key, callback) {
self.logger.trace(arguments);
self.checkAndDeployContract(contract, null, callback);
},
function (err, _results) {
if (err) {
self.logger.error("error deploying contracts");
self.logger.error(err.message);
self.logger.debug(err.stack);
}
self.logger.info("finished deploying contracts");
self.logger.trace(arguments);
done(err);
}
);
}
}
module.exports = Deploy;

View File

@ -253,7 +253,7 @@ class Engine {
}
webServerService() {
this.registerModule('webserver');
this.registerModule('webserver', {plugins: this.plugins});
}
storageService(_options) {

View File

@ -206,11 +206,7 @@ Plugin.prototype.registerActionForEvent = function(eventName, cb) {
};
Plugin.prototype.registerAPICall = function(method, endpoint, cb) {
this.apiCalls.push({method: method, endpoint: endpoint, cb: cb});
this.pluginTypes.push('apiCalls');
};
Plugin.prototype.registerAPICall = function(method, endpoint, cb) {
console.dir("registerAPICall " + method + " " + endpoint);
this.apiCalls.push({method: method, endpoint: endpoint, cb: cb});
this.pluginTypes.push('apiCalls');
};

View File

@ -46,7 +46,7 @@ Plugins.prototype.createPlugin = function(pluginName, pluginConfig) {
interceptLogs: this.interceptLogs,
events: this.events,
config: this.config,
//plugins: this,
plugins: this.plugins,
isInternal: true,
context: this.context
});
@ -67,7 +67,7 @@ Plugins.prototype.loadInternalPlugin = function(pluginName, pluginConfig) {
interceptLogs: this.interceptLogs,
events: this.events,
config: this.config,
//plugins: this.plugins,
plugins: this.plugins,
isInternal: true,
context: this.context,
env: this.env
@ -89,6 +89,7 @@ Plugins.prototype.loadPlugin = function(pluginName, pluginConfig) {
interceptLogs: this.interceptLogs,
events: this.events,
config: this.config,
plugins: this.plugins,
isInternal: false,
context: this.context
});

View File

@ -7,7 +7,7 @@ class WebServer {
this.embark = embark;
this.logger = embark.logger;
this.events = embark.events;
this.plugins = embark.plugins;
this.plugins = options.plugins;
this.webServerConfig = embark.config.webServerConfig;
if (!this.webServerConfig.enabled) {
return;

View File

@ -39,7 +39,9 @@ class Server {
expressWebSocket(app);
let apiCalls = self.plugins.getPluginsProperty("apiCalls", "apiCalls");
console.dir(apiCalls);
for (let apiCall of apiCalls) {
console.dir("adding " + apiCall.method + " " + apiCall.endpoint);
app[apiCall.method].apply(app, [apiCall.endpoint, apiCall.cb]);
}
@ -49,8 +51,8 @@ class Server {
app.listen(this.port);
this.logger.info(__("webserver available at") + " " + ("http://" + this.hostname + ":" + this.port).bold.underline.green);
this.server.listen(this.port, this.hostname);
//this.logger.info(__("webserver available at") + " " + ("http://" + this.hostname + ":" + this.port).bold.underline.green);
//this.server.listen(this.port, this.hostname);
//this.server = http.createServer(function onRequest(req, res) {
// serve(req, res, finalhandler(req, res));

View File

@ -1,214 +0,0 @@
{
"0x44470396e7e576b12f96d929c1555b2404c47e48bf0232a026b43cebe97dec41": {
"contracts": {
"0x79f903ab722af0e1fec06f910aa64dc71fd3023e232a946b35432f757d951bc0": {
"name": "AlreadyDeployedToken",
"address": "0xece374063fe5cc7efbaca0a498477cada94e5ad6"
},
"0x43a7fdb062a49169e579493c0404cac3eb7c7e35144853e801081fc6364398c3": {
"name": "Assert",
"address": "0x603742BbA290F2C151F6c22E14655B8BAd0e8D59"
},
"0x45b875328c08f3f01de18f3a4f42ae9917cc47b0d284d8eef1ed46b0593540ae": {
"name": "ContractArgs",
"address": "0x86c0B5eBb9759c1445B9d094447DBfd60115f0AA"
},
"0x43e7107e99a2be83020800a2278a01673572a3aa69c48580361b848e989c509b": {
"name": "ZAMyLib2",
"address": "0x1d5cE6aC12614536B87A5A1c9a3292062Ea06e81"
},
"0x263ad11c8ac793bd948abc51ed63bf456ae958deb8c09413250d312732a479da": {
"name": "Test2",
"address": "0xF327C0B8df4e94b8600B2d7636bf89011d9d60ca"
},
"0x21ec9fef260b27aeb3220343703c4e9754a312c6be64dc09170c322302ae438f": {
"name": "MyToken2",
"address": "0x71e61bAaA285Aa2e739E0d6583D83587316443d8"
},
"0xc10f570bb3ab32a609d2406d7d81994a6f4fabda7f7cd2c3a4df44934d6502f6": {
"name": "SimpleStorage",
"address": "0xb23aADcD5d9514D668808043b1Fe0c64342D14f1"
},
"0x8c51f8f40151d760ae5ae94ea9bb8bd16ad9120c12d2d844cb6047fea6c70485": {
"name": "SomeContract",
"address": "0xA0aC6E4Eea8534228c512F2e82e47e2A66Af5aFa"
},
"0x44e732146c5700a2e4cead0a5cd5d94047fbf6b5149ab7d7814fc874d66d4649": {
"name": "MyToken",
"address": "0x6eDB84344Ff5D7Dd19F0139D7B49a1A45786fa16"
},
"0xa5fec182f96887e8f82e36ad2ebbea945f26e5c96dcdc66977247365f9045899": {
"name": "ZAMyLib",
"address": "0xEA88201867c9091B6b39704398b68A9a16081F9A"
},
"0xcbb235f7fb59ae45ac86c7109080d34dcf60d72ce334a1b5f896fd871e216867": {
"name": "Test",
"address": "0x1756d6F67E56EA46371caCb70174a761187B377f"
},
"0xa658afee70f526922ded48e6c4e972b4eadbe096fd7d848ee33c71545e767b28": {
"name": "AnotherStorage",
"address": "0xF53D45B4A90518561A3604B888186ea4BAaf30FE"
}
},
"name": "development"
},
"0xab7af432aa30a4c3cc4b5e4b380b3dfc9670056beea9624273af6293068b703c": {
"contracts": {
"0x79f903ab722af0e1fec06f910aa64dc71fd3023e232a946b35432f757d951bc0": {
"name": "AlreadyDeployedToken",
"address": "0xece374063fe5cc7efbaca0a498477cada94e5ad6"
},
"0x43a7fdb062a49169e579493c0404cac3eb7c7e35144853e801081fc6364398c3": {
"name": "Assert",
"address": "0x486898123042a7C5297EDcC059307E2ce2E2a755"
},
"0x45b875328c08f3f01de18f3a4f42ae9917cc47b0d284d8eef1ed46b0593540ae": {
"name": "ContractArgs",
"address": "0xA3784bF05EDceA82c43d934fF1f69668bb480206"
},
"0x43e7107e99a2be83020800a2278a01673572a3aa69c48580361b848e989c509b": {
"name": "ZAMyLib2",
"address": "0x038bD7B50E1676BBE916D802B34483367b89d5A5"
},
"0x263ad11c8ac793bd948abc51ed63bf456ae958deb8c09413250d312732a479da": {
"name": "Test2",
"address": "0x70655f78ba756fDe610ccd71a489D05F1487abd4"
},
"0x21ec9fef260b27aeb3220343703c4e9754a312c6be64dc09170c322302ae438f": {
"name": "MyToken2",
"address": "0x4d470ae2E6ACd291e034428D4C75Ec10d3E35b7B"
},
"0xc10f570bb3ab32a609d2406d7d81994a6f4fabda7f7cd2c3a4df44934d6502f6": {
"name": "SimpleStorage",
"address": "0x820dCed2C11157afCD0D88ABE3c1d7563347bFE5"
},
"0x4114b267193ddc39ff963fac8a55b0a123b6ed9fe1ccd2e5e20685c8f54aad5f": {
"name": "SomeContract",
"address": "0xeAE6c9bEd7d36A4a0ee3c4011175B0cb6228B51F"
},
"0x44e732146c5700a2e4cead0a5cd5d94047fbf6b5149ab7d7814fc874d66d4649": {
"name": "MyToken",
"address": "0x30f44d439A85F2a26402a317C5ab67FB38ff1295"
},
"0xa5fec182f96887e8f82e36ad2ebbea945f26e5c96dcdc66977247365f9045899": {
"name": "ZAMyLib",
"address": "0x3e006D9FeA9323C45Ed6187Cc617231cee76Af2A"
},
"0xcbb235f7fb59ae45ac86c7109080d34dcf60d72ce334a1b5f896fd871e216867": {
"name": "Test",
"address": "0x405fDAC5Cd5EEaa6693d93B1c146571aFE349F87"
},
"0x6e1b201afde90d2671daffd88a6d2e4646ec0269fa8034e88098a8af8b30c2fd": {
"name": "AnotherStorage",
"address": "0xf20d0bc94bf713833Ab3430EbA8C9eEE0FCbAcdD"
}
},
"name": "development"
},
"0xdb731f3622ef37b4da8db36903de029220dba74c41185f8429f916058b86559f": {
"contracts": {
"0x79f903ab722af0e1fec06f910aa64dc71fd3023e232a946b35432f757d951bc0": {
"name": "AlreadyDeployedToken",
"address": "0xece374063fe5cc7efbaca0a498477cada94e5ad6"
},
"0x43a7fdb062a49169e579493c0404cac3eb7c7e35144853e801081fc6364398c3": {
"name": "Assert",
"address": "0x8aF50FE991B86628623F00727FfA316EA8851EC9"
},
"0x45b875328c08f3f01de18f3a4f42ae9917cc47b0d284d8eef1ed46b0593540ae": {
"name": "ContractArgs",
"address": "0x578E2090037f653c2273D2BfC9C9Acb90D47Ce50"
},
"0x43e7107e99a2be83020800a2278a01673572a3aa69c48580361b848e989c509b": {
"name": "ZAMyLib2",
"address": "0xD62F8122D8bba770d05234651Caa7395db5A6468"
},
"0x263ad11c8ac793bd948abc51ed63bf456ae958deb8c09413250d312732a479da": {
"name": "Test2",
"address": "0xBE14DD5710e18f4F99a7d332d74Df76195280e0F"
},
"0x21ec9fef260b27aeb3220343703c4e9754a312c6be64dc09170c322302ae438f": {
"name": "MyToken2",
"address": "0x902D67fE4d882AD1FE9A0Bee721Ab9AdDE2b8eE8"
},
"0xc10f570bb3ab32a609d2406d7d81994a6f4fabda7f7cd2c3a4df44934d6502f6": {
"name": "SimpleStorage",
"address": "0x24C8308222C7F07443598F04C43B18566e4345A1"
},
"0x0a7375ffd1e04935d0df9700f9283ed7ae8c6c8349603bee0d4d9844d992a49f": {
"name": "SomeContract",
"address": "0xA345C97090893a781B3C7184e0fa59190B73D217"
},
"0x44e732146c5700a2e4cead0a5cd5d94047fbf6b5149ab7d7814fc874d66d4649": {
"name": "MyToken",
"address": "0x4389697A4f51c8B40F88abA1acAfD16158Bfe101"
},
"0xa5fec182f96887e8f82e36ad2ebbea945f26e5c96dcdc66977247365f9045899": {
"name": "ZAMyLib",
"address": "0x872DabcBe8908a1a4AD9736480d10C7187245ee9"
},
"0xcbb235f7fb59ae45ac86c7109080d34dcf60d72ce334a1b5f896fd871e216867": {
"name": "Test",
"address": "0xaf93Cae503337D1141b83Cc9c8c5d1f0cE595941"
},
"0xf913173dac77644f96aad4d7d70a3695e3a08d26580ab66d01bcd2847083d61e": {
"name": "AnotherStorage",
"address": "0x309000f4C73Db843e39f1fB68935e6050665fd67"
}
},
"name": "development"
},
"0x8810ba015cd8d859c33a98c7ad2d59875f225ec37de8979d733182bd0fdcd144": {
"contracts": {
"0x79f903ab722af0e1fec06f910aa64dc71fd3023e232a946b35432f757d951bc0": {
"name": "AlreadyDeployedToken",
"address": "0xece374063fe5cc7efbaca0a498477cada94e5ad6"
},
"0x43a7fdb062a49169e579493c0404cac3eb7c7e35144853e801081fc6364398c3": {
"name": "Assert",
"address": "0x3A231c319F098e1082e2AAfE1fc696e41530692A"
},
"0x1d9e765872c3e071d3bc5c53f07ec9f2eccee85453a388f0ee33951461826f35": {
"name": "ContractArgs",
"address": "0xD4925BC853174E4F33085CcB148e13dfF9C4C23e"
},
"0x43e7107e99a2be83020800a2278a01673572a3aa69c48580361b848e989c509b": {
"name": "ZAMyLib2",
"address": "0x2A469382E0f44284b876E2993a7Fde18B0075201"
},
"0x263ad11c8ac793bd948abc51ed63bf456ae958deb8c09413250d312732a479da": {
"name": "Test2",
"address": "0x234d433f347F5024dFCd519410EF46D72F07CE62"
},
"0x21ec9fef260b27aeb3220343703c4e9754a312c6be64dc09170c322302ae438f": {
"name": "MyToken2",
"address": "0xc5BB2ac5aEd760a715C27a5BFcDD31fb7fa317cd"
},
"0xc10f570bb3ab32a609d2406d7d81994a6f4fabda7f7cd2c3a4df44934d6502f6": {
"name": "SimpleStorage",
"address": "0x27d3FC50eEF0Df0C1187b54170E1920a19BcFf42"
},
"0xc1bd165fa27a7c02528fa5315caaea854120275f409186a509826b1910939ae8": {
"name": "SomeContract",
"address": "0x9598a5f8586Bf4909D8DC07Bc6Ece3b15d52B5B0"
},
"0x44e732146c5700a2e4cead0a5cd5d94047fbf6b5149ab7d7814fc874d66d4649": {
"name": "MyToken",
"address": "0x092D8DbCEd9e47abAaa6d16028aAED249886891d"
},
"0xa5fec182f96887e8f82e36ad2ebbea945f26e5c96dcdc66977247365f9045899": {
"name": "ZAMyLib",
"address": "0xE668B1A8912FFc02408879875d4ba7B1Dec68921"
},
"0xcbb235f7fb59ae45ac86c7109080d34dcf60d72ce334a1b5f896fd871e216867": {
"name": "Test",
"address": "0xa2485d85CAF8DDba4438bA15F804400E7bB433e6"
},
"0xa417d96d58eacbf61d0f98cba4eeebd307ba3810da3c70d5087668861106b3d6": {
"name": "AnotherStorage",
"address": "0x9EB34472001ffd00d326a0893e1CDa1ff87aaAdB"
}
},
"name": "development"
}
}