Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
NFT
Overview
Max Total Supply
7,777 FRNS
Holders
1,326
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
0 FRNSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Frens
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT /* 7,777 cc0 frENS, shilling nonsense, yelling at Nick. eth, and praying for SIWE. Twitter: https://twitter.com/frENSNFT_ Website: https://frens.studio Discord: https://discord.gg/mXjrqK9b ================Easter Eggs================ Winner for each riddle will get a 0.25 eth prize. To claim your prize, DM us on Twitter (frENSNFT_) with the hash transaction and answer. Riddle 1: I'm a breeze in summer, refreshing and fine, Not hot, not warm, but pleasantly right. In emotions, I might make you frown, In a city, you'll find me in the heart of the town. Who am I? Riddle 2: I'm not this, I'm not that, a category I'm not. When one is chosen, I'm what they've got. On paper's stage, I take my form, A history of choices, norms to reform. Who am I? */ pragma solidity ^0.8.18; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "operator-filter-registry/src/DefaultOperatorFilterer.sol"; import "./IDelegationRegistryExcerpt.sol"; contract Frens is DefaultOperatorFilterer, ERC721, Ownable { using Strings for uint256; using Counters for Counters.Counter; Counters.Counter private supply; address public snapshotContract; address private constant _DELEGATION_REGISTRY = 0x00000000000076A84feF008CDAbe6409d2FE638B; string internal uri; string internal uriSuffix = ".json"; string internal hiddenMetadataUri; uint256 public cost; uint256 public maxSupply; uint256 public maxMintAmountPerTx; bool public paused = true; bool public revealed = false; bool public presale = false; bytes32 internal merkleRoot; address public feeReceiver; address public riddle1Winner; address public riddle2Winner; mapping(address => bool) public whitelistClaimed; mapping(address => uint) public walletMints; constructor( string memory _name, string memory _symbol, uint256 _cost, uint256 _maxSupply, uint256 _maxMintAmountPerTrx ) ERC721(_name, _symbol) { cost = _cost; maxSupply = _maxSupply; maxMintAmountPerTx = _maxMintAmountPerTrx; } modifier mintCompliance(uint256 _mintAmount) { require( _mintAmount > 0 && _mintAmount <= maxMintAmountPerTx, "Invalid mint amount!" ); require( supply.current() + _mintAmount <= maxSupply, "Max supply exceeded!" ); _; } function totalSupply() public view returns (uint256) { return supply.current(); } function mint(uint256 _mintAmount) public payable mintCompliance(_mintAmount) { require(!paused, "Mint have not started yet"); require(msg.value >= cost * _mintAmount, "Insufficient funds!"); require(walletMints[msg.sender] + _mintAmount <= maxMintAmountPerTx, "Maximum mints per wallet limit exceeded"); walletMints[msg.sender] = walletMints[msg.sender] + _mintAmount; _mintLoop(msg.sender, _mintAmount); } function whitelistMint(address vault, uint256 _mintAmount, bytes32[] calldata _merkleProof) public payable mintCompliance(_mintAmount) { require(presale, "Presale is not active."); address claimer = msg.sender; if (vault != address(0) && vault != msg.sender) { require(IDelegationRegistry(_DELEGATION_REGISTRY).checkDelegateForContract(msg.sender, vault, snapshotContract), 'Not delegated on contract'); claimer = vault; } require(!whitelistClaimed[claimer], "Address has already claimed."); require(_mintAmount <= 4, "Max 4 per WL wallet."); if (_mintAmount > 1) { require(msg.value >= (cost * (_mintAmount - 1)), "Insufficient funds!"); } bytes32 leaf = keccak256(bytes.concat(keccak256(abi.encode(claimer)))); require( MerkleProof.verify(_merkleProof, merkleRoot, leaf), "Invalid proof" ); whitelistClaimed[claimer] = true; walletMints[claimer] = walletMints[claimer] + _mintAmount; _mintLoop(claimer, _mintAmount); } function mintForAddress(uint256 _mintAmount, address _receiver) public mintCompliance(_mintAmount) onlyOwner { _mintLoop(_receiver, _mintAmount); } function walletOfOwner(address _owner) public view returns (uint256[] memory) { uint256 ownerTokenCount = balanceOf(_owner); uint256[] memory ownedTokenIds = new uint256[](ownerTokenCount); uint256 currentTokenId = 1; uint256 ownedTokenIndex = 0; while ( ownedTokenIndex < ownerTokenCount && currentTokenId <= maxSupply ) { address currentTokenOwner = ownerOf(currentTokenId); if (currentTokenOwner == _owner) { ownedTokenIds[ownedTokenIndex] = currentTokenId; ownedTokenIndex++; } currentTokenId++; } return ownedTokenIds; } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require( _exists(_tokenId), "ERC721Metadata: URI query for nonexistent token" ); if (revealed == false) { return hiddenMetadataUri; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string( abi.encodePacked( currentBaseURI, _tokenId.toString(), uriSuffix ) ) : ""; } function setRevealed(bool _state) public onlyOwner { revealed = _state; } function setCost(uint256 _cost) public onlyOwner { cost = _cost; } function setMaxMintAmountPerTx(uint256 _maxMintAmountPerTx) public onlyOwner { maxMintAmountPerTx = _maxMintAmountPerTx; } function setHiddenMetadataUri(string memory _hiddenMetadataUri) public onlyOwner { hiddenMetadataUri = _hiddenMetadataUri; } function setUri(string memory _uri) public onlyOwner { uri = _uri; } function setUriSuffix(string memory _uriSuffix) public onlyOwner { uriSuffix = _uriSuffix; } function setPaused(bool _state) public onlyOwner { paused = _state; } function setPresale(bool _bool) public onlyOwner { require(snapshotContract != address(0), 'Snapshot contract not set'); require(merkleRoot != bytes32(0), 'MerkleRoot not set'); presale = _bool; } function setMerkleRoot(bytes32 _newMerkleRoot) public onlyOwner { merkleRoot = _newMerkleRoot; } function withdraw() public onlyOwner { require(feeReceiver != address(0), 'Fee receiver unset'); (bool os, ) = payable(feeReceiver).call{value: address(this).balance}(""); require(os); } function _mintLoop(address _receiver, uint256 _mintAmount) internal { for (uint256 i = 0; i < _mintAmount; i++) { supply.increment(); _safeMint(_receiver, supply.current()); } } function setWithdrawReceiver(address _receiver) public onlyOwner { feeReceiver = _receiver; } function setSnapShotContract(address _contract) public onlyOwner { snapshotContract = _contract; } function getMintedAmount(address _address) public view returns (uint256) { return walletMints[_address]; } function isWl(address _address, bytes32[] calldata _merkleProof) public view returns (bool) { bytes32 leaf = keccak256(bytes.concat(keccak256(abi.encode(_address)))); if (MerkleProof.verify(_merkleProof, merkleRoot, leaf)) return true; else return false; } function _baseURI() internal view virtual override returns (string memory) { return uri; } function answerRiddle1(string memory word) public { bytes32 answer = 0x600c9e601db6b78478816ba89472d10c317ad5c5de0c730d5445d564063d0928; bytes32 answer2 = 0x1a2b422a98e5997505ec11e80526a028849794d1ce7b18f7b3b86467bf527132; require(!paused, 'It is too early for an answer'); require(riddle1Winner == address(0), 'Riddle has been already answered'); require(sha256(abi.encodePacked(word)) == answer || sha256(abi.encodePacked(word)) == answer2, 'Wrong answer'); riddle1Winner = msg.sender; } function answerRiddle2(string memory word) public { bytes32 answer = 0x36b9a725939ace7a71e1241a3bb02c92ddb0c27aa31d111262544d35e6979c73; bytes32 answer2 = 0xac284abad8e59f9958b1bafb227bee6ab4d1233ec9c3fab565920744e6b49b2a; require(!paused, 'It is too early for an answer'); require(riddle2Winner == address(0), 'Riddle has been already answered'); require(sha256(abi.encodePacked(word)) == answer || sha256(abi.encodePacked(word)) == answer2, 'Wrong answer'); riddle2Winner = msg.sender; } receive() external payable {} function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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 = _ownerOf(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 or 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 or 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 or 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 the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @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 _ownerOf(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, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @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, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @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. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {} /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such * that `ownerOf(tokenId)` is `a`. */ // solhint-disable-next-line func-name-mixedcase function __unsafe_increaseBalance(address account, uint256 amount) internal { _balances[account] += amount; } }
// 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 (last updated v4.9.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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * 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 (last updated v4.9.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 * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.2) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * 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. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ 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 simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _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} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _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 sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds 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 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proofLen - 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 from 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) { require(proofPos == proofLen, "MerkleProof: invalid multiproof"); unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds 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 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proofLen - 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 from 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) { require(proofPos == proofLen, "MerkleProof: invalid multiproof"); unchecked { 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 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 (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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; import "./math/SignedMath.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _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) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value)))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _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); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return keccak256(bytes(a)) == keccak256(bytes(b)); } }
// SPDX-License-Identifier: CC0-1.0 pragma solidity ^0.8.18; /** * @title A partial interface taken from the IDelegationRegistry provided under * the CC0-1.0 Creative Commons license by delegate.cash */ interface IDelegationRegistry { function checkDelegateForContract( address delegate, address vault, address contract_ ) external returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {OperatorFilterer} from "./OperatorFilterer.sol"; import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol"; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. * @dev Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { /// @dev The constructor that is called when the contract is being deployed. constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { /** * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns * true if supplied registrant address is not registered. */ function isOperatorAllowed(address registrant, address operator) external view returns (bool); /** * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner. */ function register(address registrant) external; /** * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes. */ function registerAndSubscribe(address registrant, address subscription) external; /** * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another * address without subscribing. */ function registerAndCopyEntries(address registrant, address registrantToCopy) external; /** * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner. * Note that this does not remove any filtered addresses or codeHashes. * Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes. */ function unregister(address addr) external; /** * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered. */ function updateOperator(address registrant, address operator, bool filtered) external; /** * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates. */ function updateOperators(address registrant, address[] calldata operators, bool filtered) external; /** * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered. */ function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; /** * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates. */ function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; /** * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous * subscription if present. * Note that accounts with subscriptions may go on to subscribe to other accounts - in this case, * subscriptions will not be forwarded. Instead the former subscription's existing entries will still be * used. */ function subscribe(address registrant, address registrantToSubscribe) external; /** * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes. */ function unsubscribe(address registrant, bool copyExistingEntries) external; /** * @notice Get the subscription address of a given registrant, if any. */ function subscriptionOf(address addr) external returns (address registrant); /** * @notice Get the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscribers(address registrant) external returns (address[] memory); /** * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscriberAt(address registrant, uint256 index) external returns (address); /** * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr. */ function copyEntriesOf(address registrant, address registrantToCopy) external; /** * @notice Returns true if operator is filtered by a given address or its subscription. */ function isOperatorFiltered(address registrant, address operator) external returns (bool); /** * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription. */ function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); /** * @notice Returns true if a codeHash is filtered by a given address or its subscription. */ function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); /** * @notice Returns a list of filtered operators for a given address or its subscription. */ function filteredOperators(address addr) external returns (address[] memory); /** * @notice Returns the set of filtered codeHashes for a given address or its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashes(address addr) external returns (bytes32[] memory); /** * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredOperatorAt(address registrant, uint256 index) external returns (address); /** * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); /** * @notice Returns true if an address has registered */ function isRegistered(address addr) external returns (bool); /** * @dev Convenience method to compute the code hash of an arbitrary contract */ function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E; address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol"; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. * Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract OperatorFilterer { /// @dev Emitted when an operator is not allowed. error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS); /// @dev The constructor that is called when the contract is being deployed. constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } /** * @dev A helper function to check if an operator is allowed. */ modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } /** * @dev A helper function to check if an operator approval is allowed. */ modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } /** * @dev A helper function to check if an operator is allowed. */ function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // under normal circumstances, this function will revert rather than return false, but inheriting contracts // may specify their own OperatorFilterRegistry implementations, which may behave differently if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"_cost","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_maxMintAmountPerTrx","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","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":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"word","type":"string"}],"name":"answerRiddle1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"word","type":"string"}],"name":"answerRiddle2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","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":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"_address","type":"address"}],"name":"getMintedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"isWl","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"mintForAddress","outputs":[],"stateMutability":"nonpayable","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":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"riddle1Winner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"riddle2Winner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"uint256","name":"_cost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_hiddenMetadataUri","type":"string"}],"name":"setHiddenMetadataUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintAmountPerTx","type":"uint256"}],"name":"setMaxMintAmountPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_newMerkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_bool","type":"bool"}],"name":"setPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"setSnapShotContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriSuffix","type":"string"}],"name":"setUriSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"}],"name":"setWithdrawReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"snapshotContract","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"walletMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"vault","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600a90816200004a91906200068d565b506001600f60006101000a81548160ff0219169083151502179055506000600f60016101000a81548160ff0219169083151502179055506000600f60026101000a81548160ff021916908315150217905550348015620000a957600080fd5b506040516200661a3803806200661a8339818101604052810190620000cf919062000909565b8484733cc6cdda760b79bafa08df41ecfa224f810dceb6600160006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115620002dd578015620001a3576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b81526004016200016992919062000a14565b600060405180830381600087803b1580156200018457600080fd5b505af115801562000199573d6000803e3d6000fd5b50505050620002dc565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146200025d576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b81526004016200022392919062000a14565b600060405180830381600087803b1580156200023e57600080fd5b505af115801562000253573d6000803e3d6000fd5b50505050620002db565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b8152600401620002a6919062000a41565b600060405180830381600087803b158015620002c157600080fd5b505af1158015620002d6573d6000803e3d6000fd5b505050505b5b5b50508160009081620002f091906200068d565b5080600190816200030291906200068d565b50505062000325620003196200034560201b60201c565b6200034d60201b60201c565b82600c8190555081600d8190555080600e81905550505050505062000a5e565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200049557607f821691505b602082108103620004ab57620004aa6200044d565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620005157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620004d6565b620005218683620004d6565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b60006200056e62000568620005628462000539565b62000543565b62000539565b9050919050565b6000819050919050565b6200058a836200054d565b620005a2620005998262000575565b848454620004e3565b825550505050565b600090565b620005b9620005aa565b620005c68184846200057f565b505050565b5b81811015620005ee57620005e2600082620005af565b600181019050620005cc565b5050565b601f8211156200063d576200060781620004b1565b6200061284620004c6565b8101602085101562000622578190505b6200063a6200063185620004c6565b830182620005cb565b50505b505050565b600082821c905092915050565b6000620006626000198460080262000642565b1980831691505092915050565b60006200067d83836200064f565b9150826002028217905092915050565b620006988262000413565b67ffffffffffffffff811115620006b457620006b36200041e565b5b620006c082546200047c565b620006cd828285620005f2565b600060209050601f831160018114620007055760008415620006f0578287015190505b620006fc85826200066f565b8655506200076c565b601f1984166200071586620004b1565b60005b828110156200073f5784890151825560018201915060208501945060208101905062000718565b868310156200075f57848901516200075b601f8916826200064f565b8355505b6001600288020188555050505b505050505050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b620007ae8262000792565b810181811067ffffffffffffffff82111715620007d057620007cf6200041e565b5b80604052505050565b6000620007e562000774565b9050620007f38282620007a3565b919050565b600067ffffffffffffffff8211156200081657620008156200041e565b5b620008218262000792565b9050602081019050919050565b60005b838110156200084e57808201518184015260208101905062000831565b60008484015250505050565b6000620008716200086b84620007f8565b620007d9565b90508281526020810184848401111562000890576200088f6200078d565b5b6200089d8482856200082e565b509392505050565b600082601f830112620008bd57620008bc62000788565b5b8151620008cf8482602086016200085a565b91505092915050565b620008e38162000539565b8114620008ef57600080fd5b50565b6000815190506200090381620008d8565b92915050565b600080600080600060a086880312156200092857620009276200077e565b5b600086015167ffffffffffffffff81111562000949576200094862000783565b5b6200095788828901620008a5565b955050602086015167ffffffffffffffff8111156200097b576200097a62000783565b5b6200098988828901620008a5565b94505060406200099c88828901620008f2565b9350506060620009af88828901620008f2565b9250506080620009c288828901620008f2565b9150509295509295909350565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620009fc82620009cf565b9050919050565b62000a0e81620009ef565b82525050565b600060408201905062000a2b600083018562000a03565b62000a3a602083018462000a03565b9392505050565b600060208201905062000a58600083018462000a03565b92915050565b615bac8062000a6e6000396000f3fe6080604052600436106102cd5760003560e01c80638914f54211610175578063c54e73e3116100dc578063ee772d2211610095578063f2fde38b1161006f578063f2fde38b14610add578063f3729c1314610b06578063f5918c9d14610b43578063fdea8e0b14610b6c576102d4565b8063ee772d2214610a4c578063efbd73f414610a77578063f0293fd314610aa0576102d4565b8063c54e73e314610918578063c87b56dd14610941578063d5abeb011461097e578063db4bec44146109a9578063e0a80853146109e6578063e985e9c514610a0f576102d4565b8063a1d524f91161012e578063a1d524f91461081e578063a22cb46514610847578063b071401b14610870578063b3f0067414610899578063b88d4fde146108c4578063c3c0b114146108ed576102d4565b80638914f5421461072d5780638da5cb5b1461075857806394354fd01461078357806395d89b41146107ae5780639b642de1146107d9578063a0712d6814610802576102d4565b806342842e0e116102345780635c975abb116101ed57806363b266ba116101c757806363b266ba1461067357806370a08231146106b0578063715018a6146106ed5780637cb6475914610704576102d4565b80635c975abb146105e25780636100c9c71461060d5780636352211e14610636576102d4565b806342842e0e146104e3578063438b63001461050c57806344a0d68a146105495780634b11faaf146105725780634fdd43cb1461058e57806351830227146105b7576102d4565b806316c38b3c1161028657806316c38b3c146103fb57806318160ddd1461042457806323b872dd1461044f57806333aeac54146104785780633ccfd60b146104a157806341f43434146104b8576102d4565b806301ffc9a7146102d957806306fdde0314610316578063081812fc14610341578063095ea7b31461037e57806313faede6146103a757806316ba10e0146103d2576102d4565b366102d457005b600080fd5b3480156102e557600080fd5b5061030060048036038101906102fb9190613bd1565b610b97565b60405161030d9190613c19565b60405180910390f35b34801561032257600080fd5b5061032b610c79565b6040516103389190613cc4565b60405180910390f35b34801561034d57600080fd5b5061036860048036038101906103639190613d1c565b610d0b565b6040516103759190613d8a565b60405180910390f35b34801561038a57600080fd5b506103a560048036038101906103a09190613dd1565b610d51565b005b3480156103b357600080fd5b506103bc610d6a565b6040516103c99190613e20565b60405180910390f35b3480156103de57600080fd5b506103f960048036038101906103f49190613f70565b610d70565b005b34801561040757600080fd5b50610422600480360381019061041d9190613fe5565b610d8b565b005b34801561043057600080fd5b50610439610db0565b6040516104469190613e20565b60405180910390f35b34801561045b57600080fd5b5061047660048036038101906104719190614012565b610dc1565b005b34801561048457600080fd5b5061049f600480360381019061049a9190613f70565b610e10565b005b3480156104ad57600080fd5b506104b66110af565b005b3480156104c457600080fd5b506104cd6111e3565b6040516104da91906140c4565b60405180910390f35b3480156104ef57600080fd5b5061050a60048036038101906105059190614012565b6111f5565b005b34801561051857600080fd5b50610533600480360381019061052e91906140df565b611244565b60405161054091906141ca565b60405180910390f35b34801561055557600080fd5b50610570600480360381019061056b9190613d1c565b61134e565b005b61058c6004803603810190610587919061424c565b611360565b005b34801561059a57600080fd5b506105b560048036038101906105b09190613f70565b6118ce565b005b3480156105c357600080fd5b506105cc6118e9565b6040516105d99190613c19565b60405180910390f35b3480156105ee57600080fd5b506105f76118fc565b6040516106049190613c19565b60405180910390f35b34801561061957600080fd5b50610634600480360381019061062f9190613f70565b61190f565b005b34801561064257600080fd5b5061065d60048036038101906106589190613d1c565b611bae565b60405161066a9190613d8a565b60405180910390f35b34801561067f57600080fd5b5061069a600480360381019061069591906140df565b611c34565b6040516106a79190613e20565b60405180910390f35b3480156106bc57600080fd5b506106d760048036038101906106d291906140df565b611c7d565b6040516106e49190613e20565b60405180910390f35b3480156106f957600080fd5b50610702611d34565b005b34801561071057600080fd5b5061072b600480360381019061072691906142f6565b611d48565b005b34801561073957600080fd5b50610742611d5a565b60405161074f9190613d8a565b60405180910390f35b34801561076457600080fd5b5061076d611d80565b60405161077a9190613d8a565b60405180910390f35b34801561078f57600080fd5b50610798611daa565b6040516107a59190613e20565b60405180910390f35b3480156107ba57600080fd5b506107c3611db0565b6040516107d09190613cc4565b60405180910390f35b3480156107e557600080fd5b5061080060048036038101906107fb9190613f70565b611e42565b005b61081c60048036038101906108179190613d1c565b611e5d565b005b34801561082a57600080fd5b50610845600480360381019061084091906140df565b6120d3565b005b34801561085357600080fd5b5061086e60048036038101906108699190614323565b61211f565b005b34801561087c57600080fd5b5061089760048036038101906108929190613d1c565b612138565b005b3480156108a557600080fd5b506108ae61214a565b6040516108bb9190613d8a565b60405180910390f35b3480156108d057600080fd5b506108eb60048036038101906108e69190614404565b612170565b005b3480156108f957600080fd5b506109026121c1565b60405161090f9190613d8a565b60405180910390f35b34801561092457600080fd5b5061093f600480360381019061093a9190613fe5565b6121e7565b005b34801561094d57600080fd5b5061096860048036038101906109639190613d1c565b6122e4565b6040516109759190613cc4565b60405180910390f35b34801561098a57600080fd5b5061099361243c565b6040516109a09190613e20565b60405180910390f35b3480156109b557600080fd5b506109d060048036038101906109cb91906140df565b612442565b6040516109dd9190613c19565b60405180910390f35b3480156109f257600080fd5b50610a0d6004803603810190610a089190613fe5565b612462565b005b348015610a1b57600080fd5b50610a366004803603810190610a319190614487565b612487565b604051610a439190613c19565b60405180910390f35b348015610a5857600080fd5b50610a6161251b565b604051610a6e9190613d8a565b60405180910390f35b348015610a8357600080fd5b50610a9e6004803603810190610a9991906144c7565b612541565b005b348015610aac57600080fd5b50610ac76004803603810190610ac291906140df565b612603565b604051610ad49190613e20565b60405180910390f35b348015610ae957600080fd5b50610b046004803603810190610aff91906140df565b61261b565b005b348015610b1257600080fd5b50610b2d6004803603810190610b289190614507565b61269e565b604051610b3a9190613c19565b60405180910390f35b348015610b4f57600080fd5b50610b6a6004803603810190610b6591906140df565b61275a565b005b348015610b7857600080fd5b50610b816127a6565b604051610b8e9190613c19565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c6257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c725750610c71826127b9565b5b9050919050565b606060008054610c8890614596565b80601f0160208091040260200160405190810160405280929190818152602001828054610cb490614596565b8015610d015780601f10610cd657610100808354040283529160200191610d01565b820191906000526020600020905b815481529060010190602001808311610ce457829003601f168201915b5050505050905090565b6000610d1682612823565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610d5b8161286e565b610d65838361296b565b505050565b600c5481565b610d78612a82565b80600a9081610d879190614769565b5050565b610d93612a82565b80600f60006101000a81548160ff02191690831515021790555050565b6000610dbc6007612b00565b905090565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610dff57610dfe3361286e565b5b610e0a848484612b0e565b50505050565b60007f600c9e601db6b78478816ba89472d10c317ad5c5de0c730d5445d564063d092860001b905060007f1a2b422a98e5997505ec11e80526a028849794d1ce7b18f7b3b86467bf52713260001b9050600f60009054906101000a900460ff1615610eb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea790614887565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f38906148f3565b60405180910390fd5b81600284604051602001610f55919061494f565b604051602081830303815290604052604051610f7191906149ad565b602060405180830381855afa158015610f8e573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190610fb191906149d9565b148061102a575080600284604051602001610fcc919061494f565b604051602081830303815290604052604051610fe891906149ad565b602060405180830381855afa158015611005573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061102891906149d9565b145b611069576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106090614a52565b60405180910390fd5b33601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b6110b7612a82565b600073ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603611148576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113f90614abe565b60405180910390fd5b6000601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff164760405161119090614b04565b60006040518083038185875af1925050503d80600081146111cd576040519150601f19603f3d011682016040523d82523d6000602084013e6111d2565b606091505b50509050806111e057600080fd5b50565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611233576112323361286e565b5b61123e848484612b6e565b50505050565b6060600061125183611c7d565b905060008167ffffffffffffffff81111561126f5761126e613e45565b5b60405190808252806020026020018201604052801561129d5781602001602082028036833780820191505090505b50905060006001905060005b83811080156112ba5750600d548211155b156113425760006112ca83611bae565b90508673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361132e578284838151811061131357611312614b19565b5b602002602001018181525050818061132a90614b77565b9250505b828061133990614b77565b935050506112a9565b82945050505050919050565b611356612a82565b80600c8190555050565b826000811180156113735750600e548111155b6113b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a990614c0b565b60405180910390fd5b600d54816113c06007612b00565b6113ca9190614c2b565b111561140b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140290614cab565b60405180910390fd5b600f60029054906101000a900460ff1661145a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145190614d17565b60405180910390fd5b6000339050600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16141580156114c857503373ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614155b156115c0576d76a84fef008cdabe6409d2fe638b73ffffffffffffffffffffffffffffffffffffffff166390c9a2d03388600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518463ffffffff1660e01b815260040161153a93929190614d37565b6020604051808303816000875af1158015611559573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061157d9190614d83565b6115bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b390614dfc565b60405180910390fd5b8590505b601460008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561164d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164490614e68565b60405180910390fd5b6004851115611691576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168890614ed4565b60405180910390fd5b60018511156116f7576001856116a79190614ef4565b600c546116b49190614f28565b3410156116f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ed90614fb6565b60405180910390fd5b5b60008160405160200161170a9190613d8a565b604051602081830303815290604052805190602001206040516020016117309190614ff7565b604051602081830303815290604052805190602001209050611796858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060105483612b8e565b6117d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117cc9061505e565b60405180910390fd5b6001601460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555085601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546118789190614c2b565b601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506118c58287612ba5565b50505050505050565b6118d6612a82565b80600b90816118e59190614769565b5050565b600f60019054906101000a900460ff1681565b600f60009054906101000a900460ff1681565b60007f36b9a725939ace7a71e1241a3bb02c92ddb0c27aa31d111262544d35e6979c7360001b905060007fac284abad8e59f9958b1bafb227bee6ab4d1233ec9c3fab565920744e6b49b2a60001b9050600f60009054906101000a900460ff16156119af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119a690614887565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611a40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a37906148f3565b60405180910390fd5b81600284604051602001611a54919061494f565b604051602081830303815290604052604051611a7091906149ad565b602060405180830381855afa158015611a8d573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190611ab091906149d9565b1480611b29575080600284604051602001611acb919061494f565b604051602081830303815290604052604051611ae791906149ad565b602060405180830381855afa158015611b04573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190611b2791906149d9565b145b611b68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5f90614a52565b60405180910390fd5b33601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b600080611bba83612be5565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611c2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c22906150ca565b60405180910390fd5b80915050919050565b6000601560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611ced576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ce49061515c565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611d3c612a82565b611d466000612c22565b565b611d50612a82565b8060108190555050565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600e5481565b606060018054611dbf90614596565b80601f0160208091040260200160405190810160405280929190818152602001828054611deb90614596565b8015611e385780601f10611e0d57610100808354040283529160200191611e38565b820191906000526020600020905b815481529060010190602001808311611e1b57829003601f168201915b5050505050905090565b611e4a612a82565b8060099081611e599190614769565b5050565b80600081118015611e705750600e548111155b611eaf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea690614c0b565b60405180910390fd5b600d5481611ebd6007612b00565b611ec79190614c2b565b1115611f08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eff90614cab565b60405180910390fd5b600f60009054906101000a900460ff1615611f58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4f906151c8565b60405180910390fd5b81600c54611f669190614f28565b341015611fa8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9f90614fb6565b60405180910390fd5b600e5482601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ff69190614c2b565b1115612037576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202e9061525a565b60405180910390fd5b81601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546120829190614c2b565b601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506120cf3383612ba5565b5050565b6120db612a82565b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b816121298161286e565b6121338383612ce8565b505050565b612140612a82565b80600e8190555050565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146121ae576121ad3361286e565b5b6121ba85858585612cfe565b5050505050565b601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6121ef612a82565b600073ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603612280576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612277906152c6565b60405180910390fd5b6000801b601054036122c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122be90615332565b60405180910390fd5b80600f60026101000a81548160ff02191690831515021790555050565b60606122ef82612d60565b61232e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612325906153c4565b60405180910390fd5b60001515600f60019054906101000a900460ff161515036123db57600b805461235690614596565b80601f016020809104026020016040519081016040528092919081815260200182805461238290614596565b80156123cf5780601f106123a4576101008083540402835291602001916123cf565b820191906000526020600020905b8154815290600101906020018083116123b257829003601f168201915b50505050509050612437565b60006123e5612da1565b905060008151116124055760405180602001604052806000815250612433565b8061240f84612e33565b600a60405160200161242393929190615467565b6040516020818303038152906040525b9150505b919050565b600d5481565b60146020528060005260406000206000915054906101000a900460ff1681565b61246a612a82565b80600f60016101000a81548160ff02191690831515021790555050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b816000811180156125545750600e548111155b612593576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161258a90614c0b565b60405180910390fd5b600d54816125a16007612b00565b6125ab9190614c2b565b11156125ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125e390614cab565b60405180910390fd5b6125f4612a82565b6125fe8284612ba5565b505050565b60156020528060005260406000206000915090505481565b612623612a82565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612692576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126899061550a565b60405180910390fd5b61269b81612c22565b50565b600080846040516020016126b29190613d8a565b604051602081830303815290604052805190602001206040516020016126d89190614ff7565b60405160208183030381529060405280519060200120905061273e848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060105483612b8e565b1561274d576001915050612753565b60009150505b9392505050565b612762612a82565b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600f60029054906101000a900460ff1681565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61282c81612d60565b61286b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612862906150ca565b60405180910390fd5b50565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115612968576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b81526004016128e592919061552a565b602060405180830381865afa158015612902573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129269190614d83565b61296757806040517fede71dcc00000000000000000000000000000000000000000000000000000000815260040161295e9190613d8a565b60405180910390fd5b5b50565b600061297682611bae565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036129e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129dd906155c5565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16612a05612f01565b73ffffffffffffffffffffffffffffffffffffffff161480612a345750612a3381612a2e612f01565b612487565b5b612a73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a6a90615657565b60405180910390fd5b612a7d8383612f09565b505050565b612a8a612f01565b73ffffffffffffffffffffffffffffffffffffffff16612aa8611d80565b73ffffffffffffffffffffffffffffffffffffffff1614612afe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612af5906156c3565b60405180910390fd5b565b600081600001549050919050565b612b1f612b19612f01565b82612fc2565b612b5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b5590615755565b60405180910390fd5b612b69838383613057565b505050565b612b8983838360405180602001604052806000815250612170565b505050565b600082612b9b8584613350565b1490509392505050565b60005b81811015612be057612bba60076133a6565b612bcd83612bc86007612b00565b6133bc565b8080612bd890614b77565b915050612ba8565b505050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612cfa612cf3612f01565b83836133da565b5050565b612d0f612d09612f01565b83612fc2565b612d4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d4590615755565b60405180910390fd5b612d5a84848484613546565b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff16612d8283612be5565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b606060098054612db090614596565b80601f0160208091040260200160405190810160405280929190818152602001828054612ddc90614596565b8015612e295780601f10612dfe57610100808354040283529160200191612e29565b820191906000526020600020905b815481529060010190602001808311612e0c57829003601f168201915b5050505050905090565b606060006001612e42846135a2565b01905060008167ffffffffffffffff811115612e6157612e60613e45565b5b6040519080825280601f01601f191660200182016040528015612e935781602001600182028036833780820191505090505b509050600082602001820190505b600115612ef6578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612eea57612ee9615775565b5b04945060008503612ea1575b819350505050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612f7c83611bae565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080612fce83611bae565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480613010575061300f8185612487565b5b8061304e57508373ffffffffffffffffffffffffffffffffffffffff1661303684610d0b565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661307782611bae565b73ffffffffffffffffffffffffffffffffffffffff16146130cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130c490615816565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361313c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613133906158a8565b60405180910390fd5b61314983838360016136f5565b8273ffffffffffffffffffffffffffffffffffffffff1661316982611bae565b73ffffffffffffffffffffffffffffffffffffffff16146131bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131b690615816565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461334b83838360016136fb565b505050565b60008082905060005b845181101561339b576133868286838151811061337957613378614b19565b5b6020026020010151613701565b9150808061339390614b77565b915050613359565b508091505092915050565b6001816000016000828254019250508190555050565b6133d682826040518060200160405280600081525061372c565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603613448576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161343f90615914565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516135399190613c19565b60405180910390a3505050565b613551848484613057565b61355d84848484613787565b61359c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613593906159a6565b60405180910390fd5b50505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613600577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816135f6576135f5615775565b5b0492506040810190505b6d04ee2d6d415b85acef8100000000831061363d576d04ee2d6d415b85acef8100000000838161363357613632615775565b5b0492506020810190505b662386f26fc10000831061366c57662386f26fc10000838161366257613661615775565b5b0492506010810190505b6305f5e1008310613695576305f5e100838161368b5761368a615775565b5b0492506008810190505b61271083106136ba5761271083816136b0576136af615775565b5b0492506004810190505b606483106136dd57606483816136d3576136d2615775565b5b0492506002810190505b600a83106136ec576001810190505b80915050919050565b50505050565b50505050565b600081831061371957613714828461390e565b613724565b613723838361390e565b5b905092915050565b6137368383613925565b6137436000848484613787565b613782576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613779906159a6565b60405180910390fd5b505050565b60006137a88473ffffffffffffffffffffffffffffffffffffffff16613b42565b15613901578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026137d1612f01565b8786866040518563ffffffff1660e01b81526004016137f39493929190615a10565b6020604051808303816000875af192505050801561382f57506040513d601f19601f8201168201806040525081019061382c9190615a71565b60015b6138b1573d806000811461385f576040519150601f19603f3d011682016040523d82523d6000602084013e613864565b606091505b5060008151036138a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138a0906159a6565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613906565b600190505b949350505050565b600082600052816020526040600020905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613994576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161398b90615aea565b60405180910390fd5b61399d81612d60565b156139dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139d490615b56565b60405180910390fd5b6139eb6000838360016136f5565b6139f481612d60565b15613a34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a2b90615b56565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613b3e6000838360016136fb565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613bae81613b79565b8114613bb957600080fd5b50565b600081359050613bcb81613ba5565b92915050565b600060208284031215613be757613be6613b6f565b5b6000613bf584828501613bbc565b91505092915050565b60008115159050919050565b613c1381613bfe565b82525050565b6000602082019050613c2e6000830184613c0a565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613c6e578082015181840152602081019050613c53565b60008484015250505050565b6000601f19601f8301169050919050565b6000613c9682613c34565b613ca08185613c3f565b9350613cb0818560208601613c50565b613cb981613c7a565b840191505092915050565b60006020820190508181036000830152613cde8184613c8b565b905092915050565b6000819050919050565b613cf981613ce6565b8114613d0457600080fd5b50565b600081359050613d1681613cf0565b92915050565b600060208284031215613d3257613d31613b6f565b5b6000613d4084828501613d07565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613d7482613d49565b9050919050565b613d8481613d69565b82525050565b6000602082019050613d9f6000830184613d7b565b92915050565b613dae81613d69565b8114613db957600080fd5b50565b600081359050613dcb81613da5565b92915050565b60008060408385031215613de857613de7613b6f565b5b6000613df685828601613dbc565b9250506020613e0785828601613d07565b9150509250929050565b613e1a81613ce6565b82525050565b6000602082019050613e356000830184613e11565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613e7d82613c7a565b810181811067ffffffffffffffff82111715613e9c57613e9b613e45565b5b80604052505050565b6000613eaf613b65565b9050613ebb8282613e74565b919050565b600067ffffffffffffffff821115613edb57613eda613e45565b5b613ee482613c7a565b9050602081019050919050565b82818337600083830152505050565b6000613f13613f0e84613ec0565b613ea5565b905082815260208101848484011115613f2f57613f2e613e40565b5b613f3a848285613ef1565b509392505050565b600082601f830112613f5757613f56613e3b565b5b8135613f67848260208601613f00565b91505092915050565b600060208284031215613f8657613f85613b6f565b5b600082013567ffffffffffffffff811115613fa457613fa3613b74565b5b613fb084828501613f42565b91505092915050565b613fc281613bfe565b8114613fcd57600080fd5b50565b600081359050613fdf81613fb9565b92915050565b600060208284031215613ffb57613ffa613b6f565b5b600061400984828501613fd0565b91505092915050565b60008060006060848603121561402b5761402a613b6f565b5b600061403986828701613dbc565b935050602061404a86828701613dbc565b925050604061405b86828701613d07565b9150509250925092565b6000819050919050565b600061408a61408561408084613d49565b614065565b613d49565b9050919050565b600061409c8261406f565b9050919050565b60006140ae82614091565b9050919050565b6140be816140a3565b82525050565b60006020820190506140d960008301846140b5565b92915050565b6000602082840312156140f5576140f4613b6f565b5b600061410384828501613dbc565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61414181613ce6565b82525050565b60006141538383614138565b60208301905092915050565b6000602082019050919050565b60006141778261410c565b6141818185614117565b935061418c83614128565b8060005b838110156141bd5781516141a48882614147565b97506141af8361415f565b925050600181019050614190565b5085935050505092915050565b600060208201905081810360008301526141e4818461416c565b905092915050565b600080fd5b600080fd5b60008083601f84011261420c5761420b613e3b565b5b8235905067ffffffffffffffff811115614229576142286141ec565b5b602083019150836020820283011115614245576142446141f1565b5b9250929050565b6000806000806060858703121561426657614265613b6f565b5b600061427487828801613dbc565b945050602061428587828801613d07565b935050604085013567ffffffffffffffff8111156142a6576142a5613b74565b5b6142b2878288016141f6565b925092505092959194509250565b6000819050919050565b6142d3816142c0565b81146142de57600080fd5b50565b6000813590506142f0816142ca565b92915050565b60006020828403121561430c5761430b613b6f565b5b600061431a848285016142e1565b91505092915050565b6000806040838503121561433a57614339613b6f565b5b600061434885828601613dbc565b925050602061435985828601613fd0565b9150509250929050565b600067ffffffffffffffff82111561437e5761437d613e45565b5b61438782613c7a565b9050602081019050919050565b60006143a76143a284614363565b613ea5565b9050828152602081018484840111156143c3576143c2613e40565b5b6143ce848285613ef1565b509392505050565b600082601f8301126143eb576143ea613e3b565b5b81356143fb848260208601614394565b91505092915050565b6000806000806080858703121561441e5761441d613b6f565b5b600061442c87828801613dbc565b945050602061443d87828801613dbc565b935050604061444e87828801613d07565b925050606085013567ffffffffffffffff81111561446f5761446e613b74565b5b61447b878288016143d6565b91505092959194509250565b6000806040838503121561449e5761449d613b6f565b5b60006144ac85828601613dbc565b92505060206144bd85828601613dbc565b9150509250929050565b600080604083850312156144de576144dd613b6f565b5b60006144ec85828601613d07565b92505060206144fd85828601613dbc565b9150509250929050565b6000806000604084860312156145205761451f613b6f565b5b600061452e86828701613dbc565b935050602084013567ffffffffffffffff81111561454f5761454e613b74565b5b61455b868287016141f6565b92509250509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806145ae57607f821691505b6020821081036145c1576145c0614567565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026146297fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826145ec565b61463386836145ec565b95508019841693508086168417925050509392505050565b600061466661466161465c84613ce6565b614065565b613ce6565b9050919050565b6000819050919050565b6146808361464b565b61469461468c8261466d565b8484546145f9565b825550505050565b600090565b6146a961469c565b6146b4818484614677565b505050565b5b818110156146d8576146cd6000826146a1565b6001810190506146ba565b5050565b601f82111561471d576146ee816145c7565b6146f7846145dc565b81016020851015614706578190505b61471a614712856145dc565b8301826146b9565b50505b505050565b600082821c905092915050565b600061474060001984600802614722565b1980831691505092915050565b6000614759838361472f565b9150826002028217905092915050565b61477282613c34565b67ffffffffffffffff81111561478b5761478a613e45565b5b6147958254614596565b6147a08282856146dc565b600060209050601f8311600181146147d357600084156147c1578287015190505b6147cb858261474d565b865550614833565b601f1984166147e1866145c7565b60005b82811015614809578489015182556001820191506020850194506020810190506147e4565b868310156148265784890151614822601f89168261472f565b8355505b6001600288020188555050505b505050505050565b7f497420697320746f6f206561726c7920666f7220616e20616e73776572000000600082015250565b6000614871601d83613c3f565b915061487c8261483b565b602082019050919050565b600060208201905081810360008301526148a081614864565b9050919050565b7f526964646c6520686173206265656e20616c726561647920616e737765726564600082015250565b60006148dd602083613c3f565b91506148e8826148a7565b602082019050919050565b6000602082019050818103600083015261490c816148d0565b9050919050565b600081905092915050565b600061492982613c34565b6149338185614913565b9350614943818560208601613c50565b80840191505092915050565b600061495b828461491e565b915081905092915050565b600081519050919050565b600081905092915050565b600061498782614966565b6149918185614971565b93506149a1818560208601613c50565b80840191505092915050565b60006149b9828461497c565b915081905092915050565b6000815190506149d3816142ca565b92915050565b6000602082840312156149ef576149ee613b6f565b5b60006149fd848285016149c4565b91505092915050565b7f57726f6e6720616e737765720000000000000000000000000000000000000000600082015250565b6000614a3c600c83613c3f565b9150614a4782614a06565b602082019050919050565b60006020820190508181036000830152614a6b81614a2f565b9050919050565b7f46656520726563656976657220756e7365740000000000000000000000000000600082015250565b6000614aa8601283613c3f565b9150614ab382614a72565b602082019050919050565b60006020820190508181036000830152614ad781614a9b565b9050919050565b50565b6000614aee600083614971565b9150614af982614ade565b600082019050919050565b6000614b0f82614ae1565b9150819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614b8282613ce6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614bb457614bb3614b48565b5b600182019050919050565b7f496e76616c6964206d696e7420616d6f756e7421000000000000000000000000600082015250565b6000614bf5601483613c3f565b9150614c0082614bbf565b602082019050919050565b60006020820190508181036000830152614c2481614be8565b9050919050565b6000614c3682613ce6565b9150614c4183613ce6565b9250828201905080821115614c5957614c58614b48565b5b92915050565b7f4d617820737570706c7920657863656564656421000000000000000000000000600082015250565b6000614c95601483613c3f565b9150614ca082614c5f565b602082019050919050565b60006020820190508181036000830152614cc481614c88565b9050919050565b7f50726573616c65206973206e6f74206163746976652e00000000000000000000600082015250565b6000614d01601683613c3f565b9150614d0c82614ccb565b602082019050919050565b60006020820190508181036000830152614d3081614cf4565b9050919050565b6000606082019050614d4c6000830186613d7b565b614d596020830185613d7b565b614d666040830184613d7b565b949350505050565b600081519050614d7d81613fb9565b92915050565b600060208284031215614d9957614d98613b6f565b5b6000614da784828501614d6e565b91505092915050565b7f4e6f742064656c656761746564206f6e20636f6e747261637400000000000000600082015250565b6000614de6601983613c3f565b9150614df182614db0565b602082019050919050565b60006020820190508181036000830152614e1581614dd9565b9050919050565b7f416464726573732068617320616c726561647920636c61696d65642e00000000600082015250565b6000614e52601c83613c3f565b9150614e5d82614e1c565b602082019050919050565b60006020820190508181036000830152614e8181614e45565b9050919050565b7f4d617820342070657220574c2077616c6c65742e000000000000000000000000600082015250565b6000614ebe601483613c3f565b9150614ec982614e88565b602082019050919050565b60006020820190508181036000830152614eed81614eb1565b9050919050565b6000614eff82613ce6565b9150614f0a83613ce6565b9250828203905081811115614f2257614f21614b48565b5b92915050565b6000614f3382613ce6565b9150614f3e83613ce6565b9250828202614f4c81613ce6565b91508282048414831517614f6357614f62614b48565b5b5092915050565b7f496e73756666696369656e742066756e64732100000000000000000000000000600082015250565b6000614fa0601383613c3f565b9150614fab82614f6a565b602082019050919050565b60006020820190508181036000830152614fcf81614f93565b9050919050565b6000819050919050565b614ff1614fec826142c0565b614fd6565b82525050565b60006150038284614fe0565b60208201915081905092915050565b7f496e76616c69642070726f6f6600000000000000000000000000000000000000600082015250565b6000615048600d83613c3f565b915061505382615012565b602082019050919050565b600060208201905081810360008301526150778161503b565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006150b4601883613c3f565b91506150bf8261507e565b602082019050919050565b600060208201905081810360008301526150e3816150a7565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000615146602983613c3f565b9150615151826150ea565b604082019050919050565b6000602082019050818103600083015261517581615139565b9050919050565b7f4d696e742068617665206e6f7420737461727465642079657400000000000000600082015250565b60006151b2601983613c3f565b91506151bd8261517c565b602082019050919050565b600060208201905081810360008301526151e1816151a5565b9050919050565b7f4d6178696d756d206d696e7473207065722077616c6c6574206c696d6974206560008201527f7863656564656400000000000000000000000000000000000000000000000000602082015250565b6000615244602783613c3f565b915061524f826151e8565b604082019050919050565b6000602082019050818103600083015261527381615237565b9050919050565b7f536e617073686f7420636f6e7472616374206e6f742073657400000000000000600082015250565b60006152b0601983613c3f565b91506152bb8261527a565b602082019050919050565b600060208201905081810360008301526152df816152a3565b9050919050565b7f4d65726b6c65526f6f74206e6f74207365740000000000000000000000000000600082015250565b600061531c601283613c3f565b9150615327826152e6565b602082019050919050565b6000602082019050818103600083015261534b8161530f565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006153ae602f83613c3f565b91506153b982615352565b604082019050919050565b600060208201905081810360008301526153dd816153a1565b9050919050565b600081546153f181614596565b6153fb8186614913565b94506001821660008114615416576001811461542b5761545e565b60ff198316865281151582028601935061545e565b615434856145c7565b60005b8381101561545657815481890152600182019150602081019050615437565b838801955050505b50505092915050565b6000615473828661491e565b915061547f828561491e565b915061548b82846153e4565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006154f4602683613c3f565b91506154ff82615498565b604082019050919050565b60006020820190508181036000830152615523816154e7565b9050919050565b600060408201905061553f6000830185613d7b565b61554c6020830184613d7b565b9392505050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006155af602183613c3f565b91506155ba82615553565b604082019050919050565b600060208201905081810360008301526155de816155a2565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b6000615641603d83613c3f565b915061564c826155e5565b604082019050919050565b6000602082019050818103600083015261567081615634565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006156ad602083613c3f565b91506156b882615677565b602082019050919050565b600060208201905081810360008301526156dc816156a0565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b600061573f602d83613c3f565b915061574a826156e3565b604082019050919050565b6000602082019050818103600083015261576e81615732565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000615800602583613c3f565b915061580b826157a4565b604082019050919050565b6000602082019050818103600083015261582f816157f3565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000615892602483613c3f565b915061589d82615836565b604082019050919050565b600060208201905081810360008301526158c181615885565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006158fe601983613c3f565b9150615909826158c8565b602082019050919050565b6000602082019050818103600083015261592d816158f1565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000615990603283613c3f565b915061599b82615934565b604082019050919050565b600060208201905081810360008301526159bf81615983565b9050919050565b600082825260208201905092915050565b60006159e282614966565b6159ec81856159c6565b93506159fc818560208601613c50565b615a0581613c7a565b840191505092915050565b6000608082019050615a256000830187613d7b565b615a326020830186613d7b565b615a3f6040830185613e11565b8181036060830152615a5181846159d7565b905095945050505050565b600081519050615a6b81613ba5565b92915050565b600060208284031215615a8757615a86613b6f565b5b6000615a9584828501615a5c565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615ad4602083613c3f565b9150615adf82615a9e565b602082019050919050565b60006020820190508181036000830152615b0381615ac7565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615b40601c83613c3f565b9150615b4b82615b0a565b602082019050919050565b60006020820190508181036000830152615b6f81615b33565b905091905056fea2646970667358221220dab88a6b6c2f949f04007e77d7324fedbfb599bc49fac75a92d015b6c0f7689164736f6c6343000813003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000c6f3b40b6c0000000000000000000000000000000000000000000000000000000000000001e61000000000000000000000000000000000000000000000000000000000000001900000000000000000000000000000000000000000000000000000000000000056672454e53000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000446524e5300000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102cd5760003560e01c80638914f54211610175578063c54e73e3116100dc578063ee772d2211610095578063f2fde38b1161006f578063f2fde38b14610add578063f3729c1314610b06578063f5918c9d14610b43578063fdea8e0b14610b6c576102d4565b8063ee772d2214610a4c578063efbd73f414610a77578063f0293fd314610aa0576102d4565b8063c54e73e314610918578063c87b56dd14610941578063d5abeb011461097e578063db4bec44146109a9578063e0a80853146109e6578063e985e9c514610a0f576102d4565b8063a1d524f91161012e578063a1d524f91461081e578063a22cb46514610847578063b071401b14610870578063b3f0067414610899578063b88d4fde146108c4578063c3c0b114146108ed576102d4565b80638914f5421461072d5780638da5cb5b1461075857806394354fd01461078357806395d89b41146107ae5780639b642de1146107d9578063a0712d6814610802576102d4565b806342842e0e116102345780635c975abb116101ed57806363b266ba116101c757806363b266ba1461067357806370a08231146106b0578063715018a6146106ed5780637cb6475914610704576102d4565b80635c975abb146105e25780636100c9c71461060d5780636352211e14610636576102d4565b806342842e0e146104e3578063438b63001461050c57806344a0d68a146105495780634b11faaf146105725780634fdd43cb1461058e57806351830227146105b7576102d4565b806316c38b3c1161028657806316c38b3c146103fb57806318160ddd1461042457806323b872dd1461044f57806333aeac54146104785780633ccfd60b146104a157806341f43434146104b8576102d4565b806301ffc9a7146102d957806306fdde0314610316578063081812fc14610341578063095ea7b31461037e57806313faede6146103a757806316ba10e0146103d2576102d4565b366102d457005b600080fd5b3480156102e557600080fd5b5061030060048036038101906102fb9190613bd1565b610b97565b60405161030d9190613c19565b60405180910390f35b34801561032257600080fd5b5061032b610c79565b6040516103389190613cc4565b60405180910390f35b34801561034d57600080fd5b5061036860048036038101906103639190613d1c565b610d0b565b6040516103759190613d8a565b60405180910390f35b34801561038a57600080fd5b506103a560048036038101906103a09190613dd1565b610d51565b005b3480156103b357600080fd5b506103bc610d6a565b6040516103c99190613e20565b60405180910390f35b3480156103de57600080fd5b506103f960048036038101906103f49190613f70565b610d70565b005b34801561040757600080fd5b50610422600480360381019061041d9190613fe5565b610d8b565b005b34801561043057600080fd5b50610439610db0565b6040516104469190613e20565b60405180910390f35b34801561045b57600080fd5b5061047660048036038101906104719190614012565b610dc1565b005b34801561048457600080fd5b5061049f600480360381019061049a9190613f70565b610e10565b005b3480156104ad57600080fd5b506104b66110af565b005b3480156104c457600080fd5b506104cd6111e3565b6040516104da91906140c4565b60405180910390f35b3480156104ef57600080fd5b5061050a60048036038101906105059190614012565b6111f5565b005b34801561051857600080fd5b50610533600480360381019061052e91906140df565b611244565b60405161054091906141ca565b60405180910390f35b34801561055557600080fd5b50610570600480360381019061056b9190613d1c565b61134e565b005b61058c6004803603810190610587919061424c565b611360565b005b34801561059a57600080fd5b506105b560048036038101906105b09190613f70565b6118ce565b005b3480156105c357600080fd5b506105cc6118e9565b6040516105d99190613c19565b60405180910390f35b3480156105ee57600080fd5b506105f76118fc565b6040516106049190613c19565b60405180910390f35b34801561061957600080fd5b50610634600480360381019061062f9190613f70565b61190f565b005b34801561064257600080fd5b5061065d60048036038101906106589190613d1c565b611bae565b60405161066a9190613d8a565b60405180910390f35b34801561067f57600080fd5b5061069a600480360381019061069591906140df565b611c34565b6040516106a79190613e20565b60405180910390f35b3480156106bc57600080fd5b506106d760048036038101906106d291906140df565b611c7d565b6040516106e49190613e20565b60405180910390f35b3480156106f957600080fd5b50610702611d34565b005b34801561071057600080fd5b5061072b600480360381019061072691906142f6565b611d48565b005b34801561073957600080fd5b50610742611d5a565b60405161074f9190613d8a565b60405180910390f35b34801561076457600080fd5b5061076d611d80565b60405161077a9190613d8a565b60405180910390f35b34801561078f57600080fd5b50610798611daa565b6040516107a59190613e20565b60405180910390f35b3480156107ba57600080fd5b506107c3611db0565b6040516107d09190613cc4565b60405180910390f35b3480156107e557600080fd5b5061080060048036038101906107fb9190613f70565b611e42565b005b61081c60048036038101906108179190613d1c565b611e5d565b005b34801561082a57600080fd5b50610845600480360381019061084091906140df565b6120d3565b005b34801561085357600080fd5b5061086e60048036038101906108699190614323565b61211f565b005b34801561087c57600080fd5b5061089760048036038101906108929190613d1c565b612138565b005b3480156108a557600080fd5b506108ae61214a565b6040516108bb9190613d8a565b60405180910390f35b3480156108d057600080fd5b506108eb60048036038101906108e69190614404565b612170565b005b3480156108f957600080fd5b506109026121c1565b60405161090f9190613d8a565b60405180910390f35b34801561092457600080fd5b5061093f600480360381019061093a9190613fe5565b6121e7565b005b34801561094d57600080fd5b5061096860048036038101906109639190613d1c565b6122e4565b6040516109759190613cc4565b60405180910390f35b34801561098a57600080fd5b5061099361243c565b6040516109a09190613e20565b60405180910390f35b3480156109b557600080fd5b506109d060048036038101906109cb91906140df565b612442565b6040516109dd9190613c19565b60405180910390f35b3480156109f257600080fd5b50610a0d6004803603810190610a089190613fe5565b612462565b005b348015610a1b57600080fd5b50610a366004803603810190610a319190614487565b612487565b604051610a439190613c19565b60405180910390f35b348015610a5857600080fd5b50610a6161251b565b604051610a6e9190613d8a565b60405180910390f35b348015610a8357600080fd5b50610a9e6004803603810190610a9991906144c7565b612541565b005b348015610aac57600080fd5b50610ac76004803603810190610ac291906140df565b612603565b604051610ad49190613e20565b60405180910390f35b348015610ae957600080fd5b50610b046004803603810190610aff91906140df565b61261b565b005b348015610b1257600080fd5b50610b2d6004803603810190610b289190614507565b61269e565b604051610b3a9190613c19565b60405180910390f35b348015610b4f57600080fd5b50610b6a6004803603810190610b6591906140df565b61275a565b005b348015610b7857600080fd5b50610b816127a6565b604051610b8e9190613c19565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c6257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c725750610c71826127b9565b5b9050919050565b606060008054610c8890614596565b80601f0160208091040260200160405190810160405280929190818152602001828054610cb490614596565b8015610d015780601f10610cd657610100808354040283529160200191610d01565b820191906000526020600020905b815481529060010190602001808311610ce457829003601f168201915b5050505050905090565b6000610d1682612823565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610d5b8161286e565b610d65838361296b565b505050565b600c5481565b610d78612a82565b80600a9081610d879190614769565b5050565b610d93612a82565b80600f60006101000a81548160ff02191690831515021790555050565b6000610dbc6007612b00565b905090565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610dff57610dfe3361286e565b5b610e0a848484612b0e565b50505050565b60007f600c9e601db6b78478816ba89472d10c317ad5c5de0c730d5445d564063d092860001b905060007f1a2b422a98e5997505ec11e80526a028849794d1ce7b18f7b3b86467bf52713260001b9050600f60009054906101000a900460ff1615610eb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea790614887565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f38906148f3565b60405180910390fd5b81600284604051602001610f55919061494f565b604051602081830303815290604052604051610f7191906149ad565b602060405180830381855afa158015610f8e573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190610fb191906149d9565b148061102a575080600284604051602001610fcc919061494f565b604051602081830303815290604052604051610fe891906149ad565b602060405180830381855afa158015611005573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061102891906149d9565b145b611069576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106090614a52565b60405180910390fd5b33601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b6110b7612a82565b600073ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603611148576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113f90614abe565b60405180910390fd5b6000601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff164760405161119090614b04565b60006040518083038185875af1925050503d80600081146111cd576040519150601f19603f3d011682016040523d82523d6000602084013e6111d2565b606091505b50509050806111e057600080fd5b50565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611233576112323361286e565b5b61123e848484612b6e565b50505050565b6060600061125183611c7d565b905060008167ffffffffffffffff81111561126f5761126e613e45565b5b60405190808252806020026020018201604052801561129d5781602001602082028036833780820191505090505b50905060006001905060005b83811080156112ba5750600d548211155b156113425760006112ca83611bae565b90508673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361132e578284838151811061131357611312614b19565b5b602002602001018181525050818061132a90614b77565b9250505b828061133990614b77565b935050506112a9565b82945050505050919050565b611356612a82565b80600c8190555050565b826000811180156113735750600e548111155b6113b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a990614c0b565b60405180910390fd5b600d54816113c06007612b00565b6113ca9190614c2b565b111561140b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140290614cab565b60405180910390fd5b600f60029054906101000a900460ff1661145a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145190614d17565b60405180910390fd5b6000339050600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16141580156114c857503373ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614155b156115c0576d76a84fef008cdabe6409d2fe638b73ffffffffffffffffffffffffffffffffffffffff166390c9a2d03388600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518463ffffffff1660e01b815260040161153a93929190614d37565b6020604051808303816000875af1158015611559573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061157d9190614d83565b6115bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b390614dfc565b60405180910390fd5b8590505b601460008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561164d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164490614e68565b60405180910390fd5b6004851115611691576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168890614ed4565b60405180910390fd5b60018511156116f7576001856116a79190614ef4565b600c546116b49190614f28565b3410156116f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ed90614fb6565b60405180910390fd5b5b60008160405160200161170a9190613d8a565b604051602081830303815290604052805190602001206040516020016117309190614ff7565b604051602081830303815290604052805190602001209050611796858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060105483612b8e565b6117d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117cc9061505e565b60405180910390fd5b6001601460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555085601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546118789190614c2b565b601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506118c58287612ba5565b50505050505050565b6118d6612a82565b80600b90816118e59190614769565b5050565b600f60019054906101000a900460ff1681565b600f60009054906101000a900460ff1681565b60007f36b9a725939ace7a71e1241a3bb02c92ddb0c27aa31d111262544d35e6979c7360001b905060007fac284abad8e59f9958b1bafb227bee6ab4d1233ec9c3fab565920744e6b49b2a60001b9050600f60009054906101000a900460ff16156119af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119a690614887565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611a40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a37906148f3565b60405180910390fd5b81600284604051602001611a54919061494f565b604051602081830303815290604052604051611a7091906149ad565b602060405180830381855afa158015611a8d573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190611ab091906149d9565b1480611b29575080600284604051602001611acb919061494f565b604051602081830303815290604052604051611ae791906149ad565b602060405180830381855afa158015611b04573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190611b2791906149d9565b145b611b68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5f90614a52565b60405180910390fd5b33601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b600080611bba83612be5565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611c2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c22906150ca565b60405180910390fd5b80915050919050565b6000601560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611ced576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ce49061515c565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611d3c612a82565b611d466000612c22565b565b611d50612a82565b8060108190555050565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600e5481565b606060018054611dbf90614596565b80601f0160208091040260200160405190810160405280929190818152602001828054611deb90614596565b8015611e385780601f10611e0d57610100808354040283529160200191611e38565b820191906000526020600020905b815481529060010190602001808311611e1b57829003601f168201915b5050505050905090565b611e4a612a82565b8060099081611e599190614769565b5050565b80600081118015611e705750600e548111155b611eaf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea690614c0b565b60405180910390fd5b600d5481611ebd6007612b00565b611ec79190614c2b565b1115611f08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eff90614cab565b60405180910390fd5b600f60009054906101000a900460ff1615611f58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4f906151c8565b60405180910390fd5b81600c54611f669190614f28565b341015611fa8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9f90614fb6565b60405180910390fd5b600e5482601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ff69190614c2b565b1115612037576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202e9061525a565b60405180910390fd5b81601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546120829190614c2b565b601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506120cf3383612ba5565b5050565b6120db612a82565b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b816121298161286e565b6121338383612ce8565b505050565b612140612a82565b80600e8190555050565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146121ae576121ad3361286e565b5b6121ba85858585612cfe565b5050505050565b601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6121ef612a82565b600073ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603612280576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612277906152c6565b60405180910390fd5b6000801b601054036122c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122be90615332565b60405180910390fd5b80600f60026101000a81548160ff02191690831515021790555050565b60606122ef82612d60565b61232e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612325906153c4565b60405180910390fd5b60001515600f60019054906101000a900460ff161515036123db57600b805461235690614596565b80601f016020809104026020016040519081016040528092919081815260200182805461238290614596565b80156123cf5780601f106123a4576101008083540402835291602001916123cf565b820191906000526020600020905b8154815290600101906020018083116123b257829003601f168201915b50505050509050612437565b60006123e5612da1565b905060008151116124055760405180602001604052806000815250612433565b8061240f84612e33565b600a60405160200161242393929190615467565b6040516020818303038152906040525b9150505b919050565b600d5481565b60146020528060005260406000206000915054906101000a900460ff1681565b61246a612a82565b80600f60016101000a81548160ff02191690831515021790555050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b816000811180156125545750600e548111155b612593576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161258a90614c0b565b60405180910390fd5b600d54816125a16007612b00565b6125ab9190614c2b565b11156125ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125e390614cab565b60405180910390fd5b6125f4612a82565b6125fe8284612ba5565b505050565b60156020528060005260406000206000915090505481565b612623612a82565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612692576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126899061550a565b60405180910390fd5b61269b81612c22565b50565b600080846040516020016126b29190613d8a565b604051602081830303815290604052805190602001206040516020016126d89190614ff7565b60405160208183030381529060405280519060200120905061273e848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060105483612b8e565b1561274d576001915050612753565b60009150505b9392505050565b612762612a82565b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600f60029054906101000a900460ff1681565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61282c81612d60565b61286b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612862906150ca565b60405180910390fd5b50565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115612968576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b81526004016128e592919061552a565b602060405180830381865afa158015612902573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129269190614d83565b61296757806040517fede71dcc00000000000000000000000000000000000000000000000000000000815260040161295e9190613d8a565b60405180910390fd5b5b50565b600061297682611bae565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036129e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129dd906155c5565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16612a05612f01565b73ffffffffffffffffffffffffffffffffffffffff161480612a345750612a3381612a2e612f01565b612487565b5b612a73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a6a90615657565b60405180910390fd5b612a7d8383612f09565b505050565b612a8a612f01565b73ffffffffffffffffffffffffffffffffffffffff16612aa8611d80565b73ffffffffffffffffffffffffffffffffffffffff1614612afe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612af5906156c3565b60405180910390fd5b565b600081600001549050919050565b612b1f612b19612f01565b82612fc2565b612b5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b5590615755565b60405180910390fd5b612b69838383613057565b505050565b612b8983838360405180602001604052806000815250612170565b505050565b600082612b9b8584613350565b1490509392505050565b60005b81811015612be057612bba60076133a6565b612bcd83612bc86007612b00565b6133bc565b8080612bd890614b77565b915050612ba8565b505050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612cfa612cf3612f01565b83836133da565b5050565b612d0f612d09612f01565b83612fc2565b612d4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d4590615755565b60405180910390fd5b612d5a84848484613546565b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff16612d8283612be5565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b606060098054612db090614596565b80601f0160208091040260200160405190810160405280929190818152602001828054612ddc90614596565b8015612e295780601f10612dfe57610100808354040283529160200191612e29565b820191906000526020600020905b815481529060010190602001808311612e0c57829003601f168201915b5050505050905090565b606060006001612e42846135a2565b01905060008167ffffffffffffffff811115612e6157612e60613e45565b5b6040519080825280601f01601f191660200182016040528015612e935781602001600182028036833780820191505090505b509050600082602001820190505b600115612ef6578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612eea57612ee9615775565b5b04945060008503612ea1575b819350505050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612f7c83611bae565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080612fce83611bae565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480613010575061300f8185612487565b5b8061304e57508373ffffffffffffffffffffffffffffffffffffffff1661303684610d0b565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661307782611bae565b73ffffffffffffffffffffffffffffffffffffffff16146130cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130c490615816565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361313c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613133906158a8565b60405180910390fd5b61314983838360016136f5565b8273ffffffffffffffffffffffffffffffffffffffff1661316982611bae565b73ffffffffffffffffffffffffffffffffffffffff16146131bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131b690615816565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461334b83838360016136fb565b505050565b60008082905060005b845181101561339b576133868286838151811061337957613378614b19565b5b6020026020010151613701565b9150808061339390614b77565b915050613359565b508091505092915050565b6001816000016000828254019250508190555050565b6133d682826040518060200160405280600081525061372c565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603613448576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161343f90615914565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516135399190613c19565b60405180910390a3505050565b613551848484613057565b61355d84848484613787565b61359c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613593906159a6565b60405180910390fd5b50505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613600577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816135f6576135f5615775565b5b0492506040810190505b6d04ee2d6d415b85acef8100000000831061363d576d04ee2d6d415b85acef8100000000838161363357613632615775565b5b0492506020810190505b662386f26fc10000831061366c57662386f26fc10000838161366257613661615775565b5b0492506010810190505b6305f5e1008310613695576305f5e100838161368b5761368a615775565b5b0492506008810190505b61271083106136ba5761271083816136b0576136af615775565b5b0492506004810190505b606483106136dd57606483816136d3576136d2615775565b5b0492506002810190505b600a83106136ec576001810190505b80915050919050565b50505050565b50505050565b600081831061371957613714828461390e565b613724565b613723838361390e565b5b905092915050565b6137368383613925565b6137436000848484613787565b613782576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613779906159a6565b60405180910390fd5b505050565b60006137a88473ffffffffffffffffffffffffffffffffffffffff16613b42565b15613901578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026137d1612f01565b8786866040518563ffffffff1660e01b81526004016137f39493929190615a10565b6020604051808303816000875af192505050801561382f57506040513d601f19601f8201168201806040525081019061382c9190615a71565b60015b6138b1573d806000811461385f576040519150601f19603f3d011682016040523d82523d6000602084013e613864565b606091505b5060008151036138a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138a0906159a6565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613906565b600190505b949350505050565b600082600052816020526040600020905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613994576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161398b90615aea565b60405180910390fd5b61399d81612d60565b156139dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139d490615b56565b60405180910390fd5b6139eb6000838360016136f5565b6139f481612d60565b15613a34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a2b90615b56565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613b3e6000838360016136fb565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613bae81613b79565b8114613bb957600080fd5b50565b600081359050613bcb81613ba5565b92915050565b600060208284031215613be757613be6613b6f565b5b6000613bf584828501613bbc565b91505092915050565b60008115159050919050565b613c1381613bfe565b82525050565b6000602082019050613c2e6000830184613c0a565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613c6e578082015181840152602081019050613c53565b60008484015250505050565b6000601f19601f8301169050919050565b6000613c9682613c34565b613ca08185613c3f565b9350613cb0818560208601613c50565b613cb981613c7a565b840191505092915050565b60006020820190508181036000830152613cde8184613c8b565b905092915050565b6000819050919050565b613cf981613ce6565b8114613d0457600080fd5b50565b600081359050613d1681613cf0565b92915050565b600060208284031215613d3257613d31613b6f565b5b6000613d4084828501613d07565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613d7482613d49565b9050919050565b613d8481613d69565b82525050565b6000602082019050613d9f6000830184613d7b565b92915050565b613dae81613d69565b8114613db957600080fd5b50565b600081359050613dcb81613da5565b92915050565b60008060408385031215613de857613de7613b6f565b5b6000613df685828601613dbc565b9250506020613e0785828601613d07565b9150509250929050565b613e1a81613ce6565b82525050565b6000602082019050613e356000830184613e11565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613e7d82613c7a565b810181811067ffffffffffffffff82111715613e9c57613e9b613e45565b5b80604052505050565b6000613eaf613b65565b9050613ebb8282613e74565b919050565b600067ffffffffffffffff821115613edb57613eda613e45565b5b613ee482613c7a565b9050602081019050919050565b82818337600083830152505050565b6000613f13613f0e84613ec0565b613ea5565b905082815260208101848484011115613f2f57613f2e613e40565b5b613f3a848285613ef1565b509392505050565b600082601f830112613f5757613f56613e3b565b5b8135613f67848260208601613f00565b91505092915050565b600060208284031215613f8657613f85613b6f565b5b600082013567ffffffffffffffff811115613fa457613fa3613b74565b5b613fb084828501613f42565b91505092915050565b613fc281613bfe565b8114613fcd57600080fd5b50565b600081359050613fdf81613fb9565b92915050565b600060208284031215613ffb57613ffa613b6f565b5b600061400984828501613fd0565b91505092915050565b60008060006060848603121561402b5761402a613b6f565b5b600061403986828701613dbc565b935050602061404a86828701613dbc565b925050604061405b86828701613d07565b9150509250925092565b6000819050919050565b600061408a61408561408084613d49565b614065565b613d49565b9050919050565b600061409c8261406f565b9050919050565b60006140ae82614091565b9050919050565b6140be816140a3565b82525050565b60006020820190506140d960008301846140b5565b92915050565b6000602082840312156140f5576140f4613b6f565b5b600061410384828501613dbc565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61414181613ce6565b82525050565b60006141538383614138565b60208301905092915050565b6000602082019050919050565b60006141778261410c565b6141818185614117565b935061418c83614128565b8060005b838110156141bd5781516141a48882614147565b97506141af8361415f565b925050600181019050614190565b5085935050505092915050565b600060208201905081810360008301526141e4818461416c565b905092915050565b600080fd5b600080fd5b60008083601f84011261420c5761420b613e3b565b5b8235905067ffffffffffffffff811115614229576142286141ec565b5b602083019150836020820283011115614245576142446141f1565b5b9250929050565b6000806000806060858703121561426657614265613b6f565b5b600061427487828801613dbc565b945050602061428587828801613d07565b935050604085013567ffffffffffffffff8111156142a6576142a5613b74565b5b6142b2878288016141f6565b925092505092959194509250565b6000819050919050565b6142d3816142c0565b81146142de57600080fd5b50565b6000813590506142f0816142ca565b92915050565b60006020828403121561430c5761430b613b6f565b5b600061431a848285016142e1565b91505092915050565b6000806040838503121561433a57614339613b6f565b5b600061434885828601613dbc565b925050602061435985828601613fd0565b9150509250929050565b600067ffffffffffffffff82111561437e5761437d613e45565b5b61438782613c7a565b9050602081019050919050565b60006143a76143a284614363565b613ea5565b9050828152602081018484840111156143c3576143c2613e40565b5b6143ce848285613ef1565b509392505050565b600082601f8301126143eb576143ea613e3b565b5b81356143fb848260208601614394565b91505092915050565b6000806000806080858703121561441e5761441d613b6f565b5b600061442c87828801613dbc565b945050602061443d87828801613dbc565b935050604061444e87828801613d07565b925050606085013567ffffffffffffffff81111561446f5761446e613b74565b5b61447b878288016143d6565b91505092959194509250565b6000806040838503121561449e5761449d613b6f565b5b60006144ac85828601613dbc565b92505060206144bd85828601613dbc565b9150509250929050565b600080604083850312156144de576144dd613b6f565b5b60006144ec85828601613d07565b92505060206144fd85828601613dbc565b9150509250929050565b6000806000604084860312156145205761451f613b6f565b5b600061452e86828701613dbc565b935050602084013567ffffffffffffffff81111561454f5761454e613b74565b5b61455b868287016141f6565b92509250509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806145ae57607f821691505b6020821081036145c1576145c0614567565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026146297fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826145ec565b61463386836145ec565b95508019841693508086168417925050509392505050565b600061466661466161465c84613ce6565b614065565b613ce6565b9050919050565b6000819050919050565b6146808361464b565b61469461468c8261466d565b8484546145f9565b825550505050565b600090565b6146a961469c565b6146b4818484614677565b505050565b5b818110156146d8576146cd6000826146a1565b6001810190506146ba565b5050565b601f82111561471d576146ee816145c7565b6146f7846145dc565b81016020851015614706578190505b61471a614712856145dc565b8301826146b9565b50505b505050565b600082821c905092915050565b600061474060001984600802614722565b1980831691505092915050565b6000614759838361472f565b9150826002028217905092915050565b61477282613c34565b67ffffffffffffffff81111561478b5761478a613e45565b5b6147958254614596565b6147a08282856146dc565b600060209050601f8311600181146147d357600084156147c1578287015190505b6147cb858261474d565b865550614833565b601f1984166147e1866145c7565b60005b82811015614809578489015182556001820191506020850194506020810190506147e4565b868310156148265784890151614822601f89168261472f565b8355505b6001600288020188555050505b505050505050565b7f497420697320746f6f206561726c7920666f7220616e20616e73776572000000600082015250565b6000614871601d83613c3f565b915061487c8261483b565b602082019050919050565b600060208201905081810360008301526148a081614864565b9050919050565b7f526964646c6520686173206265656e20616c726561647920616e737765726564600082015250565b60006148dd602083613c3f565b91506148e8826148a7565b602082019050919050565b6000602082019050818103600083015261490c816148d0565b9050919050565b600081905092915050565b600061492982613c34565b6149338185614913565b9350614943818560208601613c50565b80840191505092915050565b600061495b828461491e565b915081905092915050565b600081519050919050565b600081905092915050565b600061498782614966565b6149918185614971565b93506149a1818560208601613c50565b80840191505092915050565b60006149b9828461497c565b915081905092915050565b6000815190506149d3816142ca565b92915050565b6000602082840312156149ef576149ee613b6f565b5b60006149fd848285016149c4565b91505092915050565b7f57726f6e6720616e737765720000000000000000000000000000000000000000600082015250565b6000614a3c600c83613c3f565b9150614a4782614a06565b602082019050919050565b60006020820190508181036000830152614a6b81614a2f565b9050919050565b7f46656520726563656976657220756e7365740000000000000000000000000000600082015250565b6000614aa8601283613c3f565b9150614ab382614a72565b602082019050919050565b60006020820190508181036000830152614ad781614a9b565b9050919050565b50565b6000614aee600083614971565b9150614af982614ade565b600082019050919050565b6000614b0f82614ae1565b9150819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614b8282613ce6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614bb457614bb3614b48565b5b600182019050919050565b7f496e76616c6964206d696e7420616d6f756e7421000000000000000000000000600082015250565b6000614bf5601483613c3f565b9150614c0082614bbf565b602082019050919050565b60006020820190508181036000830152614c2481614be8565b9050919050565b6000614c3682613ce6565b9150614c4183613ce6565b9250828201905080821115614c5957614c58614b48565b5b92915050565b7f4d617820737570706c7920657863656564656421000000000000000000000000600082015250565b6000614c95601483613c3f565b9150614ca082614c5f565b602082019050919050565b60006020820190508181036000830152614cc481614c88565b9050919050565b7f50726573616c65206973206e6f74206163746976652e00000000000000000000600082015250565b6000614d01601683613c3f565b9150614d0c82614ccb565b602082019050919050565b60006020820190508181036000830152614d3081614cf4565b9050919050565b6000606082019050614d4c6000830186613d7b565b614d596020830185613d7b565b614d666040830184613d7b565b949350505050565b600081519050614d7d81613fb9565b92915050565b600060208284031215614d9957614d98613b6f565b5b6000614da784828501614d6e565b91505092915050565b7f4e6f742064656c656761746564206f6e20636f6e747261637400000000000000600082015250565b6000614de6601983613c3f565b9150614df182614db0565b602082019050919050565b60006020820190508181036000830152614e1581614dd9565b9050919050565b7f416464726573732068617320616c726561647920636c61696d65642e00000000600082015250565b6000614e52601c83613c3f565b9150614e5d82614e1c565b602082019050919050565b60006020820190508181036000830152614e8181614e45565b9050919050565b7f4d617820342070657220574c2077616c6c65742e000000000000000000000000600082015250565b6000614ebe601483613c3f565b9150614ec982614e88565b602082019050919050565b60006020820190508181036000830152614eed81614eb1565b9050919050565b6000614eff82613ce6565b9150614f0a83613ce6565b9250828203905081811115614f2257614f21614b48565b5b92915050565b6000614f3382613ce6565b9150614f3e83613ce6565b9250828202614f4c81613ce6565b91508282048414831517614f6357614f62614b48565b5b5092915050565b7f496e73756666696369656e742066756e64732100000000000000000000000000600082015250565b6000614fa0601383613c3f565b9150614fab82614f6a565b602082019050919050565b60006020820190508181036000830152614fcf81614f93565b9050919050565b6000819050919050565b614ff1614fec826142c0565b614fd6565b82525050565b60006150038284614fe0565b60208201915081905092915050565b7f496e76616c69642070726f6f6600000000000000000000000000000000000000600082015250565b6000615048600d83613c3f565b915061505382615012565b602082019050919050565b600060208201905081810360008301526150778161503b565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006150b4601883613c3f565b91506150bf8261507e565b602082019050919050565b600060208201905081810360008301526150e3816150a7565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000615146602983613c3f565b9150615151826150ea565b604082019050919050565b6000602082019050818103600083015261517581615139565b9050919050565b7f4d696e742068617665206e6f7420737461727465642079657400000000000000600082015250565b60006151b2601983613c3f565b91506151bd8261517c565b602082019050919050565b600060208201905081810360008301526151e1816151a5565b9050919050565b7f4d6178696d756d206d696e7473207065722077616c6c6574206c696d6974206560008201527f7863656564656400000000000000000000000000000000000000000000000000602082015250565b6000615244602783613c3f565b915061524f826151e8565b604082019050919050565b6000602082019050818103600083015261527381615237565b9050919050565b7f536e617073686f7420636f6e7472616374206e6f742073657400000000000000600082015250565b60006152b0601983613c3f565b91506152bb8261527a565b602082019050919050565b600060208201905081810360008301526152df816152a3565b9050919050565b7f4d65726b6c65526f6f74206e6f74207365740000000000000000000000000000600082015250565b600061531c601283613c3f565b9150615327826152e6565b602082019050919050565b6000602082019050818103600083015261534b8161530f565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006153ae602f83613c3f565b91506153b982615352565b604082019050919050565b600060208201905081810360008301526153dd816153a1565b9050919050565b600081546153f181614596565b6153fb8186614913565b94506001821660008114615416576001811461542b5761545e565b60ff198316865281151582028601935061545e565b615434856145c7565b60005b8381101561545657815481890152600182019150602081019050615437565b838801955050505b50505092915050565b6000615473828661491e565b915061547f828561491e565b915061548b82846153e4565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006154f4602683613c3f565b91506154ff82615498565b604082019050919050565b60006020820190508181036000830152615523816154e7565b9050919050565b600060408201905061553f6000830185613d7b565b61554c6020830184613d7b565b9392505050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006155af602183613c3f565b91506155ba82615553565b604082019050919050565b600060208201905081810360008301526155de816155a2565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b6000615641603d83613c3f565b915061564c826155e5565b604082019050919050565b6000602082019050818103600083015261567081615634565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006156ad602083613c3f565b91506156b882615677565b602082019050919050565b600060208201905081810360008301526156dc816156a0565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b600061573f602d83613c3f565b915061574a826156e3565b604082019050919050565b6000602082019050818103600083015261576e81615732565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000615800602583613c3f565b915061580b826157a4565b604082019050919050565b6000602082019050818103600083015261582f816157f3565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000615892602483613c3f565b915061589d82615836565b604082019050919050565b600060208201905081810360008301526158c181615885565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006158fe601983613c3f565b9150615909826158c8565b602082019050919050565b6000602082019050818103600083015261592d816158f1565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000615990603283613c3f565b915061599b82615934565b604082019050919050565b600060208201905081810360008301526159bf81615983565b9050919050565b600082825260208201905092915050565b60006159e282614966565b6159ec81856159c6565b93506159fc818560208601613c50565b615a0581613c7a565b840191505092915050565b6000608082019050615a256000830187613d7b565b615a326020830186613d7b565b615a3f6040830185613e11565b8181036060830152615a5181846159d7565b905095945050505050565b600081519050615a6b81613ba5565b92915050565b600060208284031215615a8757615a86613b6f565b5b6000615a9584828501615a5c565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615ad4602083613c3f565b9150615adf82615a9e565b602082019050919050565b60006020820190508181036000830152615b0381615ac7565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615b40601c83613c3f565b9150615b4b82615b0a565b602082019050919050565b60006020820190508181036000830152615b6f81615b33565b905091905056fea2646970667358221220dab88a6b6c2f949f04007e77d7324fedbfb599bc49fac75a92d015b6c0f7689164736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000c6f3b40b6c0000000000000000000000000000000000000000000000000000000000000001e61000000000000000000000000000000000000000000000000000000000000001900000000000000000000000000000000000000000000000000000000000000056672454e53000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000446524e5300000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): frENS
Arg [1] : _symbol (string): FRNS
Arg [2] : _cost (uint256): 3500000000000000
Arg [3] : _maxSupply (uint256): 7777
Arg [4] : _maxMintAmountPerTrx (uint256): 25
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 000000000000000000000000000000000000000000000000000c6f3b40b6c000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000001e61
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [6] : 6672454e53000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [8] : 46524e5300000000000000000000000000000000000000000000000000000000
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.