编译器
0.8.27+commit.40a35a09
文件 1 的 16:Address.sol
pragma solidity ^0.8.20;
library Address {
error AddressInsufficientBalance(address account);
error AddressEmptyCode(address target);
error FailedInnerCall();
function sendValue(address payable recipient, uint256 amount) internal {
if (address(this).balance < amount) {
revert AddressInsufficientBalance(address(this));
}
(bool success, ) = recipient.call{value: amount}("");
if (!success) {
revert FailedInnerCall();
}
}
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0);
}
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
if (address(this).balance < value) {
revert AddressInsufficientBalance(address(this));
}
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata);
}
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata
) internal view returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
if (returndata.length == 0 && target.code.length == 0) {
revert AddressEmptyCode(target);
}
return returndata;
}
}
function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
return returndata;
}
}
function _revert(bytes memory returndata) private pure {
if (returndata.length > 0) {
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert FailedInnerCall();
}
}
}
文件 2 的 16:Context.sol
pragma solidity ^0.8.20;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}
文件 3 的 16:EurcDepositExtension.sol
pragma solidity 0.8.27;
import {ITokenPairs} from "./interfaces/ITokenPairs.sol";
import {IMintedBurnableERC20} from "./interfaces/IMintedBurnableERC20.sol";
abstract contract EurcDepositExtension {
address private constant EURC_ADDRESS_L1 = 0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c;
bytes32 public constant EURC_BURN_PREPARER_ROLE = keccak256("EURC_BURN_PREPARER_ROLE");
ITokenPairs private immutable tokenPairs;
uint256 private eurcToBurn;
address private eurcBurner;
constructor(address _tokenPairs) {
require(_tokenPairs != address(0), "TokenPairs not set");
tokenPairs = ITokenPairs(_tokenPairs);
}
function burnLockedEURC() external {
require(msg.sender == eurcBurner, "Not EURC burner");
uint256 amount = eurcToBurn;
eurcToBurn = 0;
IMintedBurnableERC20(EURC_ADDRESS_L1).burn(amount);
}
function prepareBurningEURC(address burner, uint256 amount) external {
require(tokenPairs.originalToMinted(EURC_ADDRESS_L1) != address(0), "EURC not registered yet");
require(tokenPairs.originalToMintedTerminable(EURC_ADDRESS_L1) == address(0), "EURC not terminated");
require(tokenPairs.hasRole(EURC_BURN_PREPARER_ROLE, msg.sender), "Not burn preparer");
eurcBurner = burner;
eurcToBurn = amount;
}
}
文件 4 的 16:IERC20.sol
pragma solidity ^0.8.20;
interface IERC20 {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address to, uint256 value) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 value) external returns (bool);
function transferFrom(address from, address to, uint256 value) external returns (bool);
}
文件 5 的 16:IERC20Permit.sol
pragma solidity ^0.8.20;
interface IERC20Permit {
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
function nonces(address owner) external view returns (uint256);
function DOMAIN_SEPARATOR() external view returns (bytes32);
}
文件 6 的 16:IMintedBurnableERC20.sol
pragma solidity 0.8.27;
interface IMintedBurnableERC20 {
function mint(address account, uint256 amount) external returns (bool);
function burn(uint256 value) external;
function burnFrom(address account, uint256 value) external;
}
文件 7 的 16:IProofVerifier.sol
pragma solidity 0.8.27;
interface IProofVerifier {
function verifyProof(address contractAddress, bytes32 slotIndex, bytes32 expectedValue, bytes32 stateRoot, bytes calldata proof) external view;
}
文件 8 的 16:IProvingContract.sol
pragma solidity 0.8.27;
interface IProvingContract {
function proofVerifier() external view returns(address);
function setProofVerifier(address proofVerifier) external;
function setExitAdministrator(address exitAdministrator) external;
}
文件 9 的 16:IStateOracle.sol
pragma solidity 0.8.27;
interface IStateOracle {
function lastState() external view returns (bytes32);
function lastBlockNum() external view returns (uint256);
function lastUpdateTime() external view returns (uint256);
function chainId() external view returns (uint256);
function update(uint256 blockNum, bytes32 stateRoot) external;
}
文件 10 的 16:ITokenDeposit.sol
pragma solidity 0.8.27;
interface ITokenDeposit {
function withdrawWhileDead(address recipient, address token, uint256 amount) external;
function fetchDeadStatus() external returns (bool);
function deadState() external view returns (bytes32);
function proofVerifier() external view returns (address);
function tokenPairs() external view returns (address);
}
文件 11 的 16:ITokenPairs.sol
pragma solidity 0.8.27;
interface ITokenPairs {
function originalToMinted(address) external view returns (address);
function originalToMintedTerminable(address) external view returns (address);
function mintedToOriginal(address) external view returns (address);
function hasRole(bytes32 role, address account) external view returns (bool);
}
文件 12 的 16:Ownable.sol
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
abstract contract Ownable is Context {
address private _owner;
error OwnableUnauthorizedAccount(address account);
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
modifier onlyOwner() {
_checkOwner();
_;
}
function owner() public view virtual returns (address) {
return _owner;
}
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
文件 13 的 16:SafeERC20.sol
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../utils/Address.sol";
library SafeERC20 {
using Address for address;
error SafeERC20FailedOperation(address token);
error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
}
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
forceApprove(token, spender, oldAllowance + value);
}
function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
unchecked {
uint256 currentAllowance = token.allowance(address(this), spender);
if (currentAllowance < requestedDecrease) {
revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
}
forceApprove(token, spender, currentAllowance - requestedDecrease);
}
}
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
_callOptionalReturn(token, approvalCall);
}
}
function _callOptionalReturn(IERC20 token, bytes memory data) private {
bytes memory returndata = address(token).functionCall(data);
if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
revert SafeERC20FailedOperation(address(token));
}
}
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
(bool success, bytes memory returndata) = address(token).call(data);
return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
}
}
文件 14 的 16:TokenDeposit.sol
pragma solidity 0.8.27;
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {ITokenDeposit} from "./interfaces/ITokenDeposit.sol";
import {ITokenPairs} from "./interfaces/ITokenPairs.sol";
import {IProofVerifier} from "./interfaces/IProofVerifier.sol";
import {IStateOracle} from "./interfaces/IStateOracle.sol";
import {IProvingContract} from "./interfaces/IProvingContract.sol";
import {UsdcDepositExtension} from "./UsdcDepositExtension.sol";
import {EurcDepositExtension} from "./EurcDepositExtension.sol";
import {UsdtDepositExtension} from "./UsdtDepositExtension.sol";
using SafeERC20 for IERC20;
contract TokenDeposit is IProvingContract, ITokenDeposit, Ownable, UsdcDepositExtension, EurcDepositExtension, UsdtDepositExtension {
mapping (uint256 depositId => bytes32 senderTokenAmount) public deposits;
mapping (uint256 withdrawalId => bool isClaimed) public claims;
address public override(ITokenDeposit, IProvingContract) proofVerifier;
address public exitAdministrator;
address public immutable bridge;
address public immutable tokenPairs;
address public immutable stateOracle;
bytes32 public deadState;
uint256 private constant TIME_UNTIL_DEAD = 200 days;
uint256 private constant TIME_UNTIL_OFFLINE = 24 hours;
event Deposit(uint256 indexed id, address indexed owner, address token, uint256 amount);
event Claim(uint256 id, address indexed owner, address token, uint256 amount);
event WithdrawnWhileDead(address indexed owner, address token, uint256 amount);
event CancelledWhileDead(uint256 id, address indexed owner, address token, uint256 amount);
event ProofVerifierSet(address proofVerifier);
event BridgeDied();
constructor(address _proofVerifier, address _bridge, address _tokenPairs, address _stateOracle, address _ownedBy)
Ownable(_ownedBy) UsdcDepositExtension(_tokenPairs) EurcDepositExtension(_tokenPairs) UsdtDepositExtension(_tokenPairs) {
require(_proofVerifier != address(0), "ProofVerifier not set");
require(_bridge != address(0), "Bridge address not set");
require(_tokenPairs != address(0), "TokenPairs not set");
require(_stateOracle != address(0), "StateOracle not set");
proofVerifier = _proofVerifier;
bridge = _bridge;
tokenPairs = _tokenPairs;
stateOracle = _stateOracle;
}
function deposit(uint96 uid, address token, uint256 amount) external {
uint256 id = userOperationId(msg.sender, uid);
require(deposits[id] == 0, "Deposit id is already used");
require(ITokenPairs(tokenPairs).originalToMintedTerminable(token) != address(0), "Not supported token");
require(isOnline(), "Bridge is offline");
uint256 balanceBefore = IERC20(token).balanceOf(address(this));
IERC20(token).safeTransferFrom(msg.sender, address(this), amount);
uint256 realAmount = IERC20(token).balanceOf(address(this)) - balanceBefore;
require(realAmount > 0, "No tokens were transferred");
deposits[id] = hash(msg.sender, token, realAmount);
emit Deposit(id, msg.sender, token, realAmount);
}
function claim(uint256 id, address token, uint256 amount, bytes calldata proof) external {
require(claims[id] == false, "Already claimed");
bytes32 expectedHash = hash(msg.sender, token, amount);
IProofVerifier(proofVerifier).verifyProof(bridge, getWithdrawalSlotIndex(id), expectedHash, lastValidState(), proof);
claims[id] = true;
IERC20(token).safeTransfer(msg.sender, amount);
emit Claim(id, msg.sender, token, amount);
}
function withdrawWhileDead(address recipient, address token, uint256 amount) external {
require(recipient != address(0), "Recipient is zero");
require(msg.sender == exitAdministrator, "Not exit administrator");
require(fetchDeadStatus(), "Bridge is not dead");
IERC20(token).safeTransfer(recipient, amount);
emit WithdrawnWhileDead(recipient, token, amount);
}
function cancelDepositWhileDead(uint256 id, address token, uint256 amount, bytes calldata proof) external {
require(deposits[id] == hash(msg.sender, token, amount), "No deposit to cancel");
require(fetchDeadStatus(), "Bridge is not dead");
IProofVerifier(proofVerifier).verifyProof(bridge, getClaimSlotIndex(id), bytes32(0), lastValidState(), proof);
delete deposits[id];
IERC20(token).safeTransfer(msg.sender, amount);
emit CancelledWhileDead(id, msg.sender, token, amount);
}
function getWithdrawalSlotIndex(uint256 id) pure public returns (bytes32) {
return keccak256(abi.encode(id, uint8(1)));
}
function hash(address sender, address token, uint256 amount) pure public returns (bytes32) {
return keccak256(abi.encode(sender, token, amount));
}
function userOperationId(address sender, uint96 uid) pure public returns (uint256) {
return (uint256(uint160(sender)) << 96) + uint256(uid);
}
function getClaimSlotIndex(uint256 id) pure public returns (bytes32) {
return keccak256(abi.encode(id, uint8(2)));
}
function fetchDeadStatus() public returns (bool) {
if (deadState != 0) {
return true;
}
if (exitAdministrator == address(0)) {
return false;
}
uint256 lastUpdateTime = IStateOracle(stateOracle).lastUpdateTime();
if (lastUpdateTime != 0 && lastUpdateTime < block.timestamp - TIME_UNTIL_DEAD) {
deadState = IStateOracle(stateOracle).lastState();
emit BridgeDied();
return true;
}
return false;
}
function isOnline() private view returns (bool) {
if (deadState != 0) {
return false;
}
return IStateOracle(stateOracle).lastUpdateTime() >= block.timestamp - TIME_UNTIL_OFFLINE;
}
function lastValidState() private view returns (bytes32) {
if (deadState != 0) {
return deadState;
}
return IStateOracle(stateOracle).lastState();
}
function setProofVerifier(address _proofVerifier) external onlyOwner {
proofVerifier = _proofVerifier;
emit ProofVerifierSet(_proofVerifier);
}
function setExitAdministrator(address _exitAdministrator) external onlyOwner {
exitAdministrator = _exitAdministrator;
}
}
文件 15 的 16:UsdcDepositExtension.sol
pragma solidity 0.8.27;
import {ITokenPairs} from "./interfaces/ITokenPairs.sol";
import {IMintedBurnableERC20} from "./interfaces/IMintedBurnableERC20.sol";
abstract contract UsdcDepositExtension {
address private constant USDC_ADDRESS_L1 = 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48;
bytes32 public constant USDC_BURN_PREPARER_ROLE = keccak256("USDC_BURN_PREPARER_ROLE");
ITokenPairs private immutable tokenPairs;
uint256 private usdcToBurn;
address private usdcBurner;
constructor(address _tokenPairs) {
require(_tokenPairs != address(0), "TokenPairs not set");
tokenPairs = ITokenPairs(_tokenPairs);
}
function burnLockedUSDC() external {
require(msg.sender == usdcBurner, "Not USDC burner");
uint256 amount = usdcToBurn;
usdcToBurn = 0;
IMintedBurnableERC20(USDC_ADDRESS_L1).burn(amount);
}
function prepareBurningUSDC(address burner, uint256 amount) external {
require(tokenPairs.originalToMinted(USDC_ADDRESS_L1) != address(0), "USDC not registered yet");
require(tokenPairs.originalToMintedTerminable(USDC_ADDRESS_L1) == address(0), "USDC not terminated");
require(tokenPairs.hasRole(USDC_BURN_PREPARER_ROLE, msg.sender), "Not burn preparer");
usdcBurner = burner;
usdcToBurn = amount;
}
}
文件 16 的 16:UsdtDepositExtension.sol
pragma solidity 0.8.27;
import {ITokenPairs} from "./interfaces/ITokenPairs.sol";
import {IMintedBurnableERC20} from "./interfaces/IMintedBurnableERC20.sol";
abstract contract UsdtDepositExtension {
address private constant USDT_ADDRESS_L1 = 0xdAC17F958D2ee523a2206206994597C13D831ec7;
bytes32 public constant USDT_BURN_PREPARER_ROLE = keccak256("USDT_BURN_PREPARER_ROLE");
ITokenPairs private immutable tokenPairs;
uint256 private usdtToBurn;
address private usdtBurner;
constructor(address _tokenPairs) {
require(_tokenPairs != address(0), "TokenPairs not set");
tokenPairs = ITokenPairs(_tokenPairs);
}
function burnLockedUSDT() external {
require(msg.sender == usdtBurner, "Not USDT burner");
uint256 amount = usdtToBurn;
usdtToBurn = 0;
IMintedBurnableERC20(USDT_ADDRESS_L1).burn(amount);
}
function prepareBurningUSDT(address burner, uint256 amount) external {
require(tokenPairs.originalToMinted(USDT_ADDRESS_L1) != address(0), "USDT not registered yet");
require(tokenPairs.originalToMintedTerminable(USDT_ADDRESS_L1) == address(0), "USDT not terminated");
require(tokenPairs.hasRole(USDT_BURN_PREPARER_ROLE, msg.sender), "Not burn preparer");
usdtBurner = burner;
usdtToBurn = amount;
}
}
{
"compilationTarget": {
"contracts/TokenDeposit.sol": "TokenDeposit"
},
"evmVersion": "cancun",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
}
[{"inputs":[{"internalType":"address","name":"_proofVerifier","type":"address"},{"internalType":"address","name":"_bridge","type":"address"},{"internalType":"address","name":"_tokenPairs","type":"address"},{"internalType":"address","name":"_stateOracle","type":"address"},{"internalType":"address","name":"_ownedBy","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[],"name":"BridgeDied","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"CancelledWhileDead","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"proofVerifier","type":"address"}],"name":"ProofVerifierSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawnWhileDead","type":"event"},{"inputs":[],"name":"EURC_BURN_PREPARER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDC_BURN_PREPARER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDT_BURN_PREPARER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bridge","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnLockedEURC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnLockedUSDC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnLockedUSDT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"proof","type":"bytes"}],"name":"cancelDepositWhileDead","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"proof","type":"bytes"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"withdrawalId","type":"uint256"}],"name":"claims","outputs":[{"internalType":"bool","name":"isClaimed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deadState","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint96","name":"uid","type":"uint96"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"depositId","type":"uint256"}],"name":"deposits","outputs":[{"internalType":"bytes32","name":"senderTokenAmount","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"exitAdministrator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fetchDeadStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getClaimSlotIndex","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getWithdrawalSlotIndex","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"hash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"burner","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"prepareBurningEURC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"burner","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"prepareBurningUSDC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"burner","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"prepareBurningUSDT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"proofVerifier","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_exitAdministrator","type":"address"}],"name":"setExitAdministrator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proofVerifier","type":"address"}],"name":"setProofVerifier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stateOracle","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPairs","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint96","name":"uid","type":"uint96"}],"name":"userOperationId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawWhileDead","outputs":[],"stateMutability":"nonpayable","type":"function"}]