2020-06-29 16:15:35 +00:00
|
|
|
const CurveProtocol = artifacts.require("CurveProtocol");
|
2020-07-03 14:43:19 +00:00
|
|
|
const ConnectSBTCCurve = artifacts.require("ConnectSBTCCurve");
|
2020-05-01 16:01:43 +00:00
|
|
|
|
2020-07-03 14:43:19 +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) {
|
2020-06-29 16:15:35 +00:00
|
|
|
deployer.deploy(CurveProtocol);
|
2020-07-03 14:43:19 +00:00
|
|
|
let connectorLength = await connectorInstance.methods.connectorLength().call();
|
|
|
|
deployer.deploy(ConnectSBTCCurve, 1, +connectorLength + 1);
|
2020-05-01 16:01:43 +00:00
|
|
|
};
|