2020-12-15 18:08:37 +03:00
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
pragma solidity ^0.6.0;
|
|
|
|
|
|
|
|
interface ITornadoInstance {
|
2021-03-16 23:51:35 +03:00
|
|
|
function token() external view returns (address);
|
2021-03-11 20:12:11 +03:00
|
|
|
|
2021-03-16 23:51:35 +03:00
|
|
|
function denomination() external view returns (uint256);
|
2021-03-11 20:12:11 +03:00
|
|
|
|
2020-12-15 18:08:37 +03: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;
|
|
|
|
}
|