ERC-721
Overview
Max Total Supply
263 GROWR
Holders
107
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 GROWRLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GrowerPunks
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // .|'''''| '||'''|, '|| // || . || || || // || |''|| '||''| .|''|, '\\ //` .|''|, '||''| ||...|' '|| ||` `||''|, || //` ('''' // || || || || || \\/\// ||..|| || || || || || || ||<< `'') // `|....|' .||. `|..|' \/\/ `|... .||. .|| `|..'|. .|| ||. .|| \\. `...' // 8=======================================================================================D pragma solidity ^0.8.12; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; abstract contract PunksData { function punkAttributes(uint16 index) external view returns (string memory text) {} function punkImageSvg(uint16 index) external view returns (string memory svg) {} } abstract contract GrowerPrinter { function json( string memory growerPunk, string memory attrs, uint256 length, uint256 maxLength, uint256 tokenId ) external view returns (string memory jsonStr) {} function svg( string memory punk, string memory attrs, uint256 length ) external view returns (string memory svgStr) {} } error BurnNotActive(); error NoContractCalls(); error NoIdsLeft(); error NotEnoughETH(); error NotOnAllowlist(); error PublicSaleNotActive(); error SaleNotActive(); error TooManyFreeMints(); error TooManyMints(); error QuantityExceedsSupply(); error WithdrawalFailed(); contract GrowerPunks is ERC721Enumerable, ERC721Burnable, ReentrancyGuard, Ownable { PunksData punksData; GrowerPrinter growerPrinter; // collection uint256 public constant COLLECTION_SIZE = 10000; string public contractMetadataURI; // owner address payable public withdrawalAddress; // mint parameters uint256 public qtyReserved; uint256 public qtyFree; uint256 public qtyFreeAllowlist; uint256 public mintPriceFive; uint256 public mintPriceThirty; uint256 public mintPriceFiveAllowlist; uint256 public mintPriceThirtyAllowlist; bytes32 private _merkleRoot; // mint + burn state bool public burnActive = false; bool public saleActive = false; bool public publicSaleActive = false; uint256 private _index; uint256[COLLECTION_SIZE + 1] public _tokenIds; uint256 public numberMintedReserve = 0; mapping(address => uint256) private _numberMinted; // grower stuff uint256 public maxLength = 180; mapping(uint256 => uint256) public punkLength; constructor( string memory _contractMetadataURI, address _growerPrinterAddress, address _punksDataAddress, uint256 _qtyReserved, uint256 _qtyFree, uint256 _qtyFreeAllowlist, uint256 _mintPriceFive, uint256 _mintPriceThirty, uint256 _mintPriceFiveAllowlist, uint256 _mintPriceThirtyAllowlist ) ERC721("GrowerPunks", "GROWR") { contractMetadataURI = _contractMetadataURI; growerPrinter = GrowerPrinter(_growerPrinterAddress); punksData = PunksData(_punksDataAddress); qtyReserved = _qtyReserved; qtyFree = _qtyFree; qtyFreeAllowlist = _qtyFreeAllowlist; mintPriceFive = _mintPriceFive; mintPriceThirty = _mintPriceThirty; mintPriceFiveAllowlist = _mintPriceFiveAllowlist; mintPriceThirtyAllowlist = _mintPriceThirtyAllowlist; } // etc function supportsInterface(bytes4 _interfaceId) public view virtual override(ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(_interfaceId); } // public/read function contractURI() public view returns (string memory) { return contractMetadataURI; } function getNumberMinted(address _owner) public view returns (uint256) { return _numberMinted[_owner]; } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { // get punk SVG and attributes string memory punkSVG = punksData.punkImageSvg(uint16(_tokenId)); string memory attrs = punksData.punkAttributes(uint16(_tokenId)); // cap length uint256 cappedLength = punkLength[_tokenId] > maxLength ? maxLength : punkLength[_tokenId]; // grow the punk string memory grownSVG = growerPrinter.svg(punkSVG, attrs, cappedLength); // build metadata and encode image as base64 string memory json = growerPrinter.json(grownSVG, attrs, cappedLength, maxLength, _tokenId); // encode and return final base64 payload return string(abi.encodePacked("data:application/json;base64,", json)); } // public/write function allowlistMintFree(bytes32[] calldata _proof) external nonReentrant { checkSender(); checkSaleActive(); checkAllowlist(_proof); checkQty(qtyFreeAllowlist, qtyFreeAllowlist); mintGrowers(msg.sender, qtyFreeAllowlist); } function allowlistMintFive(bytes32[] calldata _proof) external payable nonReentrant { checkSender(); checkSaleActive(); checkAllowlist(_proof); checkValue(mintPriceFiveAllowlist); checkQty(5, 72); mintGrowers(msg.sender, 5); } function allowlistMintThirty(bytes32[] calldata _proof) external payable nonReentrant { checkSender(); checkSaleActive(); checkAllowlist(_proof); checkValue(mintPriceThirtyAllowlist); checkQty(30, 72); mintGrowers(msg.sender, 30); } function publicMintFree() external nonReentrant { checkSender(); checkSaleActive(); checkPublicSaleActive(); checkQty(qtyFree, qtyFree); mintGrowers(msg.sender, qtyFree); } function publicMintFive() external payable nonReentrant { checkSender(); checkSaleActive(); checkPublicSaleActive(); checkQty(5, 72); checkValue(mintPriceFive); mintGrowers(msg.sender, 5); } function publicMintThirty() external payable nonReentrant { checkSender(); checkSaleActive(); checkPublicSaleActive(); checkQty(30, 72); checkValue(mintPriceThirty); mintGrowers(msg.sender, 30); } function burn(uint256 _tokenId) public virtual override(ERC721Burnable) { if (!burnActive) { revert BurnNotActive(); } super.burn(_tokenId); } // onlyOwner function setMaxLength(uint256 _maxLength) external onlyOwner { maxLength = _maxLength; } function setBurnActive(bool _burnActive) external onlyOwner { burnActive = _burnActive; } function setSaleActive(bool _saleAtive) external onlyOwner { saleActive = _saleAtive; } function setPublicSaleActive(bool _publicSaleActive) external onlyOwner { publicSaleActive = _publicSaleActive; } function setQtyFree(uint256 _qtyFree) external onlyOwner { qtyFree = _qtyFree; } function setQtyFreeAllowlist(uint256 _qtyFreeAllowlist) external onlyOwner { qtyFreeAllowlist = _qtyFreeAllowlist; } function setMintPriceFive(uint256 _mintPriceFive) external onlyOwner { mintPriceFive = _mintPriceFive; } function setMintPriceThirty(uint256 _mintPriceThirty) external onlyOwner { mintPriceThirty = _mintPriceThirty; } function setMintPriceFiveAllowlist(uint256 _mintPriceFiveAllowlist) external onlyOwner { mintPriceFiveAllowlist = _mintPriceFiveAllowlist; } function setMintPriceThirtyAllowlist(uint256 _mintPriceThirtyAllowlist) external onlyOwner { mintPriceThirtyAllowlist = _mintPriceThirtyAllowlist; } function setPunksData(address _punksDataAddress) external onlyOwner { punksData = PunksData(_punksDataAddress); } function setMerkleRoot(bytes32 _newMerkleRoot) external onlyOwner { _merkleRoot = _newMerkleRoot; } function setWithdrawalAddress(address payable _withdrawalAddress) external onlyOwner { withdrawalAddress = _withdrawalAddress; } function reservedMint(uint256 _qty, address _toAddress) external onlyOwner { if (numberMintedReserve + _qty > qtyReserved) { revert TooManyMints(); } numberMintedReserve += _qty; mintGrowers(_toAddress, _qty); } function withdraw() external onlyOwner { uint256 balance = address(this).balance; (bool success, ) = withdrawalAddress.call{value: balance}(""); if (!success) { revert WithdrawalFailed(); } } // private function checkAllowlist(bytes32[] calldata _proof) private view { if (MerkleProof.verify(_proof, _merkleRoot, keccak256(abi.encodePacked(msg.sender))) == false) { revert NotOnAllowlist(); } } function checkSaleActive() private view { if (saleActive == false) { revert SaleNotActive(); } } function checkPublicSaleActive() private view { if (publicSaleActive == false) { revert PublicSaleNotActive(); } } function checkQty(uint256 _qty, uint256 _maxQty) private view { if (getNumberMinted(msg.sender) + _qty > _maxQty) { if (_qty < 5) { revert TooManyFreeMints(); } else { revert TooManyMints(); } } if (_index + _qty > COLLECTION_SIZE - qtyReserved + numberMintedReserve) { revert QuantityExceedsSupply(); } } function checkSender() private view { if (msg.sender != tx.origin) { revert NoContractCalls(); } } function checkValue(uint256 _expected) private view { if (msg.value < _expected) { revert NotEnoughETH(); } } function _beforeTokenTransfer( address _from, address _to, uint256 _tokenId ) internal virtual override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(_from, _to, _tokenId); if (punkLength[_tokenId] < maxLength) { unchecked { uint256 newPunkLength = (punkLength[_tokenId] * (((_tokenId % 4) + 1) * 50 + 1150)) / 1000; punkLength[_tokenId] = punkLength[_tokenId] == newPunkLength ? punkLength[_tokenId] + 1 : newPunkLength; } } } function mintGrowers(address _to, uint256 _qty) private { _numberMinted[msg.sender] += _qty; uint256 i; while (i < _qty) { uint256 random = uint256( keccak256(abi.encodePacked(_index++, msg.sender, block.timestamp, blockhash(block.number - 1))) ); uint256 newTokenId = randTokenId(random); _safeMint(_to, newTokenId); punkLength[newTokenId] = randLength(newTokenId); unchecked { i++; } } } function randLength(uint256 _tokenId) private view returns (uint256) { uint256 num = (_tokenId % 15) + 10; uint256 swerve = totalSupply() + 5; return uint256(keccak256(abi.encodePacked(num, swerve))) % num; } function randTokenId(uint256 random) private returns (uint256 id) { uint256 len = _tokenIds.length - _index; if (len == 0) { revert NoIdsLeft(); } uint256 randomIndex = random % len; id = _tokenIds[randomIndex] != 0 ? _tokenIds[randomIndex] : randomIndex; _tokenIds[randomIndex] = uint16(_tokenIds[len - 1] == 0 ? len - 1 : _tokenIds[len - 1]); _tokenIds[len - 1] = 0; return id + 1; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing 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 v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721Burnable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _burn(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/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); }
{ "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":"_contractMetadataURI","type":"string"},{"internalType":"address","name":"_growerPrinterAddress","type":"address"},{"internalType":"address","name":"_punksDataAddress","type":"address"},{"internalType":"uint256","name":"_qtyReserved","type":"uint256"},{"internalType":"uint256","name":"_qtyFree","type":"uint256"},{"internalType":"uint256","name":"_qtyFreeAllowlist","type":"uint256"},{"internalType":"uint256","name":"_mintPriceFive","type":"uint256"},{"internalType":"uint256","name":"_mintPriceThirty","type":"uint256"},{"internalType":"uint256","name":"_mintPriceFiveAllowlist","type":"uint256"},{"internalType":"uint256","name":"_mintPriceThirtyAllowlist","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"BurnNotActive","type":"error"},{"inputs":[],"name":"NoContractCalls","type":"error"},{"inputs":[],"name":"NoIdsLeft","type":"error"},{"inputs":[],"name":"NotEnoughETH","type":"error"},{"inputs":[],"name":"NotOnAllowlist","type":"error"},{"inputs":[],"name":"PublicSaleNotActive","type":"error"},{"inputs":[],"name":"QuantityExceedsSupply","type":"error"},{"inputs":[],"name":"SaleNotActive","type":"error"},{"inputs":[],"name":"TooManyFreeMints","type":"error"},{"inputs":[],"name":"TooManyMints","type":"error"},{"inputs":[],"name":"WithdrawalFailed","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":"COLLECTION_SIZE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_tokenIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"allowlistMintFive","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"allowlistMintFree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"allowlistMintThirty","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractMetadataURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"_owner","type":"address"}],"name":"getNumberMinted","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":[],"name":"maxLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPriceFive","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPriceFiveAllowlist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPriceThirty","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPriceThirtyAllowlist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberMintedReserve","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"publicMintFive","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicMintFree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"publicMintThirty","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"punkLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"qtyFree","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"qtyFreeAllowlist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"qtyReserved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_qty","type":"uint256"},{"internalType":"address","name":"_toAddress","type":"address"}],"name":"reservedMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_burnActive","type":"bool"}],"name":"setBurnActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxLength","type":"uint256"}],"name":"setMaxLength","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_newMerkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPriceFive","type":"uint256"}],"name":"setMintPriceFive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPriceFiveAllowlist","type":"uint256"}],"name":"setMintPriceFiveAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPriceThirty","type":"uint256"}],"name":"setMintPriceThirty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPriceThirtyAllowlist","type":"uint256"}],"name":"setMintPriceThirtyAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_publicSaleActive","type":"bool"}],"name":"setPublicSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_punksDataAddress","type":"address"}],"name":"setPunksData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_qtyFree","type":"uint256"}],"name":"setQtyFree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_qtyFreeAllowlist","type":"uint256"}],"name":"setQtyFreeAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_saleAtive","type":"bool"}],"name":"setSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_withdrawalAddress","type":"address"}],"name":"setWithdrawalAddress","outputs":[],"stateMutability":"nonpayable","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawalAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526000601860006101000a81548160ff0219169083151502179055506000601860016101000a81548160ff0219169083151502179055506000601860026101000a81548160ff021916908315150217905550600061272b5560b461272d553480156200006e57600080fd5b50604051620059c8380380620059c88339818101604052810190620000949190620005f3565b6040518060400160405280600b81526020017f47726f77657250756e6b730000000000000000000000000000000000000000008152506040518060400160405280600581526020017f47524f575200000000000000000000000000000000000000000000000000000081525081600090805190602001906200011892919062000306565b5080600190805190602001906200013192919062000306565b5050506001600a819055506200015c620001506200023860201b60201c565b6200024060201b60201c565b89600e90805190602001906200017492919062000306565b5088600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555087600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555086601081905550856011819055508460128190555083601381905550826014819055508160158190555080601681905550505050505050505050506200076d565b600033905090565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620003149062000737565b90600052602060002090601f01602090048101928262000338576000855562000384565b82601f106200035357805160ff191683800117855562000384565b8280016001018555821562000384579182015b828111156200038357825182559160200191906001019062000366565b5b50905062000393919062000397565b5090565b5b80821115620003b257600081600090555060010162000398565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200041f82620003d4565b810181811067ffffffffffffffff82111715620004415762000440620003e5565b5b80604052505050565b600062000456620003b6565b905062000464828262000414565b919050565b600067ffffffffffffffff821115620004875762000486620003e5565b5b6200049282620003d4565b9050602081019050919050565b60005b83811015620004bf578082015181840152602081019050620004a2565b83811115620004cf576000848401525b50505050565b6000620004ec620004e68462000469565b6200044a565b9050828152602081018484840111156200050b576200050a620003cf565b5b620005188482856200049f565b509392505050565b600082601f830112620005385762000537620003ca565b5b81516200054a848260208601620004d5565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620005808262000553565b9050919050565b620005928162000573565b81146200059e57600080fd5b50565b600081519050620005b28162000587565b92915050565b6000819050919050565b620005cd81620005b8565b8114620005d957600080fd5b50565b600081519050620005ed81620005c2565b92915050565b6000806000806000806000806000806101408b8d0312156200061a5762000619620003c0565b5b60008b015167ffffffffffffffff8111156200063b576200063a620003c5565b5b620006498d828e0162000520565b9a505060206200065c8d828e01620005a1565b99505060406200066f8d828e01620005a1565b9850506060620006828d828e01620005dc565b9750506080620006958d828e01620005dc565b96505060a0620006a88d828e01620005dc565b95505060c0620006bb8d828e01620005dc565b94505060e0620006ce8d828e01620005dc565b935050610100620006e28d828e01620005dc565b925050610120620006f68d828e01620005dc565b9150509295989b9194979a5092959850565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200075057607f821691505b6020821081141562000767576200076662000708565b5b50919050565b61524b806200077d6000396000f3fe6080604052600436106103975760003560e01c80637384b6b0116101dc578063bc8893b411610102578063e2e06fa3116100a0578063ea0e81431161006f578063ea0e814314610d15578063f2bcd02214610d3e578063f2fde38b14610d69578063fe587fc314610d9257610397565b8063e2e06fa314610c5b578063e4ebb6ff14610c84578063e8a3d48514610cad578063e985e9c514610cd857610397565b8063c87b56dd116100dc578063c87b56dd14610b9f578063d06a89a414610bdc578063d8258d9514610c07578063dc2f786714610c3257610397565b8063bc8893b414610b1e578063c09f516f14610b49578063c63fb4c514610b7457610397565b80638a59a7fd1161017a578063a22cb46511610149578063a22cb46514610a7a578063a725b02714610aa3578063aed15c6e14610acc578063b88d4fde14610af557610397565b80638a59a7fd146109dd5780638bd7da3314610a1a5780638da5cb5b14610a2457806395d89b4114610a4f57610397565b80637afb1920116101b65780637afb1920146109355780637cb6475914610960578063841718a614610989578063864ef3e5146109b257610397565b80637384b6b0146108b857806373a6cd41146108e157806373e927841461090a57610397565b80633960c9f3116102c15780635cd805a41161025f5780636e8ebbfa1161022e5780636e8ebbfa146107ea578063709779441461082757806370a0823114610864578063715018a6146108a157610397565b80635cd805a41461072e5780635f071d72146107595780636352211e1461078257806368428a1b146107bf57610397565b806342966c681161029b57806342966c68146106a25780634812907d146106cb57806349c438be146106e75780634f6ccce7146106f157610397565b80633960c9f3146106375780633ccfd60b1461066257806342842e0e1461067957610397565b806318df6403116103395780632eae05b3116103085780632eae05b31461057b5780632f745c59146105a45780632ffa728e146105e157806330234b481461060c57610397565b806318df6403146104d55780631e760e88146104fe57806321b8092e1461052957806323b872dd1461055257610397565b8063081bb9f311610375578063081bb9f314610441578063095ea7b3146104585780630bc253551461048157806318160ddd146104aa57610397565b806301ffc9a71461039c57806306fdde03146103d9578063081812fc14610404575b600080fd5b3480156103a857600080fd5b506103c360048036038101906103be9190613b95565b610dae565b6040516103d09190613bdd565b60405180910390f35b3480156103e557600080fd5b506103ee610dc0565b6040516103fb9190613c91565b60405180910390f35b34801561041057600080fd5b5061042b60048036038101906104269190613ce9565b610e52565b6040516104389190613d57565b60405180910390f35b34801561044d57600080fd5b50610456610e98565b005b34801561046457600080fd5b5061047f600480360381019061047a9190613d9e565b610f22565b005b34801561048d57600080fd5b506104a860048036038101906104a39190613e0a565b61103a565b005b3480156104b657600080fd5b506104bf61105f565b6040516104cc9190613e46565b60405180910390f35b3480156104e157600080fd5b506104fc60048036038101906104f79190613e61565b61106c565b005b34801561050a57600080fd5b506105136110e6565b6040516105209190613e46565b60405180910390f35b34801561053557600080fd5b50610550600480360381019061054b9190613edf565b6110ec565b005b34801561055e57600080fd5b5061057960048036038101906105749190613f0c565b611138565b005b34801561058757600080fd5b506105a2600480360381019061059d9190613ce9565b611198565b005b3480156105b057600080fd5b506105cb60048036038101906105c69190613d9e565b6111aa565b6040516105d89190613e46565b60405180910390f35b3480156105ed57600080fd5b506105f661124f565b6040516106039190613e46565b60405180910390f35b34801561061857600080fd5b50610621611255565b60405161062e9190613e46565b60405180910390f35b34801561064357600080fd5b5061064c61125b565b6040516106599190613e46565b60405180910390f35b34801561066e57600080fd5b50610677611261565b005b34801561068557600080fd5b506106a0600480360381019061069b9190613f0c565b611337565b005b3480156106ae57600080fd5b506106c960048036038101906106c49190613ce9565b611357565b005b6106e560048036038101906106e09190613fc4565b6113a9565b005b6106ef61143f565b005b3480156106fd57600080fd5b5061071860048036038101906107139190613ce9565b6114d1565b6040516107259190613e46565b60405180910390f35b34801561073a57600080fd5b50610743611542565b6040516107509190613e46565b60405180910390f35b34801561076557600080fd5b50610780600480360381019061077b9190613ce9565b611549565b005b34801561078e57600080fd5b506107a960048036038101906107a49190613ce9565b61155b565b6040516107b69190613d57565b60405180910390f35b3480156107cb57600080fd5b506107d461160d565b6040516107e19190613bdd565b60405180910390f35b3480156107f657600080fd5b50610811600480360381019061080c9190613ce9565b611620565b60405161081e9190613e46565b60405180910390f35b34801561083357600080fd5b5061084e60048036038101906108499190613ce9565b61163c565b60405161085b9190613e46565b60405180910390f35b34801561087057600080fd5b5061088b60048036038101906108869190614011565b611655565b6040516108989190613e46565b60405180910390f35b3480156108ad57600080fd5b506108b661170d565b005b3480156108c457600080fd5b506108df60048036038101906108da9190613ce9565b611721565b005b3480156108ed57600080fd5b5061090860048036038101906109039190613fc4565b611733565b005b34801561091657600080fd5b5061091f6117c1565b60405161092c9190613c91565b60405180910390f35b34801561094157600080fd5b5061094a61184f565b6040516109579190613e46565b60405180910390f35b34801561096c57600080fd5b5061098760048036038101906109829190614074565b611855565b005b34801561099557600080fd5b506109b060048036038101906109ab9190613e0a565b611867565b005b3480156109be57600080fd5b506109c761188c565b6040516109d49190613bdd565b60405180910390f35b3480156109e957600080fd5b50610a0460048036038101906109ff9190614011565b61189f565b604051610a119190613e46565b60405180910390f35b610a226118e9565b005b348015610a3057600080fd5b50610a3961197b565b604051610a469190613d57565b60405180910390f35b348015610a5b57600080fd5b50610a646119a5565b604051610a719190613c91565b60405180910390f35b348015610a8657600080fd5b50610aa16004803603810190610a9c91906140a1565b611a37565b005b348015610aaf57600080fd5b50610aca6004803603810190610ac59190614011565b611a4d565b005b348015610ad857600080fd5b50610af36004803603810190610aee9190613ce9565b611a99565b005b348015610b0157600080fd5b50610b1c6004803603810190610b179190614211565b611aab565b005b348015610b2a57600080fd5b50610b33611b0d565b604051610b409190613bdd565b60405180910390f35b348015610b5557600080fd5b50610b5e611b20565b604051610b6b9190613e46565b60405180910390f35b348015610b8057600080fd5b50610b89611b26565b604051610b969190613e46565b60405180910390f35b348015610bab57600080fd5b50610bc66004803603810190610bc19190613ce9565b611b2c565b604051610bd39190613c91565b60405180910390f35b348015610be857600080fd5b50610bf1611e3e565b604051610bfe9190613e46565b60405180910390f35b348015610c1357600080fd5b50610c1c611e45565b604051610c299190613e46565b60405180910390f35b348015610c3e57600080fd5b50610c596004803603810190610c549190613ce9565b611e4b565b005b348015610c6757600080fd5b50610c826004803603810190610c7d9190613e0a565b611e5e565b005b348015610c9057600080fd5b50610cab6004803603810190610ca69190613ce9565b611e83565b005b348015610cb957600080fd5b50610cc2611e95565b604051610ccf9190613c91565b60405180910390f35b348015610ce457600080fd5b50610cff6004803603810190610cfa9190614294565b611f27565b604051610d0c9190613bdd565b60405180910390f35b348015610d2157600080fd5b50610d3c6004803603810190610d379190613ce9565b611fbb565b005b348015610d4a57600080fd5b50610d53611fcd565b604051610d6091906142e3565b60405180910390f35b348015610d7557600080fd5b50610d906004803603810190610d8b9190614011565b611ff3565b005b610dac6004803603810190610da79190613fc4565b612077565b005b6000610db98261210d565b9050919050565b606060008054610dcf9061432d565b80601f0160208091040260200160405190810160405280929190818152602001828054610dfb9061432d565b8015610e485780601f10610e1d57610100808354040283529160200191610e48565b820191906000526020600020905b815481529060010190602001808311610e2b57829003601f168201915b5050505050905090565b6000610e5d82612187565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6002600a541415610ede576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed5906143ab565b60405180910390fd5b6002600a81905550610eee6121d2565b610ef6612239565b610efe612289565b610f0c6011546011546122d9565b610f18336011546123c9565b6001600a81905550565b6000610f2d8261155b565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610f9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f959061443d565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610fbd6124ce565b73ffffffffffffffffffffffffffffffffffffffff161480610fec5750610feb81610fe66124ce565b611f27565b5b61102b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611022906144cf565b60405180910390fd5b61103583836124d6565b505050565b61104261258f565b80601860006101000a81548160ff02191690831515021790555050565b6000600880549050905090565b61107461258f565b6010548261272b54611086919061451e565b11156110be576040517fed302ecd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8161272b60008282546110d1919061451e565b925050819055506110e281836123c9565b5050565b60115481565b6110f461258f565b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6111496111436124ce565b8261260d565b611188576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117f906145e6565b60405180910390fd5b6111938383836126a2565b505050565b6111a061258f565b8060168190555050565b60006111b583611655565b82106111f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ed90614678565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b60125481565b60135481565b60105481565b61126961258f565b60004790506000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16826040516112b6906146c9565b60006040518083038185875af1925050503d80600081146112f3576040519150601f19603f3d011682016040523d82523d6000602084013e6112f8565b606091505b5050905080611333576040517f27fcd9d100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b61135283838360405180602001604052806000815250611aab565b505050565b601860009054906101000a900460ff1661139d576040517fcc0fe59200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113a681612909565b50565b6002600a5414156113ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e6906143ab565b60405180910390fd5b6002600a819055506113ff6121d2565b611407612239565b6114118282612965565b61141c601654612a1b565b611428601e60486122d9565b61143333601e6123c9565b6001600a819055505050565b6002600a541415611485576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147c906143ab565b60405180910390fd5b6002600a819055506114956121d2565b61149d612239565b6114a5612289565b6114b1601e60486122d9565b6114bc601454612a1b565b6114c733601e6123c9565b6001600a81905550565b60006114db61105f565b821061151c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151390614750565b60405180910390fd5b600882815481106115305761152f614770565b5b90600052602060002001549050919050565b61272b5481565b61155161258f565b8060158190555050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611604576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115fb906147eb565b60405180910390fd5b80915050919050565b601860019054906101000a900460ff1681565b601a81612711811061163157600080fd5b016000915090505481565b61272e6020528060005260406000206000915090505481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116bd9061487d565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61171561258f565b61171f6000612a58565b565b61172961258f565b8060138190555050565b6002600a541415611779576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611770906143ab565b60405180910390fd5b6002600a819055506117896121d2565b611791612239565b61179b8282612965565b6117a96012546012546122d9565b6117b5336012546123c9565b6001600a819055505050565b600e80546117ce9061432d565b80601f01602080910402602001604051908101604052809291908181526020018280546117fa9061432d565b80156118475780601f1061181c57610100808354040283529160200191611847565b820191906000526020600020905b81548152906001019060200180831161182a57829003601f168201915b505050505081565b60145481565b61185d61258f565b8060178190555050565b61186f61258f565b80601860016101000a81548160ff02191690831515021790555050565b601860009054906101000a900460ff1681565b600061272c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6002600a54141561192f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611926906143ab565b60405180910390fd5b6002600a8190555061193f6121d2565b611947612239565b61194f612289565b61195b600560486122d9565b611966601354612a1b565b6119713360056123c9565b6001600a81905550565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546119b49061432d565b80601f01602080910402602001604051908101604052809291908181526020018280546119e09061432d565b8015611a2d5780601f10611a0257610100808354040283529160200191611a2d565b820191906000526020600020905b815481529060010190602001808311611a1057829003601f168201915b5050505050905090565b611a49611a426124ce565b8383612b1e565b5050565b611a5561258f565b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611aa161258f565b8060118190555050565b611abc611ab66124ce565b8361260d565b611afb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611af2906145e6565b60405180910390fd5b611b0784848484612c8b565b50505050565b601860029054906101000a900460ff1681565b60165481565b60155481565b60606000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166374beb047846040518263ffffffff1660e01b8152600401611b8b91906148ba565b600060405180830381865afa158015611ba8573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611bd19190614976565b90506000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166376dfe297856040518263ffffffff1660e01b8152600401611c3091906148ba565b600060405180830381865afa158015611c4d573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611c769190614976565b9050600061272d5461272e60008781526020019081526020016000205411611cb25761272e600086815260200190815260200160002054611cb7565b61272d545b90506000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636ce0e3458585856040518463ffffffff1660e01b8152600401611d1a939291906149bf565b600060405180830381865afa158015611d37573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611d609190614976565b90506000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631a06bb3183868661272d548c6040518663ffffffff1660e01b8152600401611dca959493929190614a04565b600060405180830381865afa158015611de7573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611e109190614976565b905080604051602001611e239190614aed565b60405160208183030381529060405295505050505050919050565b61272d5481565b61271081565b611e5361258f565b8061272d8190555050565b611e6661258f565b80601860026101000a81548160ff02191690831515021790555050565b611e8b61258f565b8060148190555050565b6060600e8054611ea49061432d565b80601f0160208091040260200160405190810160405280929190818152602001828054611ed09061432d565b8015611f1d5780601f10611ef257610100808354040283529160200191611f1d565b820191906000526020600020905b815481529060010190602001808311611f0057829003601f168201915b5050505050905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611fc361258f565b8060128190555050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611ffb61258f565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561206b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206290614b81565b60405180910390fd5b61207481612a58565b50565b6002600a5414156120bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b4906143ab565b60405180910390fd5b6002600a819055506120cd6121d2565b6120d5612239565b6120df8282612965565b6120ea601554612a1b565b6120f6600560486122d9565b6121013360056123c9565b6001600a819055505050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612180575061217f82612ce7565b5b9050919050565b61219081612dc9565b6121cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c6906147eb565b60405180910390fd5b50565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612237576040517f283647fb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60001515601860019054906101000a900460ff1615151415612287576040517fb7b2409700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60001515601860029054906101000a900460ff16151514156122d7576040517fc7d08f0400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b80826122e43361189f565b6122ee919061451e565b111561236157600582101561232f576040517f457f364900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517fed302ecd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61272b546010546127106123759190614ba1565b61237f919061451e565b8260195461238d919061451e565b11156123c5576040517f6928e86300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b8061272c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612419919061451e565b9250508190555060005b818110156124c95760006019600081548092919061244090614bd5565b9190505533426001436124539190614ba1565b406040516020016124679493929190614ca8565b6040516020818303038152906040528051906020012060001c9050600061248d82612e35565b90506124998582612f90565b6124a281612fae565b61272e60008381526020019081526020016000208190555082806001019350505050612423565b505050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166125498361155b565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6125976124ce565b73ffffffffffffffffffffffffffffffffffffffff166125b561197b565b73ffffffffffffffffffffffffffffffffffffffff161461260b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260290614d42565b60405180910390fd5b565b6000806126198361155b565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061265b575061265a8185611f27565b5b8061269957508373ffffffffffffffffffffffffffffffffffffffff1661268184610e52565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166126c28261155b565b73ffffffffffffffffffffffffffffffffffffffff1614612718576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270f90614dd4565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612788576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161277f90614e66565b60405180910390fd5b612793838383613024565b61279e6000826124d6565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127ee9190614ba1565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612845919061451e565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46129048383836130ef565b505050565b61291a6129146124ce565b8261260d565b612959576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612950906145e6565b60405180910390fd5b612962816130f4565b50565b600015156129dd838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050601754336040516020016129c29190614e86565b60405160208183030381529060405280519060200120613211565b15151415612a17576040517f231e418300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b80341015612a55576040517f583aa02600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612b8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b8490614eed565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612c7e9190613bdd565b60405180910390a3505050565b612c968484846126a2565b612ca284848484613228565b612ce1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cd890614f7f565b60405180910390fd5b50505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612db257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612dc25750612dc1826133b0565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600080601954612711612e489190614ba1565b90506000811415612e85576040517ff21bd81600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008184612e939190614fce565b90506000601a826127118110612eac57612eab614770565b5b01541415612eba5780612ed2565b601a816127118110612ecf57612ece614770565b5b01545b92506000601a600184612ee59190614ba1565b6127118110612ef757612ef6614770565b5b015414612f2657601a600183612f0d9190614ba1565b6127118110612f1f57612f1e614770565b5b0154612f34565b600182612f339190614ba1565b5b61ffff16601a826127118110612f4d57612f4c614770565b5b01819055506000601a600184612f639190614ba1565b6127118110612f7557612f74614770565b5b0181905550600183612f87919061451e565b92505050919050565b612faa82826040518060200160405280600081525061341a565b5050565b600080600a600f84612fc09190614fce565b612fca919061451e565b905060006005612fd861105f565b612fe2919061451e565b9050818282604051602001612ff8929190614fff565b6040516020818303038152906040528051906020012060001c61301b9190614fce565b92505050919050565b61302f838383613475565b61272d5461272e60008381526020019081526020016000205410156130ea5760006103e861047e603260016004868161306b5761306a614f9f565b5b0601020161272e600085815260200190815260200160002054028161309357613092614f9f565b5b0490508061272e600084815260200190815260200160002054146130b757806130d0565b600161272e600084815260200190815260200160002054015b61272e600084815260200190815260200160002081905550505b505050565b505050565b60006130ff8261155b565b905061310d81600084613024565b6131186000836124d6565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546131689190614ba1565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461320d816000846130ef565b5050565b60008261321e8584613589565b1490509392505050565b60006132498473ffffffffffffffffffffffffffffffffffffffff166135df565b156133a3578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026132726124ce565b8786866040518563ffffffff1660e01b81526004016132949493929190615080565b6020604051808303816000875af19250505080156132d057506040513d601f19601f820116820180604052508101906132cd91906150e1565b60015b613353573d8060008114613300576040519150601f19603f3d011682016040523d82523d6000602084013e613305565b606091505b5060008151141561334b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161334290614f7f565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506133a8565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6134248383613602565b6134316000848484613228565b613470576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161346790614f7f565b60405180910390fd5b505050565b6134808383836137dc565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156134c3576134be816137e1565b613502565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461350157613500838261382a565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156135455761354081613997565b613584565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614613583576135828282613a68565b5b5b505050565b60008082905060005b84518110156135d4576135bf828683815181106135b2576135b1614770565b5b6020026020010151613ae7565b915080806135cc90614bd5565b915050613592565b508091505092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613672576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136699061515a565b60405180910390fd5b61367b81612dc9565b156136bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136b2906151c6565b60405180910390fd5b6136c760008383613024565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613717919061451e565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46137d8600083836130ef565b5050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161383784611655565b6138419190614ba1565b9050600060076000848152602001908152602001600020549050818114613926576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506139ab9190614ba1565b90506000600960008481526020019081526020016000205490506000600883815481106139db576139da614770565b5b9060005260206000200154905080600883815481106139fd576139fc614770565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613a4c57613a4b6151e6565b5b6001900381819060005260206000200160009055905550505050565b6000613a7383611655565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b6000818310613aff57613afa8284613b12565b613b0a565b613b098383613b12565b5b905092915050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613b7281613b3d565b8114613b7d57600080fd5b50565b600081359050613b8f81613b69565b92915050565b600060208284031215613bab57613baa613b33565b5b6000613bb984828501613b80565b91505092915050565b60008115159050919050565b613bd781613bc2565b82525050565b6000602082019050613bf26000830184613bce565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613c32578082015181840152602081019050613c17565b83811115613c41576000848401525b50505050565b6000601f19601f8301169050919050565b6000613c6382613bf8565b613c6d8185613c03565b9350613c7d818560208601613c14565b613c8681613c47565b840191505092915050565b60006020820190508181036000830152613cab8184613c58565b905092915050565b6000819050919050565b613cc681613cb3565b8114613cd157600080fd5b50565b600081359050613ce381613cbd565b92915050565b600060208284031215613cff57613cfe613b33565b5b6000613d0d84828501613cd4565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613d4182613d16565b9050919050565b613d5181613d36565b82525050565b6000602082019050613d6c6000830184613d48565b92915050565b613d7b81613d36565b8114613d8657600080fd5b50565b600081359050613d9881613d72565b92915050565b60008060408385031215613db557613db4613b33565b5b6000613dc385828601613d89565b9250506020613dd485828601613cd4565b9150509250929050565b613de781613bc2565b8114613df257600080fd5b50565b600081359050613e0481613dde565b92915050565b600060208284031215613e2057613e1f613b33565b5b6000613e2e84828501613df5565b91505092915050565b613e4081613cb3565b82525050565b6000602082019050613e5b6000830184613e37565b92915050565b60008060408385031215613e7857613e77613b33565b5b6000613e8685828601613cd4565b9250506020613e9785828601613d89565b9150509250929050565b6000613eac82613d16565b9050919050565b613ebc81613ea1565b8114613ec757600080fd5b50565b600081359050613ed981613eb3565b92915050565b600060208284031215613ef557613ef4613b33565b5b6000613f0384828501613eca565b91505092915050565b600080600060608486031215613f2557613f24613b33565b5b6000613f3386828701613d89565b9350506020613f4486828701613d89565b9250506040613f5586828701613cd4565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f840112613f8457613f83613f5f565b5b8235905067ffffffffffffffff811115613fa157613fa0613f64565b5b602083019150836020820283011115613fbd57613fbc613f69565b5b9250929050565b60008060208385031215613fdb57613fda613b33565b5b600083013567ffffffffffffffff811115613ff957613ff8613b38565b5b61400585828601613f6e565b92509250509250929050565b60006020828403121561402757614026613b33565b5b600061403584828501613d89565b91505092915050565b6000819050919050565b6140518161403e565b811461405c57600080fd5b50565b60008135905061406e81614048565b92915050565b60006020828403121561408a57614089613b33565b5b60006140988482850161405f565b91505092915050565b600080604083850312156140b8576140b7613b33565b5b60006140c685828601613d89565b92505060206140d785828601613df5565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61411e82613c47565b810181811067ffffffffffffffff8211171561413d5761413c6140e6565b5b80604052505050565b6000614150613b29565b905061415c8282614115565b919050565b600067ffffffffffffffff82111561417c5761417b6140e6565b5b61418582613c47565b9050602081019050919050565b82818337600083830152505050565b60006141b46141af84614161565b614146565b9050828152602081018484840111156141d0576141cf6140e1565b5b6141db848285614192565b509392505050565b600082601f8301126141f8576141f7613f5f565b5b81356142088482602086016141a1565b91505092915050565b6000806000806080858703121561422b5761422a613b33565b5b600061423987828801613d89565b945050602061424a87828801613d89565b935050604061425b87828801613cd4565b925050606085013567ffffffffffffffff81111561427c5761427b613b38565b5b614288878288016141e3565b91505092959194509250565b600080604083850312156142ab576142aa613b33565b5b60006142b985828601613d89565b92505060206142ca85828601613d89565b9150509250929050565b6142dd81613ea1565b82525050565b60006020820190506142f860008301846142d4565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061434557607f821691505b60208210811415614359576143586142fe565b5b50919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614395601f83613c03565b91506143a08261435f565b602082019050919050565b600060208201905081810360008301526143c481614388565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000614427602183613c03565b9150614432826143cb565b604082019050919050565b600060208201905081810360008301526144568161441a565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b60006144b9603e83613c03565b91506144c48261445d565b604082019050919050565b600060208201905081810360008301526144e8816144ac565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061452982613cb3565b915061453483613cb3565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614569576145686144ef565b5b828201905092915050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b60006145d0602e83613c03565b91506145db82614574565b604082019050919050565b600060208201905081810360008301526145ff816145c3565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000614662602b83613c03565b915061466d82614606565b604082019050919050565b6000602082019050818103600083015261469181614655565b9050919050565b600081905092915050565b50565b60006146b3600083614698565b91506146be826146a3565b600082019050919050565b60006146d4826146a6565b9150819050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b600061473a602c83613c03565b9150614745826146de565b604082019050919050565b600060208201905081810360008301526147698161472d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006147d5601883613c03565b91506147e08261479f565b602082019050919050565b60006020820190508181036000830152614804816147c8565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614867602983613c03565b91506148728261480b565b604082019050919050565b600060208201905081810360008301526148968161485a565b9050919050565b600061ffff82169050919050565b6148b48161489d565b82525050565b60006020820190506148cf60008301846148ab565b92915050565b600067ffffffffffffffff8211156148f0576148ef6140e6565b5b6148f982613c47565b9050602081019050919050565b6000614919614914846148d5565b614146565b905082815260208101848484011115614935576149346140e1565b5b614940848285613c14565b509392505050565b600082601f83011261495d5761495c613f5f565b5b815161496d848260208601614906565b91505092915050565b60006020828403121561498c5761498b613b33565b5b600082015167ffffffffffffffff8111156149aa576149a9613b38565b5b6149b684828501614948565b91505092915050565b600060608201905081810360008301526149d98186613c58565b905081810360208301526149ed8185613c58565b90506149fc6040830184613e37565b949350505050565b600060a0820190508181036000830152614a1e8188613c58565b90508181036020830152614a328187613c58565b9050614a416040830186613e37565b614a4e6060830185613e37565b614a5b6080830184613e37565b9695505050505050565b600081905092915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b6000614aa6601d83614a65565b9150614ab182614a70565b601d82019050919050565b6000614ac782613bf8565b614ad18185614a65565b9350614ae1818560208601613c14565b80840191505092915050565b6000614af882614a99565b9150614b048284614abc565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614b6b602683613c03565b9150614b7682614b0f565b604082019050919050565b60006020820190508181036000830152614b9a81614b5e565b9050919050565b6000614bac82613cb3565b9150614bb783613cb3565b925082821015614bca57614bc96144ef565b5b828203905092915050565b6000614be082613cb3565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614c1357614c126144ef565b5b600182019050919050565b6000819050919050565b614c39614c3482613cb3565b614c1e565b82525050565b60008160601b9050919050565b6000614c5782614c3f565b9050919050565b6000614c6982614c4c565b9050919050565b614c81614c7c82613d36565b614c5e565b82525050565b6000819050919050565b614ca2614c9d8261403e565b614c87565b82525050565b6000614cb48287614c28565b602082019150614cc48286614c70565b601482019150614cd48285614c28565b602082019150614ce48284614c91565b60208201915081905095945050505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614d2c602083613c03565b9150614d3782614cf6565b602082019050919050565b60006020820190508181036000830152614d5b81614d1f565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614dbe602583613c03565b9150614dc982614d62565b604082019050919050565b60006020820190508181036000830152614ded81614db1565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614e50602483613c03565b9150614e5b82614df4565b604082019050919050565b60006020820190508181036000830152614e7f81614e43565b9050919050565b6000614e928284614c70565b60148201915081905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614ed7601983613c03565b9150614ee282614ea1565b602082019050919050565b60006020820190508181036000830152614f0681614eca565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614f69603283613c03565b9150614f7482614f0d565b604082019050919050565b60006020820190508181036000830152614f9881614f5c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614fd982613cb3565b9150614fe483613cb3565b925082614ff457614ff3614f9f565b5b828206905092915050565b600061500b8285614c28565b60208201915061501b8284614c28565b6020820191508190509392505050565b600081519050919050565b600082825260208201905092915050565b60006150528261502b565b61505c8185615036565b935061506c818560208601613c14565b61507581613c47565b840191505092915050565b60006080820190506150956000830187613d48565b6150a26020830186613d48565b6150af6040830185613e37565b81810360608301526150c18184615047565b905095945050505050565b6000815190506150db81613b69565b92915050565b6000602082840312156150f7576150f6613b33565b5b6000615105848285016150cc565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615144602083613c03565b915061514f8261510e565b602082019050919050565b6000602082019050818103600083015261517381615137565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b60006151b0601c83613c03565b91506151bb8261517a565b602082019050919050565b600060208201905081810360008301526151df816151a3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea2646970667358221220e5fb8250026e6b93c39d07d29b9ebaf7dbfc69a5d1207d5103879b57d55bdbbb64736f6c634300080c00330000000000000000000000000000000000000000000000000000000000000140000000000000000000000000470de9672cff5b304aaaf9030b92e9b39d61661a00000000000000000000000016f5a35647d6f03d5d3da7b35409d65ba03af3b20000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000058d15e1762800000000000000000000000000000000000000000000000000001bc16d674ec80000000000000000000000000000000000000000000000000000058d15e1762800000000000000000000000000000000000000000000000000001bc16d674ec80000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b7265696570743663706268646870707672656d776b71636a6d6b6f3573766d68706c626b707274326e68767a356c6c6d63656b33687771000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106103975760003560e01c80637384b6b0116101dc578063bc8893b411610102578063e2e06fa3116100a0578063ea0e81431161006f578063ea0e814314610d15578063f2bcd02214610d3e578063f2fde38b14610d69578063fe587fc314610d9257610397565b8063e2e06fa314610c5b578063e4ebb6ff14610c84578063e8a3d48514610cad578063e985e9c514610cd857610397565b8063c87b56dd116100dc578063c87b56dd14610b9f578063d06a89a414610bdc578063d8258d9514610c07578063dc2f786714610c3257610397565b8063bc8893b414610b1e578063c09f516f14610b49578063c63fb4c514610b7457610397565b80638a59a7fd1161017a578063a22cb46511610149578063a22cb46514610a7a578063a725b02714610aa3578063aed15c6e14610acc578063b88d4fde14610af557610397565b80638a59a7fd146109dd5780638bd7da3314610a1a5780638da5cb5b14610a2457806395d89b4114610a4f57610397565b80637afb1920116101b65780637afb1920146109355780637cb6475914610960578063841718a614610989578063864ef3e5146109b257610397565b80637384b6b0146108b857806373a6cd41146108e157806373e927841461090a57610397565b80633960c9f3116102c15780635cd805a41161025f5780636e8ebbfa1161022e5780636e8ebbfa146107ea578063709779441461082757806370a0823114610864578063715018a6146108a157610397565b80635cd805a41461072e5780635f071d72146107595780636352211e1461078257806368428a1b146107bf57610397565b806342966c681161029b57806342966c68146106a25780634812907d146106cb57806349c438be146106e75780634f6ccce7146106f157610397565b80633960c9f3146106375780633ccfd60b1461066257806342842e0e1461067957610397565b806318df6403116103395780632eae05b3116103085780632eae05b31461057b5780632f745c59146105a45780632ffa728e146105e157806330234b481461060c57610397565b806318df6403146104d55780631e760e88146104fe57806321b8092e1461052957806323b872dd1461055257610397565b8063081bb9f311610375578063081bb9f314610441578063095ea7b3146104585780630bc253551461048157806318160ddd146104aa57610397565b806301ffc9a71461039c57806306fdde03146103d9578063081812fc14610404575b600080fd5b3480156103a857600080fd5b506103c360048036038101906103be9190613b95565b610dae565b6040516103d09190613bdd565b60405180910390f35b3480156103e557600080fd5b506103ee610dc0565b6040516103fb9190613c91565b60405180910390f35b34801561041057600080fd5b5061042b60048036038101906104269190613ce9565b610e52565b6040516104389190613d57565b60405180910390f35b34801561044d57600080fd5b50610456610e98565b005b34801561046457600080fd5b5061047f600480360381019061047a9190613d9e565b610f22565b005b34801561048d57600080fd5b506104a860048036038101906104a39190613e0a565b61103a565b005b3480156104b657600080fd5b506104bf61105f565b6040516104cc9190613e46565b60405180910390f35b3480156104e157600080fd5b506104fc60048036038101906104f79190613e61565b61106c565b005b34801561050a57600080fd5b506105136110e6565b6040516105209190613e46565b60405180910390f35b34801561053557600080fd5b50610550600480360381019061054b9190613edf565b6110ec565b005b34801561055e57600080fd5b5061057960048036038101906105749190613f0c565b611138565b005b34801561058757600080fd5b506105a2600480360381019061059d9190613ce9565b611198565b005b3480156105b057600080fd5b506105cb60048036038101906105c69190613d9e565b6111aa565b6040516105d89190613e46565b60405180910390f35b3480156105ed57600080fd5b506105f661124f565b6040516106039190613e46565b60405180910390f35b34801561061857600080fd5b50610621611255565b60405161062e9190613e46565b60405180910390f35b34801561064357600080fd5b5061064c61125b565b6040516106599190613e46565b60405180910390f35b34801561066e57600080fd5b50610677611261565b005b34801561068557600080fd5b506106a0600480360381019061069b9190613f0c565b611337565b005b3480156106ae57600080fd5b506106c960048036038101906106c49190613ce9565b611357565b005b6106e560048036038101906106e09190613fc4565b6113a9565b005b6106ef61143f565b005b3480156106fd57600080fd5b5061071860048036038101906107139190613ce9565b6114d1565b6040516107259190613e46565b60405180910390f35b34801561073a57600080fd5b50610743611542565b6040516107509190613e46565b60405180910390f35b34801561076557600080fd5b50610780600480360381019061077b9190613ce9565b611549565b005b34801561078e57600080fd5b506107a960048036038101906107a49190613ce9565b61155b565b6040516107b69190613d57565b60405180910390f35b3480156107cb57600080fd5b506107d461160d565b6040516107e19190613bdd565b60405180910390f35b3480156107f657600080fd5b50610811600480360381019061080c9190613ce9565b611620565b60405161081e9190613e46565b60405180910390f35b34801561083357600080fd5b5061084e60048036038101906108499190613ce9565b61163c565b60405161085b9190613e46565b60405180910390f35b34801561087057600080fd5b5061088b60048036038101906108869190614011565b611655565b6040516108989190613e46565b60405180910390f35b3480156108ad57600080fd5b506108b661170d565b005b3480156108c457600080fd5b506108df60048036038101906108da9190613ce9565b611721565b005b3480156108ed57600080fd5b5061090860048036038101906109039190613fc4565b611733565b005b34801561091657600080fd5b5061091f6117c1565b60405161092c9190613c91565b60405180910390f35b34801561094157600080fd5b5061094a61184f565b6040516109579190613e46565b60405180910390f35b34801561096c57600080fd5b5061098760048036038101906109829190614074565b611855565b005b34801561099557600080fd5b506109b060048036038101906109ab9190613e0a565b611867565b005b3480156109be57600080fd5b506109c761188c565b6040516109d49190613bdd565b60405180910390f35b3480156109e957600080fd5b50610a0460048036038101906109ff9190614011565b61189f565b604051610a119190613e46565b60405180910390f35b610a226118e9565b005b348015610a3057600080fd5b50610a3961197b565b604051610a469190613d57565b60405180910390f35b348015610a5b57600080fd5b50610a646119a5565b604051610a719190613c91565b60405180910390f35b348015610a8657600080fd5b50610aa16004803603810190610a9c91906140a1565b611a37565b005b348015610aaf57600080fd5b50610aca6004803603810190610ac59190614011565b611a4d565b005b348015610ad857600080fd5b50610af36004803603810190610aee9190613ce9565b611a99565b005b348015610b0157600080fd5b50610b1c6004803603810190610b179190614211565b611aab565b005b348015610b2a57600080fd5b50610b33611b0d565b604051610b409190613bdd565b60405180910390f35b348015610b5557600080fd5b50610b5e611b20565b604051610b6b9190613e46565b60405180910390f35b348015610b8057600080fd5b50610b89611b26565b604051610b969190613e46565b60405180910390f35b348015610bab57600080fd5b50610bc66004803603810190610bc19190613ce9565b611b2c565b604051610bd39190613c91565b60405180910390f35b348015610be857600080fd5b50610bf1611e3e565b604051610bfe9190613e46565b60405180910390f35b348015610c1357600080fd5b50610c1c611e45565b604051610c299190613e46565b60405180910390f35b348015610c3e57600080fd5b50610c596004803603810190610c549190613ce9565b611e4b565b005b348015610c6757600080fd5b50610c826004803603810190610c7d9190613e0a565b611e5e565b005b348015610c9057600080fd5b50610cab6004803603810190610ca69190613ce9565b611e83565b005b348015610cb957600080fd5b50610cc2611e95565b604051610ccf9190613c91565b60405180910390f35b348015610ce457600080fd5b50610cff6004803603810190610cfa9190614294565b611f27565b604051610d0c9190613bdd565b60405180910390f35b348015610d2157600080fd5b50610d3c6004803603810190610d379190613ce9565b611fbb565b005b348015610d4a57600080fd5b50610d53611fcd565b604051610d6091906142e3565b60405180910390f35b348015610d7557600080fd5b50610d906004803603810190610d8b9190614011565b611ff3565b005b610dac6004803603810190610da79190613fc4565b612077565b005b6000610db98261210d565b9050919050565b606060008054610dcf9061432d565b80601f0160208091040260200160405190810160405280929190818152602001828054610dfb9061432d565b8015610e485780601f10610e1d57610100808354040283529160200191610e48565b820191906000526020600020905b815481529060010190602001808311610e2b57829003601f168201915b5050505050905090565b6000610e5d82612187565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6002600a541415610ede576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed5906143ab565b60405180910390fd5b6002600a81905550610eee6121d2565b610ef6612239565b610efe612289565b610f0c6011546011546122d9565b610f18336011546123c9565b6001600a81905550565b6000610f2d8261155b565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610f9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f959061443d565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610fbd6124ce565b73ffffffffffffffffffffffffffffffffffffffff161480610fec5750610feb81610fe66124ce565b611f27565b5b61102b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611022906144cf565b60405180910390fd5b61103583836124d6565b505050565b61104261258f565b80601860006101000a81548160ff02191690831515021790555050565b6000600880549050905090565b61107461258f565b6010548261272b54611086919061451e565b11156110be576040517fed302ecd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8161272b60008282546110d1919061451e565b925050819055506110e281836123c9565b5050565b60115481565b6110f461258f565b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6111496111436124ce565b8261260d565b611188576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117f906145e6565b60405180910390fd5b6111938383836126a2565b505050565b6111a061258f565b8060168190555050565b60006111b583611655565b82106111f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ed90614678565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b60125481565b60135481565b60105481565b61126961258f565b60004790506000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16826040516112b6906146c9565b60006040518083038185875af1925050503d80600081146112f3576040519150601f19603f3d011682016040523d82523d6000602084013e6112f8565b606091505b5050905080611333576040517f27fcd9d100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b61135283838360405180602001604052806000815250611aab565b505050565b601860009054906101000a900460ff1661139d576040517fcc0fe59200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113a681612909565b50565b6002600a5414156113ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e6906143ab565b60405180910390fd5b6002600a819055506113ff6121d2565b611407612239565b6114118282612965565b61141c601654612a1b565b611428601e60486122d9565b61143333601e6123c9565b6001600a819055505050565b6002600a541415611485576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147c906143ab565b60405180910390fd5b6002600a819055506114956121d2565b61149d612239565b6114a5612289565b6114b1601e60486122d9565b6114bc601454612a1b565b6114c733601e6123c9565b6001600a81905550565b60006114db61105f565b821061151c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151390614750565b60405180910390fd5b600882815481106115305761152f614770565b5b90600052602060002001549050919050565b61272b5481565b61155161258f565b8060158190555050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611604576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115fb906147eb565b60405180910390fd5b80915050919050565b601860019054906101000a900460ff1681565b601a81612711811061163157600080fd5b016000915090505481565b61272e6020528060005260406000206000915090505481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116bd9061487d565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61171561258f565b61171f6000612a58565b565b61172961258f565b8060138190555050565b6002600a541415611779576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611770906143ab565b60405180910390fd5b6002600a819055506117896121d2565b611791612239565b61179b8282612965565b6117a96012546012546122d9565b6117b5336012546123c9565b6001600a819055505050565b600e80546117ce9061432d565b80601f01602080910402602001604051908101604052809291908181526020018280546117fa9061432d565b80156118475780601f1061181c57610100808354040283529160200191611847565b820191906000526020600020905b81548152906001019060200180831161182a57829003601f168201915b505050505081565b60145481565b61185d61258f565b8060178190555050565b61186f61258f565b80601860016101000a81548160ff02191690831515021790555050565b601860009054906101000a900460ff1681565b600061272c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6002600a54141561192f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611926906143ab565b60405180910390fd5b6002600a8190555061193f6121d2565b611947612239565b61194f612289565b61195b600560486122d9565b611966601354612a1b565b6119713360056123c9565b6001600a81905550565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546119b49061432d565b80601f01602080910402602001604051908101604052809291908181526020018280546119e09061432d565b8015611a2d5780601f10611a0257610100808354040283529160200191611a2d565b820191906000526020600020905b815481529060010190602001808311611a1057829003601f168201915b5050505050905090565b611a49611a426124ce565b8383612b1e565b5050565b611a5561258f565b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611aa161258f565b8060118190555050565b611abc611ab66124ce565b8361260d565b611afb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611af2906145e6565b60405180910390fd5b611b0784848484612c8b565b50505050565b601860029054906101000a900460ff1681565b60165481565b60155481565b60606000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166374beb047846040518263ffffffff1660e01b8152600401611b8b91906148ba565b600060405180830381865afa158015611ba8573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611bd19190614976565b90506000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166376dfe297856040518263ffffffff1660e01b8152600401611c3091906148ba565b600060405180830381865afa158015611c4d573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611c769190614976565b9050600061272d5461272e60008781526020019081526020016000205411611cb25761272e600086815260200190815260200160002054611cb7565b61272d545b90506000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636ce0e3458585856040518463ffffffff1660e01b8152600401611d1a939291906149bf565b600060405180830381865afa158015611d37573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611d609190614976565b90506000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631a06bb3183868661272d548c6040518663ffffffff1660e01b8152600401611dca959493929190614a04565b600060405180830381865afa158015611de7573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611e109190614976565b905080604051602001611e239190614aed565b60405160208183030381529060405295505050505050919050565b61272d5481565b61271081565b611e5361258f565b8061272d8190555050565b611e6661258f565b80601860026101000a81548160ff02191690831515021790555050565b611e8b61258f565b8060148190555050565b6060600e8054611ea49061432d565b80601f0160208091040260200160405190810160405280929190818152602001828054611ed09061432d565b8015611f1d5780601f10611ef257610100808354040283529160200191611f1d565b820191906000526020600020905b815481529060010190602001808311611f0057829003601f168201915b5050505050905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611fc361258f565b8060128190555050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611ffb61258f565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561206b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206290614b81565b60405180910390fd5b61207481612a58565b50565b6002600a5414156120bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b4906143ab565b60405180910390fd5b6002600a819055506120cd6121d2565b6120d5612239565b6120df8282612965565b6120ea601554612a1b565b6120f6600560486122d9565b6121013360056123c9565b6001600a819055505050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612180575061217f82612ce7565b5b9050919050565b61219081612dc9565b6121cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c6906147eb565b60405180910390fd5b50565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612237576040517f283647fb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60001515601860019054906101000a900460ff1615151415612287576040517fb7b2409700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60001515601860029054906101000a900460ff16151514156122d7576040517fc7d08f0400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b80826122e43361189f565b6122ee919061451e565b111561236157600582101561232f576040517f457f364900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517fed302ecd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61272b546010546127106123759190614ba1565b61237f919061451e565b8260195461238d919061451e565b11156123c5576040517f6928e86300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b8061272c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612419919061451e565b9250508190555060005b818110156124c95760006019600081548092919061244090614bd5565b9190505533426001436124539190614ba1565b406040516020016124679493929190614ca8565b6040516020818303038152906040528051906020012060001c9050600061248d82612e35565b90506124998582612f90565b6124a281612fae565b61272e60008381526020019081526020016000208190555082806001019350505050612423565b505050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166125498361155b565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6125976124ce565b73ffffffffffffffffffffffffffffffffffffffff166125b561197b565b73ffffffffffffffffffffffffffffffffffffffff161461260b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260290614d42565b60405180910390fd5b565b6000806126198361155b565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061265b575061265a8185611f27565b5b8061269957508373ffffffffffffffffffffffffffffffffffffffff1661268184610e52565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166126c28261155b565b73ffffffffffffffffffffffffffffffffffffffff1614612718576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270f90614dd4565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612788576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161277f90614e66565b60405180910390fd5b612793838383613024565b61279e6000826124d6565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127ee9190614ba1565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612845919061451e565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46129048383836130ef565b505050565b61291a6129146124ce565b8261260d565b612959576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612950906145e6565b60405180910390fd5b612962816130f4565b50565b600015156129dd838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050601754336040516020016129c29190614e86565b60405160208183030381529060405280519060200120613211565b15151415612a17576040517f231e418300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b80341015612a55576040517f583aa02600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612b8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b8490614eed565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612c7e9190613bdd565b60405180910390a3505050565b612c968484846126a2565b612ca284848484613228565b612ce1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cd890614f7f565b60405180910390fd5b50505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612db257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612dc25750612dc1826133b0565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600080601954612711612e489190614ba1565b90506000811415612e85576040517ff21bd81600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008184612e939190614fce565b90506000601a826127118110612eac57612eab614770565b5b01541415612eba5780612ed2565b601a816127118110612ecf57612ece614770565b5b01545b92506000601a600184612ee59190614ba1565b6127118110612ef757612ef6614770565b5b015414612f2657601a600183612f0d9190614ba1565b6127118110612f1f57612f1e614770565b5b0154612f34565b600182612f339190614ba1565b5b61ffff16601a826127118110612f4d57612f4c614770565b5b01819055506000601a600184612f639190614ba1565b6127118110612f7557612f74614770565b5b0181905550600183612f87919061451e565b92505050919050565b612faa82826040518060200160405280600081525061341a565b5050565b600080600a600f84612fc09190614fce565b612fca919061451e565b905060006005612fd861105f565b612fe2919061451e565b9050818282604051602001612ff8929190614fff565b6040516020818303038152906040528051906020012060001c61301b9190614fce565b92505050919050565b61302f838383613475565b61272d5461272e60008381526020019081526020016000205410156130ea5760006103e861047e603260016004868161306b5761306a614f9f565b5b0601020161272e600085815260200190815260200160002054028161309357613092614f9f565b5b0490508061272e600084815260200190815260200160002054146130b757806130d0565b600161272e600084815260200190815260200160002054015b61272e600084815260200190815260200160002081905550505b505050565b505050565b60006130ff8261155b565b905061310d81600084613024565b6131186000836124d6565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546131689190614ba1565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461320d816000846130ef565b5050565b60008261321e8584613589565b1490509392505050565b60006132498473ffffffffffffffffffffffffffffffffffffffff166135df565b156133a3578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026132726124ce565b8786866040518563ffffffff1660e01b81526004016132949493929190615080565b6020604051808303816000875af19250505080156132d057506040513d601f19601f820116820180604052508101906132cd91906150e1565b60015b613353573d8060008114613300576040519150601f19603f3d011682016040523d82523d6000602084013e613305565b606091505b5060008151141561334b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161334290614f7f565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506133a8565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6134248383613602565b6134316000848484613228565b613470576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161346790614f7f565b60405180910390fd5b505050565b6134808383836137dc565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156134c3576134be816137e1565b613502565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461350157613500838261382a565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156135455761354081613997565b613584565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614613583576135828282613a68565b5b5b505050565b60008082905060005b84518110156135d4576135bf828683815181106135b2576135b1614770565b5b6020026020010151613ae7565b915080806135cc90614bd5565b915050613592565b508091505092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613672576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136699061515a565b60405180910390fd5b61367b81612dc9565b156136bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136b2906151c6565b60405180910390fd5b6136c760008383613024565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613717919061451e565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46137d8600083836130ef565b5050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161383784611655565b6138419190614ba1565b9050600060076000848152602001908152602001600020549050818114613926576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506139ab9190614ba1565b90506000600960008481526020019081526020016000205490506000600883815481106139db576139da614770565b5b9060005260206000200154905080600883815481106139fd576139fc614770565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613a4c57613a4b6151e6565b5b6001900381819060005260206000200160009055905550505050565b6000613a7383611655565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b6000818310613aff57613afa8284613b12565b613b0a565b613b098383613b12565b5b905092915050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613b7281613b3d565b8114613b7d57600080fd5b50565b600081359050613b8f81613b69565b92915050565b600060208284031215613bab57613baa613b33565b5b6000613bb984828501613b80565b91505092915050565b60008115159050919050565b613bd781613bc2565b82525050565b6000602082019050613bf26000830184613bce565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613c32578082015181840152602081019050613c17565b83811115613c41576000848401525b50505050565b6000601f19601f8301169050919050565b6000613c6382613bf8565b613c6d8185613c03565b9350613c7d818560208601613c14565b613c8681613c47565b840191505092915050565b60006020820190508181036000830152613cab8184613c58565b905092915050565b6000819050919050565b613cc681613cb3565b8114613cd157600080fd5b50565b600081359050613ce381613cbd565b92915050565b600060208284031215613cff57613cfe613b33565b5b6000613d0d84828501613cd4565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613d4182613d16565b9050919050565b613d5181613d36565b82525050565b6000602082019050613d6c6000830184613d48565b92915050565b613d7b81613d36565b8114613d8657600080fd5b50565b600081359050613d9881613d72565b92915050565b60008060408385031215613db557613db4613b33565b5b6000613dc385828601613d89565b9250506020613dd485828601613cd4565b9150509250929050565b613de781613bc2565b8114613df257600080fd5b50565b600081359050613e0481613dde565b92915050565b600060208284031215613e2057613e1f613b33565b5b6000613e2e84828501613df5565b91505092915050565b613e4081613cb3565b82525050565b6000602082019050613e5b6000830184613e37565b92915050565b60008060408385031215613e7857613e77613b33565b5b6000613e8685828601613cd4565b9250506020613e9785828601613d89565b9150509250929050565b6000613eac82613d16565b9050919050565b613ebc81613ea1565b8114613ec757600080fd5b50565b600081359050613ed981613eb3565b92915050565b600060208284031215613ef557613ef4613b33565b5b6000613f0384828501613eca565b91505092915050565b600080600060608486031215613f2557613f24613b33565b5b6000613f3386828701613d89565b9350506020613f4486828701613d89565b9250506040613f5586828701613cd4565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f840112613f8457613f83613f5f565b5b8235905067ffffffffffffffff811115613fa157613fa0613f64565b5b602083019150836020820283011115613fbd57613fbc613f69565b5b9250929050565b60008060208385031215613fdb57613fda613b33565b5b600083013567ffffffffffffffff811115613ff957613ff8613b38565b5b61400585828601613f6e565b92509250509250929050565b60006020828403121561402757614026613b33565b5b600061403584828501613d89565b91505092915050565b6000819050919050565b6140518161403e565b811461405c57600080fd5b50565b60008135905061406e81614048565b92915050565b60006020828403121561408a57614089613b33565b5b60006140988482850161405f565b91505092915050565b600080604083850312156140b8576140b7613b33565b5b60006140c685828601613d89565b92505060206140d785828601613df5565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61411e82613c47565b810181811067ffffffffffffffff8211171561413d5761413c6140e6565b5b80604052505050565b6000614150613b29565b905061415c8282614115565b919050565b600067ffffffffffffffff82111561417c5761417b6140e6565b5b61418582613c47565b9050602081019050919050565b82818337600083830152505050565b60006141b46141af84614161565b614146565b9050828152602081018484840111156141d0576141cf6140e1565b5b6141db848285614192565b509392505050565b600082601f8301126141f8576141f7613f5f565b5b81356142088482602086016141a1565b91505092915050565b6000806000806080858703121561422b5761422a613b33565b5b600061423987828801613d89565b945050602061424a87828801613d89565b935050604061425b87828801613cd4565b925050606085013567ffffffffffffffff81111561427c5761427b613b38565b5b614288878288016141e3565b91505092959194509250565b600080604083850312156142ab576142aa613b33565b5b60006142b985828601613d89565b92505060206142ca85828601613d89565b9150509250929050565b6142dd81613ea1565b82525050565b60006020820190506142f860008301846142d4565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061434557607f821691505b60208210811415614359576143586142fe565b5b50919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614395601f83613c03565b91506143a08261435f565b602082019050919050565b600060208201905081810360008301526143c481614388565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000614427602183613c03565b9150614432826143cb565b604082019050919050565b600060208201905081810360008301526144568161441a565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b60006144b9603e83613c03565b91506144c48261445d565b604082019050919050565b600060208201905081810360008301526144e8816144ac565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061452982613cb3565b915061453483613cb3565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614569576145686144ef565b5b828201905092915050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b60006145d0602e83613c03565b91506145db82614574565b604082019050919050565b600060208201905081810360008301526145ff816145c3565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000614662602b83613c03565b915061466d82614606565b604082019050919050565b6000602082019050818103600083015261469181614655565b9050919050565b600081905092915050565b50565b60006146b3600083614698565b91506146be826146a3565b600082019050919050565b60006146d4826146a6565b9150819050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b600061473a602c83613c03565b9150614745826146de565b604082019050919050565b600060208201905081810360008301526147698161472d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006147d5601883613c03565b91506147e08261479f565b602082019050919050565b60006020820190508181036000830152614804816147c8565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614867602983613c03565b91506148728261480b565b604082019050919050565b600060208201905081810360008301526148968161485a565b9050919050565b600061ffff82169050919050565b6148b48161489d565b82525050565b60006020820190506148cf60008301846148ab565b92915050565b600067ffffffffffffffff8211156148f0576148ef6140e6565b5b6148f982613c47565b9050602081019050919050565b6000614919614914846148d5565b614146565b905082815260208101848484011115614935576149346140e1565b5b614940848285613c14565b509392505050565b600082601f83011261495d5761495c613f5f565b5b815161496d848260208601614906565b91505092915050565b60006020828403121561498c5761498b613b33565b5b600082015167ffffffffffffffff8111156149aa576149a9613b38565b5b6149b684828501614948565b91505092915050565b600060608201905081810360008301526149d98186613c58565b905081810360208301526149ed8185613c58565b90506149fc6040830184613e37565b949350505050565b600060a0820190508181036000830152614a1e8188613c58565b90508181036020830152614a328187613c58565b9050614a416040830186613e37565b614a4e6060830185613e37565b614a5b6080830184613e37565b9695505050505050565b600081905092915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b6000614aa6601d83614a65565b9150614ab182614a70565b601d82019050919050565b6000614ac782613bf8565b614ad18185614a65565b9350614ae1818560208601613c14565b80840191505092915050565b6000614af882614a99565b9150614b048284614abc565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614b6b602683613c03565b9150614b7682614b0f565b604082019050919050565b60006020820190508181036000830152614b9a81614b5e565b9050919050565b6000614bac82613cb3565b9150614bb783613cb3565b925082821015614bca57614bc96144ef565b5b828203905092915050565b6000614be082613cb3565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614c1357614c126144ef565b5b600182019050919050565b6000819050919050565b614c39614c3482613cb3565b614c1e565b82525050565b60008160601b9050919050565b6000614c5782614c3f565b9050919050565b6000614c6982614c4c565b9050919050565b614c81614c7c82613d36565b614c5e565b82525050565b6000819050919050565b614ca2614c9d8261403e565b614c87565b82525050565b6000614cb48287614c28565b602082019150614cc48286614c70565b601482019150614cd48285614c28565b602082019150614ce48284614c91565b60208201915081905095945050505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614d2c602083613c03565b9150614d3782614cf6565b602082019050919050565b60006020820190508181036000830152614d5b81614d1f565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614dbe602583613c03565b9150614dc982614d62565b604082019050919050565b60006020820190508181036000830152614ded81614db1565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614e50602483613c03565b9150614e5b82614df4565b604082019050919050565b60006020820190508181036000830152614e7f81614e43565b9050919050565b6000614e928284614c70565b60148201915081905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614ed7601983613c03565b9150614ee282614ea1565b602082019050919050565b60006020820190508181036000830152614f0681614eca565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614f69603283613c03565b9150614f7482614f0d565b604082019050919050565b60006020820190508181036000830152614f9881614f5c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614fd982613cb3565b9150614fe483613cb3565b925082614ff457614ff3614f9f565b5b828206905092915050565b600061500b8285614c28565b60208201915061501b8284614c28565b6020820191508190509392505050565b600081519050919050565b600082825260208201905092915050565b60006150528261502b565b61505c8185615036565b935061506c818560208601613c14565b61507581613c47565b840191505092915050565b60006080820190506150956000830187613d48565b6150a26020830186613d48565b6150af6040830185613e37565b81810360608301526150c18184615047565b905095945050505050565b6000815190506150db81613b69565b92915050565b6000602082840312156150f7576150f6613b33565b5b6000615105848285016150cc565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615144602083613c03565b915061514f8261510e565b602082019050919050565b6000602082019050818103600083015261517381615137565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b60006151b0601c83613c03565b91506151bb8261517a565b602082019050919050565b600060208201905081810360008301526151df816151a3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea2646970667358221220e5fb8250026e6b93c39d07d29b9ebaf7dbfc69a5d1207d5103879b57d55bdbbb64736f6c634300080c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000140000000000000000000000000470de9672cff5b304aaaf9030b92e9b39d61661a00000000000000000000000016f5a35647d6f03d5d3da7b35409d65ba03af3b20000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000058d15e1762800000000000000000000000000000000000000000000000000001bc16d674ec80000000000000000000000000000000000000000000000000000058d15e1762800000000000000000000000000000000000000000000000000001bc16d674ec80000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b7265696570743663706268646870707672656d776b71636a6d6b6f3573766d68706c626b707274326e68767a356c6c6d63656b33687771000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _contractMetadataURI (string): ipfs://bafkreiept6cpbhdhppvremwkqcjmko5svmhplbkprt2nhvz5llmcek3hwq
Arg [1] : _growerPrinterAddress (address): 0x470de9672CFF5b304AaaF9030B92E9b39D61661a
Arg [2] : _punksDataAddress (address): 0x16F5A35647D6F03D5D3da7b35409D65ba03aF3B2
Arg [3] : _qtyReserved (uint256): 100
Arg [4] : _qtyFree (uint256): 2
Arg [5] : _qtyFreeAllowlist (uint256): 2
Arg [6] : _mintPriceFive (uint256): 25000000000000000
Arg [7] : _mintPriceThirty (uint256): 125000000000000000
Arg [8] : _mintPriceFiveAllowlist (uint256): 25000000000000000
Arg [9] : _mintPriceThirtyAllowlist (uint256): 125000000000000000
-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [1] : 000000000000000000000000470de9672cff5b304aaaf9030b92e9b39d61661a
Arg [2] : 00000000000000000000000016f5a35647d6f03d5d3da7b35409d65ba03af3b2
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [6] : 0000000000000000000000000000000000000000000000000058d15e17628000
Arg [7] : 00000000000000000000000000000000000000000000000001bc16d674ec8000
Arg [8] : 0000000000000000000000000000000000000000000000000058d15e17628000
Arg [9] : 00000000000000000000000000000000000000000000000001bc16d674ec8000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [11] : 697066733a2f2f6261666b7265696570743663706268646870707672656d776b
Arg [12] : 71636a6d6b6f3573766d68706c626b707274326e68767a356c6c6d63656b3368
Arg [13] : 7771000000000000000000000000000000000000000000000000000000000000
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.