cc-zos
Version:
Command-line interface for the ZeppelinOS smart contract platform
25 lines (19 loc) • 910 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
var _ControllerFor = require('../models/network/ControllerFor');
var _ControllerFor2 = _interopRequireDefault(_ControllerFor);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* Initializes a zOS application or stdlib project for testing, deploying it to the test network,
* along with its standard library (if specified)
* @param txParams optional txParams (from, gas, gasPrice) to use on every transaction
* @param networkFile optional `ZosNetworkFile` object to use, instead of zos.test.json
*/
exports.default = async function (txParams = {}, networkFile = undefined) {
const controller = new _ControllerFor2.default('test', txParams, networkFile);
if (!controller.isLib) await controller.deployLibs();
await controller.push();
return controller.project;
};