dsa-connectors-old/migrations/2_deploy_connector.js

13 lines
556 B
JavaScript
Raw Normal View History

const CurveProtocol = artifacts.require("CurveProtocol");
const ConnectSBTCCurve = artifacts.require("ConnectSBTCCurve");
2020-05-01 16:01:43 +00:00
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(ConnectSBTCCurve, 1, +connectorLength + 1);
2020-05-01 16:01:43 +00:00
};