2020-05-02 17:25:27 +00:00
|
|
|
pragma solidity ^0.6.0;
|
|
|
|
|
2020-05-03 21:26:10 +00:00
|
|
|
interface TokenInterface {
|
2020-05-05 01:54:10 +00:00
|
|
|
function approve(address, uint256) external;
|
2020-05-03 00:16:30 +00:00
|
|
|
function transfer(address, uint) external;
|
|
|
|
function transferFrom(address, address, uint) external;
|
|
|
|
function deposit() external payable;
|
|
|
|
function withdraw(uint) external;
|
|
|
|
function balanceOf(address) external view returns (uint);
|
2020-05-05 06:05:36 +00:00
|
|
|
function decimals() external view returns (uint);
|
2020-05-03 21:18:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
2020-05-03 09:35:32 +00:00
|
|
|
}
|