refactored common import files

This commit is contained in:
Thrilok Kumar 2020-05-03 05:57:07 +05:30
parent 7348e2a276
commit f448507b97
3 changed files with 9 additions and 10 deletions

View File

@ -9,12 +9,3 @@ interface TokenInterface {
function balanceOf(address) external view returns (uint);
}
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,6 +1,13 @@
pragma solidity ^0.6.0;
import "./interfaces.sol";
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;
}
contract Stores {

View File

@ -1,6 +1,7 @@
pragma solidity ^0.6.0;
// import files from common directory
import "../common/interfaces.sol";
import { Stores } from "../common/stores.sol";
import { DSMath } from "../common/math.sol";