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;
22 lines
677 B
Solidity
22 lines
677 B
Solidity
pragma solidity ^0.6.0;
|
|
|
|
import { ConnectSynthetixStaking } from "../connectors/synthetix.sol";
|
|
|
|
contract MockSynthetixStaking is ConnectSynthetixStaking{
|
|
address public synthetixStakingAddr;
|
|
|
|
constructor(address _synthetixStakingAddr) ConnectSynthetixStaking(_synthetixStakingAddr) public {
|
|
synthetixStakingAddr = _synthetixStakingAddr;
|
|
}
|
|
|
|
function getSynthetixStakingAddr(address token) override internal{}
|
|
|
|
function emitEvent(bytes32 eventCode, bytes memory eventData) override internal {}
|
|
|
|
function getSnxAddr() override internal view returns (address) {
|
|
return synthetixStakingAddr;
|
|
}
|
|
|
|
function setUint(uint setId, uint val) override internal {}
|
|
}
|