mirror of
https://github.com/Instadapp/dsa-connectors-old.git
synced 2024-07-29 22:47:46 +00:00
Refactor mock.sol
This commit is contained in:
parent
c69511c1ad
commit
7ac87add12
10
contracts/common/interfaces.sol
Normal file
10
contracts/common/interfaces.sol
Normal 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;
|
||||
}
|
|
@ -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 {
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user