cic-contracts/Faucet.sol

19 lines
734 B
Solidity
Raw Normal View History

2020-12-11 07:48:54 +01:00
pragma solidity >=0.6.12;
// Author: Louis Holbrook <dev@holbrook.no> 0826EDA1702D1E87C6E2875121D2E7BB88C2A746
// SPDX-License-Identifier: GPL-3.0-or-later
2021-01-02 08:49:32 +01:00
// File-version: 4
2020-12-11 07:48:54 +01:00
2020-12-11 10:20:56 +01:00
interface Faucet {
2020-12-11 07:48:54 +01:00
event FaucetUsed(address indexed _recipient, address indexed _token, uint256 _value);
event FaucetFail(address indexed _recipient, address indexed _token, uint256 _value);
2021-01-02 08:49:32 +01:00
event FaucetAmountChange(address indexed _token, uint256 _value);
2020-12-11 07:48:54 +01:00
2020-12-11 10:20:56 +01:00
function amount() external view returns (uint256);
function token() external view returns (address);
function setAmount(uint256 _amount) external returns (bool);
function giveTo(address _recipient) external returns (bool);
2021-01-02 08:49:32 +01:00
function cooldown(address _recipient) external return (uint256);
2020-12-11 07:48:54 +01:00
}