mirror of
https://github.com/Instadapp/dsa-connectors-old.git
synced 2024-07-29 22:47:46 +00:00
becd0135aa
fixing import for SafeERC20 and IERC20; set up constructor for synthetix connector to set address for staking contract; created MockSynthetix.sol for test; added nomiclabs/buidler; fixed test for SynthetixProtocol.js; adding .gitatributes to highlight solidity on GitHub; adding buidler artefacts and cache to git ignore; adding buidler.config.js;
21 lines
1.0 KiB
JavaScript
21 lines
1.0 KiB
JavaScript
// const CurveProtocol = artifacts.require("CurveProtocol");
|
|
// const ConnectSBTCCurve = artifacts.require("ConnectSBTCCurve");
|
|
const MockContract = artifacts.require("MockContract");
|
|
const MockSynthetixStaking = artifacts.require("MockSynthetixStaking");
|
|
// const ConnectSynthetixStaking = artifacts.require("ConnectSynthetixStaking");
|
|
|
|
// 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(ConnectSynthetixStaking, MockContract.address);
|
|
return deployer.deploy(MockSynthetixStaking, MockContract.address);
|
|
});
|
|
|
|
};
|