Source Code
Overview
ETH Balance
0 ETH
Token Holdings
More Info
ContractCreator
Multi Chain
Multichain Addresses
5 addresses found via
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 6835595 | 510 days 16 hrs ago | IN | 0 ETH | 0.00057311 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Txn Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
7106306 | 462 days 5 hrs ago | 0.0034 ETH | ||||
7106306 | 462 days 5 hrs ago | 0 ETH | ||||
7106306 | 462 days 5 hrs ago | 0 ETH | ||||
7106306 | 462 days 5 hrs ago | 0 ETH | ||||
7106306 | 462 days 5 hrs ago | 0.0034 ETH | ||||
7106267 | 462 days 5 hrs ago | 0 ETH | ||||
7106267 | 462 days 5 hrs ago | 0 ETH | ||||
7106267 | 462 days 5 hrs ago | 0 ETH | ||||
7106267 | 462 days 5 hrs ago | 0 ETH | ||||
7106267 | 462 days 5 hrs ago | 0 ETH | ||||
7106267 | 462 days 5 hrs ago | 0 ETH | ||||
7106267 | 462 days 5 hrs ago | 0 ETH | ||||
7106267 | 462 days 5 hrs ago | 0 ETH | ||||
7106267 | 462 days 5 hrs ago | 0 ETH | ||||
7106267 | 462 days 5 hrs ago | 0 ETH | ||||
7106267 | 462 days 5 hrs ago | 0 ETH | ||||
7106267 | 462 days 5 hrs ago | 0 ETH | ||||
7106267 | 462 days 5 hrs ago | 0 ETH | ||||
7106267 | 462 days 5 hrs ago | 0 ETH | ||||
7106267 | 462 days 5 hrs ago | 0 ETH | ||||
7106267 | 462 days 5 hrs ago | 0 ETH | ||||
7106267 | 462 days 5 hrs ago | 0 ETH | ||||
7106267 | 462 days 5 hrs ago | 0 ETH | ||||
7106267 | 462 days 5 hrs ago | 0 ETH | ||||
7106267 | 462 days 5 hrs ago | 0 ETH |
Loading...
Loading
Contract Name:
cTornado
Compiler Version
v0.7.6+commit.7338295f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-03-14 */ // File: contracts/MerkleTreeWithHistory.sol // SPDX-License-Identifier: MIT // https://tornado.cash /* * d888888P dP a88888b. dP * 88 88 d8' `88 88 * 88 .d8888b. 88d888b. 88d888b. .d8888b. .d888b88 .d8888b. 88 .d8888b. .d8888b. 88d888b. * 88 88' `88 88' `88 88' `88 88' `88 88' `88 88' `88 88 88' `88 Y8ooooo. 88' `88 * 88 88. .88 88 88 88 88. .88 88. .88 88. .88 dP Y8. .88 88. .88 88 88 88 * dP `88888P' dP dP dP `88888P8 `88888P8 `88888P' 88 Y88888P' `88888P8 `88888P' dP dP * ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo */ pragma solidity ^0.7.0; interface IHasher { function MiMCSponge(uint256 in_xL, uint256 in_xR) external pure returns (uint256 xL, uint256 xR); } contract MerkleTreeWithHistory { uint256 public constant FIELD_SIZE = 21888242871839275222246405745257275088548364400416034343698204186575808495617; uint256 public constant ZERO_VALUE = 21663839004416932945382355908790599225266501822907911457504978515578255421292; // = keccak256("tornado") % FIELD_SIZE IHasher public immutable hasher; uint32 public immutable levels; // the following variables are made public for easier testing and debugging and // are not supposed to be accessed in regular code // filledSubtrees and roots could be bytes32[size], but using mappings makes it cheaper because // it removes index range check on every interaction mapping(uint256 => bytes32) public filledSubtrees; mapping(uint256 => bytes32) public roots; uint32 public constant ROOT_HISTORY_SIZE = 30; uint32 public currentRootIndex = 0; uint32 public nextIndex = 0; constructor(uint32 _levels, IHasher _hasher) { require(_levels > 0, "_levels should be greater than zero"); require(_levels < 32, "_levels should be less than 32"); levels = _levels; hasher = _hasher; for (uint32 i = 0; i < _levels; i++) { filledSubtrees[i] = zeros(i); } roots[0] = zeros(_levels - 1); } /** @dev Hash 2 tree leaves, returns MiMC(_left, _right) */ function hashLeftRight( IHasher _hasher, bytes32 _left, bytes32 _right ) public pure returns (bytes32) { require(uint256(_left) < FIELD_SIZE, "_left should be inside the field"); require(uint256(_right) < FIELD_SIZE, "_right should be inside the field"); uint256 R = uint256(_left); uint256 C = 0; (R, C) = _hasher.MiMCSponge(R, C); R = addmod(R, uint256(_right), FIELD_SIZE); (R, C) = _hasher.MiMCSponge(R, C); return bytes32(R); } function _insert(bytes32 _leaf) internal returns (uint32 index) { uint32 _nextIndex = nextIndex; require(_nextIndex != uint32(2)**levels, "Merkle tree is full. No more leaves can be added"); uint32 currentIndex = _nextIndex; bytes32 currentLevelHash = _leaf; bytes32 left; bytes32 right; for (uint32 i = 0; i < levels; i++) { if (currentIndex % 2 == 0) { left = currentLevelHash; right = zeros(i); filledSubtrees[i] = currentLevelHash; } else { left = filledSubtrees[i]; right = currentLevelHash; } currentLevelHash = hashLeftRight(hasher, left, right); currentIndex /= 2; } uint32 newRootIndex = (currentRootIndex + 1) % ROOT_HISTORY_SIZE; currentRootIndex = newRootIndex; roots[newRootIndex] = currentLevelHash; nextIndex = _nextIndex + 1; return _nextIndex; } /** @dev Whether the root is present in the root history */ function isKnownRoot(bytes32 _root) public view returns (bool) { if (_root == 0) { return false; } uint32 _currentRootIndex = currentRootIndex; uint32 i = _currentRootIndex; do { if (_root == roots[i]) { return true; } if (i == 0) { i = ROOT_HISTORY_SIZE; } i--; } while (i != _currentRootIndex); return false; } /** @dev Returns the last root */ function getLastRoot() public view returns (bytes32) { return roots[currentRootIndex]; } /// @dev provides Zero (Empty) elements for a MiMC MerkleTree. Up to 32 levels function zeros(uint256 i) public pure returns (bytes32) { if (i == 0) return bytes32(0x2fe54c60d3acabf3343a35b6eba15db4821b340f76e741e2249685ed4899af6c); else if (i == 1) return bytes32(0x256a6135777eee2fd26f54b8b7037a25439d5235caee224154186d2b8a52e31d); else if (i == 2) return bytes32(0x1151949895e82ab19924de92c40a3d6f7bcb60d92b00504b8199613683f0c200); else if (i == 3) return bytes32(0x20121ee811489ff8d61f09fb89e313f14959a0f28bb428a20dba6b0b068b3bdb); else if (i == 4) return bytes32(0x0a89ca6ffa14cc462cfedb842c30ed221a50a3d6bf022a6a57dc82ab24c157c9); else if (i == 5) return bytes32(0x24ca05c2b5cd42e890d6be94c68d0689f4f21c9cec9c0f13fe41d566dfb54959); else if (i == 6) return bytes32(0x1ccb97c932565a92c60156bdba2d08f3bf1377464e025cee765679e604a7315c); else if (i == 7) return bytes32(0x19156fbd7d1a8bf5cba8909367de1b624534ebab4f0f79e003bccdd1b182bdb4); else if (i == 8) return bytes32(0x261af8c1f0912e465744641409f622d466c3920ac6e5ff37e36604cb11dfff80); else if (i == 9) return bytes32(0x0058459724ff6ca5a1652fcbc3e82b93895cf08e975b19beab3f54c217d1c007); else if (i == 10) return bytes32(0x1f04ef20dee48d39984d8eabe768a70eafa6310ad20849d4573c3c40c2ad1e30); else if (i == 11) return bytes32(0x1bea3dec5dab51567ce7e200a30f7ba6d4276aeaa53e2686f962a46c66d511e5); else if (i == 12) return bytes32(0x0ee0f941e2da4b9e31c3ca97a40d8fa9ce68d97c084177071b3cb46cd3372f0f); else if (i == 13) return bytes32(0x1ca9503e8935884501bbaf20be14eb4c46b89772c97b96e3b2ebf3a36a948bbd); else if (i == 14) return bytes32(0x133a80e30697cd55d8f7d4b0965b7be24057ba5dc3da898ee2187232446cb108); else if (i == 15) return bytes32(0x13e6d8fc88839ed76e182c2a779af5b2c0da9dd18c90427a644f7e148a6253b6); else if (i == 16) return bytes32(0x1eb16b057a477f4bc8f572ea6bee39561098f78f15bfb3699dcbb7bd8db61854); else if (i == 17) return bytes32(0x0da2cb16a1ceaabf1c16b838f7a9e3f2a3a3088d9e0a6debaa748114620696ea); else if (i == 18) return bytes32(0x24a3b3d822420b14b5d8cb6c28a574f01e98ea9e940551d2ebd75cee12649f9d); else if (i == 19) return bytes32(0x198622acbd783d1b0d9064105b1fc8e4d8889de95c4c519b3f635809fe6afc05); else if (i == 20) return bytes32(0x29d7ed391256ccc3ea596c86e933b89ff339d25ea8ddced975ae2fe30b5296d4); else if (i == 21) return bytes32(0x19be59f2f0413ce78c0c3703a3a5451b1d7f39629fa33abd11548a76065b2967); else if (i == 22) return bytes32(0x1ff3f61797e538b70e619310d33f2a063e7eb59104e112e95738da1254dc3453); else if (i == 23) return bytes32(0x10c16ae9959cf8358980d9dd9616e48228737310a10e2b6b731c1a548f036c48); else if (i == 24) return bytes32(0x0ba433a63174a90ac20992e75e3095496812b652685b5e1a2eae0b1bf4e8fcd1); else if (i == 25) return bytes32(0x019ddb9df2bc98d987d0dfeca9d2b643deafab8f7036562e627c3667266a044c); else if (i == 26) return bytes32(0x2d3c88b23175c5a5565db928414c66d1912b11acf974b2e644caaac04739ce99); else if (i == 27) return bytes32(0x2eab55f6ae4e66e32c5189eed5c470840863445760f5ed7e7b69b2a62600f354); else if (i == 28) return bytes32(0x002df37a2642621802383cf952bf4dd1f32e05433beeb1fd41031fb7eace979d); else if (i == 29) return bytes32(0x104aeb41435db66c3e62feccc1d6f5d98d0a0ed75d1374db457cf462e3a1f427); else if (i == 30) return bytes32(0x1f3c6fd858e9a7d4b0d1f38e256a09d81d5a5e3c963987e2d4b814cfab7c6ebb); else if (i == 31) return bytes32(0x2c7a07d20dff79d01fecedc1134284a8d08436606c93693b67e333f671bf69cc); else revert("Index out of bounds"); } } // File: @openzeppelin/contracts/utils/ReentrancyGuard.sol pragma solidity >=0.6.0 <0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor () internal { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File: contracts/Tornado.sol // https://tornado.cash /* * d888888P dP a88888b. dP * 88 88 d8' `88 88 * 88 .d8888b. 88d888b. 88d888b. .d8888b. .d888b88 .d8888b. 88 .d8888b. .d8888b. 88d888b. * 88 88' `88 88' `88 88' `88 88' `88 88' `88 88' `88 88 88' `88 Y8ooooo. 88' `88 * 88 88. .88 88 88 88 88. .88 88. .88 88. .88 dP Y8. .88 88. .88 88 88 88 * dP `88888P' dP dP dP `88888P8 `88888P8 `88888P' 88 Y88888P' `88888P8 `88888P' dP dP * ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo */ pragma solidity ^0.7.0; interface IVerifier { function verifyProof(bytes memory _proof, uint256[6] memory _input) external returns (bool); } abstract contract Tornado is MerkleTreeWithHistory, ReentrancyGuard { IVerifier public immutable verifier; uint256 public immutable denomination; mapping(bytes32 => bool) public nullifierHashes; // we store all commitments just to prevent accidental deposits with the same commitment mapping(bytes32 => bool) public commitments; event Deposit(bytes32 indexed commitment, uint32 leafIndex, uint256 timestamp); event Withdrawal(address to, bytes32 nullifierHash, address indexed relayer, uint256 fee); /** @dev The constructor @param _verifier the address of SNARK verifier for this contract @param _hasher the address of MiMC hash contract @param _denomination transfer amount for each deposit @param _merkleTreeHeight the height of deposits' Merkle Tree */ constructor( IVerifier _verifier, IHasher _hasher, uint256 _denomination, uint32 _merkleTreeHeight ) MerkleTreeWithHistory(_merkleTreeHeight, _hasher) { require(_denomination > 0, "denomination should be greater than 0"); verifier = _verifier; denomination = _denomination; } /** @dev Deposit funds into the contract. The caller must send (for ETH) or approve (for ERC20) value equal to or `denomination` of this instance. @param _commitment the note commitment, which is PedersenHash(nullifier + secret) */ function deposit(bytes32 _commitment) external payable nonReentrant { require(!commitments[_commitment], "The commitment has been submitted"); uint32 insertedIndex = _insert(_commitment); commitments[_commitment] = true; _processDeposit(); emit Deposit(_commitment, insertedIndex, block.timestamp); } /** @dev this function is defined in a child contract */ function _processDeposit() internal virtual; /** @dev Withdraw a deposit from the contract. `proof` is a zkSNARK proof data, and input is an array of circuit public inputs `input` array consists of: - merkle root of all deposits in the contract - hash of unique deposit nullifier to prevent double spends - the recipient of funds - optional fee that goes to the transaction sender (usually a relay) */ function withdraw( bytes calldata _proof, bytes32 _root, bytes32 _nullifierHash, address payable _recipient, address payable _relayer, uint256 _fee, uint256 _refund ) external payable nonReentrant { require(_fee <= denomination, "Fee exceeds transfer value"); require(!nullifierHashes[_nullifierHash], "The note has been already spent"); require(isKnownRoot(_root), "Cannot find your merkle root"); // Make sure to use a recent one require( verifier.verifyProof( _proof, [uint256(_root), uint256(_nullifierHash), uint256(_recipient), uint256(_relayer), _fee, _refund] ), "Invalid withdraw proof" ); nullifierHashes[_nullifierHash] = true; _processWithdraw(_recipient, _relayer, _fee, _refund); emit Withdrawal(_recipient, _nullifierHash, _relayer, _fee); } /** @dev this function is defined in a child contract */ function _processWithdraw( address payable _recipient, address payable _relayer, uint256 _fee, uint256 _refund ) internal virtual; /** @dev whether a note is already spent */ function isSpent(bytes32 _nullifierHash) public view returns (bool) { return nullifierHashes[_nullifierHash]; } /** @dev whether an array of notes is already spent */ function isSpentArray(bytes32[] calldata _nullifierHashes) external view returns (bool[] memory spent) { spent = new bool[](_nullifierHashes.length); for (uint256 i = 0; i < _nullifierHashes.length; i++) { if (isSpent(_nullifierHashes[i])) { spent[i] = true; } } } } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: @openzeppelin/contracts/math/SafeMath.sol pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } } // File: @openzeppelin/contracts/utils/Address.sol pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol pragma solidity >=0.6.0 <0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: contracts/ERC20Tornado.sol // https://tornado.cash /* * d888888P dP a88888b. dP * 88 88 d8' `88 88 * 88 .d8888b. 88d888b. 88d888b. .d8888b. .d888b88 .d8888b. 88 .d8888b. .d8888b. 88d888b. * 88 88' `88 88' `88 88' `88 88' `88 88' `88 88' `88 88 88' `88 Y8ooooo. 88' `88 * 88 88. .88 88 88 88 88. .88 88. .88 88. .88 dP Y8. .88 88. .88 88 88 88 * dP `88888P' dP dP dP `88888P8 `88888P8 `88888P' 88 Y88888P' `88888P8 `88888P' dP dP * ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo */ pragma solidity ^0.7.0; contract ERC20Tornado is Tornado { using SafeERC20 for IERC20; IERC20 public immutable token; constructor( IVerifier _verifier, IHasher _hasher, uint256 _denomination, uint32 _merkleTreeHeight, IERC20 _token ) Tornado(_verifier, _hasher, _denomination, _merkleTreeHeight) { token = _token; } function _processDeposit() internal override { require(msg.value == 0, "ETH value is supposed to be 0 for ERC20 instance"); token.safeTransferFrom(msg.sender, address(this), denomination); } function _processWithdraw( address payable _recipient, address payable _relayer, uint256 _fee, uint256 _refund ) internal override { require(msg.value == _refund, "Incorrect refund amount received by the contract"); token.safeTransfer(_recipient, denomination - _fee); if (_fee > 0) { token.safeTransfer(_relayer, _fee); } if (_refund > 0) { (bool success, ) = _recipient.call{ value: _refund }(""); if (!success) { // let's return _refund back to the relayer _relayer.transfer(_refund); } } } } // File: contracts/cTornado.sol // https://tornado.cash /* * d888888P dP a88888b. dP * 88 88 d8' `88 88 * 88 .d8888b. 88d888b. 88d888b. .d8888b. .d888b88 .d8888b. 88 .d8888b. .d8888b. 88d888b. * 88 88' `88 88' `88 88' `88 88' `88 88' `88 88' `88 88 88' `88 Y8ooooo. 88' `88 * 88 88. .88 88 88 88 88. .88 88. .88 88. .88 dP Y8. .88 88. .88 88 88 88 * dP `88888P' dP dP dP `88888P8 `88888P8 `88888P' 88 Y88888P' `88888P8 `88888P' dP dP * ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo */ pragma solidity ^0.7.0; contract cTornado is ERC20Tornado { address public immutable governance = 0x5efda50f22d34F262c29268506C5Fa42cB56A1Ce; IERC20 public immutable comp; constructor( IERC20 _comp, IVerifier _verifier, IHasher _hasher, uint256 _denomination, uint32 _merkleTreeHeight, IERC20 _token ) ERC20Tornado(_verifier, _hasher, _denomination, _merkleTreeHeight, _token) { require(address(_comp) != address(0), "Invalid COMP token address"); comp = _comp; } /// @dev Moves earned yield of the COMP token to the tornado governance contract /// To make it work you might need to call `comptroller.claimComp(cPoolAddress)` first function claimComp() external { comp.transfer(governance, comp.balanceOf(address(this))); } }
[{"inputs":[{"internalType":"contract IERC20","name":"_comp","type":"address"},{"internalType":"contract IVerifier","name":"_verifier","type":"address"},{"internalType":"contract IHasher","name":"_hasher","type":"address"},{"internalType":"uint256","name":"_denomination","type":"uint256"},{"internalType":"uint32","name":"_merkleTreeHeight","type":"uint32"},{"internalType":"contract IERC20","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"commitment","type":"bytes32"},{"indexed":false,"internalType":"uint32","name":"leafIndex","type":"uint32"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"bytes32","name":"nullifierHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"relayer","type":"address"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"Withdrawal","type":"event"},{"inputs":[],"name":"FIELD_SIZE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROOT_HISTORY_SIZE","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ZERO_VALUE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimComp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"commitments","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"comp","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentRootIndex","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"denomination","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_commitment","type":"bytes32"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"filledSubtrees","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLastRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IHasher","name":"_hasher","type":"address"},{"internalType":"bytes32","name":"_left","type":"bytes32"},{"internalType":"bytes32","name":"_right","type":"bytes32"}],"name":"hashLeftRight","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"hasher","outputs":[{"internalType":"contract IHasher","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"isKnownRoot","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_nullifierHash","type":"bytes32"}],"name":"isSpent","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_nullifierHashes","type":"bytes32[]"}],"name":"isSpentArray","outputs":[{"internalType":"bool[]","name":"spent","type":"bool[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"levels","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextIndex","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"nullifierHashes","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"roots","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"verifier","outputs":[{"internalType":"contract IVerifier","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_proof","type":"bytes"},{"internalType":"bytes32","name":"_root","type":"bytes32"},{"internalType":"bytes32","name":"_nullifierHash","type":"bytes32"},{"internalType":"address payable","name":"_recipient","type":"address"},{"internalType":"address payable","name":"_relayer","type":"address"},{"internalType":"uint256","name":"_fee","type":"uint256"},{"internalType":"uint256","name":"_refund","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"i","type":"uint256"}],"name":"zeros","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"}]
Contract Creation Code
610160604052600280546001600160401b03191690557f5efda50f22d34f262c29268506c5fa42cb56a1ce000000000000000000000000610120523480156200004757600080fd5b50604051620029d0380380620029d0833981810160405260c08110156200006d57600080fd5b508051602082015160408301516060840151608085015160a0909501519394929391929091848484848484848484808363ffffffff8216620000e15760405162461bcd60e51b8152600401808060200182810382526023815260200180620029ad6023913960400191505060405180910390fd5b60208263ffffffff16106200013d576040805162461bcd60e51b815260206004820152601e60248201527f5f6c6576656c732073686f756c64206265206c657373207468616e2033320000604482015290519081900360640190fd5b6001600160e01b031960e083901b1660a0526001600160601b0319606082901b1660805260005b8263ffffffff168163ffffffff161015620001a9576200018a63ffffffff8216620002d4565b63ffffffff821660009081526020819052604090205560010162000164565b50620001bf63ffffffff600019840116620002d4565b60008052600160208190527fa6eef7e35abe7026729641147f7915573c7e97b47efa546f5f6e3230263bcb4991909155600355505081620002325760405162461bcd60e51b8152600401808060200182810382526025815260200180620029886025913960400191505060405180910390fd5b506001600160601b0319606093841b811660c05260e0919091529290911b9091166101005250505050506001600160a01b038616620002b8576040805162461bcd60e51b815260206004820152601a60248201527f496e76616c696420434f4d5020746f6b656e2061646472657373000000000000604482015290519081900360640190fd5b505050505060601b6001600160601b0319166101405262000962565b6000816200030457507f2fe54c60d3acabf3343a35b6eba15db4821b340f76e741e2249685ed4899af6c6200095d565b81600114156200033657507f256a6135777eee2fd26f54b8b7037a25439d5235caee224154186d2b8a52e31d6200095d565b81600214156200036857507f1151949895e82ab19924de92c40a3d6f7bcb60d92b00504b8199613683f0c2006200095d565b81600314156200039a57507f20121ee811489ff8d61f09fb89e313f14959a0f28bb428a20dba6b0b068b3bdb6200095d565b8160041415620003cc57507f0a89ca6ffa14cc462cfedb842c30ed221a50a3d6bf022a6a57dc82ab24c157c96200095d565b8160051415620003fe57507f24ca05c2b5cd42e890d6be94c68d0689f4f21c9cec9c0f13fe41d566dfb549596200095d565b81600614156200043057507f1ccb97c932565a92c60156bdba2d08f3bf1377464e025cee765679e604a7315c6200095d565b81600714156200046257507f19156fbd7d1a8bf5cba8909367de1b624534ebab4f0f79e003bccdd1b182bdb46200095d565b81600814156200049457507f261af8c1f0912e465744641409f622d466c3920ac6e5ff37e36604cb11dfff806200095d565b8160091415620004c557507e58459724ff6ca5a1652fcbc3e82b93895cf08e975b19beab3f54c217d1c0076200095d565b81600a1415620004f757507f1f04ef20dee48d39984d8eabe768a70eafa6310ad20849d4573c3c40c2ad1e306200095d565b81600b14156200052957507f1bea3dec5dab51567ce7e200a30f7ba6d4276aeaa53e2686f962a46c66d511e56200095d565b81600c14156200055b57507f0ee0f941e2da4b9e31c3ca97a40d8fa9ce68d97c084177071b3cb46cd3372f0f6200095d565b81600d14156200058d57507f1ca9503e8935884501bbaf20be14eb4c46b89772c97b96e3b2ebf3a36a948bbd6200095d565b81600e1415620005bf57507f133a80e30697cd55d8f7d4b0965b7be24057ba5dc3da898ee2187232446cb1086200095d565b81600f1415620005f157507f13e6d8fc88839ed76e182c2a779af5b2c0da9dd18c90427a644f7e148a6253b66200095d565b81601014156200062357507f1eb16b057a477f4bc8f572ea6bee39561098f78f15bfb3699dcbb7bd8db618546200095d565b81601114156200065557507f0da2cb16a1ceaabf1c16b838f7a9e3f2a3a3088d9e0a6debaa748114620696ea6200095d565b81601214156200068757507f24a3b3d822420b14b5d8cb6c28a574f01e98ea9e940551d2ebd75cee12649f9d6200095d565b8160131415620006b957507f198622acbd783d1b0d9064105b1fc8e4d8889de95c4c519b3f635809fe6afc056200095d565b8160141415620006eb57507f29d7ed391256ccc3ea596c86e933b89ff339d25ea8ddced975ae2fe30b5296d46200095d565b81601514156200071d57507f19be59f2f0413ce78c0c3703a3a5451b1d7f39629fa33abd11548a76065b29676200095d565b81601614156200074f57507f1ff3f61797e538b70e619310d33f2a063e7eb59104e112e95738da1254dc34536200095d565b81601714156200078157507f10c16ae9959cf8358980d9dd9616e48228737310a10e2b6b731c1a548f036c486200095d565b8160181415620007b357507f0ba433a63174a90ac20992e75e3095496812b652685b5e1a2eae0b1bf4e8fcd16200095d565b8160191415620007e557507f019ddb9df2bc98d987d0dfeca9d2b643deafab8f7036562e627c3667266a044c6200095d565b81601a14156200081757507f2d3c88b23175c5a5565db928414c66d1912b11acf974b2e644caaac04739ce996200095d565b81601b14156200084957507f2eab55f6ae4e66e32c5189eed5c470840863445760f5ed7e7b69b2a62600f3546200095d565b81601c14156200087a57507e2df37a2642621802383cf952bf4dd1f32e05433beeb1fd41031fb7eace979d6200095d565b81601d1415620008ac57507f104aeb41435db66c3e62feccc1d6f5d98d0a0ed75d1374db457cf462e3a1f4276200095d565b81601e1415620008de57507f1f3c6fd858e9a7d4b0d1f38e256a09d81d5a5e3c963987e2d4b814cfab7c6ebb6200095d565b81601f14156200091057507f2c7a07d20dff79d01fecedc1134284a8d08436606c93693b67e333f671bf69cc6200095d565b6040805162461bcd60e51b815260206004820152601360248201527f496e646578206f7574206f6620626f756e647300000000000000000000000000604482015290519081900360640190fd5b919050565b60805160601c60a05160e01c60c05160601c60e0516101005160601c6101205160601c6101405160601c611f7f62000a09600039806105d6528061060f528061065f52508061063e5280610b5a5250806116a3528061172352806117805280611a435250806107d25280610c0552806117465280611a675250806109055280610b00525080610b36528061185f52806118cb52508061166d52806119575250611f7f6000f3fe6080604052600436106101665760003560e01c806390eeb02b116100d1578063e5285dcc1161008a578063ed33639f11610064578063ed33639f1461056b578063f178e47c14610580578063fc0c546a146105aa578063fc7e9c6f146105bf57610166565b8063e5285dcc14610502578063e82955881461052c578063ec7329591461055657610166565b806390eeb02b146103b15780639fa12d0b146103c6578063b214faa514610491578063ba70f757146104ae578063c2b40ae4146104c3578063cd87a3b4146104ed57610166565b80634ecf518b116101235780634ecf518b146102c65780635aa6e675146102f45780636d9833e314610309578063839df945146103335780638bca6d161461035d5780638ea3099e1461037257610166565b8063109d0af81461016b57806317cc915c1461019c5780631bd85bdb146101da57806321a0adb6146101f15780632b7ac3f31461028a578063414a37ba1461029f575b600080fd5b34801561017757600080fd5b506101806105d4565b604080516001600160a01b039092168252519081900360200190f35b3480156101a857600080fd5b506101c6600480360360208110156101bf57600080fd5b50356105f8565b604080519115158252519081900360200190f35b3480156101e657600080fd5b506101ef61060d565b005b6101ef600480360360e081101561020757600080fd5b810190602081018135600160201b81111561022157600080fd5b82018360208201111561023357600080fd5b803590602001918460018302840111600160201b8311171561025457600080fd5b91935091508035906020810135906001600160a01b03604082013581169160608101359091169060808101359060a00135610773565b34801561029657600080fd5b50610180610afe565b3480156102ab57600080fd5b506102b4610b22565b60408051918252519081900360200190f35b3480156102d257600080fd5b506102db610b34565b6040805163ffffffff9092168252519081900360200190f35b34801561030057600080fd5b50610180610b58565b34801561031557600080fd5b506101c66004803603602081101561032c57600080fd5b5035610b7c565b34801561033f57600080fd5b506101c66004803603602081101561035657600080fd5b5035610bee565b34801561036957600080fd5b506102b4610c03565b34801561037e57600080fd5b506102b46004803603606081101561039557600080fd5b506001600160a01b038135169060208101359060400135610c27565b3480156103bd57600080fd5b506102db610df5565b3480156103d257600080fd5b50610441600480360360208110156103e957600080fd5b810190602081018135600160201b81111561040357600080fd5b82018360208201111561041557600080fd5b803590602001918460208302840111600160201b8311171561043657600080fd5b509092509050610e01565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561047d578181015183820152602001610465565b505050509050019250505060405180910390f35b6101ef600480360360208110156104a757600080fd5b5035610ea0565b3480156104ba57600080fd5b506102b4610fc1565b3480156104cf57600080fd5b506102b4600480360360208110156104e657600080fd5b5035610fdc565b3480156104f957600080fd5b506102db610fee565b34801561050e57600080fd5b506101c66004803603602081101561052557600080fd5b5035610ff3565b34801561053857600080fd5b506102b46004803603602081101561054f57600080fd5b5035611008565b34801561056257600080fd5b506102b4611647565b34801561057757600080fd5b5061018061166b565b34801561058c57600080fd5b506102b4600480360360208110156105a357600080fd5b503561168f565b3480156105b657600080fd5b506101806116a1565b3480156105cb57600080fd5b506102db6116c5565b7f000000000000000000000000000000000000000000000000000000000000000081565b60046020526000908152604090205460ff1681565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156106ca57600080fd5b505afa1580156106de573d6000803e3d6000fd5b505050506040513d60208110156106f457600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b03909316600484015260248301919091525160448083019260209291908290030181600087803b15801561074557600080fd5b505af1158015610759573d6000803e3d6000fd5b505050506040513d602081101561076f57600080fd5b5050565b600260035414156107cb576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026003557f0000000000000000000000000000000000000000000000000000000000000000821115610845576040805162461bcd60e51b815260206004820152601a60248201527f4665652065786365656473207472616e736665722076616c7565000000000000604482015290519081900360640190fd5b60008581526004602052604090205460ff16156108a9576040805162461bcd60e51b815260206004820152601f60248201527f546865206e6f746520686173206265656e20616c7265616479207370656e7400604482015290519081900360640190fd5b6108b286610b7c565b610903576040805162461bcd60e51b815260206004820152601c60248201527f43616e6e6f742066696e6420796f7572206d65726b6c6520726f6f7400000000604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663695ef6f989896040518060c001604052808b60001c81526020018a60001c8152602001896001600160a01b03168152602001886001600160a01b03168152602001878152602001868152506040518463ffffffff1660e01b8152600401808060200183600660200280838360005b838110156109b457818101518382015260200161099c565b505050509050018281038252858582818152602001925080828437600081840152601f19601f820116905080830192505050945050505050602060405180830381600087803b158015610a0657600080fd5b505af1158015610a1a573d6000803e3d6000fd5b505050506040513d6020811015610a3057600080fd5b5051610a7c576040805162461bcd60e51b815260206004820152601660248201527524b73b30b634b2103bb4ba34323930bb90383937b7b360511b604482015290519081900360640190fd5b6000858152600460205260409020805460ff19166001179055610aa1848484846116d8565b604080516001600160a01b038681168252602082018890528183018590529151918516917fe9e508bad6d4c3227e881ca19068f099da81b5164dd6d62b2eaf1e8bc6c349319181900360600190a250506001600355505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600080516020611e7f83398151915281565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b600081610b8b57506000610be9565b60025463ffffffff16805b63ffffffff8116600090815260016020526040902054841415610bbe57600192505050610be9565b63ffffffff8116610bcd5750601e5b6000190163ffffffff8082169083161415610b96576000925050505b919050565b60056020526000908152604090205460ff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000600080516020611e7f8339815191528310610c8b576040805162461bcd60e51b815260206004820181905260248201527f5f6c6566742073686f756c6420626520696e7369646520746865206669656c64604482015290519081900360640190fd5b600080516020611e7f8339815191528210610cd75760405162461bcd60e51b8152600401808060200182810382526021815260200180611e5e6021913960400191505060405180910390fd5b6040805163f47d33b560e01b8152600481018590526000602482018190528251869391926001600160a01b0389169263f47d33b592604480840193829003018186803b158015610d2657600080fd5b505afa158015610d3a573d6000803e3d6000fd5b505050506040513d6040811015610d5057600080fd5b5080516020909101519092509050600080516020611e7f8339815191528483089150856001600160a01b031663f47d33b583836040518363ffffffff1660e01b81526004018083815260200182815260200192505050604080518083038186803b158015610dbd57600080fd5b505afa158015610dd1573d6000803e3d6000fd5b505050506040513d6040811015610de757600080fd5b5051925050505b9392505050565b60025463ffffffff1681565b60608167ffffffffffffffff81118015610e1a57600080fd5b50604051908082528060200260200182016040528015610e44578160200160208202803683370190505b50905060005b82811015610e9957610e6d848483818110610e6157fe5b90506020020135610ff3565b15610e91576001828281518110610e8057fe5b911515602092830291909101909101525b600101610e4a565b5092915050565b60026003541415610ef8576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260035560008181526005602052604090205460ff1615610f4b5760405162461bcd60e51b8152600401808060200182810382526021815260200180611e9f6021913960400191505060405180910390fd5b6000610f5682611846565b6000838152600560205260409020805460ff191660011790559050610f796119f9565b6040805163ffffffff83168152426020820152815184927fa945e51eec50ab98c161376f0db4cf2aeba3ec92755fe2fcd388bdbbb80ff196928290030190a250506001600355565b60025463ffffffff1660009081526001602052604090205490565b60016020526000908152604090205481565b601e81565b60009081526004602052604090205460ff1690565b60008161103657507f2fe54c60d3acabf3343a35b6eba15db4821b340f76e741e2249685ed4899af6c610be9565b816001141561106657507f256a6135777eee2fd26f54b8b7037a25439d5235caee224154186d2b8a52e31d610be9565b816002141561109657507f1151949895e82ab19924de92c40a3d6f7bcb60d92b00504b8199613683f0c200610be9565b81600314156110c657507f20121ee811489ff8d61f09fb89e313f14959a0f28bb428a20dba6b0b068b3bdb610be9565b81600414156110f657507f0a89ca6ffa14cc462cfedb842c30ed221a50a3d6bf022a6a57dc82ab24c157c9610be9565b816005141561112657507f24ca05c2b5cd42e890d6be94c68d0689f4f21c9cec9c0f13fe41d566dfb54959610be9565b816006141561115657507f1ccb97c932565a92c60156bdba2d08f3bf1377464e025cee765679e604a7315c610be9565b816007141561118657507f19156fbd7d1a8bf5cba8909367de1b624534ebab4f0f79e003bccdd1b182bdb4610be9565b81600814156111b657507f261af8c1f0912e465744641409f622d466c3920ac6e5ff37e36604cb11dfff80610be9565b81600914156111e557507e58459724ff6ca5a1652fcbc3e82b93895cf08e975b19beab3f54c217d1c007610be9565b81600a141561121557507f1f04ef20dee48d39984d8eabe768a70eafa6310ad20849d4573c3c40c2ad1e30610be9565b81600b141561124557507f1bea3dec5dab51567ce7e200a30f7ba6d4276aeaa53e2686f962a46c66d511e5610be9565b81600c141561127557507f0ee0f941e2da4b9e31c3ca97a40d8fa9ce68d97c084177071b3cb46cd3372f0f610be9565b81600d14156112a557507f1ca9503e8935884501bbaf20be14eb4c46b89772c97b96e3b2ebf3a36a948bbd610be9565b81600e14156112d557507f133a80e30697cd55d8f7d4b0965b7be24057ba5dc3da898ee2187232446cb108610be9565b81600f141561130557507f13e6d8fc88839ed76e182c2a779af5b2c0da9dd18c90427a644f7e148a6253b6610be9565b816010141561133557507f1eb16b057a477f4bc8f572ea6bee39561098f78f15bfb3699dcbb7bd8db61854610be9565b816011141561136557507f0da2cb16a1ceaabf1c16b838f7a9e3f2a3a3088d9e0a6debaa748114620696ea610be9565b816012141561139557507f24a3b3d822420b14b5d8cb6c28a574f01e98ea9e940551d2ebd75cee12649f9d610be9565b81601314156113c557507f198622acbd783d1b0d9064105b1fc8e4d8889de95c4c519b3f635809fe6afc05610be9565b81601414156113f557507f29d7ed391256ccc3ea596c86e933b89ff339d25ea8ddced975ae2fe30b5296d4610be9565b816015141561142557507f19be59f2f0413ce78c0c3703a3a5451b1d7f39629fa33abd11548a76065b2967610be9565b816016141561145557507f1ff3f61797e538b70e619310d33f2a063e7eb59104e112e95738da1254dc3453610be9565b816017141561148557507f10c16ae9959cf8358980d9dd9616e48228737310a10e2b6b731c1a548f036c48610be9565b81601814156114b557507f0ba433a63174a90ac20992e75e3095496812b652685b5e1a2eae0b1bf4e8fcd1610be9565b81601914156114e557507f019ddb9df2bc98d987d0dfeca9d2b643deafab8f7036562e627c3667266a044c610be9565b81601a141561151557507f2d3c88b23175c5a5565db928414c66d1912b11acf974b2e644caaac04739ce99610be9565b81601b141561154557507f2eab55f6ae4e66e32c5189eed5c470840863445760f5ed7e7b69b2a62600f354610be9565b81601c141561157457507e2df37a2642621802383cf952bf4dd1f32e05433beeb1fd41031fb7eace979d610be9565b81601d14156115a457507f104aeb41435db66c3e62feccc1d6f5d98d0a0ed75d1374db457cf462e3a1f427610be9565b81601e14156115d457507f1f3c6fd858e9a7d4b0d1f38e256a09d81d5a5e3c963987e2d4b814cfab7c6ebb610be9565b81601f141561160457507f2c7a07d20dff79d01fecedc1134284a8d08436606c93693b67e333f671bf69cc610be9565b6040805162461bcd60e51b8152602060048201526013602482015272496e646578206f7574206f6620626f756e647360681b604482015290519081900360640190fd5b7f2fe54c60d3acabf3343a35b6eba15db4821b340f76e741e2249685ed4899af6c81565b7f000000000000000000000000000000000000000000000000000000000000000081565b60006020819052908152604090205481565b7f000000000000000000000000000000000000000000000000000000000000000081565b600254600160201b900463ffffffff1681565b8034146117165760405162461bcd60e51b8152600401808060200182810382526030815260200180611e086030913960400191505060405180910390fd5b61176d6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016857f0000000000000000000000000000000000000000000000000000000000000000859003611a8d565b81156117a7576117a76001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168484611a8d565b8015611840576040516000906001600160a01b0386169083908381818185875af1925050503d80600081146117f8576040519150601f19603f3d011682016040523d82523d6000602084013e6117fd565b606091505b505090508061183e576040516001600160a01b0385169083156108fc029084906000818181858888f1935050505015801561183c573d6000803e3d6000fd5b505b505b50505050565b6002805460009163ffffffff600160201b9092048216917f0000000000000000000000000000000000000000000000000000000000000000811690910a168114156118c25760405162461bcd60e51b8152600401808060200182810382526030815260200180611f1a6030913960400191505060405180910390fd5b8083600080805b7f000000000000000000000000000000000000000000000000000000000000000063ffffffff168163ffffffff1610156119935760018516611936578392506119178163ffffffff16611008565b63ffffffff821660009081526020819052604090208590559150611952565b63ffffffff811660009081526020819052604090205492508391505b61197d7f00000000000000000000000000000000000000000000000000000000000000008484610c27565b9350600263ffffffff86160494506001016118c9565b505060028054601e63ffffffff8083166001908101821692909206811663ffffffff199093168317845560009283526020829052604090922094909455815493860116600160201b0267ffffffff00000000199093169290921790915550909392505050565b3415611a365760405162461bcd60e51b8152600401808060200182810382526030815260200180611ec06030913960400191505060405180910390fd5b611a8b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633307f0000000000000000000000000000000000000000000000000000000000000000611ae4565b565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611adf908490611b3a565b505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526118409085905b6000611b8f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611beb9092919063ffffffff16565b805190915015611adf57808060200190516020811015611bae57600080fd5b5051611adf5760405162461bcd60e51b815260040180806020018281038252602a815260200180611ef0602a913960400191505060405180910390fd5b6060611bfa8484600085611c02565b949350505050565b606082471015611c435760405162461bcd60e51b8152600401808060200182810382526026815260200180611e386026913960400191505060405180910390fd5b611c4c85611d5d565b611c9d576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b60208310611cdb5780518252601f199092019160209182019101611cbc565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611d3d576040519150601f19603f3d011682016040523d82523d6000602084013e611d42565b606091505b5091509150611d52828286611d63565b979650505050505050565b3b151590565b60608315611d72575081610dee565b825115611d825782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611dcc578181015183820152602001611db4565b50505050905090810190601f168015611df95780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe496e636f727265637420726566756e6420616d6f756e742072656365697665642062792074686520636f6e7472616374416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5f72696768742073686f756c6420626520696e7369646520746865206669656c6430644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000154686520636f6d6d69746d656e7420686173206265656e207375626d69747465644554482076616c756520697320737570706f73656420746f206265203020666f7220455243323020696e7374616e63655361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565644d65726b6c6520747265652069732066756c6c2e204e6f206d6f7265206c65617665732063616e206265206164646564a26469706673582212200d5ad076862fb92a3f75b8dffc8b4a562066ec537e22267de6b6384b9e44573d64736f6c6343000706003364656e6f6d696e6174696f6e2073686f756c642062652067726561746572207468616e20305f6c6576656c732073686f756c642062652067726561746572207468616e207a65726f000000000000000000000000e16c7165c8fea64069802ae4c4c9c320783f2b6e000000000000000000000000e65a2c40f2a8975d4a238a2ead06137b560af387000000000000000000000000f425b830943d086390b1c6ccb34033f2601a5341000000000000000000000000000000000000000000000000000000746a5288000000000000000000000000000000000000000000000000000000000000000014000000000000000000000000822397d9a55d0fefd20f5c4bcab33c5f65bd28eb
Deployed Bytecode
0x6080604052600436106101665760003560e01c806390eeb02b116100d1578063e5285dcc1161008a578063ed33639f11610064578063ed33639f1461056b578063f178e47c14610580578063fc0c546a146105aa578063fc7e9c6f146105bf57610166565b8063e5285dcc14610502578063e82955881461052c578063ec7329591461055657610166565b806390eeb02b146103b15780639fa12d0b146103c6578063b214faa514610491578063ba70f757146104ae578063c2b40ae4146104c3578063cd87a3b4146104ed57610166565b80634ecf518b116101235780634ecf518b146102c65780635aa6e675146102f45780636d9833e314610309578063839df945146103335780638bca6d161461035d5780638ea3099e1461037257610166565b8063109d0af81461016b57806317cc915c1461019c5780631bd85bdb146101da57806321a0adb6146101f15780632b7ac3f31461028a578063414a37ba1461029f575b600080fd5b34801561017757600080fd5b506101806105d4565b604080516001600160a01b039092168252519081900360200190f35b3480156101a857600080fd5b506101c6600480360360208110156101bf57600080fd5b50356105f8565b604080519115158252519081900360200190f35b3480156101e657600080fd5b506101ef61060d565b005b6101ef600480360360e081101561020757600080fd5b810190602081018135600160201b81111561022157600080fd5b82018360208201111561023357600080fd5b803590602001918460018302840111600160201b8311171561025457600080fd5b91935091508035906020810135906001600160a01b03604082013581169160608101359091169060808101359060a00135610773565b34801561029657600080fd5b50610180610afe565b3480156102ab57600080fd5b506102b4610b22565b60408051918252519081900360200190f35b3480156102d257600080fd5b506102db610b34565b6040805163ffffffff9092168252519081900360200190f35b34801561030057600080fd5b50610180610b58565b34801561031557600080fd5b506101c66004803603602081101561032c57600080fd5b5035610b7c565b34801561033f57600080fd5b506101c66004803603602081101561035657600080fd5b5035610bee565b34801561036957600080fd5b506102b4610c03565b34801561037e57600080fd5b506102b46004803603606081101561039557600080fd5b506001600160a01b038135169060208101359060400135610c27565b3480156103bd57600080fd5b506102db610df5565b3480156103d257600080fd5b50610441600480360360208110156103e957600080fd5b810190602081018135600160201b81111561040357600080fd5b82018360208201111561041557600080fd5b803590602001918460208302840111600160201b8311171561043657600080fd5b509092509050610e01565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561047d578181015183820152602001610465565b505050509050019250505060405180910390f35b6101ef600480360360208110156104a757600080fd5b5035610ea0565b3480156104ba57600080fd5b506102b4610fc1565b3480156104cf57600080fd5b506102b4600480360360208110156104e657600080fd5b5035610fdc565b3480156104f957600080fd5b506102db610fee565b34801561050e57600080fd5b506101c66004803603602081101561052557600080fd5b5035610ff3565b34801561053857600080fd5b506102b46004803603602081101561054f57600080fd5b5035611008565b34801561056257600080fd5b506102b4611647565b34801561057757600080fd5b5061018061166b565b34801561058c57600080fd5b506102b4600480360360208110156105a357600080fd5b503561168f565b3480156105b657600080fd5b506101806116a1565b3480156105cb57600080fd5b506102db6116c5565b7f000000000000000000000000e16c7165c8fea64069802ae4c4c9c320783f2b6e81565b60046020526000908152604090205460ff1681565b7f000000000000000000000000e16c7165c8fea64069802ae4c4c9c320783f2b6e6001600160a01b031663a9059cbb7f0000000000000000000000005efda50f22d34f262c29268506c5fa42cb56a1ce7f000000000000000000000000e16c7165c8fea64069802ae4c4c9c320783f2b6e6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156106ca57600080fd5b505afa1580156106de573d6000803e3d6000fd5b505050506040513d60208110156106f457600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b03909316600484015260248301919091525160448083019260209291908290030181600087803b15801561074557600080fd5b505af1158015610759573d6000803e3d6000fd5b505050506040513d602081101561076f57600080fd5b5050565b600260035414156107cb576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026003557f000000000000000000000000000000000000000000000000000000746a528800821115610845576040805162461bcd60e51b815260206004820152601a60248201527f4665652065786365656473207472616e736665722076616c7565000000000000604482015290519081900360640190fd5b60008581526004602052604090205460ff16156108a9576040805162461bcd60e51b815260206004820152601f60248201527f546865206e6f746520686173206265656e20616c7265616479207370656e7400604482015290519081900360640190fd5b6108b286610b7c565b610903576040805162461bcd60e51b815260206004820152601c60248201527f43616e6e6f742066696e6420796f7572206d65726b6c6520726f6f7400000000604482015290519081900360640190fd5b7f000000000000000000000000e65a2c40f2a8975d4a238a2ead06137b560af3876001600160a01b031663695ef6f989896040518060c001604052808b60001c81526020018a60001c8152602001896001600160a01b03168152602001886001600160a01b03168152602001878152602001868152506040518463ffffffff1660e01b8152600401808060200183600660200280838360005b838110156109b457818101518382015260200161099c565b505050509050018281038252858582818152602001925080828437600081840152601f19601f820116905080830192505050945050505050602060405180830381600087803b158015610a0657600080fd5b505af1158015610a1a573d6000803e3d6000fd5b505050506040513d6020811015610a3057600080fd5b5051610a7c576040805162461bcd60e51b815260206004820152601660248201527524b73b30b634b2103bb4ba34323930bb90383937b7b360511b604482015290519081900360640190fd5b6000858152600460205260409020805460ff19166001179055610aa1848484846116d8565b604080516001600160a01b038681168252602082018890528183018590529151918516917fe9e508bad6d4c3227e881ca19068f099da81b5164dd6d62b2eaf1e8bc6c349319181900360600190a250506001600355505050505050565b7f000000000000000000000000e65a2c40f2a8975d4a238a2ead06137b560af38781565b600080516020611e7f83398151915281565b7f000000000000000000000000000000000000000000000000000000000000001481565b7f0000000000000000000000005efda50f22d34f262c29268506c5fa42cb56a1ce81565b600081610b8b57506000610be9565b60025463ffffffff16805b63ffffffff8116600090815260016020526040902054841415610bbe57600192505050610be9565b63ffffffff8116610bcd5750601e5b6000190163ffffffff8082169083161415610b96576000925050505b919050565b60056020526000908152604090205460ff1681565b7f000000000000000000000000000000000000000000000000000000746a52880081565b6000600080516020611e7f8339815191528310610c8b576040805162461bcd60e51b815260206004820181905260248201527f5f6c6566742073686f756c6420626520696e7369646520746865206669656c64604482015290519081900360640190fd5b600080516020611e7f8339815191528210610cd75760405162461bcd60e51b8152600401808060200182810382526021815260200180611e5e6021913960400191505060405180910390fd5b6040805163f47d33b560e01b8152600481018590526000602482018190528251869391926001600160a01b0389169263f47d33b592604480840193829003018186803b158015610d2657600080fd5b505afa158015610d3a573d6000803e3d6000fd5b505050506040513d6040811015610d5057600080fd5b5080516020909101519092509050600080516020611e7f8339815191528483089150856001600160a01b031663f47d33b583836040518363ffffffff1660e01b81526004018083815260200182815260200192505050604080518083038186803b158015610dbd57600080fd5b505afa158015610dd1573d6000803e3d6000fd5b505050506040513d6040811015610de757600080fd5b5051925050505b9392505050565b60025463ffffffff1681565b60608167ffffffffffffffff81118015610e1a57600080fd5b50604051908082528060200260200182016040528015610e44578160200160208202803683370190505b50905060005b82811015610e9957610e6d848483818110610e6157fe5b90506020020135610ff3565b15610e91576001828281518110610e8057fe5b911515602092830291909101909101525b600101610e4a565b5092915050565b60026003541415610ef8576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260035560008181526005602052604090205460ff1615610f4b5760405162461bcd60e51b8152600401808060200182810382526021815260200180611e9f6021913960400191505060405180910390fd5b6000610f5682611846565b6000838152600560205260409020805460ff191660011790559050610f796119f9565b6040805163ffffffff83168152426020820152815184927fa945e51eec50ab98c161376f0db4cf2aeba3ec92755fe2fcd388bdbbb80ff196928290030190a250506001600355565b60025463ffffffff1660009081526001602052604090205490565b60016020526000908152604090205481565b601e81565b60009081526004602052604090205460ff1690565b60008161103657507f2fe54c60d3acabf3343a35b6eba15db4821b340f76e741e2249685ed4899af6c610be9565b816001141561106657507f256a6135777eee2fd26f54b8b7037a25439d5235caee224154186d2b8a52e31d610be9565b816002141561109657507f1151949895e82ab19924de92c40a3d6f7bcb60d92b00504b8199613683f0c200610be9565b81600314156110c657507f20121ee811489ff8d61f09fb89e313f14959a0f28bb428a20dba6b0b068b3bdb610be9565b81600414156110f657507f0a89ca6ffa14cc462cfedb842c30ed221a50a3d6bf022a6a57dc82ab24c157c9610be9565b816005141561112657507f24ca05c2b5cd42e890d6be94c68d0689f4f21c9cec9c0f13fe41d566dfb54959610be9565b816006141561115657507f1ccb97c932565a92c60156bdba2d08f3bf1377464e025cee765679e604a7315c610be9565b816007141561118657507f19156fbd7d1a8bf5cba8909367de1b624534ebab4f0f79e003bccdd1b182bdb4610be9565b81600814156111b657507f261af8c1f0912e465744641409f622d466c3920ac6e5ff37e36604cb11dfff80610be9565b81600914156111e557507e58459724ff6ca5a1652fcbc3e82b93895cf08e975b19beab3f54c217d1c007610be9565b81600a141561121557507f1f04ef20dee48d39984d8eabe768a70eafa6310ad20849d4573c3c40c2ad1e30610be9565b81600b141561124557507f1bea3dec5dab51567ce7e200a30f7ba6d4276aeaa53e2686f962a46c66d511e5610be9565b81600c141561127557507f0ee0f941e2da4b9e31c3ca97a40d8fa9ce68d97c084177071b3cb46cd3372f0f610be9565b81600d14156112a557507f1ca9503e8935884501bbaf20be14eb4c46b89772c97b96e3b2ebf3a36a948bbd610be9565b81600e14156112d557507f133a80e30697cd55d8f7d4b0965b7be24057ba5dc3da898ee2187232446cb108610be9565b81600f141561130557507f13e6d8fc88839ed76e182c2a779af5b2c0da9dd18c90427a644f7e148a6253b6610be9565b816010141561133557507f1eb16b057a477f4bc8f572ea6bee39561098f78f15bfb3699dcbb7bd8db61854610be9565b816011141561136557507f0da2cb16a1ceaabf1c16b838f7a9e3f2a3a3088d9e0a6debaa748114620696ea610be9565b816012141561139557507f24a3b3d822420b14b5d8cb6c28a574f01e98ea9e940551d2ebd75cee12649f9d610be9565b81601314156113c557507f198622acbd783d1b0d9064105b1fc8e4d8889de95c4c519b3f635809fe6afc05610be9565b81601414156113f557507f29d7ed391256ccc3ea596c86e933b89ff339d25ea8ddced975ae2fe30b5296d4610be9565b816015141561142557507f19be59f2f0413ce78c0c3703a3a5451b1d7f39629fa33abd11548a76065b2967610be9565b816016141561145557507f1ff3f61797e538b70e619310d33f2a063e7eb59104e112e95738da1254dc3453610be9565b816017141561148557507f10c16ae9959cf8358980d9dd9616e48228737310a10e2b6b731c1a548f036c48610be9565b81601814156114b557507f0ba433a63174a90ac20992e75e3095496812b652685b5e1a2eae0b1bf4e8fcd1610be9565b81601914156114e557507f019ddb9df2bc98d987d0dfeca9d2b643deafab8f7036562e627c3667266a044c610be9565b81601a141561151557507f2d3c88b23175c5a5565db928414c66d1912b11acf974b2e644caaac04739ce99610be9565b81601b141561154557507f2eab55f6ae4e66e32c5189eed5c470840863445760f5ed7e7b69b2a62600f354610be9565b81601c141561157457507e2df37a2642621802383cf952bf4dd1f32e05433beeb1fd41031fb7eace979d610be9565b81601d14156115a457507f104aeb41435db66c3e62feccc1d6f5d98d0a0ed75d1374db457cf462e3a1f427610be9565b81601e14156115d457507f1f3c6fd858e9a7d4b0d1f38e256a09d81d5a5e3c963987e2d4b814cfab7c6ebb610be9565b81601f141561160457507f2c7a07d20dff79d01fecedc1134284a8d08436606c93693b67e333f671bf69cc610be9565b6040805162461bcd60e51b8152602060048201526013602482015272496e646578206f7574206f6620626f756e647360681b604482015290519081900360640190fd5b7f2fe54c60d3acabf3343a35b6eba15db4821b340f76e741e2249685ed4899af6c81565b7f000000000000000000000000f425b830943d086390b1c6ccb34033f2601a534181565b60006020819052908152604090205481565b7f000000000000000000000000822397d9a55d0fefd20f5c4bcab33c5f65bd28eb81565b600254600160201b900463ffffffff1681565b8034146117165760405162461bcd60e51b8152600401808060200182810382526030815260200180611e086030913960400191505060405180910390fd5b61176d6001600160a01b037f000000000000000000000000822397d9a55d0fefd20f5c4bcab33c5f65bd28eb16857f000000000000000000000000000000000000000000000000000000746a528800859003611a8d565b81156117a7576117a76001600160a01b037f000000000000000000000000822397d9a55d0fefd20f5c4bcab33c5f65bd28eb168484611a8d565b8015611840576040516000906001600160a01b0386169083908381818185875af1925050503d80600081146117f8576040519150601f19603f3d011682016040523d82523d6000602084013e6117fd565b606091505b505090508061183e576040516001600160a01b0385169083156108fc029084906000818181858888f1935050505015801561183c573d6000803e3d6000fd5b505b505b50505050565b6002805460009163ffffffff600160201b9092048216917f0000000000000000000000000000000000000000000000000000000000000014811690910a168114156118c25760405162461bcd60e51b8152600401808060200182810382526030815260200180611f1a6030913960400191505060405180910390fd5b8083600080805b7f000000000000000000000000000000000000000000000000000000000000001463ffffffff168163ffffffff1610156119935760018516611936578392506119178163ffffffff16611008565b63ffffffff821660009081526020819052604090208590559150611952565b63ffffffff811660009081526020819052604090205492508391505b61197d7f000000000000000000000000f425b830943d086390b1c6ccb34033f2601a53418484610c27565b9350600263ffffffff86160494506001016118c9565b505060028054601e63ffffffff8083166001908101821692909206811663ffffffff199093168317845560009283526020829052604090922094909455815493860116600160201b0267ffffffff00000000199093169290921790915550909392505050565b3415611a365760405162461bcd60e51b8152600401808060200182810382526030815260200180611ec06030913960400191505060405180910390fd5b611a8b6001600160a01b037f000000000000000000000000822397d9a55d0fefd20f5c4bcab33c5f65bd28eb1633307f000000000000000000000000000000000000000000000000000000746a528800611ae4565b565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611adf908490611b3a565b505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526118409085905b6000611b8f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611beb9092919063ffffffff16565b805190915015611adf57808060200190516020811015611bae57600080fd5b5051611adf5760405162461bcd60e51b815260040180806020018281038252602a815260200180611ef0602a913960400191505060405180910390fd5b6060611bfa8484600085611c02565b949350505050565b606082471015611c435760405162461bcd60e51b8152600401808060200182810382526026815260200180611e386026913960400191505060405180910390fd5b611c4c85611d5d565b611c9d576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b60208310611cdb5780518252601f199092019160209182019101611cbc565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611d3d576040519150601f19603f3d011682016040523d82523d6000602084013e611d42565b606091505b5091509150611d52828286611d63565b979650505050505050565b3b151590565b60608315611d72575081610dee565b825115611d825782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611dcc578181015183820152602001611db4565b50505050905090810190601f168015611df95780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe496e636f727265637420726566756e6420616d6f756e742072656365697665642062792074686520636f6e7472616374416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5f72696768742073686f756c6420626520696e7369646520746865206669656c6430644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000154686520636f6d6d69746d656e7420686173206265656e207375626d69747465644554482076616c756520697320737570706f73656420746f206265203020666f7220455243323020696e7374616e63655361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565644d65726b6c6520747265652069732066756c6c2e204e6f206d6f7265206c65617665732063616e206265206164646564a26469706673582212200d5ad076862fb92a3f75b8dffc8b4a562066ec537e22267de6b6384b9e44573d64736f6c63430007060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000e16c7165c8fea64069802ae4c4c9c320783f2b6e000000000000000000000000e65a2c40f2a8975d4a238a2ead06137b560af387000000000000000000000000f425b830943d086390b1c6ccb34033f2601a5341000000000000000000000000000000000000000000000000000000746a5288000000000000000000000000000000000000000000000000000000000000000014000000000000000000000000822397d9a55d0fefd20f5c4bcab33c5f65bd28eb
-----Decoded View---------------
Arg [0] : _comp (address): 0xe16C7165C8FeA64069802aE4c4c9C320783f2b6e
Arg [1] : _verifier (address): 0xe65A2C40f2a8975D4A238a2EaD06137b560aF387
Arg [2] : _hasher (address): 0xf425b830943d086390b1C6CcB34033F2601a5341
Arg [3] : _denomination (uint256): 500000000000
Arg [4] : _merkleTreeHeight (uint32): 20
Arg [5] : _token (address): 0x822397d9a55d0fefd20F5c4bCaB33C5F65bd28Eb
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000e16c7165c8fea64069802ae4c4c9c320783f2b6e
Arg [1] : 000000000000000000000000e65a2c40f2a8975d4a238a2ead06137b560af387
Arg [2] : 000000000000000000000000f425b830943d086390b1c6ccb34033f2601a5341
Arg [3] : 000000000000000000000000000000000000000000000000000000746a528800
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [5] : 000000000000000000000000822397d9a55d0fefd20f5c4bcab33c5f65bd28eb
Deployed Bytecode Sourcemap
40447:778:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40571:28;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;40571:28:0;;;;;;;;;;;;;;11826:47;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11826:47:0;;:::i;:::-;;;;;;;;;;;;;;;;;;41123:99;;;;;;;;;;;;;:::i;:::-;;13906:878;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;13906:878:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;13906:878:0;;;;;;;;;;;;-1:-1:-1;13906:878:0;-1:-1:-1;13906:878:0;;;;;;;;-1:-1:-1;;;;;13906:878:0;;;;;;;;;;;;;;;;;;;;;;;;:::i;11742:35::-;;;;;;;;;;;;;:::i;1045:114::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;1360:30;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;40486:80;;;;;;;;;;;;;:::i;3833:410::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3833:410:0;;:::i;11970:43::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11970:43:0;;:::i;11782:37::-;;;;;;;;;;;;;:::i;2343:493::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;2343:493:0;;;;;;;;;;;;;:::i;1840:34::-;;;;;;;;;;;;;:::i;15239:305::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;15239:305:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;15239:305:0;;;;;;;;;;-1:-1:-1;15239:305:0;;-1:-1:-1;15239:305:0;-1:-1:-1;15239:305:0;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13057:332;;;;;;;;;;;;;;;;-1:-1:-1;13057:332:0;;:::i;4294:96::-;;;;;;;;;;;;;:::i;1745:40::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1745:40:0;;:::i;1790:45::-;;;;;;;;;;;;;:::i;15056:119::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;15056:119:0;;:::i;4478:3512::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4478:3512:0;;:::i;1164:114::-;;;;;;;;;;;;;:::i;1324:31::-;;;;;;;;;;;;;:::i;1691:49::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1691:49:0;;:::i;38515:29::-;;;;;;;;;;;;;:::i;1879:27::-;;;;;;;;;;;;;:::i;40571:28::-;;;:::o;11826:47::-;;;;;;;;;;;;;;;:::o;41123:99::-;41160:4;-1:-1:-1;;;;;41160:13:0;;41174:10;41186:4;-1:-1:-1;;;;;41186:14:0;;41209:4;41186:29;;;;;;;;;;;;;-1:-1:-1;;;;;41186:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41186:29:0;41160:56;;;-1:-1:-1;;;;;;41160:56:0;;;;;;;-1:-1:-1;;;;;41160:56:0;;;;;;;;;;;;;;;;;;;;41186:29;;41160:56;;;;;;;-1:-1:-1;41160:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;41123:99:0:o;13906:878::-;9749:1;10355:7;;:19;;10347:63;;;;;-1:-1:-1;;;10347:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;9749:1;10488:7;:18;14164:12:::1;14156:20:::0;::::1;;14148:59;;;::::0;;-1:-1:-1;;;14148:59:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;14223:31;::::0;;;:15:::1;:31;::::0;;;;;::::1;;14222:32;14214:76;;;::::0;;-1:-1:-1;;;14214:76:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;14305:18;14317:5;14305:11;:18::i;:::-;14297:59;;;::::0;;-1:-1:-1;;;14297:59:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;14412:8;-1:-1:-1::0;;;;;14412:20:0::1;;14443:6;;14412:153;;;;;;;;14469:5;14461:14;;14412:153;;;;14485:14;14477:23;;14412:153;;;;14510:10;-1:-1:-1::0;;;;;14502:19:0::1;14412:153;;;;14531:8;-1:-1:-1::0;;;;;14523:17:0::1;14412:153;;;;14542:4;14412:153;;;;14548:7;14412:153;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;::::1;::::0;;;::::1;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;14412:153:0;14396:209:::1;;;::::0;;-1:-1:-1;;;14396:209:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;14396:209:0;;;;;;;;;;;;;::::1;;14614:31;::::0;;;:15:::1;:31;::::0;;;;:38;;-1:-1:-1;;14614:38:0::1;14648:4;14614:38;::::0;;14659:53:::1;14676:10:::0;14688:8;14698:4;14704:7;14659:16:::1;:53::i;:::-;14724:54;::::0;;-1:-1:-1;;;;;14724:54:0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;;;;;::::1;::::0;::::1;::::0;;;;;;;::::1;-1:-1:-1::0;;9705:1:0;10667:7;:22;-1:-1:-1;;;;;;13906:878:0:o;11742:35::-;;;:::o;1045:114::-;-1:-1:-1;;;;;;;;;;;1045:114:0;:::o;1360:30::-;;;:::o;40486:80::-;;;:::o;3833:410::-;3890:4;3907:10;3903:45;;-1:-1:-1;3935:5:0;3928:12;;3903:45;3981:16;;;;;4039:180;4064:8;;;;;;;:5;:8;;;;;;4055:17;;4051:55;;;4092:4;4085:11;;;;;;4051:55;4118:6;;;4114:54;;-1:-1:-1;1833:2:0;4114:54;-1:-1:-1;;4176:3:0;4195:22;;;;;;;;;4039:180;;4232:5;4225:12;;;;3833:410;;;;:::o;11970:43::-;;;;;;;;;;;;;;;:::o;11782:37::-;;;:::o;2343:493::-;2455:7;-1:-1:-1;;;;;;;;;;;2479:27:0;;2471:72;;;;;-1:-1:-1;;;2471:72:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2558:28:0;;2550:74;;;;-1:-1:-1;;;2550:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2693:24;;;-1:-1:-1;;;2693:24:0;;;;;;;;2631:9;2693:24;;;;;;;;2651:5;;2631:9;;-1:-1:-1;;;;;2693:18:0;;;;;:24;;;;;;;;;;:18;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2693:24:0;;;;;;;;;-1:-1:-1;2693:24:0;-1:-1:-1;;;;;;;;;;;;2746:6:0;2735:1;2728:38;2724:42;;2782:7;-1:-1:-1;;;;;2782:18:0;;2801:1;2804;2782:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2782:24:0;;-1:-1:-1;;;2343:493:0;;;;;;:::o;1840:34::-;;;;;;:::o;15239:305::-;15321:19;15368:16;15357:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;15357:35:0;;15349:43;;15404:9;15399:140;15419:27;;;15399:140;;;15466:28;15474:16;;15491:1;15474:19;;;;;;;;;;;;;15466:7;:28::i;:::-;15462:70;;;15518:4;15507:5;15513:1;15507:8;;;;;;;;:15;;;:8;;;;;;;;;;;:15;15462:70;15448:3;;15399:140;;;;15239:305;;;;:::o;13057:332::-;9749:1;10355:7;;:19;;10347:63;;;;;-1:-1:-1;;;10347:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;9749:1;10488:7;:18;13141:24:::1;::::0;;;:11:::1;:24;::::0;;;;;::::1;;13140:25;13132:71;;;;-1:-1:-1::0;;;13132:71:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13212:20;13235;13243:11;13235:7;:20::i;:::-;13262:24;::::0;;;:11:::1;:24;::::0;;;;:31;;-1:-1:-1;;13262:31:0::1;13289:4;13262:31;::::0;;13212:43;-1:-1:-1;13300:17:0::1;:15;:17::i;:::-;13331:52;::::0;;::::1;::::0;::::1;::::0;;13367:15:::1;13331:52;::::0;::::1;::::0;;;13339:11;;13331:52:::1;::::0;;;;;;::::1;-1:-1:-1::0;;9705:1:0;10667:7;:22;13057:332::o;4294:96::-;4367:16;;;;4338:7;4361:23;;;:5;:23;;;;;;4294:96;:::o;1745:40::-;;;;;;;;;;;;;:::o;1790:45::-;1833:2;1790:45;:::o;15056:119::-;15118:4;15138:31;;;:15;:31;;;;;;;;;15056:119::o;4478:3512::-;4525:7;4545:6;4541:3443;;-1:-1:-1;4568:66:0;4553:82;;4541:3443;4651:1;4656;4651:6;4647:3337;;;-1:-1:-1;4674:66:0;4659:82;;4647:3337;4757:1;4762;4757:6;4753:3231;;;-1:-1:-1;4780:66:0;4765:82;;4753:3231;4863:1;4868;4863:6;4859:3125;;;-1:-1:-1;4886:66:0;4871:82;;4859:3125;4969:1;4974;4969:6;4965:3019;;;-1:-1:-1;4992:66:0;4977:82;;4965:3019;5075:1;5080;5075:6;5071:2913;;;-1:-1:-1;5098:66:0;5083:82;;5071:2913;5181:1;5186;5181:6;5177:2807;;;-1:-1:-1;5204:66:0;5189:82;;5177:2807;5287:1;5292;5287:6;5283:2701;;;-1:-1:-1;5310:66:0;5295:82;;5283:2701;5393:1;5398;5393:6;5389:2595;;;-1:-1:-1;5416:66:0;5401:82;;5389:2595;5499:1;5504;5499:6;5495:2489;;;-1:-1:-1;5522:66:0;5507:82;;5495:2489;5605:1;5610:2;5605:7;5601:2383;;;-1:-1:-1;5629:66:0;5614:82;;5601:2383;5712:1;5717:2;5712:7;5708:2276;;;-1:-1:-1;5736:66:0;5721:82;;5708:2276;5819:1;5824:2;5819:7;5815:2169;;;-1:-1:-1;5843:66:0;5828:82;;5815:2169;5926:1;5931:2;5926:7;5922:2062;;;-1:-1:-1;5950:66:0;5935:82;;5922:2062;6033:1;6038:2;6033:7;6029:1955;;;-1:-1:-1;6057:66:0;6042:82;;6029:1955;6140:1;6145:2;6140:7;6136:1848;;;-1:-1:-1;6164:66:0;6149:82;;6136:1848;6247:1;6252:2;6247:7;6243:1741;;;-1:-1:-1;6271:66:0;6256:82;;6243:1741;6354:1;6359:2;6354:7;6350:1634;;;-1:-1:-1;6378:66:0;6363:82;;6350:1634;6461:1;6466:2;6461:7;6457:1527;;;-1:-1:-1;6485:66:0;6470:82;;6457:1527;6568:1;6573:2;6568:7;6564:1420;;;-1:-1:-1;6592:66:0;6577:82;;6564:1420;6675:1;6680:2;6675:7;6671:1313;;;-1:-1:-1;6699:66:0;6684:82;;6671:1313;6782:1;6787:2;6782:7;6778:1206;;;-1:-1:-1;6806:66:0;6791:82;;6778:1206;6889:1;6894:2;6889:7;6885:1099;;;-1:-1:-1;6913:66:0;6898:82;;6885:1099;6996:1;7001:2;6996:7;6992:992;;;-1:-1:-1;7020:66:0;7005:82;;6992:992;7103:1;7108:2;7103:7;7099:885;;;-1:-1:-1;7127:66:0;7112:82;;7099:885;7210:1;7215:2;7210:7;7206:778;;;-1:-1:-1;7234:66:0;7219:82;;7206:778;7317:1;7322:2;7317:7;7313:671;;;-1:-1:-1;7341:66:0;7326:82;;7313:671;7424:1;7429:2;7424:7;7420:564;;;-1:-1:-1;7448:66:0;7433:82;;7420:564;7531:1;7536:2;7531:7;7527:457;;;-1:-1:-1;7555:66:0;7540:82;;7527:457;7638:1;7643:2;7638:7;7634:350;;;-1:-1:-1;7662:66:0;7647:82;;7634:350;7745:1;7750:2;7745:7;7741:243;;;-1:-1:-1;7769:66:0;7754:82;;7741:243;7852:1;7857:2;7852:7;7848:136;;;-1:-1:-1;7876:66:0;7861:82;;7848:136;7955:29;;;-1:-1:-1;;;7955:29:0;;;;;;;;;;;;-1:-1:-1;;;7955:29:0;;;;;;;;;;;;;;1164:114;1201:77;1164:114;:::o;1324:31::-;;;:::o;1691:49::-;;;;;;;;;;;;;;:::o;38515:29::-;;;:::o;1879:27::-;;;-1:-1:-1;;;1879:27:0;;;;;:::o;38999:599::-;39181:7;39168:9;:20;39160:81;;;;-1:-1:-1;;;39160:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39250:51;-1:-1:-1;;;;;39250:5:0;:18;39269:10;39281:12;:19;;;39250:18;:51::i;:::-;39312:8;;39308:65;;39331:34;-1:-1:-1;;;;;39331:5:0;:18;39350:8;39360:4;39331:18;:34::i;:::-;39385:11;;39381:212;;39426:37;;39408:12;;-1:-1:-1;;;;;39426:15:0;;;39450:7;;39408:12;39426:37;39408:12;39426:37;39450:7;39426:15;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39407:56;;;39477:7;39472:114;;39550:26;;-1:-1:-1;;;;;39550:17:0;;;:26;;;;;39568:7;;39550:26;;;;39568:7;39550:17;:26;;;;;;;;;;;;;;;;;;;;;39472:114;39381:212;;38999:599;;;;:::o;2842:914::-;2933:9;;;2892:12;;2933:9;-1:-1:-1;;;2933:9:0;;;;;;2982:6;2971:17;;;;;2957:31;;;;2949:92;;;;-1:-1:-1;;;2949:92:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3070:10;3114:5;3048:19;;;3167:371;3190:6;3186:10;;:1;:10;;;3167:371;;;3216:16;;;3212:231;;3257:16;3250:23;;3292:8;3298:1;3292:8;;:5;:8::i;:::-;3311:17;;;:14;:17;;;;;;;;;;:36;;;3284:16;-1:-1:-1;3212:231:0;;;3381:17;;;:14;:17;;;;;;;;;;;;-1:-1:-1;3417:16:0;;-1:-1:-1;3212:231:0;3470:34;3484:6;3492:4;3498:5;3470:13;:34::i;:::-;3451:53;-1:-1:-1;3529:1:0;3513:17;;;;;-1:-1:-1;3198:3:0;;3167:371;;;-1:-1:-1;;3569:16:0;;;1833:2;3568:42;3569:16;;;;:20;;;3568:42;;;;;;3617:31;;-1:-1:-1;;3617:31:0;;;;;;;-1:-1:-1;3655:19:0;;;;;;;;;;;:38;;;;3700:26;;3712:14;;;3700:26;-1:-1:-1;;;3700:26:0;-1:-1:-1;;3700:26:0;;;;;;;;;;-1:-1:-1;3712:14:0;;;-1:-1:-1;;;2842:914:0:o;38790:203::-;38850:9;:14;38842:75;;;;-1:-1:-1;;;38842:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38924:63;-1:-1:-1;;;;;38924:5:0;:22;38947:10;38967:4;38974:12;38924:22;:63::i;:::-;38790:203::o;34525:177::-;34635:58;;;-1:-1:-1;;;;;34635:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;34635:58:0;-1:-1:-1;;;34635:58:0;;;34608:86;;34628:5;;34608:19;:86::i;:::-;34525:177;;;:::o;34710:205::-;34838:68;;;-1:-1:-1;;;;;34838:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;34838:68:0;-1:-1:-1;;;34838:68:0;;;34811:96;;34831:5;;36830:761;37254:23;37280:69;37308:4;37280:69;;;;;;;;;;;;;;;;;37288:5;-1:-1:-1;;;;;37280:27:0;;;:69;;;;;:::i;:::-;37364:17;;37254:95;;-1:-1:-1;37364:21:0;37360:224;;37506:10;37495:30;;;;;;;;;;;;;;;-1:-1:-1;37495:30:0;37487:85;;;;-1:-1:-1;;;37487:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29518:195;29621:12;29653:52;29675:6;29683:4;29689:1;29692:12;29653:21;:52::i;:::-;29646:59;29518:195;-1:-1:-1;;;;29518:195:0:o;30570:530::-;30697:12;30755:5;30730:21;:30;;30722:81;;;;-1:-1:-1;;;30722:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30822:18;30833:6;30822:10;:18::i;:::-;30814:60;;;;;-1:-1:-1;;;30814:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;30948:12;30962:23;30989:6;-1:-1:-1;;;;;30989:11:0;31009:5;31017:4;30989:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;30989:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30947:75;;;;31040:52;31058:7;31067:10;31079:12;31040:17;:52::i;:::-;31033:59;30570:530;-1:-1:-1;;;;;;;30570:530:0:o;26600:422::-;26967:20;27006:8;;;26600:422::o;33110:742::-;33225:12;33254:7;33250:595;;;-1:-1:-1;33285:10:0;33278:17;;33250:595;33399:17;;:21;33395:439;;33662:10;33656:17;33723:15;33710:10;33706:2;33702:19;33695:44;33610:148;33805:12;33798:20;;-1:-1:-1;;;33798:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Swarm Source
ipfs://0d5ad076862fb92a3f75b8dffc8b4a562066ec537e22267de6b6384b9e44573d
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.