ERC-721
Overview
Max Total Supply
0 BOX
Holders
30
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 BOXLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
PandorasBox
Compiler Version
v0.8.6+commit.11564f7e
Optimization Enabled:
Yes with 5000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.6; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; error NotOwner(); error NotEnoughETH(uint256 value); error FailedRefundingSurplus(uint256 value); error NotStarted(); error AlreadyStarted(); error AlreadyEnded(); error SendingFailed(); error NotWhitelisted(address minter); error NoTokensReservedForMinter(address minter); error AlreadyMinted(address minter); error ClaimNotStarted(); error MintCapReached(); interface IERC20 { function balanceOf(address account) external view returns (uint256); function transfer(address to, uint256 amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 amount) external returns (bool); function transferFrom( address from, address to, uint256 amount ) external returns (bool); } contract PandorasBox is ERC721, ReentrancyGuard { event Minted(address minter, uint256 id); event MetadataUpdate(); event MintPhase(); event EndMintPhase(); /* State variables */ bool public started = false; bool public ended = false; /* State variables */ address public owner; uint256 public cost = 0.22 ether; uint256 public immutable cap = 555; uint256 public mintCount = 0; mapping(address => bool) public mints; uint256 public whitelistOnly = 2 hours; uint256 public startTime; bytes32 public immutable merkleRoot; string internal tokenMetadataURI; constructor(address multisig, bytes32 _merkleRoot) ERC721("Pandora's Box", "BOX") { owner = multisig; merkleRoot = _merkleRoot; for (uint256 index = 0; index < 55; index++) { mintCount++; _safeMint(multisig, mintCount); } } modifier onlyOwner() { if (msg.sender != owner) revert NotOwner(); _; } /* NFT Functionality */ function setTokenMetadata(string calldata newMetadata) public onlyOwner { tokenMetadataURI = newMetadata; emit MetadataUpdate(); } function tokenURI(uint256) public view override returns (string memory) { return tokenMetadataURI; } /* NFT Functionality */ /* Sale */ function start() external onlyOwner { if (started == true) revert AlreadyStarted(); started = true; startTime = block.timestamp; emit MintPhase(); } function canMint(address minter, bytes32[] calldata proof) public view returns (bool) { if (started == false) return false; bool proofValid = MerkleProof.verify( proof, merkleRoot, keccak256(abi.encodePacked(minter)) ); if ( proofValid && ((block.timestamp - startTime) < whitelistOnly) ) return true; if (((block.timestamp - startTime) > whitelistOnly)) return true; return false; } function mint(bytes32[] calldata merkleProof) external payable nonReentrant { if (started == false) revert NotStarted(); if (ended == true) revert AlreadyEnded(); if (!canMint(msg.sender, merkleProof)) revert NotWhitelisted(msg.sender); if (msg.value < cost) revert NotEnoughETH(msg.value); if (mintCount >= cap) revert MintCapReached(); if (mints[msg.sender]) revert AlreadyMinted(msg.sender); mintCount++; mints[msg.sender] = true; /* refund the user for everything above cost */ uint256 remainingETH = msg.value - cost; if (remainingETH > 0) { (bool sent, ) = msg.sender.call{value: remainingETH}(""); if (!sent) revert FailedRefundingSurplus(remainingETH); } _safeMint(msg.sender, mintCount); emit Minted(msg.sender, mintCount); } function finish() external onlyOwner { if (ended == true) revert AlreadyEnded(); ended = true; emit EndMintPhase(); } function mintRemainer() external onlyOwner { /* Mint remaining to multisig */ for (uint256 index = mintCount; index < cap; index++) { mintCount++; _safeMint(owner, mintCount); } } /* Sale */ /* Recovery functions */ function recoverETH() external onlyOwner { (bool sent, ) = payable(msg.sender).call{value: address(this).balance}( "" ); if (!sent) revert SendingFailed(); } function recoverERC20(IERC20 _token) external onlyOwner { _token.transfer(msg.sender, _token.balanceOf(address(this))); } /* Recovery functions */ fallback() external payable {} receive() external payable {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^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() { _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 making 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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"); (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"); (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"); (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"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 5000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"multisig","type":"address"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyEnded","type":"error"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"AlreadyMinted","type":"error"},{"inputs":[],"name":"AlreadyStarted","type":"error"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"FailedRefundingSurplus","type":"error"},{"inputs":[],"name":"MintCapReached","type":"error"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"NotEnoughETH","type":"error"},{"inputs":[],"name":"NotOwner","type":"error"},{"inputs":[],"name":"NotStarted","type":"error"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"NotWhitelisted","type":"error"},{"inputs":[],"name":"SendingFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[],"name":"EndMintPhase","type":"event"},{"anonymous":false,"inputs":[],"name":"MetadataUpdate","type":"event"},{"anonymous":false,"inputs":[],"name":"MintPhase","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"canMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ended","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finish","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintRemainer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mints","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"recoverETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newMetadata","type":"string"}],"name":"setTokenMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"start","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"started","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistOnly","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c06040526007805461ffff1916905567030d98d59a96000060085561022b6080526000600955611c20600b553480156200003957600080fd5b5060405162002bc738038062002bc78339810160408190526200005c916200054f565b604080518082018252600d81526c0a0c2dcc8dee4c24ee64084def609b1b6020808301918252835180850190945260038452620849eb60eb1b908401528151919291620000ac91600091620004a9565b508051620000c2906001906020840190620004a9565b50506001600655506007805462010000600160b01b031916620100006001600160a01b0385160217905560a081905260005b60378110156200013e5760098054906000620001108362000691565b919050555062000129836009546200014760201b60201c565b80620001358162000691565b915050620000f4565b505050620006c5565b620001698282604051806020016040528060008152506200016d60201b60201c565b5050565b620001798383620001e9565b62000188600084848462000331565b620001e45760405162461bcd60e51b8152602060048201526032602482015260008051602062002ba783398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084015b60405180910390fd5b505050565b6001600160a01b038216620002415760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401620001db565b6000818152600260205260409020546001600160a01b031615620002a85760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401620001db565b6001600160a01b0382166000908152600360205260408120805460019290620002d390849062000639565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600062000352846001600160a01b03166200049a60201b620015051760201c565b156200048e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906200038c903390899088908890600401620005be565b602060405180830381600087803b158015620003a757600080fd5b505af1925050508015620003da575060408051601f3d908101601f19168201909252620003d7918101906200058b565b60015b62000473573d8080156200040b576040519150601f19603f3d011682016040523d82523d6000602084013e62000410565b606091505b5080516200046b5760405162461bcd60e51b8152602060048201526032602482015260008051602062002ba783398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401620001db565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905062000492565b5060015b949350505050565b6001600160a01b03163b151590565b828054620004b79062000654565b90600052602060002090601f016020900481019282620004db576000855562000526565b82601f10620004f657805160ff191683800117855562000526565b8280016001018555821562000526579182015b828111156200052657825182559160200191906001019062000509565b506200053492915062000538565b5090565b5b8082111562000534576000815560010162000539565b600080604083850312156200056357600080fd5b82516001600160a01b03811681146200057b57600080fd5b6020939093015192949293505050565b6000602082840312156200059e57600080fd5b81516001600160e01b031981168114620005b757600080fd5b9392505050565b600060018060a01b038087168352602081871681850152856040850152608060608501528451915081608085015260005b828110156200060d5785810182015185820160a001528101620005ef565b828111156200062057600060a084870101525b5050601f01601f19169190910160a00195945050505050565b600082198211156200064f576200064f620006af565b500190565b600181811c908216806200066957607f821691505b602082108114156200068b57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415620006a857620006a8620006af565b5060010190565b634e487b7160e01b600052601160045260246000fd5b60805160a0516124a76200070060003960008181610320015261138301526000818161035401528181610e1a01526110bb01526124a76000f3fe6080604052600436106101c45760003560e01c806370a08231116100f6578063b88d4fde1161008f578063c87b56dd11610061578063c87b56dd14610540578063cbd0fffe14610560578063d56b288914610580578063e985e9c51461059557005b8063b88d4fde146104d6578063bde6395b146104f6578063be9a65551461050b578063c1fab8e91461052057005b80639659867e116100c85780639659867e1461046d5780639e8c708e14610483578063a22cb465146104a3578063b77a147b146104c357005b806370a08231146103fc57806378e979251461041c5780638da5cb5b1461043257806395d89b411461045857005b80631f2698ab1161016857806342842e0e1161013a57806342842e0e146103765780634b4687b5146103965780635660f851146103ac5780636352211e146103dc57005b80631f2698ab146102d457806323b872dd146102ee5780632eb4a7ab1461030e578063355274ea1461034257005b8063081812fc116101a1578063081812fc14610239578063095ea7b31461027157806312fa6feb1461029157806313faede6146102b057005b806301ffc9a7146101cd5780630614117a1461020257806306fdde031461021757005b366101cb57005b005b3480156101d957600080fd5b506101ed6101e836600461215d565b6105de565b60405190151581526020015b60405180910390f35b34801561020e57600080fd5b506101cb6106c3565b34801561022357600080fd5b5061022c610792565b6040516101f991906122c4565b34801561024557600080fd5b50610259610254366004612209565b610824565b6040516001600160a01b0390911681526020016101f9565b34801561027d57600080fd5b506101cb61028c3660046120d2565b61084b565b34801561029d57600080fd5b506007546101ed90610100900460ff1681565b3480156102bc57600080fd5b506102c660085481565b6040519081526020016101f9565b3480156102e057600080fd5b506007546101ed9060ff1681565b3480156102fa57600080fd5b506101cb610309366004611f2e565b610982565b34801561031a57600080fd5b506102c67f000000000000000000000000000000000000000000000000000000000000000081565b34801561034e57600080fd5b506102c67f000000000000000000000000000000000000000000000000000000000000000081565b34801561038257600080fd5b506101cb610391366004611f2e565b610a09565b3480156103a257600080fd5b506102c6600b5481565b3480156103b857600080fd5b506101ed6103c7366004611ed8565b600a6020526000908152604090205460ff1681565b3480156103e857600080fd5b506102596103f7366004612209565b610a24565b34801561040857600080fd5b506102c6610417366004611ed8565b610a89565b34801561042857600080fd5b506102c6600c5481565b34801561043e57600080fd5b50600754610259906201000090046001600160a01b031681565b34801561046457600080fd5b5061022c610b23565b34801561047957600080fd5b506102c660095481565b34801561048f57600080fd5b506101cb61049e366004611ed8565b610b32565b3480156104af57600080fd5b506101cb6104be3660046120a4565b610cb0565b6101cb6104d13660046120fe565b610cbb565b3480156104e257600080fd5b506101cb6104f1366004611f6f565b610fdd565b34801561050257600080fd5b506101cb61106b565b34801561051757600080fd5b506101cb611127565b34801561052c57600080fd5b506101cb61053b366004612197565b6111ef565b34801561054c57600080fd5b5061022c61055b366004612209565b611273565b34801561056c57600080fd5b506101ed61057b36600461204f565b611307565b34801561058c57600080fd5b506101cb61141c565b3480156105a157600080fd5b506101ed6105b0366004611ef5565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061067157507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806106bd57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6007546201000090046001600160a01b0316331461070d576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604051600090339047908381818185875af1925050503d806000811461074f576040519150601f19603f3d011682016040523d82523d6000602084013e610754565b606091505b505090508061078f576040517fa105e7ed00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b6060600080546107a190612306565b80601f01602080910402602001604051908101604052809291908181526020018280546107cd90612306565b801561081a5780601f106107ef5761010080835404028352916020019161081a565b820191906000526020600020905b8154815290600101906020018083116107fd57829003601f168201915b5050505050905090565b600061082f82611514565b506000908152600460205260409020546001600160a01b031690565b600061085682610a24565b9050806001600160a01b0316836001600160a01b031614156108e55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b336001600160a01b0382161480610901575061090181336105b0565b6109735760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016108dc565b61097d8383611578565b505050565b61098c33826115fe565b6109fe5760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f76656400000000000000000000000000000000000060648201526084016108dc565b61097d83838361167d565b61097d83838360405180602001604052806000815250610fdd565b6000818152600260205260408120546001600160a01b0316806106bd5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016108dc565b60006001600160a01b038216610b075760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e6572000000000000000000000000000000000000000000000060648201526084016108dc565b506001600160a01b031660009081526003602052604090205490565b6060600180546107a190612306565b6007546201000090046001600160a01b03163314610b7c576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b0382169063a9059cbb90339083906370a082319060240160206040518083038186803b158015610bde57600080fd5b505afa158015610bf2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c169190612222565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015610c7457600080fd5b505af1158015610c88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cac9190612140565b5050565b610cac338383611862565b60026006541415610d0e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108dc565b600260065560075460ff16610d4f576040517f6f312cbd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60075460ff61010090910416151560011415610d97576040517f4f9ebfb700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610da2338383611307565b610dda576040517fdf17e3160000000000000000000000000000000000000000000000000000000081523360048201526024016108dc565b600854341015610e18576040517f3982b4510000000000000000000000000000000000000000000000000000000081523460048201526024016108dc565b7f000000000000000000000000000000000000000000000000000000000000000060095410610e73576040517f5fb1eed100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600a602052604090205460ff1615610ebf576040517f893cc5760000000000000000000000000000000000000000000000000000000081523360048201526024016108dc565b60098054906000610ecf8361235a565b9091555050336000908152600a60205260408120805460ff19166001179055600854610efb90346122ef565b90508015610f8a57604051600090339083908381818185875af1925050503d8060008114610f45576040519150601f19603f3d011682016040523d82523d6000602084013e610f4a565b606091505b5050905080610f88576040517f4289e5d6000000000000000000000000000000000000000000000000000000008152600481018390526024016108dc565b505b610f9633600954611931565b6009546040805133815260208101929092527f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe910160405180910390a15050600160065550565b610fe733836115fe565b6110595760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f76656400000000000000000000000000000000000060648201526084016108dc565b6110658484848461194b565b50505050565b6007546201000090046001600160a01b031633146110b5576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6009545b7f000000000000000000000000000000000000000000000000000000000000000081101561078f57600980549060006110f18361235a565b9091555050600754600954611115916201000090046001600160a01b031690611931565b8061111f8161235a565b9150506110b9565b6007546201000090046001600160a01b03163314611171576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60075460ff161515600114156111b3576040517f1fbde44500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007805460ff1916600117905542600c556040517f280809a2ab731dff7baa6f36a3fe8c943be9b46735a257f9c077d2169116a85990600090a1565b6007546201000090046001600160a01b03163314611239576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611245600d8383611df3565b506040517f22e4f6d6e52498ce761f4a367a6aaff84750f8bfb036d99abbb027e50eddacd990600090a15050565b6060600d805461128290612306565b80601f01602080910402602001604051908101604052809291908181526020018280546112ae90612306565b80156112fb5780601f106112d0576101008083540402835291602001916112fb565b820191906000526020600020905b8154815290600101906020018083116112de57829003601f168201915b50505050509050919050565b60075460009060ff1661131c57506000611415565b60006113c4848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040517fffffffffffffffffffffffffffffffffffffffff00000000000000000000000060608b901b1660208201527f000000000000000000000000000000000000000000000000000000000000000092506034019050604051602081830303815290604052805190602001206119d4565b90508080156113e05750600b54600c546113de90426122ef565b105b156113ef576001915050611415565b600b54600c546113ff90426122ef565b111561140f576001915050611415565b60009150505b9392505050565b6007546201000090046001600160a01b03163314611466576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60075460ff610100909104161515600114156114ae576040517f4f9ebfb700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790556040517f927f27027a49569914693629df93d0c4c3a0d51b520cd094c0f9f514de9ab4cd90600090a1565b6001600160a01b03163b151590565b6000818152600260205260409020546001600160a01b031661078f5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016108dc565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03841690811790915581906115c582610a24565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061160a83610a24565b9050806001600160a01b0316846001600160a01b0316148061165157506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806116755750836001600160a01b031661166a84610824565b6001600160a01b0316145b949350505050565b826001600160a01b031661169082610a24565b6001600160a01b03161461170c5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e657200000000000000000000000000000000000000000000000000000060648201526084016108dc565b6001600160a01b0382166117875760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016108dc565b611792600082611578565b6001600160a01b03831660009081526003602052604081208054600192906117bb9084906122ef565b90915550506001600160a01b03821660009081526003602052604081208054600192906117e99084906122d7565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b816001600160a01b0316836001600160a01b031614156118c45760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108dc565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b610cac8282604051806020016040528060008152506119ea565b61195684848461167d565b61196284848484611a73565b6110655760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016108dc565b6000826119e18584611c20565b14949350505050565b6119f48383611c6d565b611a016000848484611a73565b61097d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016108dc565b60006001600160a01b0384163b15611c15576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290611ad0903390899088908890600401612288565b602060405180830381600087803b158015611aea57600080fd5b505af1925050508015611b1a575060408051601f3d908101601f19168201909252611b179181019061217a565b60015b611bca573d808015611b48576040519150601f19603f3d011682016040523d82523d6000602084013e611b4d565b606091505b508051611bc25760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016108dc565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611675565b506001949350505050565b600081815b8451811015611c6557611c5182868381518110611c4457611c446123c2565b6020026020010151611dc7565b915080611c5d8161235a565b915050611c25565b509392505050565b6001600160a01b038216611cc35760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108dc565b6000818152600260205260409020546001600160a01b031615611d285760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108dc565b6001600160a01b0382166000908152600360205260408120805460019290611d519084906122d7565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818310611de3576000828152602084905260409020611415565b5060009182526020526040902090565b828054611dff90612306565b90600052602060002090601f016020900481019282611e215760008555611e67565b82601f10611e3a5782800160ff19823516178555611e67565b82800160010185558215611e67579182015b82811115611e67578235825591602001919060010190611e4c565b50611e73929150611e77565b5090565b5b80821115611e735760008155600101611e78565b60008083601f840112611e9e57600080fd5b50813567ffffffffffffffff811115611eb657600080fd5b6020830191508360208260051b8501011115611ed157600080fd5b9250929050565b600060208284031215611eea57600080fd5b813561141581612420565b60008060408385031215611f0857600080fd5b8235611f1381612420565b91506020830135611f2381612420565b809150509250929050565b600080600060608486031215611f4357600080fd5b8335611f4e81612420565b92506020840135611f5e81612420565b929592945050506040919091013590565b60008060008060808587031215611f8557600080fd5b8435611f9081612420565b93506020850135611fa081612420565b925060408501359150606085013567ffffffffffffffff80821115611fc457600080fd5b818701915087601f830112611fd857600080fd5b813581811115611fea57611fea6123f1565b604051601f8201601f19908116603f01168101908382118183101715612012576120126123f1565b816040528281528a602084870101111561202b57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060006040848603121561206457600080fd5b833561206f81612420565b9250602084013567ffffffffffffffff81111561208b57600080fd5b61209786828701611e8c565b9497909650939450505050565b600080604083850312156120b757600080fd5b82356120c281612420565b91506020830135611f2381612435565b600080604083850312156120e557600080fd5b82356120f081612420565b946020939093013593505050565b6000806020838503121561211157600080fd5b823567ffffffffffffffff81111561212857600080fd5b61213485828601611e8c565b90969095509350505050565b60006020828403121561215257600080fd5b815161141581612435565b60006020828403121561216f57600080fd5b813561141581612443565b60006020828403121561218c57600080fd5b815161141581612443565b600080602083850312156121aa57600080fd5b823567ffffffffffffffff808211156121c257600080fd5b818501915085601f8301126121d657600080fd5b8135818111156121e557600080fd5b8660208285010111156121f757600080fd5b60209290920196919550909350505050565b60006020828403121561221b57600080fd5b5035919050565b60006020828403121561223457600080fd5b5051919050565b6000815180845260005b8181101561226157602081850181015186830182015201612245565b81811115612273576000602083870101525b50601f01601f19169290920160200192915050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526122ba608083018461223b565b9695505050505050565b602081526000611415602083018461223b565b600082198211156122ea576122ea612393565b500190565b60008282101561230157612301612393565b500390565b600181811c9082168061231a57607f821691505b60208210811415612354577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561238c5761238c612393565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6001600160a01b038116811461078f57600080fd5b801515811461078f57600080fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461078f57600080fdfea2646970667358221220064cb2e93a6453428247427bf61f9c7187c967f07ec60423610112ccf9b88c9264736f6c634300080600334552433732313a207472616e7366657220746f206e6f6e204552433732315265000000000000000000000000e452138e69a922b9d4cc485d46e7f7d6328732c3c5da670cb152026b1820dbc92d2b47d8f3b91e8e1e06b62cff73f3aac744b322
Deployed Bytecode
0x6080604052600436106101c45760003560e01c806370a08231116100f6578063b88d4fde1161008f578063c87b56dd11610061578063c87b56dd14610540578063cbd0fffe14610560578063d56b288914610580578063e985e9c51461059557005b8063b88d4fde146104d6578063bde6395b146104f6578063be9a65551461050b578063c1fab8e91461052057005b80639659867e116100c85780639659867e1461046d5780639e8c708e14610483578063a22cb465146104a3578063b77a147b146104c357005b806370a08231146103fc57806378e979251461041c5780638da5cb5b1461043257806395d89b411461045857005b80631f2698ab1161016857806342842e0e1161013a57806342842e0e146103765780634b4687b5146103965780635660f851146103ac5780636352211e146103dc57005b80631f2698ab146102d457806323b872dd146102ee5780632eb4a7ab1461030e578063355274ea1461034257005b8063081812fc116101a1578063081812fc14610239578063095ea7b31461027157806312fa6feb1461029157806313faede6146102b057005b806301ffc9a7146101cd5780630614117a1461020257806306fdde031461021757005b366101cb57005b005b3480156101d957600080fd5b506101ed6101e836600461215d565b6105de565b60405190151581526020015b60405180910390f35b34801561020e57600080fd5b506101cb6106c3565b34801561022357600080fd5b5061022c610792565b6040516101f991906122c4565b34801561024557600080fd5b50610259610254366004612209565b610824565b6040516001600160a01b0390911681526020016101f9565b34801561027d57600080fd5b506101cb61028c3660046120d2565b61084b565b34801561029d57600080fd5b506007546101ed90610100900460ff1681565b3480156102bc57600080fd5b506102c660085481565b6040519081526020016101f9565b3480156102e057600080fd5b506007546101ed9060ff1681565b3480156102fa57600080fd5b506101cb610309366004611f2e565b610982565b34801561031a57600080fd5b506102c67fc5da670cb152026b1820dbc92d2b47d8f3b91e8e1e06b62cff73f3aac744b32281565b34801561034e57600080fd5b506102c67f000000000000000000000000000000000000000000000000000000000000022b81565b34801561038257600080fd5b506101cb610391366004611f2e565b610a09565b3480156103a257600080fd5b506102c6600b5481565b3480156103b857600080fd5b506101ed6103c7366004611ed8565b600a6020526000908152604090205460ff1681565b3480156103e857600080fd5b506102596103f7366004612209565b610a24565b34801561040857600080fd5b506102c6610417366004611ed8565b610a89565b34801561042857600080fd5b506102c6600c5481565b34801561043e57600080fd5b50600754610259906201000090046001600160a01b031681565b34801561046457600080fd5b5061022c610b23565b34801561047957600080fd5b506102c660095481565b34801561048f57600080fd5b506101cb61049e366004611ed8565b610b32565b3480156104af57600080fd5b506101cb6104be3660046120a4565b610cb0565b6101cb6104d13660046120fe565b610cbb565b3480156104e257600080fd5b506101cb6104f1366004611f6f565b610fdd565b34801561050257600080fd5b506101cb61106b565b34801561051757600080fd5b506101cb611127565b34801561052c57600080fd5b506101cb61053b366004612197565b6111ef565b34801561054c57600080fd5b5061022c61055b366004612209565b611273565b34801561056c57600080fd5b506101ed61057b36600461204f565b611307565b34801561058c57600080fd5b506101cb61141c565b3480156105a157600080fd5b506101ed6105b0366004611ef5565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061067157507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806106bd57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6007546201000090046001600160a01b0316331461070d576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604051600090339047908381818185875af1925050503d806000811461074f576040519150601f19603f3d011682016040523d82523d6000602084013e610754565b606091505b505090508061078f576040517fa105e7ed00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b6060600080546107a190612306565b80601f01602080910402602001604051908101604052809291908181526020018280546107cd90612306565b801561081a5780601f106107ef5761010080835404028352916020019161081a565b820191906000526020600020905b8154815290600101906020018083116107fd57829003601f168201915b5050505050905090565b600061082f82611514565b506000908152600460205260409020546001600160a01b031690565b600061085682610a24565b9050806001600160a01b0316836001600160a01b031614156108e55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b336001600160a01b0382161480610901575061090181336105b0565b6109735760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016108dc565b61097d8383611578565b505050565b61098c33826115fe565b6109fe5760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f76656400000000000000000000000000000000000060648201526084016108dc565b61097d83838361167d565b61097d83838360405180602001604052806000815250610fdd565b6000818152600260205260408120546001600160a01b0316806106bd5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016108dc565b60006001600160a01b038216610b075760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e6572000000000000000000000000000000000000000000000060648201526084016108dc565b506001600160a01b031660009081526003602052604090205490565b6060600180546107a190612306565b6007546201000090046001600160a01b03163314610b7c576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b0382169063a9059cbb90339083906370a082319060240160206040518083038186803b158015610bde57600080fd5b505afa158015610bf2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c169190612222565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015610c7457600080fd5b505af1158015610c88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cac9190612140565b5050565b610cac338383611862565b60026006541415610d0e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108dc565b600260065560075460ff16610d4f576040517f6f312cbd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60075460ff61010090910416151560011415610d97576040517f4f9ebfb700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610da2338383611307565b610dda576040517fdf17e3160000000000000000000000000000000000000000000000000000000081523360048201526024016108dc565b600854341015610e18576040517f3982b4510000000000000000000000000000000000000000000000000000000081523460048201526024016108dc565b7f000000000000000000000000000000000000000000000000000000000000022b60095410610e73576040517f5fb1eed100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600a602052604090205460ff1615610ebf576040517f893cc5760000000000000000000000000000000000000000000000000000000081523360048201526024016108dc565b60098054906000610ecf8361235a565b9091555050336000908152600a60205260408120805460ff19166001179055600854610efb90346122ef565b90508015610f8a57604051600090339083908381818185875af1925050503d8060008114610f45576040519150601f19603f3d011682016040523d82523d6000602084013e610f4a565b606091505b5050905080610f88576040517f4289e5d6000000000000000000000000000000000000000000000000000000008152600481018390526024016108dc565b505b610f9633600954611931565b6009546040805133815260208101929092527f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe910160405180910390a15050600160065550565b610fe733836115fe565b6110595760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f76656400000000000000000000000000000000000060648201526084016108dc565b6110658484848461194b565b50505050565b6007546201000090046001600160a01b031633146110b5576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6009545b7f000000000000000000000000000000000000000000000000000000000000022b81101561078f57600980549060006110f18361235a565b9091555050600754600954611115916201000090046001600160a01b031690611931565b8061111f8161235a565b9150506110b9565b6007546201000090046001600160a01b03163314611171576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60075460ff161515600114156111b3576040517f1fbde44500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007805460ff1916600117905542600c556040517f280809a2ab731dff7baa6f36a3fe8c943be9b46735a257f9c077d2169116a85990600090a1565b6007546201000090046001600160a01b03163314611239576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611245600d8383611df3565b506040517f22e4f6d6e52498ce761f4a367a6aaff84750f8bfb036d99abbb027e50eddacd990600090a15050565b6060600d805461128290612306565b80601f01602080910402602001604051908101604052809291908181526020018280546112ae90612306565b80156112fb5780601f106112d0576101008083540402835291602001916112fb565b820191906000526020600020905b8154815290600101906020018083116112de57829003601f168201915b50505050509050919050565b60075460009060ff1661131c57506000611415565b60006113c4848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040517fffffffffffffffffffffffffffffffffffffffff00000000000000000000000060608b901b1660208201527fc5da670cb152026b1820dbc92d2b47d8f3b91e8e1e06b62cff73f3aac744b32292506034019050604051602081830303815290604052805190602001206119d4565b90508080156113e05750600b54600c546113de90426122ef565b105b156113ef576001915050611415565b600b54600c546113ff90426122ef565b111561140f576001915050611415565b60009150505b9392505050565b6007546201000090046001600160a01b03163314611466576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60075460ff610100909104161515600114156114ae576040517f4f9ebfb700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790556040517f927f27027a49569914693629df93d0c4c3a0d51b520cd094c0f9f514de9ab4cd90600090a1565b6001600160a01b03163b151590565b6000818152600260205260409020546001600160a01b031661078f5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064016108dc565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03841690811790915581906115c582610a24565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061160a83610a24565b9050806001600160a01b0316846001600160a01b0316148061165157506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806116755750836001600160a01b031661166a84610824565b6001600160a01b0316145b949350505050565b826001600160a01b031661169082610a24565b6001600160a01b03161461170c5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e657200000000000000000000000000000000000000000000000000000060648201526084016108dc565b6001600160a01b0382166117875760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016108dc565b611792600082611578565b6001600160a01b03831660009081526003602052604081208054600192906117bb9084906122ef565b90915550506001600160a01b03821660009081526003602052604081208054600192906117e99084906122d7565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b816001600160a01b0316836001600160a01b031614156118c45760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108dc565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b610cac8282604051806020016040528060008152506119ea565b61195684848461167d565b61196284848484611a73565b6110655760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016108dc565b6000826119e18584611c20565b14949350505050565b6119f48383611c6d565b611a016000848484611a73565b61097d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016108dc565b60006001600160a01b0384163b15611c15576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290611ad0903390899088908890600401612288565b602060405180830381600087803b158015611aea57600080fd5b505af1925050508015611b1a575060408051601f3d908101601f19168201909252611b179181019061217a565b60015b611bca573d808015611b48576040519150601f19603f3d011682016040523d82523d6000602084013e611b4d565b606091505b508051611bc25760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016108dc565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611675565b506001949350505050565b600081815b8451811015611c6557611c5182868381518110611c4457611c446123c2565b6020026020010151611dc7565b915080611c5d8161235a565b915050611c25565b509392505050565b6001600160a01b038216611cc35760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108dc565b6000818152600260205260409020546001600160a01b031615611d285760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108dc565b6001600160a01b0382166000908152600360205260408120805460019290611d519084906122d7565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818310611de3576000828152602084905260409020611415565b5060009182526020526040902090565b828054611dff90612306565b90600052602060002090601f016020900481019282611e215760008555611e67565b82601f10611e3a5782800160ff19823516178555611e67565b82800160010185558215611e67579182015b82811115611e67578235825591602001919060010190611e4c565b50611e73929150611e77565b5090565b5b80821115611e735760008155600101611e78565b60008083601f840112611e9e57600080fd5b50813567ffffffffffffffff811115611eb657600080fd5b6020830191508360208260051b8501011115611ed157600080fd5b9250929050565b600060208284031215611eea57600080fd5b813561141581612420565b60008060408385031215611f0857600080fd5b8235611f1381612420565b91506020830135611f2381612420565b809150509250929050565b600080600060608486031215611f4357600080fd5b8335611f4e81612420565b92506020840135611f5e81612420565b929592945050506040919091013590565b60008060008060808587031215611f8557600080fd5b8435611f9081612420565b93506020850135611fa081612420565b925060408501359150606085013567ffffffffffffffff80821115611fc457600080fd5b818701915087601f830112611fd857600080fd5b813581811115611fea57611fea6123f1565b604051601f8201601f19908116603f01168101908382118183101715612012576120126123f1565b816040528281528a602084870101111561202b57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060006040848603121561206457600080fd5b833561206f81612420565b9250602084013567ffffffffffffffff81111561208b57600080fd5b61209786828701611e8c565b9497909650939450505050565b600080604083850312156120b757600080fd5b82356120c281612420565b91506020830135611f2381612435565b600080604083850312156120e557600080fd5b82356120f081612420565b946020939093013593505050565b6000806020838503121561211157600080fd5b823567ffffffffffffffff81111561212857600080fd5b61213485828601611e8c565b90969095509350505050565b60006020828403121561215257600080fd5b815161141581612435565b60006020828403121561216f57600080fd5b813561141581612443565b60006020828403121561218c57600080fd5b815161141581612443565b600080602083850312156121aa57600080fd5b823567ffffffffffffffff808211156121c257600080fd5b818501915085601f8301126121d657600080fd5b8135818111156121e557600080fd5b8660208285010111156121f757600080fd5b60209290920196919550909350505050565b60006020828403121561221b57600080fd5b5035919050565b60006020828403121561223457600080fd5b5051919050565b6000815180845260005b8181101561226157602081850181015186830182015201612245565b81811115612273576000602083870101525b50601f01601f19169290920160200192915050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526122ba608083018461223b565b9695505050505050565b602081526000611415602083018461223b565b600082198211156122ea576122ea612393565b500190565b60008282101561230157612301612393565b500390565b600181811c9082168061231a57607f821691505b60208210811415612354577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561238c5761238c612393565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6001600160a01b038116811461078f57600080fd5b801515811461078f57600080fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461078f57600080fdfea2646970667358221220064cb2e93a6453428247427bf61f9c7187c967f07ec60423610112ccf9b88c9264736f6c63430008060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000e452138e69a922b9d4cc485d46e7f7d6328732c3c5da670cb152026b1820dbc92d2b47d8f3b91e8e1e06b62cff73f3aac744b322
-----Decoded View---------------
Arg [0] : multisig (address): 0xE452138E69a922b9D4cC485d46E7f7d6328732c3
Arg [1] : _merkleRoot (bytes32): 0xc5da670cb152026b1820dbc92d2b47d8f3b91e8e1e06b62cff73f3aac744b322
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000e452138e69a922b9d4cc485d46e7f7d6328732c3
Arg [1] : c5da670cb152026b1820dbc92d2b47d8f3b91e8e1e06b62cff73f3aac744b322
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.