mirror of
https://github.com/Instadapp/dsa-connectors-old.git
synced 2024-07-29 22:47:46 +00:00
Refactored mock contract
This commit is contained in:
parent
b7f16e6c86
commit
d2c26192ca
|
@ -7,4 +7,13 @@ interface ERC20 {
|
||||||
function deposit() external payable;
|
function deposit() external payable;
|
||||||
function withdraw(uint) external;
|
function withdraw(uint) external;
|
||||||
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,13 +1,7 @@
|
||||||
pragma solidity ^0.6.0;
|
pragma solidity ^0.6.0;
|
||||||
|
|
||||||
interface MemoryInterface {
|
import { MemoryInterface, EventInterface} from "./interfaces.sol";
|
||||||
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,7 +1,7 @@
|
||||||
pragma solidity ^0.6.0;
|
pragma solidity ^0.6.0;
|
||||||
|
|
||||||
// import files from common directory
|
// import files from common directory
|
||||||
import { ERC20 } from "../common/ERC20.sol";
|
import { ERC20 , MemoryInterface, EventInterface} from "../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