2020-07-31 14:33:21 +00:00
|
|
|
pragma solidity ^0.6.0;
|
|
|
|
pragma experimental ABIEncoderV2;
|
|
|
|
|
|
|
|
import { ConnectOne } from "../connectors/1proto.sol";
|
|
|
|
|
|
|
|
contract MockConnectOne is ConnectOne {
|
|
|
|
address public oneProtoAddr;
|
|
|
|
|
|
|
|
constructor(address _oneProtoAddr) public {
|
|
|
|
oneProtoAddr = _oneProtoAddr;
|
|
|
|
}
|
|
|
|
|
|
|
|
function emitEvent(bytes32 eventCode, bytes memory eventData) override internal {}
|
|
|
|
|
|
|
|
function setUint(uint setId, uint val) override internal {}
|
|
|
|
|
|
|
|
function sub(uint x, uint y) internal override pure returns (uint z) {
|
2020-08-03 07:19:29 +00:00
|
|
|
z = 21 * 10 ** 18;
|
2020-07-31 14:33:21 +00:00
|
|
|
}
|
2020-08-03 07:19:29 +00:00
|
|
|
|
|
|
|
function getOneProtoAddress() internal override view returns (address payable) {
|
|
|
|
return payable(oneProtoAddr);
|
|
|
|
}
|
2020-07-31 14:33:21 +00:00
|
|
|
}
|