dsa-connectors-old/contracts/tests/MockSynthetix.sol
Lecky Lao 9ce77c1336 update getMappingAddr with virtual;
Update MockSynthetix to override getMappingAddr;
Update test case for adding and removing pool on mapping;
2020-07-15 00:53:21 +10:00

27 lines
802 B
Solidity

pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
import { ConnectSynthetixStaking } from "../connectors/synthetix.sol";
contract MockSynthetixStaking is ConnectSynthetixStaking{
address public synthetixStakingAddr;
address public instaMappingAddr;
constructor(address _synthetixStakingAddr, address _instaMappingAddr) public {
synthetixStakingAddr = _synthetixStakingAddr;
instaMappingAddr = _instaMappingAddr;
}
function emitEvent(bytes32 eventCode, bytes memory eventData) override internal {}
function getSnxAddr() override internal view returns (address) {
return synthetixStakingAddr;
}
function getMappingAddr() override internal view returns (address) {
return instaMappingAddr;
}
function setUint(uint setId, uint val) override internal {}
}