tornado-anonymity-mining/contracts/interfaces/ITornadoInstance.sol

22 lines
478 B
Solidity
Raw Normal View History

2020-12-15 16:08:37 +01:00
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
2020-12-15 16:08:37 +01:00
interface ITornadoInstance {
2021-03-16 21:51:35 +01:00
function token() external view returns (address);
2021-03-11 18:12:11 +01:00
2021-03-16 21:51:35 +01:00
function denomination() external view returns (uint256);
2021-03-11 18:12:11 +01:00
2020-12-15 16:08:37 +01:00
function deposit(bytes32 commitment) external payable;
function withdraw(
bytes calldata proof,
bytes32 root,
bytes32 nullifierHash,
address payable recipient,
address payable relayer,
uint256 fee,
uint256 refund
) external payable;
}