ERC-721
Overview
Max Total Supply
3,333 SAMDIEGO
Holders
3,079
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 SAMDIEGOLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
WhereIsSam
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.13; /* ???????????????????????????????? ?????? where in the world ?????? ???????????????????????????????? ?????????????? is ?????????????? ???????????????????????????????? ??????? CARMEN SAM DIEGO ??????? ???????????????????????????????? ???????? ??? ??????? ???????????????????????????????? */ import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./ERC721WhereIsSam.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; // New OpenSea contract import {DefaultOperatorFilterer} from "./DefaultOperatorFilterer.sol"; contract WhereIsSam is Ownable, ERC721WhereIsSam, ReentrancyGuard, DefaultOperatorFilterer { // token metadata uri, set by method string private _baseTokenURI; // contract metadata uri, set by method string private _baseContractURI; // price per token, set to default in code uint256 public pricePublic = 0 ether; // price per token, set to default in code uint256 public priceReserved = 0 ether; // status booleans for public mint bool public isPublicMintActive = false; // status booleans for private mint bool public isReservedMintActive = false; // total tokens in reserve right now for nicelist uint256 private reservedTokens = 0; // storage of reserved tokens per address mapping (address => uint256) private _reserved; // storage of reserved tokens per address mapping (address => uint256) private _minted; // constructor method constructor( uint256 collectionSize_, uint256 maxBatchSize_ ) ERC721WhereIsSam( "Where in the World is Carmen Sam Diego?", "SAMDIEGO", collectionSize_, maxBatchSize_ ) {} function transferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } // check if the sender is the user modifier callerIsUser() { require(tx.origin == msg.sender, "Caller is another contract"); _; } // returns the URI location of the NFT metadata at a URL or IPFS function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } // sets the URI location of the NFT metadata // ex. https://example.com/metadata/ resolves to https://example.com/metadata/1 function setBaseURI(string calldata baseURI) external onlyOwner { _baseTokenURI = baseURI; } // For OpenSea to automate reading of your contract data // https://docs.opensea.io/docs/contract-level-metadata function contractURI() public view returns (string memory) { return _baseContractURI; } // sets the URI location of the NFT metadata // https://example.com/contract-metadata function setContractURI(string calldata newContractURI) external onlyOwner { _baseContractURI = newContractURI; } // returns the total possibel NFTs in the collection function getCollectionSize() public view returns (uint256) { return collectionSize; } // returns the maximum NFTs allowed to be minted in 1 batch function getMaxBatchSize() public view returns (uint256) { return maxBatchSize; } // turns the public mint on and off // mint allows minting at the price function flipPublicMintState() public onlyOwner { isPublicMintActive = !isPublicMintActive; } // turns the reserved mint on and off // reserved mint allows minting only for reserved addresses function flipReservedMintState() public onlyOwner { isReservedMintActive = !isReservedMintActive; } // function to handle the price // if the free mint is active the price is 0 // otherwise the price is the price function setPricePublic(uint256 newPrice) public onlyOwner { pricePublic = newPrice; } // function to handle the price // if the free mint is active the price is 0 // otherwise the price is the price function setPriceReserved(uint256 newPrice) public onlyOwner { priceReserved = newPrice; } // checks how many an specific address minted function numberMinted(address _addr) public view returns (uint256) { return _numberMinted(_addr); } // see who owns which token function getOwnershipData(uint256 tokenId) external view returns (TokenOwnership memory) { return ownershipOf(tokenId); } // withdraw from contract function withdrawMoney() external onlyOwner nonReentrant { (bool success, ) = msg.sender.call{value: address(this).balance}(""); require(success, "Transfer failed"); } // ADMIN MINT // mints to a wallet, owner only function adminMint(address _addr, uint256 _quantity) public onlyOwner { require( totalSupply() + _quantity <= collectionSize, "Max supply on admin mint" ); _safeMint(_addr, _quantity); } // PUBLIC MINT function mint(uint256 quantity) external payable callerIsUser { require( quantity == 1, "Maximum 1 mint per wallet" ); require( isPublicMintActive, "Public mint not active" ); require( msg.value >= (pricePublic * quantity), "Price too low for public mint" ); require( totalSupply() + quantity <= collectionSize, "Max supply on public mint" ); require( _minted[msg.sender] + quantity <= 1, "Max 1 mint per wallet" ); _minted[msg.sender] += quantity; _safeMint(msg.sender, quantity); } // RESERVED MINT function reservedMint(uint256 quantity) external payable callerIsUser { require( isReservedMintActive, "Reserved mint not active" ); require( msg.value >= (priceReserved * quantity), "Price not enough for reserve mint" ); require( totalSupply() + quantity <= collectionSize, "Max supply on reserved mint" ); require( _reserved[msg.sender] >= quantity, "You do not have that many reserved tokens" ); reservedTokens -= quantity; _reserved[msg.sender] -= quantity; _safeMint(msg.sender, quantity); } // adds reserved tokens for a single address function reservedAdd(address _addr, uint256 _quantity) external onlyOwner { _reserved[_addr] += _quantity; reservedTokens += _quantity; } // adds reserved tokens for multiple addresses function reservedAddBatch(address[] calldata _addrs, uint256[] calldata _quantity) external onlyOwner { uint size = _addrs.length; uint256 total = 0; require( _addrs.length == _quantity.length, "Array mismatch" ); for (uint256 i = 0; i < size; i++) { _reserved[_addrs[i]] += _quantity[i]; total += _quantity[i]; } reservedTokens += total; } // removed reserved tokens from an address function reservedRemove(address _addr) external onlyOwner { reservedTokens -= _reserved[_addr]; _reserved[_addr] = 0; } // lets a wallet check their reserve status function reservedCheck() public view callerIsUser returns (uint256) { return _reserved[msg.sender]; } // lets the owner check any address function reservedCheckOwner(address _addr) view external onlyOwner returns (uint256) { return _reserved[_addr]; } }
// 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.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Assumes the number of issuable tokens (collection size) is capped and fits in a uint128. * * Does not support burning tokens to address(0). */ contract ERC721WhereIsSam is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 private currentIndex = 0; uint256 internal immutable collectionSize; uint256 internal immutable maxBatchSize; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) private _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // 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 * `maxBatchSize` refers to how much a minter can mint at a time. * `collectionSize_` refers to how many tokens are in the collection. */ constructor( string memory name_, string memory symbol_, uint256 collectionSize_, uint256 maxBatchSize_ ) { require( collectionSize_ > 0, "ERC721A: collection must have a nonzero supply" ); require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; collectionSize = collectionSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(collectionSize). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @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 || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721A: balance query for the zero address"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require( owner != address(0), "ERC721A: number minted query for the zero address" ); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @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) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); 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 overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721WhereIsSam.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721A: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721A: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_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 override virtual { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override virtual { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override virtual { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: 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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - there must be `quantity` tokens remaining unminted in the total collection. * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require( isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved" ); require( prevOwnership.addr == from, "ERC721A: transfer from incorrect owner" ); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership( prevOwnership.addr, prevOwnership.startTimestamp ); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > collectionSize - 1) { endIndex = collectionSize - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership( ownership.addr, ownership.startTimestamp ); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @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(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721A: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * 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`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {OperatorFilterer} from "./OperatorFilterer.sol"; abstract contract DefaultOperatorFilterer is OperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {} }
// 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.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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.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.8.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 functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; abstract contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry constant operatorFilterRegistry = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(operatorFilterRegistry).code.length > 0) { if (subscribe) { operatorFilterRegistry.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { operatorFilterRegistry.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { operatorFilterRegistry.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(operatorFilterRegistry).code.length > 0) { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from == msg.sender) { _; return; } if ( !( operatorFilterRegistry.isOperatorAllowed(address(this), msg.sender) && operatorFilterRegistry.isOperatorAllowed(address(this), from) ) ) { revert OperatorNotAllowed(msg.sender); } } _; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function unregister(address addr) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); }
{ "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":"uint256","name":"collectionSize_","type":"uint256"},{"internalType":"uint256","name":"maxBatchSize_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipPublicMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipReservedMintState","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":"getCollectionSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxBatchSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getOwnershipData","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"}],"internalType":"struct ERC721WhereIsSam.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isReservedMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pricePublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceReserved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"reservedAdd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addrs","type":"address[]"},{"internalType":"uint256[]","name":"_quantity","type":"uint256[]"}],"name":"reservedAddBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedCheck","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"reservedCheckOwner","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"reservedMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"reservedRemove","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newContractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPricePublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPriceReserved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawMoney","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c0604052600060015560006008556000600c556000600d556000600e60006101000a81548160ff0219169083151502179055506000600e60016101000a81548160ff0219169083151502179055506000600f553480156200006057600080fd5b5060405162006451380380620064518339818101604052810190620000869190620005a4565b733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060600160405280602781526020016200642a602791396040518060400160405280600881526020017f53414d444945474f00000000000000000000000000000000000000000000000081525085856200010f62000103620003e860201b60201c565b620003f060201b60201c565b6000821162000155576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200014c9062000672565b60405180910390fd5b600081116200019b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000192906200070a565b60405180910390fd5b8360029080519060200190620001b3929190620004b4565b508260039080519060200190620001cc929190620004b4565b508060a08181525050816080818152505050505050600160098190555060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115620003de578015620002a4576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b81526004016200026a92919062000771565b600060405180830381600087803b1580156200028557600080fd5b505af11580156200029a573d6000803e3d6000fd5b50505050620003dd565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146200035e576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b81526004016200032492919062000771565b600060405180830381600087803b1580156200033f57600080fd5b505af115801562000354573d6000803e3d6000fd5b50505050620003dc565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b8152600401620003a791906200079e565b600060405180830381600087803b158015620003c257600080fd5b505af1158015620003d7573d6000803e3d6000fd5b505050505b5b5b505050506200081f565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620004c290620007ea565b90600052602060002090601f016020900481019282620004e6576000855562000532565b82601f106200050157805160ff191683800117855562000532565b8280016001018555821562000532579182015b828111156200053157825182559160200191906001019062000514565b5b50905062000541919062000545565b5090565b5b808211156200056057600081600090555060010162000546565b5090565b600080fd5b6000819050919050565b6200057e8162000569565b81146200058a57600080fd5b50565b6000815190506200059e8162000573565b92915050565b60008060408385031215620005be57620005bd62000564565b5b6000620005ce858286016200058d565b9250506020620005e1858286016200058d565b9150509250929050565b600082825260208201905092915050565b7f455243373231413a20636f6c6c656374696f6e206d757374206861766520612060008201527f6e6f6e7a65726f20737570706c79000000000000000000000000000000000000602082015250565b60006200065a602e83620005eb565b91506200066782620005fc565b604082019050919050565b600060208201905081810360008301526200068d816200064b565b9050919050565b7f455243373231413a206d61782062617463682073697a65206d7573742062652060008201527f6e6f6e7a65726f00000000000000000000000000000000000000000000000000602082015250565b6000620006f2602783620005eb565b9150620006ff8262000694565b604082019050919050565b600060208201905081810360008301526200072581620006e3565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000759826200072c565b9050919050565b6200076b816200074c565b82525050565b600060408201905062000788600083018562000760565b62000797602083018462000760565b9392505050565b6000602082019050620007b5600083018462000760565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200080357607f821691505b602082108103620008195762000818620007bb565b5b50919050565b60805160a051615bbb6200086f600039600081816124d9015281816128da0152818161290301526134e00152600081816115990152818161178101528181611b7b01526124540152615bbb6000f3fe6080604052600436106102675760003560e01c80638da5cb5b11610144578063c82a0b37116100b6578063e3b7c13b1161007a578063e3b7c13b146108fe578063e58306f914610927578063e7c00f6e14610950578063e8a3d4851461097b578063e985e9c5146109a6578063f2fde38b146109e357610267565b8063c82a0b3714610807578063c87b56dd14610830578063d7224ba01461086d578063d9a9e8de14610898578063dc33e681146108c157610267565b80639ced91ba116101085780639ced91ba1461072e578063a0712d6814610757578063a12c470314610773578063a22cb4651461079e578063ac446002146107c7578063b88d4fde146107de57610267565b80638da5cb5b1461065b5780639231ab2a14610686578063938e3d7b146106c357806395d89b41146106ec57806399c89e811461071757610267565b80634530a832116101dd5780636bf1e49d116101a15780636bf1e49d1461055857806370a0823114610595578063715018a6146105d25780637155c1ea146105e9578063845348f0146106145780638c74bf0e1461063f57610267565b80634530a832146104615780634f6ccce71461048a57806355f804b3146104c75780635926533b146104f05780636352211e1461051b57610267565b806314896ee51161022f57806314896ee51461036557806318160ddd1461037c57806323b872dd146103a75780632d6b6224146103d05780632f745c59146103fb57806342842e0e1461043857610267565b806301ffc9a71461026c57806306fdde03146102a9578063081812fc146102d4578063095ea7b314610311578063102e766d1461033a575b600080fd5b34801561027857600080fd5b50610293600480360381019061028e9190613d50565b610a0c565b6040516102a09190613d98565b60405180910390f35b3480156102b557600080fd5b506102be610b56565b6040516102cb9190613e4c565b60405180910390f35b3480156102e057600080fd5b506102fb60048036038101906102f69190613ea4565b610be8565b6040516103089190613f12565b60405180910390f35b34801561031d57600080fd5b5061033860048036038101906103339190613f59565b610c6d565b005b34801561034657600080fd5b5061034f610d85565b60405161035c9190613fa8565b60405180910390f35b34801561037157600080fd5b5061037a610d8b565b005b34801561038857600080fd5b50610391610dbf565b60405161039e9190613fa8565b60405180910390f35b3480156103b357600080fd5b506103ce60048036038101906103c99190613fc3565b610dc9565b005b3480156103dc57600080fd5b506103e5610fab565b6040516103f29190613d98565b60405180910390f35b34801561040757600080fd5b50610422600480360381019061041d9190613f59565b610fbe565b60405161042f9190613fa8565b60405180910390f35b34801561044457600080fd5b5061045f600480360381019061045a9190613fc3565b6111ba565b005b34801561046d57600080fd5b5061048860048036038101906104839190613ea4565b61139c565b005b34801561049657600080fd5b506104b160048036038101906104ac9190613ea4565b6113ae565b6040516104be9190613fa8565b60405180910390f35b3480156104d357600080fd5b506104ee60048036038101906104e9919061407b565b611401565b005b3480156104fc57600080fd5b5061050561141f565b6040516105129190613d98565b60405180910390f35b34801561052757600080fd5b50610542600480360381019061053d9190613ea4565b611432565b60405161054f9190613f12565b60405180910390f35b34801561056457600080fd5b5061057f600480360381019061057a91906140c8565b611448565b60405161058c9190613fa8565b60405180910390f35b3480156105a157600080fd5b506105bc60048036038101906105b791906140c8565b611499565b6040516105c99190613fa8565b60405180910390f35b3480156105de57600080fd5b506105e7611581565b005b3480156105f557600080fd5b506105fe611595565b60405161060b9190613fa8565b60405180910390f35b34801561062057600080fd5b506106296115bd565b6040516106369190613fa8565b60405180910390f35b61065960048036038101906106549190613ea4565b611672565b005b34801561066757600080fd5b506106706118f2565b60405161067d9190613f12565b60405180910390f35b34801561069257600080fd5b506106ad60048036038101906106a89190613ea4565b61191b565b6040516106ba9190614156565b60405180910390f35b3480156106cf57600080fd5b506106ea60048036038101906106e5919061407b565b611933565b005b3480156106f857600080fd5b50610701611951565b60405161070e9190613e4c565b60405180910390f35b34801561072357600080fd5b5061072c6119e3565b005b34801561073a57600080fd5b5061075560048036038101906107509190613ea4565b611a17565b005b610771600480360381019061076c9190613ea4565b611a29565b005b34801561077f57600080fd5b50610788611cdf565b6040516107959190613fa8565b60405180910390f35b3480156107aa57600080fd5b506107c560048036038101906107c0919061419d565b611ce5565b005b3480156107d357600080fd5b506107dc611e65565b005b3480156107ea57600080fd5b506108056004803603810190610800919061430d565b611f2c565b005b34801561081357600080fd5b5061082e60048036038101906108299190613f59565b612111565b005b34801561083c57600080fd5b5061085760048036038101906108529190613ea4565b61218c565b6040516108649190613e4c565b60405180910390f35b34801561087957600080fd5b50610882612233565b60405161088f9190613fa8565b60405180910390f35b3480156108a457600080fd5b506108bf60048036038101906108ba919061443c565b612239565b005b3480156108cd57600080fd5b506108e860048036038101906108e391906140c8565b612390565b6040516108f59190613fa8565b60405180910390f35b34801561090a57600080fd5b50610925600480360381019061092091906140c8565b6123a2565b005b34801561093357600080fd5b5061094e60048036038101906109499190613f59565b61244a565b005b34801561095c57600080fd5b506109656124d5565b6040516109729190613fa8565b60405180910390f35b34801561098757600080fd5b506109906124fd565b60405161099d9190613e4c565b60405180910390f35b3480156109b257600080fd5b506109cd60048036038101906109c891906144bd565b61258f565b6040516109da9190613d98565b60405180910390f35b3480156109ef57600080fd5b50610a0a6004803603810190610a0591906140c8565b612623565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610ad757507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b3f57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b4f5750610b4e826126a6565b5b9050919050565b606060028054610b659061452c565b80601f0160208091040260200160405190810160405280929190818152602001828054610b919061452c565b8015610bde5780601f10610bb357610100808354040283529160200191610bde565b820191906000526020600020905b815481529060010190602001808311610bc157829003601f168201915b5050505050905090565b6000610bf382612710565b610c32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c29906145cf565b60405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c7882611432565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610ce8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cdf90614661565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610d0761271e565b73ffffffffffffffffffffffffffffffffffffffff161480610d365750610d3581610d3061271e565b61258f565b5b610d75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6c906146f3565b60405180910390fd5b610d80838383612726565b505050565b600c5481565b610d936127d8565b600e60019054906101000a900460ff1615600e60016101000a81548160ff021916908315150217905550565b6000600154905090565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115610f99573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e3b57610e36848484612856565b610fa5565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401610e84929190614713565b602060405180830381865afa158015610ea1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec59190614751565b8015610f5757506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401610f15929190614713565b602060405180830381865afa158015610f32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f569190614751565b5b610f9857336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401610f8f9190613f12565b60405180910390fd5b5b610fa4848484612856565b5b50505050565b600e60009054906101000a900460ff1681565b6000610fc983611499565b821061100a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611001906147f0565b60405180910390fd5b6000611014610dbf565b905060008060005b83811015611178576000600460008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461110e57806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611164578684036111555781955050505050506111b4565b83806111609061483f565b9450505b5080806111709061483f565b91505061101c565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ab906148f9565b60405180910390fd5b92915050565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b111561138a573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361122c57611227848484612866565b611396565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401611275929190614713565b602060405180830381865afa158015611292573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b69190614751565b801561134857506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401611306929190614713565b602060405180830381865afa158015611323573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113479190614751565b5b61138957336040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016113809190613f12565b60405180910390fd5b5b611395848484612866565b5b50505050565b6113a46127d8565b80600c8190555050565b60006113b8610dbf565b82106113f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f09061498b565b60405180910390fd5b819050919050565b6114096127d8565b8181600a919061141a929190613c07565b505050565b600e60019054906101000a900460ff1681565b600061143d82612886565b600001519050919050565b60006114526127d8565b601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611509576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150090614a1d565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b6115896127d8565b6115936000612a89565b565b60007f0000000000000000000000000000000000000000000000000000000000000000905090565b60003373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461162d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162490614a89565b60405180910390fd5b601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905090565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146116e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d790614a89565b60405180910390fd5b600e60019054906101000a900460ff1661172f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172690614af5565b60405180910390fd5b80600d5461173d9190614b15565b34101561177f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177690614be1565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000816117a9610dbf565b6117b39190614c01565b11156117f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117eb90614ca3565b60405180910390fd5b80601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611876576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186d90614d35565b60405180910390fd5b80600f60008282546118889190614d55565b9250508190555080601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118de9190614d55565b925050819055506118ef3382612b4d565b50565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611923613c8d565b61192c82612886565b9050919050565b61193b6127d8565b8181600b919061194c929190613c07565b505050565b6060600380546119609061452c565b80601f016020809104026020016040519081016040528092919081815260200182805461198c9061452c565b80156119d95780601f106119ae576101008083540402835291602001916119d9565b820191906000526020600020905b8154815290600101906020018083116119bc57829003601f168201915b5050505050905090565b6119eb6127d8565b600e60009054906101000a900460ff1615600e60006101000a81548160ff021916908315150217905550565b611a1f6127d8565b80600d8190555050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611a97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8e90614a89565b60405180910390fd5b60018114611ada576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad190614dd5565b60405180910390fd5b600e60009054906101000a900460ff16611b29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2090614e41565b60405180910390fd5b80600c54611b379190614b15565b341015611b79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7090614ead565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000081611ba3610dbf565b611bad9190614c01565b1115611bee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be590614f19565b60405180910390fd5b600181601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611c3b9190614c01565b1115611c7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7390614f85565b60405180910390fd5b80601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ccb9190614c01565b92505081905550611cdc3382612b4d565b50565b600d5481565b611ced61271e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611d5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5190614ff1565b60405180910390fd5b8060076000611d6761271e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611e1461271e565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611e599190613d98565b60405180910390a35050565b611e6d6127d8565b611e75612b6b565b60003373ffffffffffffffffffffffffffffffffffffffff1647604051611e9b90615042565b60006040518083038185875af1925050503d8060008114611ed8576040519150601f19603f3d011682016040523d82523d6000602084013e611edd565b606091505b5050905080611f21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f18906150a3565b60405180910390fd5b50611f2a612bba565b565b8360006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156120fd573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611f9f57611f9a85858585612bc4565b61210a565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401611fe8929190614713565b602060405180830381865afa158015612005573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120299190614751565b80156120bb57506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401612079929190614713565b602060405180830381865afa158015612096573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120ba9190614751565b5b6120fc57336040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016120f39190613f12565b60405180910390fd5b5b61210985858585612bc4565b5b5050505050565b6121196127d8565b80601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121689190614c01565b9250508190555080600f60008282546121819190614c01565b925050819055505050565b606061219782612710565b6121d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121cd90615135565b60405180910390fd5b60006121e0612c20565b90506000815111612200576040518060200160405280600081525061222b565b8061220a84612cb2565b60405160200161221b929190615191565b6040516020818303038152906040525b915050919050565b60085481565b6122416127d8565b60008484905090506000838390508686905014612293576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228a90615201565b60405180910390fd5b60005b8281101561236e578484828181106122b1576122b0615221565b5b90506020020135601060008989858181106122cf576122ce615221565b5b90506020020160208101906122e491906140c8565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461232d9190614c01565b9250508190555084848281811061234757612346615221565b5b90506020020135826123599190614c01565b915080806123669061483f565b915050612296565b5080600f60008282546123819190614c01565b92505081905550505050505050565b600061239b82612d80565b9050919050565b6123aa6127d8565b601060008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600f60008282546123fb9190614d55565b925050819055506000601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050565b6124526127d8565b7f00000000000000000000000000000000000000000000000000000000000000008161247c610dbf565b6124869190614c01565b11156124c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124be9061529c565b60405180910390fd5b6124d18282612b4d565b5050565b60007f0000000000000000000000000000000000000000000000000000000000000000905090565b6060600b805461250c9061452c565b80601f01602080910402602001604051908101604052809291908181526020018280546125389061452c565b80156125855780601f1061255a57610100808354040283529160200191612585565b820191906000526020600020905b81548152906001019060200180831161256857829003601f168201915b5050505050905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61262b6127d8565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361269a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126919061532e565b60405180910390fd5b6126a381612a89565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600060015482109050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6127e061271e565b73ffffffffffffffffffffffffffffffffffffffff166127fe6118f2565b73ffffffffffffffffffffffffffffffffffffffff1614612854576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284b9061539a565b60405180910390fd5b565b612861838383612e68565b505050565b61288183838360405180602001604052806000815250611f2c565b505050565b61288e613c8d565b61289782612710565b6128d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128cd9061542c565b60405180910390fd5b60007f0000000000000000000000000000000000000000000000000000000000000000831061293a5760017f00000000000000000000000000000000000000000000000000000000000000008461292d9190614d55565b6129379190614c01565b90505b60008390505b818110612a48576000600460008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612a3457809350505050612a84565b508080612a409061544c565b915050612940565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a7b906154e7565b60405180910390fd5b919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612b6782826040518060200160405280600081525061341f565b5050565b600260095403612bb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ba790615553565b60405180910390fd5b6002600981905550565b6001600981905550565b612bcf848484612e68565b612bdb848484846138fe565b612c1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c11906155e5565b60405180910390fd5b50505050565b6060600a8054612c2f9061452c565b80601f0160208091040260200160405190810160405280929190818152602001828054612c5b9061452c565b8015612ca85780601f10612c7d57610100808354040283529160200191612ca8565b820191906000526020600020905b815481529060010190602001808311612c8b57829003601f168201915b5050505050905090565b606060006001612cc184613a85565b01905060008167ffffffffffffffff811115612ce057612cdf6141e2565b5b6040519080825280601f01601f191660200182016040528015612d125781602001600182028036833780820191505090505b509050600082602001820190505b600115612d75578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612d6957612d68615605565b5b04945060008503612d20575b819350505050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612df0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612de7906156a6565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b6000612e7382612886565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff16612e9a61271e565b73ffffffffffffffffffffffffffffffffffffffff161480612ef65750612ebf61271e565b73ffffffffffffffffffffffffffffffffffffffff16612ede84610be8565b73ffffffffffffffffffffffffffffffffffffffff16145b80612f125750612f118260000151612f0c61271e565b61258f565b5b905080612f54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f4b90615738565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612fc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fbd906157ca565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603613035576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161302c9061585c565b60405180910390fd5b6130428585856001613bd8565b6130526000848460000151612726565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff166130c09190615898565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff1661316491906158cc565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060405180604001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506004600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050600060018461326a9190614c01565b9050600073ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036133af576132df81612710565b156133ae576040518060400160405280846000015173ffffffffffffffffffffffffffffffffffffffff168152602001846020015167ffffffffffffffff168152506004600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050505b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46134178686866001613bde565b505050505050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603613495576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161348c90615984565b60405180910390fd5b61349e81612710565b156134de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134d5906159f0565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000831115613541576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161353890615a82565b60405180910390fd5b61354e6000858386613bd8565b6000600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060400160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16815250509050604051806040016040528085836000015161364b91906158cc565b6fffffffffffffffffffffffffffffffff16815260200185836020015161367291906158cc565b6fffffffffffffffffffffffffffffffff16815250600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555090505060405180604001604052808673ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506004600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050600082905060005b858110156138e157818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461388160008884886138fe565b6138c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138b7906155e5565b60405180910390fd5b81806138cb9061483f565b92505080806138d99061483f565b915050613810565b50806001819055506138f66000878588613bde565b505050505050565b600061391f8473ffffffffffffffffffffffffffffffffffffffff16613be4565b15613a78578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261394861271e565b8786866040518563ffffffff1660e01b815260040161396a9493929190615af7565b6020604051808303816000875af19250505080156139a657506040513d601f19601f820116820180604052508101906139a39190615b58565b60015b613a28573d80600081146139d6576040519150601f19603f3d011682016040523d82523d6000602084013e6139db565b606091505b506000815103613a20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a17906155e5565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613a7d565b600190505b949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613ae3577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381613ad957613ad8615605565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613b20576d04ee2d6d415b85acef81000000008381613b1657613b15615605565b5b0492506020810190505b662386f26fc100008310613b4f57662386f26fc100008381613b4557613b44615605565b5b0492506010810190505b6305f5e1008310613b78576305f5e1008381613b6e57613b6d615605565b5b0492506008810190505b6127108310613b9d576127108381613b9357613b92615605565b5b0492506004810190505b60648310613bc05760648381613bb657613bb5615605565b5b0492506002810190505b600a8310613bcf576001810190505b80915050919050565b50505050565b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b828054613c139061452c565b90600052602060002090601f016020900481019282613c355760008555613c7c565b82601f10613c4e57803560ff1916838001178555613c7c565b82800160010185558215613c7c579182015b82811115613c7b578235825591602001919060010190613c60565b5b509050613c899190613cc7565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b80821115613ce0576000816000905550600101613cc8565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613d2d81613cf8565b8114613d3857600080fd5b50565b600081359050613d4a81613d24565b92915050565b600060208284031215613d6657613d65613cee565b5b6000613d7484828501613d3b565b91505092915050565b60008115159050919050565b613d9281613d7d565b82525050565b6000602082019050613dad6000830184613d89565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613ded578082015181840152602081019050613dd2565b83811115613dfc576000848401525b50505050565b6000601f19601f8301169050919050565b6000613e1e82613db3565b613e288185613dbe565b9350613e38818560208601613dcf565b613e4181613e02565b840191505092915050565b60006020820190508181036000830152613e668184613e13565b905092915050565b6000819050919050565b613e8181613e6e565b8114613e8c57600080fd5b50565b600081359050613e9e81613e78565b92915050565b600060208284031215613eba57613eb9613cee565b5b6000613ec884828501613e8f565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613efc82613ed1565b9050919050565b613f0c81613ef1565b82525050565b6000602082019050613f276000830184613f03565b92915050565b613f3681613ef1565b8114613f4157600080fd5b50565b600081359050613f5381613f2d565b92915050565b60008060408385031215613f7057613f6f613cee565b5b6000613f7e85828601613f44565b9250506020613f8f85828601613e8f565b9150509250929050565b613fa281613e6e565b82525050565b6000602082019050613fbd6000830184613f99565b92915050565b600080600060608486031215613fdc57613fdb613cee565b5b6000613fea86828701613f44565b9350506020613ffb86828701613f44565b925050604061400c86828701613e8f565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f84011261403b5761403a614016565b5b8235905067ffffffffffffffff8111156140585761405761401b565b5b60208301915083600182028301111561407457614073614020565b5b9250929050565b6000806020838503121561409257614091613cee565b5b600083013567ffffffffffffffff8111156140b0576140af613cf3565b5b6140bc85828601614025565b92509250509250929050565b6000602082840312156140de576140dd613cee565b5b60006140ec84828501613f44565b91505092915050565b6140fe81613ef1565b82525050565b600067ffffffffffffffff82169050919050565b61412181614104565b82525050565b60408201600082015161413d60008501826140f5565b5060208201516141506020850182614118565b50505050565b600060408201905061416b6000830184614127565b92915050565b61417a81613d7d565b811461418557600080fd5b50565b60008135905061419781614171565b92915050565b600080604083850312156141b4576141b3613cee565b5b60006141c285828601613f44565b92505060206141d385828601614188565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61421a82613e02565b810181811067ffffffffffffffff82111715614239576142386141e2565b5b80604052505050565b600061424c613ce4565b90506142588282614211565b919050565b600067ffffffffffffffff821115614278576142776141e2565b5b61428182613e02565b9050602081019050919050565b82818337600083830152505050565b60006142b06142ab8461425d565b614242565b9050828152602081018484840111156142cc576142cb6141dd565b5b6142d784828561428e565b509392505050565b600082601f8301126142f4576142f3614016565b5b813561430484826020860161429d565b91505092915050565b6000806000806080858703121561432757614326613cee565b5b600061433587828801613f44565b945050602061434687828801613f44565b935050604061435787828801613e8f565b925050606085013567ffffffffffffffff81111561437857614377613cf3565b5b614384878288016142df565b91505092959194509250565b60008083601f8401126143a6576143a5614016565b5b8235905067ffffffffffffffff8111156143c3576143c261401b565b5b6020830191508360208202830111156143df576143de614020565b5b9250929050565b60008083601f8401126143fc576143fb614016565b5b8235905067ffffffffffffffff8111156144195761441861401b565b5b60208301915083602082028301111561443557614434614020565b5b9250929050565b6000806000806040858703121561445657614455613cee565b5b600085013567ffffffffffffffff81111561447457614473613cf3565b5b61448087828801614390565b9450945050602085013567ffffffffffffffff8111156144a3576144a2613cf3565b5b6144af878288016143e6565b925092505092959194509250565b600080604083850312156144d4576144d3613cee565b5b60006144e285828601613f44565b92505060206144f385828601613f44565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061454457607f821691505b602082108103614557576145566144fd565b5b50919050565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b60006145b9602d83613dbe565b91506145c48261455d565b604082019050919050565b600060208201905081810360008301526145e8816145ac565b9050919050565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b600061464b602283613dbe565b9150614656826145ef565b604082019050919050565b6000602082019050818103600083015261467a8161463e565b9050919050565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b60006146dd603983613dbe565b91506146e882614681565b604082019050919050565b6000602082019050818103600083015261470c816146d0565b9050919050565b60006040820190506147286000830185613f03565b6147356020830184613f03565b9392505050565b60008151905061474b81614171565b92915050565b60006020828403121561476757614766613cee565b5b60006147758482850161473c565b91505092915050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b60006147da602283613dbe565b91506147e58261477e565b604082019050919050565b60006020820190508181036000830152614809816147cd565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061484a82613e6e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361487c5761487b614810565b5b600182019050919050565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b60006148e3602e83613dbe565b91506148ee82614887565b604082019050919050565b60006020820190508181036000830152614912816148d6565b9050919050565b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b6000614975602383613dbe565b915061498082614919565b604082019050919050565b600060208201905081810360008301526149a481614968565b9050919050565b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000614a07602b83613dbe565b9150614a12826149ab565b604082019050919050565b60006020820190508181036000830152614a36816149fa565b9050919050565b7f43616c6c657220697320616e6f7468657220636f6e7472616374000000000000600082015250565b6000614a73601a83613dbe565b9150614a7e82614a3d565b602082019050919050565b60006020820190508181036000830152614aa281614a66565b9050919050565b7f5265736572766564206d696e74206e6f74206163746976650000000000000000600082015250565b6000614adf601883613dbe565b9150614aea82614aa9565b602082019050919050565b60006020820190508181036000830152614b0e81614ad2565b9050919050565b6000614b2082613e6e565b9150614b2b83613e6e565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614b6457614b63614810565b5b828202905092915050565b7f5072696365206e6f7420656e6f75676820666f722072657365727665206d696e60008201527f7400000000000000000000000000000000000000000000000000000000000000602082015250565b6000614bcb602183613dbe565b9150614bd682614b6f565b604082019050919050565b60006020820190508181036000830152614bfa81614bbe565b9050919050565b6000614c0c82613e6e565b9150614c1783613e6e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614c4c57614c4b614810565b5b828201905092915050565b7f4d617820737570706c79206f6e207265736572766564206d696e740000000000600082015250565b6000614c8d601b83613dbe565b9150614c9882614c57565b602082019050919050565b60006020820190508181036000830152614cbc81614c80565b9050919050565b7f596f7520646f206e6f7420686176652074686174206d616e792072657365727660008201527f656420746f6b656e730000000000000000000000000000000000000000000000602082015250565b6000614d1f602983613dbe565b9150614d2a82614cc3565b604082019050919050565b60006020820190508181036000830152614d4e81614d12565b9050919050565b6000614d6082613e6e565b9150614d6b83613e6e565b925082821015614d7e57614d7d614810565b5b828203905092915050565b7f4d6178696d756d2031206d696e74207065722077616c6c657400000000000000600082015250565b6000614dbf601983613dbe565b9150614dca82614d89565b602082019050919050565b60006020820190508181036000830152614dee81614db2565b9050919050565b7f5075626c6963206d696e74206e6f742061637469766500000000000000000000600082015250565b6000614e2b601683613dbe565b9150614e3682614df5565b602082019050919050565b60006020820190508181036000830152614e5a81614e1e565b9050919050565b7f507269636520746f6f206c6f7720666f72207075626c6963206d696e74000000600082015250565b6000614e97601d83613dbe565b9150614ea282614e61565b602082019050919050565b60006020820190508181036000830152614ec681614e8a565b9050919050565b7f4d617820737570706c79206f6e207075626c6963206d696e7400000000000000600082015250565b6000614f03601983613dbe565b9150614f0e82614ecd565b602082019050919050565b60006020820190508181036000830152614f3281614ef6565b9050919050565b7f4d61782031206d696e74207065722077616c6c65740000000000000000000000600082015250565b6000614f6f601583613dbe565b9150614f7a82614f39565b602082019050919050565b60006020820190508181036000830152614f9e81614f62565b9050919050565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b6000614fdb601a83613dbe565b9150614fe682614fa5565b602082019050919050565b6000602082019050818103600083015261500a81614fce565b9050919050565b600081905092915050565b50565b600061502c600083615011565b91506150378261501c565b600082019050919050565b600061504d8261501f565b9150819050919050565b7f5472616e73666572206661696c65640000000000000000000000000000000000600082015250565b600061508d600f83613dbe565b915061509882615057565b602082019050919050565b600060208201905081810360008301526150bc81615080565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b600061511f602f83613dbe565b915061512a826150c3565b604082019050919050565b6000602082019050818103600083015261514e81615112565b9050919050565b600081905092915050565b600061516b82613db3565b6151758185615155565b9350615185818560208601613dcf565b80840191505092915050565b600061519d8285615160565b91506151a98284615160565b91508190509392505050565b7f4172726179206d69736d61746368000000000000000000000000000000000000600082015250565b60006151eb600e83613dbe565b91506151f6826151b5565b602082019050919050565b6000602082019050818103600083015261521a816151de565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4d617820737570706c79206f6e2061646d696e206d696e740000000000000000600082015250565b6000615286601883613dbe565b915061529182615250565b602082019050919050565b600060208201905081810360008301526152b581615279565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000615318602683613dbe565b9150615323826152bc565b604082019050919050565b600060208201905081810360008301526153478161530b565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615384602083613dbe565b915061538f8261534e565b602082019050919050565b600060208201905081810360008301526153b381615377565b9050919050565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b6000615416602a83613dbe565b9150615421826153ba565b604082019050919050565b6000602082019050818103600083015261544581615409565b9050919050565b600061545782613e6e565b91506000820361546a57615469614810565b5b600182039050919050565b7f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008201527f206f776e6572206f6620746f6b656e0000000000000000000000000000000000602082015250565b60006154d1602f83613dbe565b91506154dc82615475565b604082019050919050565b60006020820190508181036000830152615500816154c4565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061553d601f83613dbe565b915061554882615507565b602082019050919050565b6000602082019050818103600083015261556c81615530565b9050919050565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b60006155cf603383613dbe565b91506155da82615573565b604082019050919050565b600060208201905081810360008301526155fe816155c2565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f455243373231413a206e756d626572206d696e74656420717565727920666f7260008201527f20746865207a65726f2061646472657373000000000000000000000000000000602082015250565b6000615690603183613dbe565b915061569b82615634565b604082019050919050565b600060208201905081810360008301526156bf81615683565b9050919050565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b6000615722603283613dbe565b915061572d826156c6565b604082019050919050565b6000602082019050818103600083015261575181615715565b9050919050565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b60006157b4602683613dbe565b91506157bf82615758565b604082019050919050565b600060208201905081810360008301526157e3816157a7565b9050919050565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000615846602583613dbe565b9150615851826157ea565b604082019050919050565b6000602082019050818103600083015261587581615839565b9050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b60006158a38261587c565b91506158ae8361587c565b9250828210156158c1576158c0614810565b5b828203905092915050565b60006158d78261587c565b91506158e28361587c565b9250826fffffffffffffffffffffffffffffffff0382111561590757615906614810565b5b828201905092915050565b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b600061596e602183613dbe565b915061597982615912565b604082019050919050565b6000602082019050818103600083015261599d81615961565b9050919050565b7f455243373231413a20746f6b656e20616c7265616479206d696e746564000000600082015250565b60006159da601d83613dbe565b91506159e5826159a4565b602082019050919050565b60006020820190508181036000830152615a09816159cd565b9050919050565b7f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960008201527f6768000000000000000000000000000000000000000000000000000000000000602082015250565b6000615a6c602283613dbe565b9150615a7782615a10565b604082019050919050565b60006020820190508181036000830152615a9b81615a5f565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615ac982615aa2565b615ad38185615aad565b9350615ae3818560208601613dcf565b615aec81613e02565b840191505092915050565b6000608082019050615b0c6000830187613f03565b615b196020830186613f03565b615b266040830185613f99565b8181036060830152615b388184615abe565b905095945050505050565b600081519050615b5281613d24565b92915050565b600060208284031215615b6e57615b6d613cee565b5b6000615b7c84828501615b43565b9150509291505056fea264697066735822122027618af667fa95c7c75f6a0c49cd8a7879173b5f801e0e16a556845605eede6764736f6c634300080d0033576865726520696e2074686520576f726c64206973204361726d656e2053616d20446965676f3f0000000000000000000000000000000000000000000000000000000000000d050000000000000000000000000000000000000000000000000000000000000032
Deployed Bytecode
0x6080604052600436106102675760003560e01c80638da5cb5b11610144578063c82a0b37116100b6578063e3b7c13b1161007a578063e3b7c13b146108fe578063e58306f914610927578063e7c00f6e14610950578063e8a3d4851461097b578063e985e9c5146109a6578063f2fde38b146109e357610267565b8063c82a0b3714610807578063c87b56dd14610830578063d7224ba01461086d578063d9a9e8de14610898578063dc33e681146108c157610267565b80639ced91ba116101085780639ced91ba1461072e578063a0712d6814610757578063a12c470314610773578063a22cb4651461079e578063ac446002146107c7578063b88d4fde146107de57610267565b80638da5cb5b1461065b5780639231ab2a14610686578063938e3d7b146106c357806395d89b41146106ec57806399c89e811461071757610267565b80634530a832116101dd5780636bf1e49d116101a15780636bf1e49d1461055857806370a0823114610595578063715018a6146105d25780637155c1ea146105e9578063845348f0146106145780638c74bf0e1461063f57610267565b80634530a832146104615780634f6ccce71461048a57806355f804b3146104c75780635926533b146104f05780636352211e1461051b57610267565b806314896ee51161022f57806314896ee51461036557806318160ddd1461037c57806323b872dd146103a75780632d6b6224146103d05780632f745c59146103fb57806342842e0e1461043857610267565b806301ffc9a71461026c57806306fdde03146102a9578063081812fc146102d4578063095ea7b314610311578063102e766d1461033a575b600080fd5b34801561027857600080fd5b50610293600480360381019061028e9190613d50565b610a0c565b6040516102a09190613d98565b60405180910390f35b3480156102b557600080fd5b506102be610b56565b6040516102cb9190613e4c565b60405180910390f35b3480156102e057600080fd5b506102fb60048036038101906102f69190613ea4565b610be8565b6040516103089190613f12565b60405180910390f35b34801561031d57600080fd5b5061033860048036038101906103339190613f59565b610c6d565b005b34801561034657600080fd5b5061034f610d85565b60405161035c9190613fa8565b60405180910390f35b34801561037157600080fd5b5061037a610d8b565b005b34801561038857600080fd5b50610391610dbf565b60405161039e9190613fa8565b60405180910390f35b3480156103b357600080fd5b506103ce60048036038101906103c99190613fc3565b610dc9565b005b3480156103dc57600080fd5b506103e5610fab565b6040516103f29190613d98565b60405180910390f35b34801561040757600080fd5b50610422600480360381019061041d9190613f59565b610fbe565b60405161042f9190613fa8565b60405180910390f35b34801561044457600080fd5b5061045f600480360381019061045a9190613fc3565b6111ba565b005b34801561046d57600080fd5b5061048860048036038101906104839190613ea4565b61139c565b005b34801561049657600080fd5b506104b160048036038101906104ac9190613ea4565b6113ae565b6040516104be9190613fa8565b60405180910390f35b3480156104d357600080fd5b506104ee60048036038101906104e9919061407b565b611401565b005b3480156104fc57600080fd5b5061050561141f565b6040516105129190613d98565b60405180910390f35b34801561052757600080fd5b50610542600480360381019061053d9190613ea4565b611432565b60405161054f9190613f12565b60405180910390f35b34801561056457600080fd5b5061057f600480360381019061057a91906140c8565b611448565b60405161058c9190613fa8565b60405180910390f35b3480156105a157600080fd5b506105bc60048036038101906105b791906140c8565b611499565b6040516105c99190613fa8565b60405180910390f35b3480156105de57600080fd5b506105e7611581565b005b3480156105f557600080fd5b506105fe611595565b60405161060b9190613fa8565b60405180910390f35b34801561062057600080fd5b506106296115bd565b6040516106369190613fa8565b60405180910390f35b61065960048036038101906106549190613ea4565b611672565b005b34801561066757600080fd5b506106706118f2565b60405161067d9190613f12565b60405180910390f35b34801561069257600080fd5b506106ad60048036038101906106a89190613ea4565b61191b565b6040516106ba9190614156565b60405180910390f35b3480156106cf57600080fd5b506106ea60048036038101906106e5919061407b565b611933565b005b3480156106f857600080fd5b50610701611951565b60405161070e9190613e4c565b60405180910390f35b34801561072357600080fd5b5061072c6119e3565b005b34801561073a57600080fd5b5061075560048036038101906107509190613ea4565b611a17565b005b610771600480360381019061076c9190613ea4565b611a29565b005b34801561077f57600080fd5b50610788611cdf565b6040516107959190613fa8565b60405180910390f35b3480156107aa57600080fd5b506107c560048036038101906107c0919061419d565b611ce5565b005b3480156107d357600080fd5b506107dc611e65565b005b3480156107ea57600080fd5b506108056004803603810190610800919061430d565b611f2c565b005b34801561081357600080fd5b5061082e60048036038101906108299190613f59565b612111565b005b34801561083c57600080fd5b5061085760048036038101906108529190613ea4565b61218c565b6040516108649190613e4c565b60405180910390f35b34801561087957600080fd5b50610882612233565b60405161088f9190613fa8565b60405180910390f35b3480156108a457600080fd5b506108bf60048036038101906108ba919061443c565b612239565b005b3480156108cd57600080fd5b506108e860048036038101906108e391906140c8565b612390565b6040516108f59190613fa8565b60405180910390f35b34801561090a57600080fd5b50610925600480360381019061092091906140c8565b6123a2565b005b34801561093357600080fd5b5061094e60048036038101906109499190613f59565b61244a565b005b34801561095c57600080fd5b506109656124d5565b6040516109729190613fa8565b60405180910390f35b34801561098757600080fd5b506109906124fd565b60405161099d9190613e4c565b60405180910390f35b3480156109b257600080fd5b506109cd60048036038101906109c891906144bd565b61258f565b6040516109da9190613d98565b60405180910390f35b3480156109ef57600080fd5b50610a0a6004803603810190610a0591906140c8565b612623565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610ad757507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b3f57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b4f5750610b4e826126a6565b5b9050919050565b606060028054610b659061452c565b80601f0160208091040260200160405190810160405280929190818152602001828054610b919061452c565b8015610bde5780601f10610bb357610100808354040283529160200191610bde565b820191906000526020600020905b815481529060010190602001808311610bc157829003601f168201915b5050505050905090565b6000610bf382612710565b610c32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c29906145cf565b60405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c7882611432565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610ce8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cdf90614661565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610d0761271e565b73ffffffffffffffffffffffffffffffffffffffff161480610d365750610d3581610d3061271e565b61258f565b5b610d75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6c906146f3565b60405180910390fd5b610d80838383612726565b505050565b600c5481565b610d936127d8565b600e60019054906101000a900460ff1615600e60016101000a81548160ff021916908315150217905550565b6000600154905090565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115610f99573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e3b57610e36848484612856565b610fa5565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401610e84929190614713565b602060405180830381865afa158015610ea1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec59190614751565b8015610f5757506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401610f15929190614713565b602060405180830381865afa158015610f32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f569190614751565b5b610f9857336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401610f8f9190613f12565b60405180910390fd5b5b610fa4848484612856565b5b50505050565b600e60009054906101000a900460ff1681565b6000610fc983611499565b821061100a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611001906147f0565b60405180910390fd5b6000611014610dbf565b905060008060005b83811015611178576000600460008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461110e57806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611164578684036111555781955050505050506111b4565b83806111609061483f565b9450505b5080806111709061483f565b91505061101c565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ab906148f9565b60405180910390fd5b92915050565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b111561138a573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361122c57611227848484612866565b611396565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401611275929190614713565b602060405180830381865afa158015611292573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b69190614751565b801561134857506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401611306929190614713565b602060405180830381865afa158015611323573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113479190614751565b5b61138957336040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016113809190613f12565b60405180910390fd5b5b611395848484612866565b5b50505050565b6113a46127d8565b80600c8190555050565b60006113b8610dbf565b82106113f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f09061498b565b60405180910390fd5b819050919050565b6114096127d8565b8181600a919061141a929190613c07565b505050565b600e60019054906101000a900460ff1681565b600061143d82612886565b600001519050919050565b60006114526127d8565b601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611509576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150090614a1d565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b6115896127d8565b6115936000612a89565b565b60007f0000000000000000000000000000000000000000000000000000000000000d05905090565b60003373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461162d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162490614a89565b60405180910390fd5b601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905090565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146116e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d790614a89565b60405180910390fd5b600e60019054906101000a900460ff1661172f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172690614af5565b60405180910390fd5b80600d5461173d9190614b15565b34101561177f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177690614be1565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000d05816117a9610dbf565b6117b39190614c01565b11156117f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117eb90614ca3565b60405180910390fd5b80601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611876576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186d90614d35565b60405180910390fd5b80600f60008282546118889190614d55565b9250508190555080601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118de9190614d55565b925050819055506118ef3382612b4d565b50565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611923613c8d565b61192c82612886565b9050919050565b61193b6127d8565b8181600b919061194c929190613c07565b505050565b6060600380546119609061452c565b80601f016020809104026020016040519081016040528092919081815260200182805461198c9061452c565b80156119d95780601f106119ae576101008083540402835291602001916119d9565b820191906000526020600020905b8154815290600101906020018083116119bc57829003601f168201915b5050505050905090565b6119eb6127d8565b600e60009054906101000a900460ff1615600e60006101000a81548160ff021916908315150217905550565b611a1f6127d8565b80600d8190555050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611a97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8e90614a89565b60405180910390fd5b60018114611ada576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad190614dd5565b60405180910390fd5b600e60009054906101000a900460ff16611b29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2090614e41565b60405180910390fd5b80600c54611b379190614b15565b341015611b79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7090614ead565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000d0581611ba3610dbf565b611bad9190614c01565b1115611bee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be590614f19565b60405180910390fd5b600181601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611c3b9190614c01565b1115611c7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7390614f85565b60405180910390fd5b80601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ccb9190614c01565b92505081905550611cdc3382612b4d565b50565b600d5481565b611ced61271e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611d5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5190614ff1565b60405180910390fd5b8060076000611d6761271e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611e1461271e565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611e599190613d98565b60405180910390a35050565b611e6d6127d8565b611e75612b6b565b60003373ffffffffffffffffffffffffffffffffffffffff1647604051611e9b90615042565b60006040518083038185875af1925050503d8060008114611ed8576040519150601f19603f3d011682016040523d82523d6000602084013e611edd565b606091505b5050905080611f21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f18906150a3565b60405180910390fd5b50611f2a612bba565b565b8360006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156120fd573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611f9f57611f9a85858585612bc4565b61210a565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401611fe8929190614713565b602060405180830381865afa158015612005573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120299190614751565b80156120bb57506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401612079929190614713565b602060405180830381865afa158015612096573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120ba9190614751565b5b6120fc57336040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016120f39190613f12565b60405180910390fd5b5b61210985858585612bc4565b5b5050505050565b6121196127d8565b80601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121689190614c01565b9250508190555080600f60008282546121819190614c01565b925050819055505050565b606061219782612710565b6121d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121cd90615135565b60405180910390fd5b60006121e0612c20565b90506000815111612200576040518060200160405280600081525061222b565b8061220a84612cb2565b60405160200161221b929190615191565b6040516020818303038152906040525b915050919050565b60085481565b6122416127d8565b60008484905090506000838390508686905014612293576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228a90615201565b60405180910390fd5b60005b8281101561236e578484828181106122b1576122b0615221565b5b90506020020135601060008989858181106122cf576122ce615221565b5b90506020020160208101906122e491906140c8565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461232d9190614c01565b9250508190555084848281811061234757612346615221565b5b90506020020135826123599190614c01565b915080806123669061483f565b915050612296565b5080600f60008282546123819190614c01565b92505081905550505050505050565b600061239b82612d80565b9050919050565b6123aa6127d8565b601060008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600f60008282546123fb9190614d55565b925050819055506000601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050565b6124526127d8565b7f0000000000000000000000000000000000000000000000000000000000000d058161247c610dbf565b6124869190614c01565b11156124c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124be9061529c565b60405180910390fd5b6124d18282612b4d565b5050565b60007f0000000000000000000000000000000000000000000000000000000000000032905090565b6060600b805461250c9061452c565b80601f01602080910402602001604051908101604052809291908181526020018280546125389061452c565b80156125855780601f1061255a57610100808354040283529160200191612585565b820191906000526020600020905b81548152906001019060200180831161256857829003601f168201915b5050505050905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61262b6127d8565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361269a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126919061532e565b60405180910390fd5b6126a381612a89565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600060015482109050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6127e061271e565b73ffffffffffffffffffffffffffffffffffffffff166127fe6118f2565b73ffffffffffffffffffffffffffffffffffffffff1614612854576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284b9061539a565b60405180910390fd5b565b612861838383612e68565b505050565b61288183838360405180602001604052806000815250611f2c565b505050565b61288e613c8d565b61289782612710565b6128d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128cd9061542c565b60405180910390fd5b60007f0000000000000000000000000000000000000000000000000000000000000032831061293a5760017f00000000000000000000000000000000000000000000000000000000000000328461292d9190614d55565b6129379190614c01565b90505b60008390505b818110612a48576000600460008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612a3457809350505050612a84565b508080612a409061544c565b915050612940565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a7b906154e7565b60405180910390fd5b919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612b6782826040518060200160405280600081525061341f565b5050565b600260095403612bb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ba790615553565b60405180910390fd5b6002600981905550565b6001600981905550565b612bcf848484612e68565b612bdb848484846138fe565b612c1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c11906155e5565b60405180910390fd5b50505050565b6060600a8054612c2f9061452c565b80601f0160208091040260200160405190810160405280929190818152602001828054612c5b9061452c565b8015612ca85780601f10612c7d57610100808354040283529160200191612ca8565b820191906000526020600020905b815481529060010190602001808311612c8b57829003601f168201915b5050505050905090565b606060006001612cc184613a85565b01905060008167ffffffffffffffff811115612ce057612cdf6141e2565b5b6040519080825280601f01601f191660200182016040528015612d125781602001600182028036833780820191505090505b509050600082602001820190505b600115612d75578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612d6957612d68615605565b5b04945060008503612d20575b819350505050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612df0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612de7906156a6565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b6000612e7382612886565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff16612e9a61271e565b73ffffffffffffffffffffffffffffffffffffffff161480612ef65750612ebf61271e565b73ffffffffffffffffffffffffffffffffffffffff16612ede84610be8565b73ffffffffffffffffffffffffffffffffffffffff16145b80612f125750612f118260000151612f0c61271e565b61258f565b5b905080612f54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f4b90615738565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612fc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fbd906157ca565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603613035576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161302c9061585c565b60405180910390fd5b6130428585856001613bd8565b6130526000848460000151612726565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff166130c09190615898565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff1661316491906158cc565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060405180604001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506004600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050600060018461326a9190614c01565b9050600073ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036133af576132df81612710565b156133ae576040518060400160405280846000015173ffffffffffffffffffffffffffffffffffffffff168152602001846020015167ffffffffffffffff168152506004600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050505b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46134178686866001613bde565b505050505050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603613495576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161348c90615984565b60405180910390fd5b61349e81612710565b156134de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134d5906159f0565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000032831115613541576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161353890615a82565b60405180910390fd5b61354e6000858386613bd8565b6000600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060400160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16815250509050604051806040016040528085836000015161364b91906158cc565b6fffffffffffffffffffffffffffffffff16815260200185836020015161367291906158cc565b6fffffffffffffffffffffffffffffffff16815250600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555090505060405180604001604052808673ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506004600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050600082905060005b858110156138e157818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461388160008884886138fe565b6138c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138b7906155e5565b60405180910390fd5b81806138cb9061483f565b92505080806138d99061483f565b915050613810565b50806001819055506138f66000878588613bde565b505050505050565b600061391f8473ffffffffffffffffffffffffffffffffffffffff16613be4565b15613a78578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261394861271e565b8786866040518563ffffffff1660e01b815260040161396a9493929190615af7565b6020604051808303816000875af19250505080156139a657506040513d601f19601f820116820180604052508101906139a39190615b58565b60015b613a28573d80600081146139d6576040519150601f19603f3d011682016040523d82523d6000602084013e6139db565b606091505b506000815103613a20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a17906155e5565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613a7d565b600190505b949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613ae3577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381613ad957613ad8615605565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613b20576d04ee2d6d415b85acef81000000008381613b1657613b15615605565b5b0492506020810190505b662386f26fc100008310613b4f57662386f26fc100008381613b4557613b44615605565b5b0492506010810190505b6305f5e1008310613b78576305f5e1008381613b6e57613b6d615605565b5b0492506008810190505b6127108310613b9d576127108381613b9357613b92615605565b5b0492506004810190505b60648310613bc05760648381613bb657613bb5615605565b5b0492506002810190505b600a8310613bcf576001810190505b80915050919050565b50505050565b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b828054613c139061452c565b90600052602060002090601f016020900481019282613c355760008555613c7c565b82601f10613c4e57803560ff1916838001178555613c7c565b82800160010185558215613c7c579182015b82811115613c7b578235825591602001919060010190613c60565b5b509050613c899190613cc7565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b80821115613ce0576000816000905550600101613cc8565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613d2d81613cf8565b8114613d3857600080fd5b50565b600081359050613d4a81613d24565b92915050565b600060208284031215613d6657613d65613cee565b5b6000613d7484828501613d3b565b91505092915050565b60008115159050919050565b613d9281613d7d565b82525050565b6000602082019050613dad6000830184613d89565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613ded578082015181840152602081019050613dd2565b83811115613dfc576000848401525b50505050565b6000601f19601f8301169050919050565b6000613e1e82613db3565b613e288185613dbe565b9350613e38818560208601613dcf565b613e4181613e02565b840191505092915050565b60006020820190508181036000830152613e668184613e13565b905092915050565b6000819050919050565b613e8181613e6e565b8114613e8c57600080fd5b50565b600081359050613e9e81613e78565b92915050565b600060208284031215613eba57613eb9613cee565b5b6000613ec884828501613e8f565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613efc82613ed1565b9050919050565b613f0c81613ef1565b82525050565b6000602082019050613f276000830184613f03565b92915050565b613f3681613ef1565b8114613f4157600080fd5b50565b600081359050613f5381613f2d565b92915050565b60008060408385031215613f7057613f6f613cee565b5b6000613f7e85828601613f44565b9250506020613f8f85828601613e8f565b9150509250929050565b613fa281613e6e565b82525050565b6000602082019050613fbd6000830184613f99565b92915050565b600080600060608486031215613fdc57613fdb613cee565b5b6000613fea86828701613f44565b9350506020613ffb86828701613f44565b925050604061400c86828701613e8f565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f84011261403b5761403a614016565b5b8235905067ffffffffffffffff8111156140585761405761401b565b5b60208301915083600182028301111561407457614073614020565b5b9250929050565b6000806020838503121561409257614091613cee565b5b600083013567ffffffffffffffff8111156140b0576140af613cf3565b5b6140bc85828601614025565b92509250509250929050565b6000602082840312156140de576140dd613cee565b5b60006140ec84828501613f44565b91505092915050565b6140fe81613ef1565b82525050565b600067ffffffffffffffff82169050919050565b61412181614104565b82525050565b60408201600082015161413d60008501826140f5565b5060208201516141506020850182614118565b50505050565b600060408201905061416b6000830184614127565b92915050565b61417a81613d7d565b811461418557600080fd5b50565b60008135905061419781614171565b92915050565b600080604083850312156141b4576141b3613cee565b5b60006141c285828601613f44565b92505060206141d385828601614188565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61421a82613e02565b810181811067ffffffffffffffff82111715614239576142386141e2565b5b80604052505050565b600061424c613ce4565b90506142588282614211565b919050565b600067ffffffffffffffff821115614278576142776141e2565b5b61428182613e02565b9050602081019050919050565b82818337600083830152505050565b60006142b06142ab8461425d565b614242565b9050828152602081018484840111156142cc576142cb6141dd565b5b6142d784828561428e565b509392505050565b600082601f8301126142f4576142f3614016565b5b813561430484826020860161429d565b91505092915050565b6000806000806080858703121561432757614326613cee565b5b600061433587828801613f44565b945050602061434687828801613f44565b935050604061435787828801613e8f565b925050606085013567ffffffffffffffff81111561437857614377613cf3565b5b614384878288016142df565b91505092959194509250565b60008083601f8401126143a6576143a5614016565b5b8235905067ffffffffffffffff8111156143c3576143c261401b565b5b6020830191508360208202830111156143df576143de614020565b5b9250929050565b60008083601f8401126143fc576143fb614016565b5b8235905067ffffffffffffffff8111156144195761441861401b565b5b60208301915083602082028301111561443557614434614020565b5b9250929050565b6000806000806040858703121561445657614455613cee565b5b600085013567ffffffffffffffff81111561447457614473613cf3565b5b61448087828801614390565b9450945050602085013567ffffffffffffffff8111156144a3576144a2613cf3565b5b6144af878288016143e6565b925092505092959194509250565b600080604083850312156144d4576144d3613cee565b5b60006144e285828601613f44565b92505060206144f385828601613f44565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061454457607f821691505b602082108103614557576145566144fd565b5b50919050565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b60006145b9602d83613dbe565b91506145c48261455d565b604082019050919050565b600060208201905081810360008301526145e8816145ac565b9050919050565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b600061464b602283613dbe565b9150614656826145ef565b604082019050919050565b6000602082019050818103600083015261467a8161463e565b9050919050565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b60006146dd603983613dbe565b91506146e882614681565b604082019050919050565b6000602082019050818103600083015261470c816146d0565b9050919050565b60006040820190506147286000830185613f03565b6147356020830184613f03565b9392505050565b60008151905061474b81614171565b92915050565b60006020828403121561476757614766613cee565b5b60006147758482850161473c565b91505092915050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b60006147da602283613dbe565b91506147e58261477e565b604082019050919050565b60006020820190508181036000830152614809816147cd565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061484a82613e6e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361487c5761487b614810565b5b600182019050919050565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b60006148e3602e83613dbe565b91506148ee82614887565b604082019050919050565b60006020820190508181036000830152614912816148d6565b9050919050565b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b6000614975602383613dbe565b915061498082614919565b604082019050919050565b600060208201905081810360008301526149a481614968565b9050919050565b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000614a07602b83613dbe565b9150614a12826149ab565b604082019050919050565b60006020820190508181036000830152614a36816149fa565b9050919050565b7f43616c6c657220697320616e6f7468657220636f6e7472616374000000000000600082015250565b6000614a73601a83613dbe565b9150614a7e82614a3d565b602082019050919050565b60006020820190508181036000830152614aa281614a66565b9050919050565b7f5265736572766564206d696e74206e6f74206163746976650000000000000000600082015250565b6000614adf601883613dbe565b9150614aea82614aa9565b602082019050919050565b60006020820190508181036000830152614b0e81614ad2565b9050919050565b6000614b2082613e6e565b9150614b2b83613e6e565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614b6457614b63614810565b5b828202905092915050565b7f5072696365206e6f7420656e6f75676820666f722072657365727665206d696e60008201527f7400000000000000000000000000000000000000000000000000000000000000602082015250565b6000614bcb602183613dbe565b9150614bd682614b6f565b604082019050919050565b60006020820190508181036000830152614bfa81614bbe565b9050919050565b6000614c0c82613e6e565b9150614c1783613e6e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614c4c57614c4b614810565b5b828201905092915050565b7f4d617820737570706c79206f6e207265736572766564206d696e740000000000600082015250565b6000614c8d601b83613dbe565b9150614c9882614c57565b602082019050919050565b60006020820190508181036000830152614cbc81614c80565b9050919050565b7f596f7520646f206e6f7420686176652074686174206d616e792072657365727660008201527f656420746f6b656e730000000000000000000000000000000000000000000000602082015250565b6000614d1f602983613dbe565b9150614d2a82614cc3565b604082019050919050565b60006020820190508181036000830152614d4e81614d12565b9050919050565b6000614d6082613e6e565b9150614d6b83613e6e565b925082821015614d7e57614d7d614810565b5b828203905092915050565b7f4d6178696d756d2031206d696e74207065722077616c6c657400000000000000600082015250565b6000614dbf601983613dbe565b9150614dca82614d89565b602082019050919050565b60006020820190508181036000830152614dee81614db2565b9050919050565b7f5075626c6963206d696e74206e6f742061637469766500000000000000000000600082015250565b6000614e2b601683613dbe565b9150614e3682614df5565b602082019050919050565b60006020820190508181036000830152614e5a81614e1e565b9050919050565b7f507269636520746f6f206c6f7720666f72207075626c6963206d696e74000000600082015250565b6000614e97601d83613dbe565b9150614ea282614e61565b602082019050919050565b60006020820190508181036000830152614ec681614e8a565b9050919050565b7f4d617820737570706c79206f6e207075626c6963206d696e7400000000000000600082015250565b6000614f03601983613dbe565b9150614f0e82614ecd565b602082019050919050565b60006020820190508181036000830152614f3281614ef6565b9050919050565b7f4d61782031206d696e74207065722077616c6c65740000000000000000000000600082015250565b6000614f6f601583613dbe565b9150614f7a82614f39565b602082019050919050565b60006020820190508181036000830152614f9e81614f62565b9050919050565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b6000614fdb601a83613dbe565b9150614fe682614fa5565b602082019050919050565b6000602082019050818103600083015261500a81614fce565b9050919050565b600081905092915050565b50565b600061502c600083615011565b91506150378261501c565b600082019050919050565b600061504d8261501f565b9150819050919050565b7f5472616e73666572206661696c65640000000000000000000000000000000000600082015250565b600061508d600f83613dbe565b915061509882615057565b602082019050919050565b600060208201905081810360008301526150bc81615080565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b600061511f602f83613dbe565b915061512a826150c3565b604082019050919050565b6000602082019050818103600083015261514e81615112565b9050919050565b600081905092915050565b600061516b82613db3565b6151758185615155565b9350615185818560208601613dcf565b80840191505092915050565b600061519d8285615160565b91506151a98284615160565b91508190509392505050565b7f4172726179206d69736d61746368000000000000000000000000000000000000600082015250565b60006151eb600e83613dbe565b91506151f6826151b5565b602082019050919050565b6000602082019050818103600083015261521a816151de565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4d617820737570706c79206f6e2061646d696e206d696e740000000000000000600082015250565b6000615286601883613dbe565b915061529182615250565b602082019050919050565b600060208201905081810360008301526152b581615279565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000615318602683613dbe565b9150615323826152bc565b604082019050919050565b600060208201905081810360008301526153478161530b565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615384602083613dbe565b915061538f8261534e565b602082019050919050565b600060208201905081810360008301526153b381615377565b9050919050565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b6000615416602a83613dbe565b9150615421826153ba565b604082019050919050565b6000602082019050818103600083015261544581615409565b9050919050565b600061545782613e6e565b91506000820361546a57615469614810565b5b600182039050919050565b7f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008201527f206f776e6572206f6620746f6b656e0000000000000000000000000000000000602082015250565b60006154d1602f83613dbe565b91506154dc82615475565b604082019050919050565b60006020820190508181036000830152615500816154c4565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061553d601f83613dbe565b915061554882615507565b602082019050919050565b6000602082019050818103600083015261556c81615530565b9050919050565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b60006155cf603383613dbe565b91506155da82615573565b604082019050919050565b600060208201905081810360008301526155fe816155c2565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f455243373231413a206e756d626572206d696e74656420717565727920666f7260008201527f20746865207a65726f2061646472657373000000000000000000000000000000602082015250565b6000615690603183613dbe565b915061569b82615634565b604082019050919050565b600060208201905081810360008301526156bf81615683565b9050919050565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b6000615722603283613dbe565b915061572d826156c6565b604082019050919050565b6000602082019050818103600083015261575181615715565b9050919050565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b60006157b4602683613dbe565b91506157bf82615758565b604082019050919050565b600060208201905081810360008301526157e3816157a7565b9050919050565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000615846602583613dbe565b9150615851826157ea565b604082019050919050565b6000602082019050818103600083015261587581615839565b9050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b60006158a38261587c565b91506158ae8361587c565b9250828210156158c1576158c0614810565b5b828203905092915050565b60006158d78261587c565b91506158e28361587c565b9250826fffffffffffffffffffffffffffffffff0382111561590757615906614810565b5b828201905092915050565b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b600061596e602183613dbe565b915061597982615912565b604082019050919050565b6000602082019050818103600083015261599d81615961565b9050919050565b7f455243373231413a20746f6b656e20616c7265616479206d696e746564000000600082015250565b60006159da601d83613dbe565b91506159e5826159a4565b602082019050919050565b60006020820190508181036000830152615a09816159cd565b9050919050565b7f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960008201527f6768000000000000000000000000000000000000000000000000000000000000602082015250565b6000615a6c602283613dbe565b9150615a7782615a10565b604082019050919050565b60006020820190508181036000830152615a9b81615a5f565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615ac982615aa2565b615ad38185615aad565b9350615ae3818560208601613dcf565b615aec81613e02565b840191505092915050565b6000608082019050615b0c6000830187613f03565b615b196020830186613f03565b615b266040830185613f99565b8181036060830152615b388184615abe565b905095945050505050565b600081519050615b5281613d24565b92915050565b600060208284031215615b6e57615b6d613cee565b5b6000615b7c84828501615b43565b9150509291505056fea264697066735822122027618af667fa95c7c75f6a0c49cd8a7879173b5f801e0e16a556845605eede6764736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000d050000000000000000000000000000000000000000000000000000000000000032
-----Decoded View---------------
Arg [0] : collectionSize_ (uint256): 3333
Arg [1] : maxBatchSize_ (uint256): 50
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000d05
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000032
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.