dsa-connectors-old/migrations/2_deploy_connector.js
Lecky Lao cdb8bf01eb created Mocks and MockSynthetix;
adding constructor for MockSynthetix and passing mock for synthetix address;
2020-07-10 01:08:08 +10:00

19 lines
873 B
JavaScript

// const CurveProtocol = artifacts.require("CurveProtocol");
// const ConnectSBTCCurve = artifacts.require("ConnectSBTCCurve");
const MockContract = artifacts.require("MockContract");
const MockSynthetixStaking = artifacts.require("MockSynthetixStaking");
// const connectorsABI = require("../test/abi/connectors.json");
// let connectorsAddr = "0xD6A602C01a023B98Ecfb29Df02FBA380d3B21E0c";
// let connectorInstance = new web3.eth.Contract(connectorsABI, connectorsAddr);
module.exports = async function(deployer) {
// deployer.deploy(CurveProtocol);
// let connectorLength = await connectorInstance.methods.connectorLength().call();
deployer.deploy(MockContract).then(function () {
// return deployer.deploy(MockSynthetixStaking, MockContract.address, 1, +connectorLength + 1);
return deployer.deploy(MockSynthetixStaking, MockContract.address);
});
};