dsa-connectors-old/contracts/tests/MockSynthetix.sol
Lecky Lao ce11ae6b87 removed constructor from synthetix connector;
overwriting getSynthetixStakingAddr in mock;
comment out everything in migration;
2020-07-12 03:42:59 +10:00

24 lines
685 B
Solidity

pragma solidity ^0.6.0;
import { ConnectSynthetixStaking } from "../connectors/synthetix.sol";
contract MockSynthetixStaking is ConnectSynthetixStaking{
address public synthetixStakingAddr;
constructor(address _synthetixStakingAddr) public {
synthetixStakingAddr = _synthetixStakingAddr;
}
function getSynthetixStakingAddr(address token) override internal returns (address) {
return synthetixStakingAddr;
}
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 {}
}