2022-03-22 14:58:59 +00:00
|
|
|
//SPDX-License-Identifier: MIT
|
2022-03-12 15:34:42 +00:00
|
|
|
pragma solidity ^0.7.0;
|
2022-06-15 15:24:05 +00:00
|
|
|
pragma abicoder v2;
|
2022-03-12 15:34:42 +00:00
|
|
|
|
|
|
|
interface TokenInterface {
|
|
|
|
function approve(address, uint256) external;
|
|
|
|
|
|
|
|
function transfer(address, uint256) external;
|
|
|
|
|
|
|
|
function transferFrom(
|
|
|
|
address,
|
|
|
|
address,
|
|
|
|
uint256
|
|
|
|
) external;
|
|
|
|
|
|
|
|
function deposit() external payable;
|
|
|
|
|
|
|
|
function withdraw(uint256) external;
|
|
|
|
|
|
|
|
function balanceOf(address) external view returns (uint256);
|
|
|
|
|
|
|
|
function decimals() external view returns (uint256);
|
|
|
|
}
|
|
|
|
|
|
|
|
interface MemoryInterface {
|
|
|
|
function getUint(uint256 id) external returns (uint256 num);
|
|
|
|
|
|
|
|
function setUint(uint256 id, uint256 val) external;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface AccountInterface {
|
|
|
|
function enable(address) external;
|
|
|
|
|
|
|
|
function disable(address) external;
|
|
|
|
|
|
|
|
function isAuth(address) external view returns (bool);
|
2022-06-19 13:54:10 +00:00
|
|
|
|
|
|
|
function cast(
|
|
|
|
string[] calldata _targetNames,
|
|
|
|
bytes[] calldata _datas,
|
|
|
|
address _origin
|
|
|
|
) external payable returns (bytes32[] memory responses);
|
|
|
|
}
|
|
|
|
|
|
|
|
interface ListInterface {
|
|
|
|
function accountID(address) external returns (uint64);
|
2022-03-12 15:34:42 +00:00
|
|
|
}
|
2022-06-15 15:24:05 +00:00
|
|
|
|
|
|
|
interface InstaConnectors {
|
|
|
|
function isConnectors(string[] calldata)
|
|
|
|
external
|
|
|
|
returns (bool, address[] memory);
|
|
|
|
}
|