mirror of
https://github.com/Instadapp/dsa-connectors-old.git
synced 2024-07-29 22:47:46 +00:00
refactored common import files
This commit is contained in:
parent
7348e2a276
commit
f448507b97
|
@ -9,12 +9,3 @@ interface TokenInterface {
|
||||||
function balanceOf(address) external view returns (uint);
|
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,13 @@
|
||||||
pragma solidity ^0.6.0;
|
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 {
|
contract Stores {
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
pragma solidity ^0.6.0;
|
pragma solidity ^0.6.0;
|
||||||
|
|
||||||
// import files from common directory
|
// import files from common directory
|
||||||
|
import "../common/interfaces.sol";
|
||||||
import { Stores } from "../common/stores.sol";
|
import { Stores } from "../common/stores.sol";
|
||||||
import { DSMath } from "../common/math.sol";
|
import { DSMath } from "../common/math.sol";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user