Refactor mock.sol

This commit is contained in:
Thrilok Kumar 2020-05-02 22:55:27 +05:30
parent c69511c1ad
commit 7ac87add12
3 changed files with 12 additions and 9 deletions

View File

@ -0,0 +1,10 @@
pragma solidity ^0.6.0;
interface MemoryInterface {
function getUint(uint id) external returns (uint num);
function setUint(uint id, uint val) external;
}
interface EventInterface {
function emitEvent(uint connectorType, uint connectorID, bytes32 eventCode, bytes calldata eventData) external;
}

View File

@ -1,13 +1,6 @@
pragma solidity ^0.6.0;
interface MemoryInterface {
function getUint(uint id) external returns (uint num);
function setUint(uint id, uint val) external;
}
interface EventInterface {
function emitEvent(uint connectorType, uint connectorID, bytes32 eventCode, bytes calldata eventData) external;
}
import "./interfaces.sol";
contract Stores {

View File

@ -1,8 +1,8 @@
pragma solidity ^0.6.0;
// import files from common directory
import { DSMath } from "../common/math.sol";
import { Stores } from "../common/stores.sol";
import { DSMath } from "../common/math.sol";
contract MockProtocol is Stores, DSMath {