Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
1,784 NFCSummit2023
Holders
1,567
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 NFCSummit2023Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
NFC2023
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "./INFCStorage.sol"; contract NFC2023 is ERC721, ERC721Enumerable, ERC2981, Ownable { /* This smart contract has been handcrafted by OpenGem for The Non Fungible Conference 2023 event. OpenGem provides tools for users and developers to secure ownership of digital assets. We also advice leading organizations by performing audits on their products. https://opengem.com */ using Strings for uint256; string public constant NFT_INFO = "Access to the Non-Fungible Conference on June 7th & 8th, 2023 from 9am-6pm on both days. This ArtWork is the first collaboration between @CarlosMarcialt and @Coldie. Thanks to @Basileus, @CultCryptoArt who are co-editing the conference. Please Follow @NFCSummit before the conference to get instruction about how to redeem your ticket."; string public constant METADATA_ARWEAVE = "https://arweave.net/gKziK0nzZBVFgWaR4nROXezKUTMdbmZdc-U-5xuNmvI"; string public constant METADATA_IPFS ="https://gateway.pinata.cloud/ipfs/QmQQKwrrHac3cBDVf1r66rJ5xhATkvEmRvPM7RwTtFCsKX"; string public constant METADATA_ANIMATION_PROVENANCE = "d6357cf6261516ad796bde082f473fdbeeab66b5221044e0c91cc58ef4516ba3"; INFCStorage storageContract; address storageAddress; address paidWallet; address primaryRoyaltyWallet; string public metadataForFetchingOnly; string public imgBackupTx; bool public secondaryOpen = false; bool public openSecondaryLocked = false; modifier whenSecondaryOpen { require(secondaryOpen, "Listing & transfer not allowed yet."); _; } modifier ifExist(uint256 _tokenId) { require(_exists(_tokenId), "Nonexistent token."); _; } modifier onlyFromWallet() { require(tx.origin == msg.sender, "Caller is not sender."); _; } constructor( address _secondaryRoyaltyWallet, address _paidWallet, address _primaryRoyaltyWallet, string memory _metadataForFetchingOnly, address _storageAddress) ERC721("Non Fungible Conference 2023", "NFCSummit2023") { _setDefaultRoyalty(_secondaryRoyaltyWallet, 1000); paidWallet = _paidWallet; primaryRoyaltyWallet = _primaryRoyaltyWallet; metadataForFetchingOnly = _metadataForFetchingOnly; storageContract = INFCStorage(_storageAddress); } function toggleSecondary() external onlyOwner { require(!openSecondaryLocked, "Secondary is open for ever."); secondaryOpen = !secondaryOpen; } function lockOpenSecondary() external onlyOwner { openSecondaryLocked = true; secondaryOpen = true; } function lockBackupData(string calldata _tx) external onlyOwner { require(bytes(imgBackupTx).length == 0, "Backup locked."); imgBackupTx = _tx; } function tokenImgBackupTx(uint256 _tokenId) external view ifExist(_tokenId) returns (string memory) { return imgBackupTx; } function tokenURIarweave(uint256 _tokenId) external view ifExist(_tokenId) returns (string memory) { return METADATA_ARWEAVE; } function tokenURIipfs(uint256 _tokenId) external view ifExist(_tokenId) returns (string memory) { return METADATA_IPFS; } function tokenURI(uint256 _tokenId) public view override ifExist(_tokenId) returns (string memory) { return bytes(metadataForFetchingOnly).length > 0 ? string(abi.encodePacked(metadataForFetchingOnly, _tokenId.toString(), ".json")) : ""; } function updateJsonFetching(string calldata _metadataForFetchingOnly) external onlyOwner { metadataForFetchingOnly = _metadataForFetchingOnly; } function discountedMint(address _nft_contract, uint256 _nft_id) external payable onlyFromWallet { require(!storageContract.salesLocked(), "Sales are closed."); require(IERC721(_nft_contract).ownerOf(_nft_id) == msg.sender, "You are not owner."); storageContract.checkEligibility(_nft_contract, _nft_id); require(msg.value >= (storageContract.basePrice() - (storageContract.phase() * storageContract.basePrice()) / 100), "Ether value sent is not correct."); storageContract.redeem(_nft_contract, _nft_id); _safeMint(msg.sender, totalSupply() + 1); } function normalMint() external payable onlyFromWallet { require(storageContract.phase() == 0, "Only during public sales."); require(!storageContract.salesLocked(), "Sales are closed."); require(msg.value >= storageContract.basePrice(), "Ether value sent is not correct."); _safeMint(msg.sender, totalSupply() + 1); } function freeMint(bytes32[] calldata _merkle) external onlyFromWallet { require(!storageContract.whitelistClaimed(msg.sender), "Already freemint."); require(MerkleProof.verify(_merkle, storageContract.merkleRoot(), keccak256(abi.encodePacked(msg.sender))), "Incorrect proof."); storageContract.storeWhitelistClaim(msg.sender); _safeMint(msg.sender, totalSupply() + 1); } function emergencyMint() external payable onlyFromWallet { require(storageContract.emergency(), "Not emergency."); require(!storageContract.salesLocked(), "Sales are closed."); require(msg.value >= storageContract.basePrice(), "Ether value sent is not correct."); _safeMint(msg.sender, totalSupply() + 1); } function withdraw() external payable onlyFromWallet onlyOwner { uint256 balance = address(this).balance; payable(paidWallet).transfer(balance * 95/100); payable(primaryRoyaltyWallet).transfer(balance * 5/100); } function setApprovalForAll(address operator, bool approved) public override(IERC721, ERC721) whenSecondaryOpen { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public override(IERC721, ERC721) whenSecondaryOpen { super.approve(operator, tokenId); } function transferFrom(address from, address to, uint256 tokenId) public override(IERC721, ERC721) whenSecondaryOpen { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public override(IERC721, ERC721) whenSecondaryOpen { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public override(IERC721, ERC721) whenSecondaryOpen { super.safeTransferFrom(from, to, tokenId, data); } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// 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 (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 pragma solidity ^0.8.7; interface INFCStorage { function phase() external view returns (uint256); function emergency() external view returns (bool); function salesLocked() external view returns (bool); function basePrice() external view returns (uint256); function merkleRoot() external view returns (bytes32); function storeWhitelistClaim(address _address) external; function redeem(address _nft_contract, uint256 _nft_id) external; function whitelistClaimed(address _address) external view returns (bool); function checkEligibility(address _nft_contract, uint256 _nft_id) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
{ "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":"address","name":"_secondaryRoyaltyWallet","type":"address"},{"internalType":"address","name":"_paidWallet","type":"address"},{"internalType":"address","name":"_primaryRoyaltyWallet","type":"address"},{"internalType":"string","name":"_metadataForFetchingOnly","type":"string"},{"internalType":"address","name":"_storageAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"METADATA_ANIMATION_PROVENANCE","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"METADATA_ARWEAVE","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"METADATA_IPFS","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NFT_INFO","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nft_contract","type":"address"},{"internalType":"uint256","name":"_nft_id","type":"uint256"}],"name":"discountedMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"emergencyMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkle","type":"bytes32[]"}],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"imgBackupTx","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_tx","type":"string"}],"name":"lockBackupData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lockOpenSecondary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"metadataForFetchingOnly","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"normalMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"openSecondaryLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"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":"secondaryOpen","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":"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":[],"name":"toggleSecondary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenImgBackupTx","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURIarweave","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURIipfs","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_metadataForFetchingOnly","type":"string"}],"name":"updateJsonFetching","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
60806040526000601360006101000a81548160ff0219169083151502179055506000601360016101000a81548160ff0219169083151502179055503480156200004757600080fd5b506040516200654b3803806200654b83398181016040528101906200006d919062000755565b6040518060400160405280601c81526020017f4e6f6e2046756e6769626c6520436f6e666572656e63652032303233000000008152506040518060400160405280600d81526020017f4e464353756d6d697432303233000000000000000000000000000000000000008152508160009080519060200190620000f1929190620004a3565b5080600190805190602001906200010a929190620004a3565b5050506200012d620001216200022860201b60201c565b6200023060201b60201c565b62000141856103e8620002f660201b60201c565b83600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160119080519060200190620001db929190620004a3565b5080600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050506200097b565b600033905090565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620003066200049960201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111562000367576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200035e9062000883565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620003d9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003d090620008f5565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600a60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000612710905090565b828054620004b19062000946565b90600052602060002090601f016020900481019282620004d5576000855562000521565b82601f10620004f057805160ff191683800117855562000521565b8280016001018555821562000521579182015b828111156200052057825182559160200191906001019062000503565b5b50905062000530919062000534565b5090565b5b808211156200054f57600081600090555060010162000535565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620005948262000567565b9050919050565b620005a68162000587565b8114620005b257600080fd5b50565b600081519050620005c6816200059b565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200062182620005d6565b810181811067ffffffffffffffff82111715620006435762000642620005e7565b5b80604052505050565b60006200065862000553565b905062000666828262000616565b919050565b600067ffffffffffffffff821115620006895762000688620005e7565b5b6200069482620005d6565b9050602081019050919050565b60005b83811015620006c1578082015181840152602081019050620006a4565b83811115620006d1576000848401525b50505050565b6000620006ee620006e8846200066b565b6200064c565b9050828152602081018484840111156200070d576200070c620005d1565b5b6200071a848285620006a1565b509392505050565b600082601f8301126200073a5762000739620005cc565b5b81516200074c848260208601620006d7565b91505092915050565b600080600080600060a086880312156200077457620007736200055d565b5b60006200078488828901620005b5565b95505060206200079788828901620005b5565b9450506040620007aa88828901620005b5565b935050606086015167ffffffffffffffff811115620007ce57620007cd62000562565b5b620007dc8882890162000722565b9250506080620007ef88828901620005b5565b9150509295509295909350565b600082825260208201905092915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b60006200086b602a83620007fc565b915062000878826200080d565b604082019050919050565b600060208201905081810360008301526200089e816200085c565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000620008dd601983620007fc565b9150620008ea82620008a5565b602082019050919050565b600060208201905081810360008301526200091081620008ce565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200095f57607f821691505b60208210810362000975576200097462000917565b5b50919050565b615bc0806200098b6000396000f3fe60806040526004361061023b5760003560e01c80636db4bf351161012e5780639ebd9457116100ab578063ee8557501161006f578063ee85575014610871578063f2fde38b1461089c578063f84d10d3146108c5578063fd2c389b146108dc578063fd5d9b41146109075761023b565b80639ebd945714610768578063a22cb465146107a5578063b88d4fde146107ce578063c87b56dd146107f7578063e985e9c5146108345761023b565b8063853ac292116100f2578063853ac2921461069357806388d15d50146106be5780638da5cb5b146106e757806395d89b411461071257806398776f471461073d5761023b565b80636db4bf35146105c057806370a08231146105e9578063715018a61461062657806382c437ed1461063d57806384b3d58b146106685761023b565b80632a55205a116101bc57806342842e0e1161018057806342842e0e146104d65780634f6ccce7146104ff578063559dd1011461053c5780636352211e14610558578063690c7f79146105955761023b565b80632a55205a1461040a5780632abadeca146104485780632f745c59146104525780633a40738f1461048f5780633ccfd60b146104cc5761023b565b8063095ea7b311610203578063095ea7b31461032757806318160ddd14610350578063211e97501461037b57806323b872dd146103b85780632a13c7e0146103e15761023b565b806301ffc9a71461024057806303add0ae1461027d57806305e0a393146102a857806306fdde03146102bf578063081812fc146102ea575b600080fd5b34801561024c57600080fd5b5061026760048036038101906102629190613ef2565b610911565b6040516102749190613f3a565b60405180910390f35b34801561028957600080fd5b50610292610923565b60405161029f9190613fee565b60405180910390f35b3480156102b457600080fd5b506102bd6109b1565b005b3480156102cb57600080fd5b506102d4610a35565b6040516102e19190613fee565b60405180910390f35b3480156102f657600080fd5b50610311600480360381019061030c9190614046565b610ac7565b60405161031e91906140b4565b60405180910390f35b34801561033357600080fd5b5061034e600480360381019061034991906140fb565b610b0d565b005b34801561035c57600080fd5b50610365610b6a565b604051610372919061414a565b60405180910390f35b34801561038757600080fd5b506103a2600480360381019061039d9190614046565b610b77565b6040516103af9190613fee565b60405180910390f35b3480156103c457600080fd5b506103df60048036038101906103da9190614165565b610c55565b005b3480156103ed57600080fd5b506104086004803603810190610403919061421d565b610cb4565b005b34801561041657600080fd5b50610431600480360381019061042c919061426a565b610d23565b60405161043f9291906142aa565b60405180910390f35b610450610f0d565b005b34801561045e57600080fd5b50610479600480360381019061047491906140fb565b611211565b604051610486919061414a565b60405180910390f35b34801561049b57600080fd5b506104b660048036038101906104b19190614046565b6112b6565b6040516104c39190613fee565b60405180910390f35b6104d4611322565b005b3480156104e257600080fd5b506104fd60048036038101906104f89190614165565b6114a2565b005b34801561050b57600080fd5b5061052660048036038101906105219190614046565b611501565b604051610533919061414a565b60405180910390f35b610556600480360381019061055191906140fb565b611572565b005b34801561056457600080fd5b5061057f600480360381019061057a9190614046565b611aec565b60405161058c91906140b4565b60405180910390f35b3480156105a157600080fd5b506105aa611b9d565b6040516105b79190613f3a565b60405180910390f35b3480156105cc57600080fd5b506105e760048036038101906105e2919061421d565b611bb0565b005b3480156105f557600080fd5b50610610600480360381019061060b91906142d3565b611bce565b60405161061d919061414a565b60405180910390f35b34801561063257600080fd5b5061063b611c85565b005b34801561064957600080fd5b50610652611c99565b60405161065f9190613fee565b60405180910390f35b34801561067457600080fd5b5061067d611d27565b60405161068a9190613fee565b60405180910390f35b34801561069f57600080fd5b506106a8611d43565b6040516106b59190613fee565b60405180910390f35b3480156106ca57600080fd5b506106e560048036038101906106e09190614356565b611d5f565b005b3480156106f357600080fd5b506106fc612098565b60405161070991906140b4565b60405180910390f35b34801561071e57600080fd5b506107276120c2565b6040516107349190613fee565b60405180910390f35b34801561074957600080fd5b50610752612154565b60405161075f9190613f3a565b60405180910390f35b34801561077457600080fd5b5061078f600480360381019061078a9190614046565b612167565b60405161079c9190613fee565b60405180910390f35b3480156107b157600080fd5b506107cc60048036038101906107c791906143cf565b6121d3565b005b3480156107da57600080fd5b506107f560048036038101906107f0919061453f565b612230565b005b34801561080357600080fd5b5061081e60048036038101906108199190614046565b612291565b60405161082b9190613fee565b60405180910390f35b34801561084057600080fd5b5061085b600480360381019061085691906145c2565b61233b565b6040516108689190613f3a565b60405180910390f35b34801561087d57600080fd5b506108866123cf565b6040516108939190613fee565b60405180910390f35b3480156108a857600080fd5b506108c360048036038101906108be91906142d3565b6123eb565b005b3480156108d157600080fd5b506108da61246e565b005b3480156108e857600080fd5b506108f16124ae565b6040516108fe9190613fee565b60405180910390f35b61090f6124cd565b005b600061091c826127ce565b9050919050565b6012805461093090614631565b80601f016020809104026020016040519081016040528092919081815260200182805461095c90614631565b80156109a95780601f1061097e576101008083540402835291602001916109a9565b820191906000526020600020905b81548152906001019060200180831161098c57829003601f168201915b505050505081565b6109b9612848565b601360019054906101000a900460ff1615610a09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a00906146ae565b60405180910390fd5b601360009054906101000a900460ff1615601360006101000a81548160ff021916908315150217905550565b606060008054610a4490614631565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7090614631565b8015610abd5780601f10610a9257610100808354040283529160200191610abd565b820191906000526020600020905b815481529060010190602001808311610aa057829003601f168201915b5050505050905090565b6000610ad2826128c6565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b601360009054906101000a900460ff16610b5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5390614740565b60405180910390fd5b610b668282612911565b5050565b6000600880549050905090565b606081610b8381612a28565b610bc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb9906147ac565b60405180910390fd5b60128054610bcf90614631565b80601f0160208091040260200160405190810160405280929190818152602001828054610bfb90614631565b8015610c485780601f10610c1d57610100808354040283529160200191610c48565b820191906000526020600020905b815481529060010190602001808311610c2b57829003601f168201915b5050505050915050919050565b601360009054906101000a900460ff16610ca4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9b90614740565b60405180910390fd5b610caf838383612a94565b505050565b610cbc612848565b600060128054610ccb90614631565b905014610d0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0490614818565b60405180910390fd5b818160129190610d1e929190613de3565b505050565b6000806000600b60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610eb857600a6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610ec2612af4565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610eee9190614867565b610ef891906148f0565b90508160000151819350935050509250929050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610f7b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f729061496d565b60405180910390fd5b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b1c9fe6e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610fea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100e91906149a2565b1461104e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104590614a1b565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d3a235e06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110df9190614a50565b1561111f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111690614ac9565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c7876ea46040518163ffffffff1660e01b8152600401602060405180830381865afa15801561118c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b091906149a2565b3410156111f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e990614b35565b60405180910390fd5b61120f336001611200610b6a565b61120a9190614b55565b612afe565b565b600061121c83611bce565b821061125d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125490614c1d565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6060816112c281612a28565b611301576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f8906147ac565b60405180910390fd5b6040518060600160405280603f81526020016159fd603f9139915050919050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611390576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113879061496d565b60405180910390fd5b611398612848565b6000479050600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc6064605f846113e89190614867565b6113f291906148f0565b9081150290604051600060405180830381858888f1935050505015801561141d573d6000803e3d6000fd5b50601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc60646005846114699190614867565b61147391906148f0565b9081150290604051600060405180830381858888f1935050505015801561149e573d6000803e3d6000fd5b5050565b601360009054906101000a900460ff166114f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e890614740565b60405180910390fd5b6114fc838383612b1c565b505050565b600061150b610b6a565b821061154c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154390614caf565b60405180910390fd5b600882815481106115605761155f614ccf565b5b90600052602060002001549050919050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146115e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d79061496d565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d3a235e06040518163ffffffff1660e01b8152600401602060405180830381865afa15801561164d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116719190614a50565b156116b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a890614ac9565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b8152600401611701919061414a565b602060405180830381865afa15801561171e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117429190614d13565b73ffffffffffffffffffffffffffffffffffffffff1614611798576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178f90614d8c565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166349df1feb83836040518363ffffffff1660e01b81526004016117f59291906142aa565b600060405180830381600087803b15801561180f57600080fd5b505af1158015611823573d6000803e3d6000fd5b505050506064600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c7876ea46040518163ffffffff1660e01b8152600401602060405180830381865afa158015611896573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118ba91906149a2565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b1c9fe6e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611927573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061194b91906149a2565b6119559190614867565b61195f91906148f0565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c7876ea46040518163ffffffff1660e01b8152600401602060405180830381865afa1580156119cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119f091906149a2565b6119fa9190614dac565b341015611a3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3390614b35565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631e9a695083836040518363ffffffff1660e01b8152600401611a999291906142aa565b600060405180830381600087803b158015611ab357600080fd5b505af1158015611ac7573d6000803e3d6000fd5b50505050611ae8336001611ad9610b6a565b611ae39190614b55565b612afe565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611b94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8b90614e2c565b60405180910390fd5b80915050919050565b601360019054906101000a900460ff1681565b611bb8612848565b818160119190611bc9929190613de3565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3590614ebe565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611c8d612848565b611c976000612b3c565b565b60118054611ca690614631565b80601f0160208091040260200160405190810160405280929190818152602001828054611cd290614631565b8015611d1f5780601f10611cf457610100808354040283529160200191611d1f565b820191906000526020600020905b815481529060010190602001808311611d0257829003601f168201915b505050505081565b6040518060800160405280605081526020016159ad6050913981565b60405180606001604052806040815260200161596d6040913981565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611dcd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc49061496d565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663db4bec44336040518263ffffffff1660e01b8152600401611e2891906140b4565b602060405180830381865afa158015611e45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e699190614a50565b15611ea9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea090614f2a565b60405180910390fd5b611fab828280806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632eb4a7ab6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611f5b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f7f9190614f80565b33604051602001611f909190614ff5565b60405160208183030381529060405280519060200120612c02565b611fea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fe19061505c565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b353e0ca336040518263ffffffff1660e01b815260040161204591906140b4565b600060405180830381600087803b15801561205f57600080fd5b505af1158015612073573d6000803e3d6000fd5b50505050612094336001612085610b6a565b61208f9190614b55565b612afe565b5050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546120d190614631565b80601f01602080910402602001604051908101604052809291908181526020018280546120fd90614631565b801561214a5780601f1061211f5761010080835404028352916020019161214a565b820191906000526020600020905b81548152906001019060200180831161212d57829003601f168201915b5050505050905090565b601360009054906101000a900460ff1681565b60608161217381612a28565b6121b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121a9906147ac565b60405180910390fd5b6040518060800160405280605081526020016159ad60509139915050919050565b601360009054906101000a900460ff16612222576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221990614740565b60405180910390fd5b61222c8282612c19565b5050565b601360009054906101000a900460ff1661227f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161227690614740565b60405180910390fd5b61228b84848484612c2f565b50505050565b60608161229d81612a28565b6122dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122d3906147ac565b60405180910390fd5b6000601180546122eb90614631565b9050116123075760405180602001604052806000815250612333565b601161231284612c91565b604051602001612323929190615198565b6040516020818303038152906040525b915050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6040518060600160405280603f81526020016159fd603f913981565b6123f3612848565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612462576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161245990615239565b60405180910390fd5b61246b81612b3c565b50565b612476612848565b6001601360016101000a81548160ff0219169083151502179055506001601360006101000a81548160ff021916908315150217905550565b60405180610180016040528061014f8152602001615a3c61014f913981565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461253b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125329061496d565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663caa6fea46040518163ffffffff1660e01b8152600401602060405180830381865afa1580156125a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125cc9190614a50565b61260b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612602906152a5565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d3a235e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015612678573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061269c9190614a50565b156126dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126d390614ac9565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c7876ea46040518163ffffffff1660e01b8152600401602060405180830381865afa158015612749573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061276d91906149a2565b3410156127af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127a690614b35565b60405180910390fd5b6127cc3360016127bd610b6a565b6127c79190614b55565b612afe565b565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612841575061284082612df1565b5b9050919050565b612850612e6b565b73ffffffffffffffffffffffffffffffffffffffff1661286e612098565b73ffffffffffffffffffffffffffffffffffffffff16146128c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128bb90615311565b60405180910390fd5b565b6128cf81612a28565b61290e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161290590614e2c565b60405180910390fd5b50565b600061291c82611aec565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361298c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612983906153a3565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166129ab612e6b565b73ffffffffffffffffffffffffffffffffffffffff1614806129da57506129d9816129d4612e6b565b61233b565b5b612a19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a1090615435565b60405180910390fd5b612a238383612e73565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b612aa5612a9f612e6b565b82612f2c565b612ae4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612adb906154c7565b60405180910390fd5b612aef838383612fc1565b505050565b6000612710905090565b612b18828260405180602001604052806000815250613227565b5050565b612b3783838360405180602001604052806000815250612230565b505050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600082612c0f8584613282565b1490509392505050565b612c2b612c24612e6b565b83836132d8565b5050565b612c40612c3a612e6b565b83612f2c565b612c7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c76906154c7565b60405180910390fd5b612c8b84848484613444565b50505050565b606060008203612cd8576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612dec565b600082905060005b60008214612d0a578080612cf3906154e7565b915050600a82612d0391906148f0565b9150612ce0565b60008167ffffffffffffffff811115612d2657612d25614414565b5b6040519080825280601f01601f191660200182016040528015612d585781602001600182028036833780820191505090505b5090505b60008514612de557600182612d719190614dac565b9150600a85612d80919061552f565b6030612d8c9190614b55565b60f81b818381518110612da257612da1614ccf565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612dde91906148f0565b9450612d5c565b8093505050505b919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612e645750612e63826134a0565b5b9050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612ee683611aec565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080612f3883611aec565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612f7a5750612f79818561233b565b5b80612fb857508373ffffffffffffffffffffffffffffffffffffffff16612fa084610ac7565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612fe182611aec565b73ffffffffffffffffffffffffffffffffffffffff1614613037576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161302e906155d2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036130a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161309d90615664565b60405180910390fd5b6130b1838383613582565b6130bc600082612e73565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461310c9190614dac565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546131639190614b55565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613222838383613592565b505050565b6132318383613597565b61323e6000848484613770565b61327d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613274906156f6565b60405180910390fd5b505050565b60008082905060005b84518110156132cd576132b8828683815181106132ab576132aa614ccf565b5b60200260200101516138f7565b915080806132c5906154e7565b91505061328b565b508091505092915050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603613346576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161333d90615762565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516134379190613f3a565b60405180910390a3505050565b61344f848484612fc1565b61345b84848484613770565b61349a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613491906156f6565b60405180910390fd5b50505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061356b57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061357b575061357a82613922565b5b9050919050565b61358d83838361398c565b505050565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613606576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135fd906157ce565b60405180910390fd5b61360f81612a28565b1561364f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136469061583a565b60405180910390fd5b61365b60008383613582565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546136ab9190614b55565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461376c60008383613592565b5050565b60006137918473ffffffffffffffffffffffffffffffffffffffff16613a9e565b156138ea578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026137ba612e6b565b8786866040518563ffffffff1660e01b81526004016137dc94939291906158af565b6020604051808303816000875af192505050801561381857506040513d601f19601f820116820180604052508101906138159190615910565b60015b61389a573d8060008114613848576040519150601f19603f3d011682016040523d82523d6000602084013e61384d565b606091505b506000815103613892576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613889906156f6565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506138ef565b600190505b949350505050565b600081831061390f5761390a8284613ac1565b61391a565b6139198383613ac1565b5b905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b613997838383613ad8565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036139d9576139d481613add565b613a18565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614613a1757613a168382613b26565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613a5a57613a5581613c93565b613a99565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614613a9857613a978282613d64565b5b5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082600052816020526040600020905092915050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613b3384611bce565b613b3d9190614dac565b9050600060076000848152602001908152602001600020549050818114613c22576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050613ca79190614dac565b9050600060096000848152602001908152602001600020549050600060088381548110613cd757613cd6614ccf565b5b906000526020600020015490508060088381548110613cf957613cf8614ccf565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613d4857613d4761593d565b5b6001900381819060005260206000200160009055905550505050565b6000613d6f83611bce565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b828054613def90614631565b90600052602060002090601f016020900481019282613e115760008555613e58565b82601f10613e2a57803560ff1916838001178555613e58565b82800160010185558215613e58579182015b82811115613e57578235825591602001919060010190613e3c565b5b509050613e659190613e69565b5090565b5b80821115613e82576000816000905550600101613e6a565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613ecf81613e9a565b8114613eda57600080fd5b50565b600081359050613eec81613ec6565b92915050565b600060208284031215613f0857613f07613e90565b5b6000613f1684828501613edd565b91505092915050565b60008115159050919050565b613f3481613f1f565b82525050565b6000602082019050613f4f6000830184613f2b565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613f8f578082015181840152602081019050613f74565b83811115613f9e576000848401525b50505050565b6000601f19601f8301169050919050565b6000613fc082613f55565b613fca8185613f60565b9350613fda818560208601613f71565b613fe381613fa4565b840191505092915050565b600060208201905081810360008301526140088184613fb5565b905092915050565b6000819050919050565b61402381614010565b811461402e57600080fd5b50565b6000813590506140408161401a565b92915050565b60006020828403121561405c5761405b613e90565b5b600061406a84828501614031565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061409e82614073565b9050919050565b6140ae81614093565b82525050565b60006020820190506140c960008301846140a5565b92915050565b6140d881614093565b81146140e357600080fd5b50565b6000813590506140f5816140cf565b92915050565b6000806040838503121561411257614111613e90565b5b6000614120858286016140e6565b925050602061413185828601614031565b9150509250929050565b61414481614010565b82525050565b600060208201905061415f600083018461413b565b92915050565b60008060006060848603121561417e5761417d613e90565b5b600061418c868287016140e6565b935050602061419d868287016140e6565b92505060406141ae86828701614031565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f8401126141dd576141dc6141b8565b5b8235905067ffffffffffffffff8111156141fa576141f96141bd565b5b602083019150836001820283011115614216576142156141c2565b5b9250929050565b6000806020838503121561423457614233613e90565b5b600083013567ffffffffffffffff81111561425257614251613e95565b5b61425e858286016141c7565b92509250509250929050565b6000806040838503121561428157614280613e90565b5b600061428f85828601614031565b92505060206142a085828601614031565b9150509250929050565b60006040820190506142bf60008301856140a5565b6142cc602083018461413b565b9392505050565b6000602082840312156142e9576142e8613e90565b5b60006142f7848285016140e6565b91505092915050565b60008083601f840112614316576143156141b8565b5b8235905067ffffffffffffffff811115614333576143326141bd565b5b60208301915083602082028301111561434f5761434e6141c2565b5b9250929050565b6000806020838503121561436d5761436c613e90565b5b600083013567ffffffffffffffff81111561438b5761438a613e95565b5b61439785828601614300565b92509250509250929050565b6143ac81613f1f565b81146143b757600080fd5b50565b6000813590506143c9816143a3565b92915050565b600080604083850312156143e6576143e5613e90565b5b60006143f4858286016140e6565b9250506020614405858286016143ba565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61444c82613fa4565b810181811067ffffffffffffffff8211171561446b5761446a614414565b5b80604052505050565b600061447e613e86565b905061448a8282614443565b919050565b600067ffffffffffffffff8211156144aa576144a9614414565b5b6144b382613fa4565b9050602081019050919050565b82818337600083830152505050565b60006144e26144dd8461448f565b614474565b9050828152602081018484840111156144fe576144fd61440f565b5b6145098482856144c0565b509392505050565b600082601f830112614526576145256141b8565b5b81356145368482602086016144cf565b91505092915050565b6000806000806080858703121561455957614558613e90565b5b6000614567878288016140e6565b9450506020614578878288016140e6565b935050604061458987828801614031565b925050606085013567ffffffffffffffff8111156145aa576145a9613e95565b5b6145b687828801614511565b91505092959194509250565b600080604083850312156145d9576145d8613e90565b5b60006145e7858286016140e6565b92505060206145f8858286016140e6565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061464957607f821691505b60208210810361465c5761465b614602565b5b50919050565b7f5365636f6e64617279206973206f70656e20666f7220657665722e0000000000600082015250565b6000614698601b83613f60565b91506146a382614662565b602082019050919050565b600060208201905081810360008301526146c78161468b565b9050919050565b7f4c697374696e672026207472616e73666572206e6f7420616c6c6f776564207960008201527f65742e0000000000000000000000000000000000000000000000000000000000602082015250565b600061472a602383613f60565b9150614735826146ce565b604082019050919050565b600060208201905081810360008301526147598161471d565b9050919050565b7f4e6f6e6578697374656e7420746f6b656e2e0000000000000000000000000000600082015250565b6000614796601283613f60565b91506147a182614760565b602082019050919050565b600060208201905081810360008301526147c581614789565b9050919050565b7f4261636b7570206c6f636b65642e000000000000000000000000000000000000600082015250565b6000614802600e83613f60565b915061480d826147cc565b602082019050919050565b60006020820190508181036000830152614831816147f5565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061487282614010565b915061487d83614010565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156148b6576148b5614838565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006148fb82614010565b915061490683614010565b925082614916576149156148c1565b5b828204905092915050565b7f43616c6c6572206973206e6f742073656e6465722e0000000000000000000000600082015250565b6000614957601583613f60565b915061496282614921565b602082019050919050565b600060208201905081810360008301526149868161494a565b9050919050565b60008151905061499c8161401a565b92915050565b6000602082840312156149b8576149b7613e90565b5b60006149c68482850161498d565b91505092915050565b7f4f6e6c7920647572696e67207075626c69632073616c65732e00000000000000600082015250565b6000614a05601983613f60565b9150614a10826149cf565b602082019050919050565b60006020820190508181036000830152614a34816149f8565b9050919050565b600081519050614a4a816143a3565b92915050565b600060208284031215614a6657614a65613e90565b5b6000614a7484828501614a3b565b91505092915050565b7f53616c65732061726520636c6f7365642e000000000000000000000000000000600082015250565b6000614ab3601183613f60565b9150614abe82614a7d565b602082019050919050565b60006020820190508181036000830152614ae281614aa6565b9050919050565b7f45746865722076616c75652073656e74206973206e6f7420636f72726563742e600082015250565b6000614b1f602083613f60565b9150614b2a82614ae9565b602082019050919050565b60006020820190508181036000830152614b4e81614b12565b9050919050565b6000614b6082614010565b9150614b6b83614010565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614ba057614b9f614838565b5b828201905092915050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000614c07602b83613f60565b9150614c1282614bab565b604082019050919050565b60006020820190508181036000830152614c3681614bfa565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614c99602c83613f60565b9150614ca482614c3d565b604082019050919050565b60006020820190508181036000830152614cc881614c8c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050614d0d816140cf565b92915050565b600060208284031215614d2957614d28613e90565b5b6000614d3784828501614cfe565b91505092915050565b7f596f7520617265206e6f74206f776e65722e0000000000000000000000000000600082015250565b6000614d76601283613f60565b9150614d8182614d40565b602082019050919050565b60006020820190508181036000830152614da581614d69565b9050919050565b6000614db782614010565b9150614dc283614010565b925082821015614dd557614dd4614838565b5b828203905092915050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000614e16601883613f60565b9150614e2182614de0565b602082019050919050565b60006020820190508181036000830152614e4581614e09565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614ea8602983613f60565b9150614eb382614e4c565b604082019050919050565b60006020820190508181036000830152614ed781614e9b565b9050919050565b7f416c726561647920667265656d696e742e000000000000000000000000000000600082015250565b6000614f14601183613f60565b9150614f1f82614ede565b602082019050919050565b60006020820190508181036000830152614f4381614f07565b9050919050565b6000819050919050565b614f5d81614f4a565b8114614f6857600080fd5b50565b600081519050614f7a81614f54565b92915050565b600060208284031215614f9657614f95613e90565b5b6000614fa484828501614f6b565b91505092915050565b60008160601b9050919050565b6000614fc582614fad565b9050919050565b6000614fd782614fba565b9050919050565b614fef614fea82614093565b614fcc565b82525050565b60006150018284614fde565b60148201915081905092915050565b7f496e636f72726563742070726f6f662e00000000000000000000000000000000600082015250565b6000615046601083613f60565b915061505182615010565b602082019050919050565b6000602082019050818103600083015261507581615039565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b600081546150a981614631565b6150b3818661507c565b945060018216600081146150ce57600181146150df57615112565b60ff19831686528186019350615112565b6150e885615087565b60005b8381101561510a578154818901526001820191506020810190506150eb565b838801955050505b50505092915050565b600061512682613f55565b615130818561507c565b9350615140818560208601613f71565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b600061518260058361507c565b915061518d8261514c565b600582019050919050565b60006151a4828561509c565b91506151b0828461511b565b91506151bb82615175565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000615223602683613f60565b915061522e826151c7565b604082019050919050565b6000602082019050818103600083015261525281615216565b9050919050565b7f4e6f7420656d657267656e63792e000000000000000000000000000000000000600082015250565b600061528f600e83613f60565b915061529a82615259565b602082019050919050565b600060208201905081810360008301526152be81615282565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006152fb602083613f60565b9150615306826152c5565b602082019050919050565b6000602082019050818103600083015261532a816152ee565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b600061538d602183613f60565b915061539882615331565b604082019050919050565b600060208201905081810360008301526153bc81615380565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b600061541f603e83613f60565b915061542a826153c3565b604082019050919050565b6000602082019050818103600083015261544e81615412565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b60006154b1602e83613f60565b91506154bc82615455565b604082019050919050565b600060208201905081810360008301526154e0816154a4565b9050919050565b60006154f282614010565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361552457615523614838565b5b600182019050919050565b600061553a82614010565b915061554583614010565b925082615555576155546148c1565b5b828206905092915050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006155bc602583613f60565b91506155c782615560565b604082019050919050565b600060208201905081810360008301526155eb816155af565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061564e602483613f60565b9150615659826155f2565b604082019050919050565b6000602082019050818103600083015261567d81615641565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006156e0603283613f60565b91506156eb82615684565b604082019050919050565b6000602082019050818103600083015261570f816156d3565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b600061574c601983613f60565b915061575782615716565b602082019050919050565b6000602082019050818103600083015261577b8161573f565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006157b8602083613f60565b91506157c382615782565b602082019050919050565b600060208201905081810360008301526157e7816157ab565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615824601c83613f60565b915061582f826157ee565b602082019050919050565b6000602082019050818103600083015261585381615817565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006158818261585a565b61588b8185615865565b935061589b818560208601613f71565b6158a481613fa4565b840191505092915050565b60006080820190506158c460008301876140a5565b6158d160208301866140a5565b6158de604083018561413b565b81810360608301526158f08184615876565b905095945050505050565b60008151905061590a81613ec6565b92915050565b60006020828403121561592657615925613e90565b5b6000615934848285016158fb565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfe6436333537636636323631353136616437393662646530383266343733666462656561623636623532323130343465306339316363353865663435313662613368747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d51514b77727248616333634244566631723636724a35786841546b76456d5276504d37527754744643734b5868747470733a2f2f617277656176652e6e65742f674b7a694b306e7a5a42564667576152346e524f58657a4b55544d64626d5a64632d552d3578754e6d764941636365737320746f20746865204e6f6e2d46756e6769626c6520436f6e666572656e6365206f6e204a756e65203774682026203874682c20323032332066726f6d2039616d2d36706d206f6e20626f746820646179732e205468697320417274576f726b2069732074686520666972737420636f6c6c61626f726174696f6e206265747765656e20404361726c6f734d61726369616c7420616e642040436f6c6469652e205468616e6b7320746f2040426173696c6575732c204043756c7443727970746f4172742077686f2061726520636f2d65646974696e672074686520636f6e666572656e63652e20506c6561736520466f6c6c6f7720404e464353756d6d6974206265666f72652074686520636f6e666572656e636520746f2067657420696e737472756374696f6e2061626f757420686f7720746f2072656465656d20796f7572207469636b65742ea2646970667358221220d5fed05e4704e3c8551d2fddb3960aca5a74f284019757b4a617f7cb4f30f02664736f6c634300080d00330000000000000000000000008281f7b41dd0a01169bf792a8ccde60cb16fe8e00000000000000000000000008281f7b41dd0a01169bf792a8ccde60cb16fe8e00000000000000000000000004cc8e19ec0f10f84ca45195f83f2f9a73825bc8900000000000000000000000000000000000000000000000000000000000000a000000000000000000000000057eb94e9df09012a3152e3cdb72b1cd171e93fcb000000000000000000000000000000000000000000000000000000000000002b68747470733a2f2f66657463682e6f70656e67656d2e636f6d2f6e6663323032332f6d657461646174612f000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061023b5760003560e01c80636db4bf351161012e5780639ebd9457116100ab578063ee8557501161006f578063ee85575014610871578063f2fde38b1461089c578063f84d10d3146108c5578063fd2c389b146108dc578063fd5d9b41146109075761023b565b80639ebd945714610768578063a22cb465146107a5578063b88d4fde146107ce578063c87b56dd146107f7578063e985e9c5146108345761023b565b8063853ac292116100f2578063853ac2921461069357806388d15d50146106be5780638da5cb5b146106e757806395d89b411461071257806398776f471461073d5761023b565b80636db4bf35146105c057806370a08231146105e9578063715018a61461062657806382c437ed1461063d57806384b3d58b146106685761023b565b80632a55205a116101bc57806342842e0e1161018057806342842e0e146104d65780634f6ccce7146104ff578063559dd1011461053c5780636352211e14610558578063690c7f79146105955761023b565b80632a55205a1461040a5780632abadeca146104485780632f745c59146104525780633a40738f1461048f5780633ccfd60b146104cc5761023b565b8063095ea7b311610203578063095ea7b31461032757806318160ddd14610350578063211e97501461037b57806323b872dd146103b85780632a13c7e0146103e15761023b565b806301ffc9a71461024057806303add0ae1461027d57806305e0a393146102a857806306fdde03146102bf578063081812fc146102ea575b600080fd5b34801561024c57600080fd5b5061026760048036038101906102629190613ef2565b610911565b6040516102749190613f3a565b60405180910390f35b34801561028957600080fd5b50610292610923565b60405161029f9190613fee565b60405180910390f35b3480156102b457600080fd5b506102bd6109b1565b005b3480156102cb57600080fd5b506102d4610a35565b6040516102e19190613fee565b60405180910390f35b3480156102f657600080fd5b50610311600480360381019061030c9190614046565b610ac7565b60405161031e91906140b4565b60405180910390f35b34801561033357600080fd5b5061034e600480360381019061034991906140fb565b610b0d565b005b34801561035c57600080fd5b50610365610b6a565b604051610372919061414a565b60405180910390f35b34801561038757600080fd5b506103a2600480360381019061039d9190614046565b610b77565b6040516103af9190613fee565b60405180910390f35b3480156103c457600080fd5b506103df60048036038101906103da9190614165565b610c55565b005b3480156103ed57600080fd5b506104086004803603810190610403919061421d565b610cb4565b005b34801561041657600080fd5b50610431600480360381019061042c919061426a565b610d23565b60405161043f9291906142aa565b60405180910390f35b610450610f0d565b005b34801561045e57600080fd5b50610479600480360381019061047491906140fb565b611211565b604051610486919061414a565b60405180910390f35b34801561049b57600080fd5b506104b660048036038101906104b19190614046565b6112b6565b6040516104c39190613fee565b60405180910390f35b6104d4611322565b005b3480156104e257600080fd5b506104fd60048036038101906104f89190614165565b6114a2565b005b34801561050b57600080fd5b5061052660048036038101906105219190614046565b611501565b604051610533919061414a565b60405180910390f35b610556600480360381019061055191906140fb565b611572565b005b34801561056457600080fd5b5061057f600480360381019061057a9190614046565b611aec565b60405161058c91906140b4565b60405180910390f35b3480156105a157600080fd5b506105aa611b9d565b6040516105b79190613f3a565b60405180910390f35b3480156105cc57600080fd5b506105e760048036038101906105e2919061421d565b611bb0565b005b3480156105f557600080fd5b50610610600480360381019061060b91906142d3565b611bce565b60405161061d919061414a565b60405180910390f35b34801561063257600080fd5b5061063b611c85565b005b34801561064957600080fd5b50610652611c99565b60405161065f9190613fee565b60405180910390f35b34801561067457600080fd5b5061067d611d27565b60405161068a9190613fee565b60405180910390f35b34801561069f57600080fd5b506106a8611d43565b6040516106b59190613fee565b60405180910390f35b3480156106ca57600080fd5b506106e560048036038101906106e09190614356565b611d5f565b005b3480156106f357600080fd5b506106fc612098565b60405161070991906140b4565b60405180910390f35b34801561071e57600080fd5b506107276120c2565b6040516107349190613fee565b60405180910390f35b34801561074957600080fd5b50610752612154565b60405161075f9190613f3a565b60405180910390f35b34801561077457600080fd5b5061078f600480360381019061078a9190614046565b612167565b60405161079c9190613fee565b60405180910390f35b3480156107b157600080fd5b506107cc60048036038101906107c791906143cf565b6121d3565b005b3480156107da57600080fd5b506107f560048036038101906107f0919061453f565b612230565b005b34801561080357600080fd5b5061081e60048036038101906108199190614046565b612291565b60405161082b9190613fee565b60405180910390f35b34801561084057600080fd5b5061085b600480360381019061085691906145c2565b61233b565b6040516108689190613f3a565b60405180910390f35b34801561087d57600080fd5b506108866123cf565b6040516108939190613fee565b60405180910390f35b3480156108a857600080fd5b506108c360048036038101906108be91906142d3565b6123eb565b005b3480156108d157600080fd5b506108da61246e565b005b3480156108e857600080fd5b506108f16124ae565b6040516108fe9190613fee565b60405180910390f35b61090f6124cd565b005b600061091c826127ce565b9050919050565b6012805461093090614631565b80601f016020809104026020016040519081016040528092919081815260200182805461095c90614631565b80156109a95780601f1061097e576101008083540402835291602001916109a9565b820191906000526020600020905b81548152906001019060200180831161098c57829003601f168201915b505050505081565b6109b9612848565b601360019054906101000a900460ff1615610a09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a00906146ae565b60405180910390fd5b601360009054906101000a900460ff1615601360006101000a81548160ff021916908315150217905550565b606060008054610a4490614631565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7090614631565b8015610abd5780601f10610a9257610100808354040283529160200191610abd565b820191906000526020600020905b815481529060010190602001808311610aa057829003601f168201915b5050505050905090565b6000610ad2826128c6565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b601360009054906101000a900460ff16610b5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5390614740565b60405180910390fd5b610b668282612911565b5050565b6000600880549050905090565b606081610b8381612a28565b610bc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb9906147ac565b60405180910390fd5b60128054610bcf90614631565b80601f0160208091040260200160405190810160405280929190818152602001828054610bfb90614631565b8015610c485780601f10610c1d57610100808354040283529160200191610c48565b820191906000526020600020905b815481529060010190602001808311610c2b57829003601f168201915b5050505050915050919050565b601360009054906101000a900460ff16610ca4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9b90614740565b60405180910390fd5b610caf838383612a94565b505050565b610cbc612848565b600060128054610ccb90614631565b905014610d0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0490614818565b60405180910390fd5b818160129190610d1e929190613de3565b505050565b6000806000600b60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610eb857600a6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610ec2612af4565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610eee9190614867565b610ef891906148f0565b90508160000151819350935050509250929050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610f7b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f729061496d565b60405180910390fd5b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b1c9fe6e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610fea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100e91906149a2565b1461104e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104590614a1b565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d3a235e06040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110df9190614a50565b1561111f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111690614ac9565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c7876ea46040518163ffffffff1660e01b8152600401602060405180830381865afa15801561118c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b091906149a2565b3410156111f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e990614b35565b60405180910390fd5b61120f336001611200610b6a565b61120a9190614b55565b612afe565b565b600061121c83611bce565b821061125d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125490614c1d565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6060816112c281612a28565b611301576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f8906147ac565b60405180910390fd5b6040518060600160405280603f81526020016159fd603f9139915050919050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611390576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113879061496d565b60405180910390fd5b611398612848565b6000479050600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc6064605f846113e89190614867565b6113f291906148f0565b9081150290604051600060405180830381858888f1935050505015801561141d573d6000803e3d6000fd5b50601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc60646005846114699190614867565b61147391906148f0565b9081150290604051600060405180830381858888f1935050505015801561149e573d6000803e3d6000fd5b5050565b601360009054906101000a900460ff166114f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e890614740565b60405180910390fd5b6114fc838383612b1c565b505050565b600061150b610b6a565b821061154c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154390614caf565b60405180910390fd5b600882815481106115605761155f614ccf565b5b90600052602060002001549050919050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146115e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d79061496d565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d3a235e06040518163ffffffff1660e01b8152600401602060405180830381865afa15801561164d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116719190614a50565b156116b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a890614ac9565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b8152600401611701919061414a565b602060405180830381865afa15801561171e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117429190614d13565b73ffffffffffffffffffffffffffffffffffffffff1614611798576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178f90614d8c565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166349df1feb83836040518363ffffffff1660e01b81526004016117f59291906142aa565b600060405180830381600087803b15801561180f57600080fd5b505af1158015611823573d6000803e3d6000fd5b505050506064600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c7876ea46040518163ffffffff1660e01b8152600401602060405180830381865afa158015611896573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118ba91906149a2565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b1c9fe6e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611927573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061194b91906149a2565b6119559190614867565b61195f91906148f0565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c7876ea46040518163ffffffff1660e01b8152600401602060405180830381865afa1580156119cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119f091906149a2565b6119fa9190614dac565b341015611a3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3390614b35565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631e9a695083836040518363ffffffff1660e01b8152600401611a999291906142aa565b600060405180830381600087803b158015611ab357600080fd5b505af1158015611ac7573d6000803e3d6000fd5b50505050611ae8336001611ad9610b6a565b611ae39190614b55565b612afe565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611b94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8b90614e2c565b60405180910390fd5b80915050919050565b601360019054906101000a900460ff1681565b611bb8612848565b818160119190611bc9929190613de3565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3590614ebe565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611c8d612848565b611c976000612b3c565b565b60118054611ca690614631565b80601f0160208091040260200160405190810160405280929190818152602001828054611cd290614631565b8015611d1f5780601f10611cf457610100808354040283529160200191611d1f565b820191906000526020600020905b815481529060010190602001808311611d0257829003601f168201915b505050505081565b6040518060800160405280605081526020016159ad6050913981565b60405180606001604052806040815260200161596d6040913981565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611dcd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc49061496d565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663db4bec44336040518263ffffffff1660e01b8152600401611e2891906140b4565b602060405180830381865afa158015611e45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e699190614a50565b15611ea9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea090614f2a565b60405180910390fd5b611fab828280806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632eb4a7ab6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611f5b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f7f9190614f80565b33604051602001611f909190614ff5565b60405160208183030381529060405280519060200120612c02565b611fea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fe19061505c565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b353e0ca336040518263ffffffff1660e01b815260040161204591906140b4565b600060405180830381600087803b15801561205f57600080fd5b505af1158015612073573d6000803e3d6000fd5b50505050612094336001612085610b6a565b61208f9190614b55565b612afe565b5050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546120d190614631565b80601f01602080910402602001604051908101604052809291908181526020018280546120fd90614631565b801561214a5780601f1061211f5761010080835404028352916020019161214a565b820191906000526020600020905b81548152906001019060200180831161212d57829003601f168201915b5050505050905090565b601360009054906101000a900460ff1681565b60608161217381612a28565b6121b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121a9906147ac565b60405180910390fd5b6040518060800160405280605081526020016159ad60509139915050919050565b601360009054906101000a900460ff16612222576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221990614740565b60405180910390fd5b61222c8282612c19565b5050565b601360009054906101000a900460ff1661227f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161227690614740565b60405180910390fd5b61228b84848484612c2f565b50505050565b60608161229d81612a28565b6122dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122d3906147ac565b60405180910390fd5b6000601180546122eb90614631565b9050116123075760405180602001604052806000815250612333565b601161231284612c91565b604051602001612323929190615198565b6040516020818303038152906040525b915050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6040518060600160405280603f81526020016159fd603f913981565b6123f3612848565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612462576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161245990615239565b60405180910390fd5b61246b81612b3c565b50565b612476612848565b6001601360016101000a81548160ff0219169083151502179055506001601360006101000a81548160ff021916908315150217905550565b60405180610180016040528061014f8152602001615a3c61014f913981565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461253b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125329061496d565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663caa6fea46040518163ffffffff1660e01b8152600401602060405180830381865afa1580156125a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125cc9190614a50565b61260b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612602906152a5565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d3a235e06040518163ffffffff1660e01b8152600401602060405180830381865afa158015612678573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061269c9190614a50565b156126dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126d390614ac9565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c7876ea46040518163ffffffff1660e01b8152600401602060405180830381865afa158015612749573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061276d91906149a2565b3410156127af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127a690614b35565b60405180910390fd5b6127cc3360016127bd610b6a565b6127c79190614b55565b612afe565b565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612841575061284082612df1565b5b9050919050565b612850612e6b565b73ffffffffffffffffffffffffffffffffffffffff1661286e612098565b73ffffffffffffffffffffffffffffffffffffffff16146128c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128bb90615311565b60405180910390fd5b565b6128cf81612a28565b61290e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161290590614e2c565b60405180910390fd5b50565b600061291c82611aec565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361298c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612983906153a3565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166129ab612e6b565b73ffffffffffffffffffffffffffffffffffffffff1614806129da57506129d9816129d4612e6b565b61233b565b5b612a19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a1090615435565b60405180910390fd5b612a238383612e73565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b612aa5612a9f612e6b565b82612f2c565b612ae4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612adb906154c7565b60405180910390fd5b612aef838383612fc1565b505050565b6000612710905090565b612b18828260405180602001604052806000815250613227565b5050565b612b3783838360405180602001604052806000815250612230565b505050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600082612c0f8584613282565b1490509392505050565b612c2b612c24612e6b565b83836132d8565b5050565b612c40612c3a612e6b565b83612f2c565b612c7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c76906154c7565b60405180910390fd5b612c8b84848484613444565b50505050565b606060008203612cd8576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612dec565b600082905060005b60008214612d0a578080612cf3906154e7565b915050600a82612d0391906148f0565b9150612ce0565b60008167ffffffffffffffff811115612d2657612d25614414565b5b6040519080825280601f01601f191660200182016040528015612d585781602001600182028036833780820191505090505b5090505b60008514612de557600182612d719190614dac565b9150600a85612d80919061552f565b6030612d8c9190614b55565b60f81b818381518110612da257612da1614ccf565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612dde91906148f0565b9450612d5c565b8093505050505b919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612e645750612e63826134a0565b5b9050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612ee683611aec565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080612f3883611aec565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612f7a5750612f79818561233b565b5b80612fb857508373ffffffffffffffffffffffffffffffffffffffff16612fa084610ac7565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612fe182611aec565b73ffffffffffffffffffffffffffffffffffffffff1614613037576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161302e906155d2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036130a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161309d90615664565b60405180910390fd5b6130b1838383613582565b6130bc600082612e73565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461310c9190614dac565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546131639190614b55565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613222838383613592565b505050565b6132318383613597565b61323e6000848484613770565b61327d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613274906156f6565b60405180910390fd5b505050565b60008082905060005b84518110156132cd576132b8828683815181106132ab576132aa614ccf565b5b60200260200101516138f7565b915080806132c5906154e7565b91505061328b565b508091505092915050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603613346576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161333d90615762565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516134379190613f3a565b60405180910390a3505050565b61344f848484612fc1565b61345b84848484613770565b61349a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613491906156f6565b60405180910390fd5b50505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061356b57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061357b575061357a82613922565b5b9050919050565b61358d83838361398c565b505050565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613606576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135fd906157ce565b60405180910390fd5b61360f81612a28565b1561364f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136469061583a565b60405180910390fd5b61365b60008383613582565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546136ab9190614b55565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461376c60008383613592565b5050565b60006137918473ffffffffffffffffffffffffffffffffffffffff16613a9e565b156138ea578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026137ba612e6b565b8786866040518563ffffffff1660e01b81526004016137dc94939291906158af565b6020604051808303816000875af192505050801561381857506040513d601f19601f820116820180604052508101906138159190615910565b60015b61389a573d8060008114613848576040519150601f19603f3d011682016040523d82523d6000602084013e61384d565b606091505b506000815103613892576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613889906156f6565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506138ef565b600190505b949350505050565b600081831061390f5761390a8284613ac1565b61391a565b6139198383613ac1565b5b905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b613997838383613ad8565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036139d9576139d481613add565b613a18565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614613a1757613a168382613b26565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613a5a57613a5581613c93565b613a99565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614613a9857613a978282613d64565b5b5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082600052816020526040600020905092915050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613b3384611bce565b613b3d9190614dac565b9050600060076000848152602001908152602001600020549050818114613c22576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050613ca79190614dac565b9050600060096000848152602001908152602001600020549050600060088381548110613cd757613cd6614ccf565b5b906000526020600020015490508060088381548110613cf957613cf8614ccf565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613d4857613d4761593d565b5b6001900381819060005260206000200160009055905550505050565b6000613d6f83611bce565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b828054613def90614631565b90600052602060002090601f016020900481019282613e115760008555613e58565b82601f10613e2a57803560ff1916838001178555613e58565b82800160010185558215613e58579182015b82811115613e57578235825591602001919060010190613e3c565b5b509050613e659190613e69565b5090565b5b80821115613e82576000816000905550600101613e6a565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613ecf81613e9a565b8114613eda57600080fd5b50565b600081359050613eec81613ec6565b92915050565b600060208284031215613f0857613f07613e90565b5b6000613f1684828501613edd565b91505092915050565b60008115159050919050565b613f3481613f1f565b82525050565b6000602082019050613f4f6000830184613f2b565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613f8f578082015181840152602081019050613f74565b83811115613f9e576000848401525b50505050565b6000601f19601f8301169050919050565b6000613fc082613f55565b613fca8185613f60565b9350613fda818560208601613f71565b613fe381613fa4565b840191505092915050565b600060208201905081810360008301526140088184613fb5565b905092915050565b6000819050919050565b61402381614010565b811461402e57600080fd5b50565b6000813590506140408161401a565b92915050565b60006020828403121561405c5761405b613e90565b5b600061406a84828501614031565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061409e82614073565b9050919050565b6140ae81614093565b82525050565b60006020820190506140c960008301846140a5565b92915050565b6140d881614093565b81146140e357600080fd5b50565b6000813590506140f5816140cf565b92915050565b6000806040838503121561411257614111613e90565b5b6000614120858286016140e6565b925050602061413185828601614031565b9150509250929050565b61414481614010565b82525050565b600060208201905061415f600083018461413b565b92915050565b60008060006060848603121561417e5761417d613e90565b5b600061418c868287016140e6565b935050602061419d868287016140e6565b92505060406141ae86828701614031565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f8401126141dd576141dc6141b8565b5b8235905067ffffffffffffffff8111156141fa576141f96141bd565b5b602083019150836001820283011115614216576142156141c2565b5b9250929050565b6000806020838503121561423457614233613e90565b5b600083013567ffffffffffffffff81111561425257614251613e95565b5b61425e858286016141c7565b92509250509250929050565b6000806040838503121561428157614280613e90565b5b600061428f85828601614031565b92505060206142a085828601614031565b9150509250929050565b60006040820190506142bf60008301856140a5565b6142cc602083018461413b565b9392505050565b6000602082840312156142e9576142e8613e90565b5b60006142f7848285016140e6565b91505092915050565b60008083601f840112614316576143156141b8565b5b8235905067ffffffffffffffff811115614333576143326141bd565b5b60208301915083602082028301111561434f5761434e6141c2565b5b9250929050565b6000806020838503121561436d5761436c613e90565b5b600083013567ffffffffffffffff81111561438b5761438a613e95565b5b61439785828601614300565b92509250509250929050565b6143ac81613f1f565b81146143b757600080fd5b50565b6000813590506143c9816143a3565b92915050565b600080604083850312156143e6576143e5613e90565b5b60006143f4858286016140e6565b9250506020614405858286016143ba565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61444c82613fa4565b810181811067ffffffffffffffff8211171561446b5761446a614414565b5b80604052505050565b600061447e613e86565b905061448a8282614443565b919050565b600067ffffffffffffffff8211156144aa576144a9614414565b5b6144b382613fa4565b9050602081019050919050565b82818337600083830152505050565b60006144e26144dd8461448f565b614474565b9050828152602081018484840111156144fe576144fd61440f565b5b6145098482856144c0565b509392505050565b600082601f830112614526576145256141b8565b5b81356145368482602086016144cf565b91505092915050565b6000806000806080858703121561455957614558613e90565b5b6000614567878288016140e6565b9450506020614578878288016140e6565b935050604061458987828801614031565b925050606085013567ffffffffffffffff8111156145aa576145a9613e95565b5b6145b687828801614511565b91505092959194509250565b600080604083850312156145d9576145d8613e90565b5b60006145e7858286016140e6565b92505060206145f8858286016140e6565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061464957607f821691505b60208210810361465c5761465b614602565b5b50919050565b7f5365636f6e64617279206973206f70656e20666f7220657665722e0000000000600082015250565b6000614698601b83613f60565b91506146a382614662565b602082019050919050565b600060208201905081810360008301526146c78161468b565b9050919050565b7f4c697374696e672026207472616e73666572206e6f7420616c6c6f776564207960008201527f65742e0000000000000000000000000000000000000000000000000000000000602082015250565b600061472a602383613f60565b9150614735826146ce565b604082019050919050565b600060208201905081810360008301526147598161471d565b9050919050565b7f4e6f6e6578697374656e7420746f6b656e2e0000000000000000000000000000600082015250565b6000614796601283613f60565b91506147a182614760565b602082019050919050565b600060208201905081810360008301526147c581614789565b9050919050565b7f4261636b7570206c6f636b65642e000000000000000000000000000000000000600082015250565b6000614802600e83613f60565b915061480d826147cc565b602082019050919050565b60006020820190508181036000830152614831816147f5565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061487282614010565b915061487d83614010565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156148b6576148b5614838565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006148fb82614010565b915061490683614010565b925082614916576149156148c1565b5b828204905092915050565b7f43616c6c6572206973206e6f742073656e6465722e0000000000000000000000600082015250565b6000614957601583613f60565b915061496282614921565b602082019050919050565b600060208201905081810360008301526149868161494a565b9050919050565b60008151905061499c8161401a565b92915050565b6000602082840312156149b8576149b7613e90565b5b60006149c68482850161498d565b91505092915050565b7f4f6e6c7920647572696e67207075626c69632073616c65732e00000000000000600082015250565b6000614a05601983613f60565b9150614a10826149cf565b602082019050919050565b60006020820190508181036000830152614a34816149f8565b9050919050565b600081519050614a4a816143a3565b92915050565b600060208284031215614a6657614a65613e90565b5b6000614a7484828501614a3b565b91505092915050565b7f53616c65732061726520636c6f7365642e000000000000000000000000000000600082015250565b6000614ab3601183613f60565b9150614abe82614a7d565b602082019050919050565b60006020820190508181036000830152614ae281614aa6565b9050919050565b7f45746865722076616c75652073656e74206973206e6f7420636f72726563742e600082015250565b6000614b1f602083613f60565b9150614b2a82614ae9565b602082019050919050565b60006020820190508181036000830152614b4e81614b12565b9050919050565b6000614b6082614010565b9150614b6b83614010565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614ba057614b9f614838565b5b828201905092915050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000614c07602b83613f60565b9150614c1282614bab565b604082019050919050565b60006020820190508181036000830152614c3681614bfa565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614c99602c83613f60565b9150614ca482614c3d565b604082019050919050565b60006020820190508181036000830152614cc881614c8c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050614d0d816140cf565b92915050565b600060208284031215614d2957614d28613e90565b5b6000614d3784828501614cfe565b91505092915050565b7f596f7520617265206e6f74206f776e65722e0000000000000000000000000000600082015250565b6000614d76601283613f60565b9150614d8182614d40565b602082019050919050565b60006020820190508181036000830152614da581614d69565b9050919050565b6000614db782614010565b9150614dc283614010565b925082821015614dd557614dd4614838565b5b828203905092915050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000614e16601883613f60565b9150614e2182614de0565b602082019050919050565b60006020820190508181036000830152614e4581614e09565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614ea8602983613f60565b9150614eb382614e4c565b604082019050919050565b60006020820190508181036000830152614ed781614e9b565b9050919050565b7f416c726561647920667265656d696e742e000000000000000000000000000000600082015250565b6000614f14601183613f60565b9150614f1f82614ede565b602082019050919050565b60006020820190508181036000830152614f4381614f07565b9050919050565b6000819050919050565b614f5d81614f4a565b8114614f6857600080fd5b50565b600081519050614f7a81614f54565b92915050565b600060208284031215614f9657614f95613e90565b5b6000614fa484828501614f6b565b91505092915050565b60008160601b9050919050565b6000614fc582614fad565b9050919050565b6000614fd782614fba565b9050919050565b614fef614fea82614093565b614fcc565b82525050565b60006150018284614fde565b60148201915081905092915050565b7f496e636f72726563742070726f6f662e00000000000000000000000000000000600082015250565b6000615046601083613f60565b915061505182615010565b602082019050919050565b6000602082019050818103600083015261507581615039565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b600081546150a981614631565b6150b3818661507c565b945060018216600081146150ce57600181146150df57615112565b60ff19831686528186019350615112565b6150e885615087565b60005b8381101561510a578154818901526001820191506020810190506150eb565b838801955050505b50505092915050565b600061512682613f55565b615130818561507c565b9350615140818560208601613f71565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b600061518260058361507c565b915061518d8261514c565b600582019050919050565b60006151a4828561509c565b91506151b0828461511b565b91506151bb82615175565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000615223602683613f60565b915061522e826151c7565b604082019050919050565b6000602082019050818103600083015261525281615216565b9050919050565b7f4e6f7420656d657267656e63792e000000000000000000000000000000000000600082015250565b600061528f600e83613f60565b915061529a82615259565b602082019050919050565b600060208201905081810360008301526152be81615282565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006152fb602083613f60565b9150615306826152c5565b602082019050919050565b6000602082019050818103600083015261532a816152ee565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b600061538d602183613f60565b915061539882615331565b604082019050919050565b600060208201905081810360008301526153bc81615380565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b600061541f603e83613f60565b915061542a826153c3565b604082019050919050565b6000602082019050818103600083015261544e81615412565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b60006154b1602e83613f60565b91506154bc82615455565b604082019050919050565b600060208201905081810360008301526154e0816154a4565b9050919050565b60006154f282614010565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361552457615523614838565b5b600182019050919050565b600061553a82614010565b915061554583614010565b925082615555576155546148c1565b5b828206905092915050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006155bc602583613f60565b91506155c782615560565b604082019050919050565b600060208201905081810360008301526155eb816155af565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061564e602483613f60565b9150615659826155f2565b604082019050919050565b6000602082019050818103600083015261567d81615641565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006156e0603283613f60565b91506156eb82615684565b604082019050919050565b6000602082019050818103600083015261570f816156d3565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b600061574c601983613f60565b915061575782615716565b602082019050919050565b6000602082019050818103600083015261577b8161573f565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006157b8602083613f60565b91506157c382615782565b602082019050919050565b600060208201905081810360008301526157e7816157ab565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615824601c83613f60565b915061582f826157ee565b602082019050919050565b6000602082019050818103600083015261585381615817565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006158818261585a565b61588b8185615865565b935061589b818560208601613f71565b6158a481613fa4565b840191505092915050565b60006080820190506158c460008301876140a5565b6158d160208301866140a5565b6158de604083018561413b565b81810360608301526158f08184615876565b905095945050505050565b60008151905061590a81613ec6565b92915050565b60006020828403121561592657615925613e90565b5b6000615934848285016158fb565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfe6436333537636636323631353136616437393662646530383266343733666462656561623636623532323130343465306339316363353865663435313662613368747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d51514b77727248616333634244566631723636724a35786841546b76456d5276504d37527754744643734b5868747470733a2f2f617277656176652e6e65742f674b7a694b306e7a5a42564667576152346e524f58657a4b55544d64626d5a64632d552d3578754e6d764941636365737320746f20746865204e6f6e2d46756e6769626c6520436f6e666572656e6365206f6e204a756e65203774682026203874682c20323032332066726f6d2039616d2d36706d206f6e20626f746820646179732e205468697320417274576f726b2069732074686520666972737420636f6c6c61626f726174696f6e206265747765656e20404361726c6f734d61726369616c7420616e642040436f6c6469652e205468616e6b7320746f2040426173696c6575732c204043756c7443727970746f4172742077686f2061726520636f2d65646974696e672074686520636f6e666572656e63652e20506c6561736520466f6c6c6f7720404e464353756d6d6974206265666f72652074686520636f6e666572656e636520746f2067657420696e737472756374696f6e2061626f757420686f7720746f2072656465656d20796f7572207469636b65742ea2646970667358221220d5fed05e4704e3c8551d2fddb3960aca5a74f284019757b4a617f7cb4f30f02664736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000008281f7b41dd0a01169bf792a8ccde60cb16fe8e00000000000000000000000008281f7b41dd0a01169bf792a8ccde60cb16fe8e00000000000000000000000004cc8e19ec0f10f84ca45195f83f2f9a73825bc8900000000000000000000000000000000000000000000000000000000000000a000000000000000000000000057eb94e9df09012a3152e3cdb72b1cd171e93fcb000000000000000000000000000000000000000000000000000000000000002b68747470733a2f2f66657463682e6f70656e67656d2e636f6d2f6e6663323032332f6d657461646174612f000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _secondaryRoyaltyWallet (address): 0x8281f7B41Dd0A01169bF792A8CCDE60cb16Fe8e0
Arg [1] : _paidWallet (address): 0x8281f7B41Dd0A01169bF792A8CCDE60cb16Fe8e0
Arg [2] : _primaryRoyaltyWallet (address): 0x4cC8e19ec0f10f84cA45195f83F2f9A73825Bc89
Arg [3] : _metadataForFetchingOnly (string): https://fetch.opengem.com/nfc2023/metadata/
Arg [4] : _storageAddress (address): 0x57EB94E9df09012A3152E3CDB72b1cd171E93FCB
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000008281f7b41dd0a01169bf792a8ccde60cb16fe8e0
Arg [1] : 0000000000000000000000008281f7b41dd0a01169bf792a8ccde60cb16fe8e0
Arg [2] : 0000000000000000000000004cc8e19ec0f10f84ca45195f83f2f9a73825bc89
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [4] : 00000000000000000000000057eb94e9df09012a3152e3cdb72b1cd171e93fcb
Arg [5] : 000000000000000000000000000000000000000000000000000000000000002b
Arg [6] : 68747470733a2f2f66657463682e6f70656e67656d2e636f6d2f6e6663323032
Arg [7] : 332f6d657461646174612f000000000000000000000000000000000000000000
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.