mirror of
https://github.com/Instadapp/dsa-connectors-old.git
synced 2024-07-29 22:47:46 +00:00
9ce77c1336
Update MockSynthetix to override getMappingAddr; Update test case for adding and removing pool on mapping;
27 lines
802 B
Solidity
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 {}
|
|
}
|