ERC-721
Overview
Max Total Supply
5,038 MIN_2
Holders
2,610
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 MIN_2Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
InfiniteScribbleMinter
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 20000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.8; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "operator-filter-registry/src/DefaultOperatorFilterer.sol"; import "./IERC4906A.sol"; import "./ArtGenerator.sol"; import "./BitSequence.sol"; import "./ERC721ASnapshotable.sol"; /* * ,--. ,---.,--. ,--. ,--. * `--',--,--, / .-'`--',--,--, `--',-' '-. ,---. * ,--.| \| `-,,--.| \,--.'-. .-'| .-. : * | || || || .-'| || || || | | | \ --. * `--'`--''--'`--' `--'`--''--'`--' `--' `----' * ,--.,--. ,--. ,--. * ,---. ,---.,--.--.`--'| |-. | |-. | | ,---. * ( .-' | .--'| .--',--.| .-. '| .-. '| || .-. : * .-' `)\ `--.| | | || `-' || `-' || |\ --. * `----' `---'`--' `--' `---' `---' `--' `----' * * * _ * | |__ _ _ * | '_ \ || | * |_.__/\_, | * |__/ _ _ _ * _ __ ___ (_)_ __ (_)_ __ ___ (_)_______ _ __ * | '_ ` _ \| | '_ \| | '_ ` _ \| |_ / _ \ '__| * | | | | | | | | | | | | | | | | |/ / __/ | * |_| |_| |_|_|_| |_|_|_| |_| |_|_/___\___|_| * * * @title InfiniteScribbleMinter * @author minimizer <[email protected]>; https://minimizer.art/ * * The Infinite Scribble is abundant, free, and for everyone. These playful digital doodles * are here to cheer you up. When you mint, you create a new unique drawing and also extend * the collection to help spread the joy. If no one mints for two weeks, the collection * closes forever. * * In-chain artwork, SVG generated from the smart contract. For a given piece, the artwork * can be generated in any aspect ratio (width:height) from 3:1 to 1:3, where width and height * are between 1 and 127, via tokenURIAtAspectRatio(). Each token has a default aspect ratio * which is used by the standard tokenURI(), which can also be changed by owner of the token * via setTokenAspectRatio(). If the aspect ratio is changed, a event is emitted following * ERC-4906, which is new, and which hopefully marketplaces support over time. * * As a free to mint, infinite supply project, there is room to have some flexibility with * mint mechanics. The owner of the contract can vary how many mints/wallets per transaction, * and whether the mints must be to the transaction originator or not. * * The owner does not have these mint restrictions and can also designate other addresses as * 'privledged' so as to also not be restricted. However, any mint from the owner or a * privledged address does not extend the minting window. * * A snapshotting mechanism is also implemented which gas efficiently remembers which address * held each token at the time of a given snapshot. More information in ERC721ASnapshotable. * * The contract has royalties implemented via ERC-2981 as well as OpenSea's Operator Filterer. * At the time of creation of this contract the NFT environment was in a race to the bottom * across marketplaces, with artist royalties as the primary casualty. It's not clear what the * eventual solution will be for royalties, but these are the current best options. */ contract InfiniteScribbleMinter is DefaultOperatorFilterer, IERC2981, ERC721ASnapshotable, IERC4906A, Ownable { //The time at which no further mints are allowed //This field needs to be continuously extended or otherwise no more mints are allowed uint public mintCloseTime; //This minting contract delegates the art generaton to the contract at this address ArtGenerator private _artContract; //Priviledged minters skip the validation (and can therefore mint many at once) but do not advance //the close time. May be used for various ways to do follow-on experiments with this project. mapping(address => bool) _priviledgedMinters; //Settings for minting, either the defaults or temporary overrides will take this shape struct MintParameters { //setting both to false will pause minting bool allowMintToSelf; bool allowMintToOthers; bool allowMintFromContract; //per transaction settings uint maxAddresses; uint maxPerAddress; } //Are the default settings overridden? //This can be done within a time window or a mint number window (e.g. tokens 100-120) struct OverrideCriteria { bool isSet; //is the override set? bool isByTime; //is by time? (true) or based on tokenId? (false) uint start; uint end; } //All the mint settings, publicly exposed struct MintSettings { MintParameters defaultParameters; MintParameters overrideParameters; OverrideCriteria overrideCriteria; } MintSettings public mintSettings; //Used for mint() with multiple mints in one transaction struct MintTarget { address to; uint16 num; } //Remember which was the last token to extend the mint in case it is needed in the future. //This will be the latest 'non-privledged' mint int private _latestTokenToExtendMint = -1; uint private _asOfTotalMinted = 0; //Used for remembering the aspect ratio of a given piece struct AspectRatio { uint8 width; uint8 height; } //For gas efficiency of minting, don't actually store the aspect ratio for each token. //Instead, any new mints which match the previous most recent aspect ratio look backwards //to find the proper aspect ratio at time of rendering in tokenURI() BitSequence private _setAspectRatios; mapping(uint => AspectRatio) private _aspectRatios; //Who are royalties going to, and how much? address private _royaltyRecipient; uint16 private _royaltyBasisPoints; uint private constant TWO_WEEKS = 2*7*24*60*60; constructor(ArtGenerator artContract) ERC721ASnapshotable(artContract.name(), artContract.symbol()) { _artContract = artContract; _royaltyRecipient = owner(); _royaltyBasisPoints = 500; mintSettings.defaultParameters = MintParameters(false, false, false, 1, 1); mintSettings.overrideParameters = MintParameters(false, false, false, 1, 1); mintSettings.overrideCriteria = OverrideCriteria(false, false, 0, 0); } modifier validToken(uint tokenId) { require(_exists(tokenId), 'Invalid tokenId'); _; } modifier validAspectRatio(uint8 widthRatio, uint8 heightRatio) { require(widthRatio > 0 && heightRatio > 0 && uint(widthRatio)*3>=heightRatio && uint(heightRatio)*3>=widthRatio, 'Aspect ratio not between 3:1 and 1:3'); _; } modifier onlyHolder(uint tokenId) { require(msg.sender == ownerOf(tokenId), 'Caller is not holder'); _; } //Convenience mint method mints only one token to the transaction originator. calls mint() function mintOne(uint8 widthRatio, uint8 heightRatio) external payable { MintTarget[] memory oneMint = new MintTarget[](1); oneMint[0].to=msg.sender; oneMint[0].num=1; mint(oneMint, widthRatio, heightRatio); } //Complex mint function which can take multiple addresses and different amounts to each address //Validates mints and extends the minting window, except for privledged minters where it does neither function mint(MintTarget[] memory mints, uint8 widthRatio, uint8 heightRatio) public payable validAspectRatio(widthRatio, heightRatio) { require(isMintingOpen(), 'Minting is closed'); require(mints.length>0, 'No mints requested'); bool privledged = msg.sender == owner() || _priviledgedMinters[msg.sender]; if(privledged) { //if the previous mint wasn't privledged, remember that mint as the latest to extend the window if(_asOfTotalMinted != _totalMinted()) { _latestTokenToExtendMint = int(_totalMinted()) - 1; } } else { validateMints(currentMintParameters(), mints, msg.sender, tx.origin); mintCloseTime = block.timestamp + TWO_WEEKS; } uint nextTokenId = _totalMinted(); AspectRatio memory latestAspectRatio = _aspectRatios[nextTokenId==0?0:uint(_setAspectRatios.firstSet(nextTokenId))]; if(latestAspectRatio.width != widthRatio || latestAspectRatio.height != heightRatio) { _aspectRatios[nextTokenId] = AspectRatio(widthRatio, heightRatio); _setAspectRatios.set(nextTokenId); } for(uint i=0;i<mints.length;i++) { _safeMint(mints[i].to, mints[i].num); } if(privledged) { //remember the latest privledged mint, for logic above _asOfTotalMinted = _totalMinted(); } } //Checks the mint targets to make sure they would pass the provided minting parameters //As a public pure function this can be called directly from a given UI //If the target addresses provided in the mints parameter are unique and sorted, validation takes less gas function validateMints(MintParameters memory mintParameters, MintTarget[] memory mints, address msgSender, address txOrigin) public pure { unchecked { require(msgSender == txOrigin || mintParameters.allowMintFromContract, 'Cannot mint from contract'); uint numUniqueAddresses = 0; bool sorted = true; for(uint i=0;i<mints.length;i++) { require(mints[i].num > 0, 'Invalid amount'); if(mints[i].to == txOrigin) { require(mintParameters.allowMintToSelf, 'Cannot mint to self'); } else { require(mintParameters.allowMintToOthers, 'Cannot mint to others'); } uint totalToAddress = mints[i].num; bool isUnique = true; if(i>0) { sorted = sorted && (mints[i-1].to < mints[i].to); if(!sorted) { for(uint j=0;j<i;j++) { if(mints[j].to==mints[i].to) { totalToAddress += mints[j].num; isUnique = false; } } } } require(totalToAddress <= mintParameters.maxPerAddress, 'Exceeded max per address'); if(isUnique) { numUniqueAddresses++; } } require(numUniqueAddresses <= mintParameters.maxAddresses, 'Exceeded max addresses'); } } //Whether a mint will be allowed based on the close time (other validation rules checked separately) function isMintingOpen() public view returns (bool) { return mintCloseTime>=block.timestamp || mintCloseTime==0; //0 case is for the initial mint } //Which mint last extended the window (privledged mints are excluded) function latestTokenToExtendMint() public view returns (int) { return _asOfTotalMinted == _totalMinted() ? _latestTokenToExtendMint : int(_totalMinted()) - 1; } //Set the mint parameters function setMintParameters(bool allowMintToSelf, bool allowMintToOthers, bool allowMintFromContract, uint maxAddresses, uint maxPerAddress) external onlyOwner { mintSettings.defaultParameters = MintParameters(allowMintToSelf, allowMintToOthers, allowMintFromContract, maxAddresses, maxPerAddress); } //Set the overridden mint parameters and in which window they would apply function setOverrideMintParameters(bool allowMintToSelf, bool allowMintToOthers, bool allowMintFromContract, uint maxAddresses, uint maxPerAddress, bool isByTime, uint start, uint end) external onlyOwner { mintSettings.overrideParameters = MintParameters(allowMintToSelf, allowMintToOthers, allowMintFromContract, maxAddresses, maxPerAddress); mintSettings.overrideCriteria = OverrideCriteria(true, isByTime, start, end); } //Clear the override, reverting to the default mint parameters function clearOverrideMintParameters() external onlyOwner { mintSettings.overrideParameters = MintParameters(false, false, false, 0, 0); mintSettings.overrideCriteria = OverrideCriteria(false, false, 0, 0); } //Get the current mint parameters, but checking to see if the override criteria apply function currentMintParameters() public view returns (MintParameters memory) { if(mintSettings.overrideCriteria.isSet && (mintSettings.overrideCriteria.isByTime?block.timestamp:totalSupply())>=mintSettings.overrideCriteria.start && (mintSettings.overrideCriteria.isByTime?block.timestamp:totalSupply())<=mintSettings.overrideCriteria.end) { return mintSettings.overrideParameters; } return mintSettings.defaultParameters; } //Designate an address as privledged or not function setPriviledgedMinter(address minter, bool isPriviledged) external onlyOwner { _priviledgedMinters[minter] = isPriviledged; } //Exposing snapshot data of ERC721ASnapshotable function latestSnapshot() public view returns (uint) { return _latestSnapshot(); } //Take a snapshot of ownership, exposing method in ERC721ASnapshotable function takeSnapshot() public onlyOwner { _takeSnapshot(); } //Exposing snapshot data of ERC721ASnapshotable function snapshotInfo(uint snapshotNumber) public view returns (SnapshotInfo memory) { return _snapshotInfo(snapshotNumber); } //Exposing snapshot data of ERC721ASnapshotable function snapshotOwnershipOf(uint snapshotNumber, uint tokenId) public view returns (address, uint64) { TokenOwnership memory ownership = _snapshotTokenOwnershipOf(snapshotNumber, tokenId); return (ownership.addr, ownership.startTimestamp); } //Exposing snapshot data of ERC721ASnapshotable function currentOwnershipOf(uint tokenId) public view validToken(tokenId) returns (address, uint64) { TokenOwnership memory ownership = _ownershipOf(tokenId); return (ownership.addr, ownership.startTimestamp); } //Exposing snapshot data of ERC721ASnapshotable function firstOwnershipOf(uint tokenId) public view validToken(tokenId) returns (address, uint64) { TokenOwnership memory originalOwnership = _originalTokenOwnershipOf(tokenId); if(originalOwnership.addr==address(0)) { return currentOwnershipOf(tokenId); } return (originalOwnership.addr, originalOwnership.startTimestamp); } //Token hash is used as an input into the artwork generation //It is based on the tokenId, time of mint and original owner of the given token function tokenHash(uint tokenId) public view returns (bytes32) { (address firstOwnerAddress, uint64 mintTime) = firstOwnershipOf(tokenId); return (keccak256(abi.encodePacked(firstOwnerAddress, mintTime, tokenId))); } //Get the current token aspect ratio set for a given token function tokenAspectRatio(uint tokenId) public view validToken(tokenId) returns (AspectRatio memory) { return _aspectRatios[uint(_setAspectRatios.firstSet(tokenId))]; } //Set the token aspect ratio set for a given token. This changes what tokenURI() generates function setTokenAspectRatio(uint tokenId, uint8 widthRatio, uint8 heightRatio) external onlyHolder(tokenId) validAspectRatio(widthRatio, heightRatio) { if(tokenId<_totalMinted()) { _aspectRatios[tokenId+1] = _aspectRatios[uint(_setAspectRatios.firstSet(tokenId))]; _setAspectRatios.set(tokenId+1); } _aspectRatios[tokenId] = AspectRatio(widthRatio, heightRatio); _setAspectRatios.set(tokenId); emit MetadataUpdate(tokenId); } function tokenURI(uint tokenId) public view virtual override(IERC721A, ERC721A) returns (string memory) { AspectRatio memory aspectRatio = tokenAspectRatio(tokenId); return tokenURIAtAspectRatio(tokenId, aspectRatio.width, aspectRatio.height); } function tokenURIAtAspectRatio(uint tokenId, uint8 widthRatio, uint8 heightRatio) public view validAspectRatio(widthRatio, heightRatio) returns (string memory) { require(msg.sender == tx.origin); //high gas operation, not meant to be called on chain return _artContract.tokenURI(tokenId, tokenHash(tokenId), widthRatio, heightRatio); } // Set the royalty amount, specified in basis points // All tokens have the same royalty amount // Used by ERC-2981 implementation // Royalty info can be changed after the contract is frozen function setRoyaltyAddressAndBasisPoints(address recipient, uint16 royaltyBasisPoints) external onlyOwner { _royaltyRecipient = recipient; _royaltyBasisPoints = royaltyBasisPoints; } // Implementation of royaltyInfo for ERC-2981 function royaltyInfo(uint256, uint256 salePrice) external view override returns (address, uint256) { return (_royaltyRecipient, (salePrice * _royaltyBasisPoints) / 10000); } // Owner can transfer accumulated funds from contract. function withdrawAll() external onlyOwner { payable(msg.sender).transfer(address(this).balance); } //If someone wants to send funds, they will be accepted receive() external payable {} // Contract supports ERC-721, ERC-2981 and ERC-4906 function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, IERC721A, ERC721A) returns (bool) { return super.supportsInterface(interfaceId) || type(IERC2981).interfaceId == interfaceId || bytes4(0x49064906) == interfaceId; } //Implementation for OpenSea's operator filter function setApprovalForAll(address operator, bool approved) public override (ERC721A, IERC721A) onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } //Implementation for OpenSea's operator filter function approve(address operator, uint256 tokenId) public payable override (ERC721A, IERC721A) onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } //Implementation for OpenSea's operator filter function transferFrom(address from, address to, uint256 tokenId) public payable override (ERC721A, IERC721A) onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } //Implementation for OpenSea's operator filter function safeTransferFrom(address from, address to, uint256 tokenId) public payable override (ERC721A, IERC721A) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } //Implementation for OpenSea's operator filter function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public payable override (ERC721A, IERC721A) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } }
//The code below is taken from https://eips.ethereum.org/EIPS/eip-4906 //and adapted to be used with ERC721A // SPDX-License-Identifier: CC0-1.0 pragma solidity ^0.8.0; import "erc721a/contracts/ERC721A.sol"; /// @title EIP-721 Metadata Update Extension interface IERC4906A is IERC721A { /// @dev This event emits when the metadata of a token is changed. /// So that the third-party platforms such as NFT market could /// timely update the images and related attributes of the NFT. event MetadataUpdate(uint256 _tokenId); /// @dev This event emits when the metadata of a range of tokens is changed. /// So that the third-party platforms such as NFT market could /// timely update the images and related attributes of the NFTs. event BatchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.8; import "erc721a/contracts/extensions/ERC721AQueryable.sol"; /* @title ERC721ASnapshotable * @author minimizer <[email protected]>; https://minimizer.art/ * * This contract extends the ERC721AQueryable contract and adds snapshoting capability: * * - The original owner of a given token is always remembered, in a gas efficient way by only * storing the original owner at the time the token is transfered to the second owner. * * - _takeSnapshot() creates a new snapshot (starting at 1) and stores the corresponding time. * * - Any transfers after any snapshots have been taken perform a similar recording of ownership * as the original owner. As a result, _snapshotTokenOwnershipOf(snapshotId, tokenId) will * always return which address held the given token as of the time of the given snapshot. * * * Not implemented: * * - balanceOf() or tokensOfOwner() for a given snapshot, as this would require additional gas * for storage upon each transfer. * * - Exposing whether token is burned, as not required for Infinite Scribble. */ contract ERC721ASnapshotable is ERC721AQueryable { struct SnapshotInfo { uint timestamp; uint totalMinted; } mapping(uint => SnapshotInfo) private _snapshots; uint private _latestSnapshotNumber = 0; mapping(uint => mapping(uint => TokenOwnership)) private _snapshotTokenOwnerships; constructor(string memory name, string memory symbol) ERC721A(name, symbol) {} modifier validSnapshot(uint snapshotNumber) { require(snapshotNumber > 0 && snapshotNumber <= _latestSnapshotNumber, 'Invalid snapshot'); _; } function _latestSnapshot() internal view returns (uint) { return _latestSnapshotNumber; } function _takeSnapshot() internal { _latestSnapshotNumber+=1; _snapshots[_latestSnapshotNumber] = SnapshotInfo(block.timestamp, _totalMinted()); } function _snapshotInfo(uint snapshotNumber) internal view validSnapshot(snapshotNumber) returns (SnapshotInfo memory) { return _snapshots[snapshotNumber]; } function _originalTokenOwnershipOf(uint tokenId) internal view returns (TokenOwnership memory) { require(tokenId < _totalMinted(), 'Invalid tokenId'); return _retrieveSnapshotTokenOwnershipOf(0, tokenId); } function _snapshotTokenOwnershipOf(uint snapshotNumber, uint tokenId) internal view validSnapshot(snapshotNumber) returns (TokenOwnership memory) { require(tokenId < _snapshots[snapshotNumber].totalMinted, 'Invalid tokenId for snapshot'); return _retrieveSnapshotTokenOwnershipOf(snapshotNumber, tokenId); } function _retrieveSnapshotTokenOwnershipOf(uint snapshotNumber, uint tokenId) private view returns (TokenOwnership memory) { for(uint i=snapshotNumber;i<=_latestSnapshotNumber;i++) { if(_snapshotTokenOwnerships[i][tokenId].addr != address(0) || _snapshotTokenOwnerships[i][tokenId].burned) { return _snapshotTokenOwnerships[i][tokenId]; } } if(_ownershipAt(tokenId).burned) { return _ownershipAt(tokenId); } return _ownershipOf(tokenId); } function _beforeTokenTransfers(address from, address /*to unused*/, uint tokenId, uint /*quantity always 1 for non-mint operations*/) internal virtual override { if(from != address(0)) { if(_snapshotTokenOwnerships[_latestSnapshotNumber][tokenId].addr == address(0)) { _snapshotTokenOwnerships[_latestSnapshotNumber][tokenId] = _ownershipOf(tokenId); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* @title BitSequence * @author minimizer <[email protected]>; https://minimizer.art/ * * Based on OpenZeppelin's BitMap, this library allows the user to store a series of booleans * sequentially indexed at zero, and find the first index at which the boolean is set to true * starting at a given index and working backwards. * * The use case is to assist in storing and efficiently retrieving the index of data stored * in a corresponding sparsely populated dataset. For example if five tokens have the same * attributea value it can be stored in just the id of the first token, and all other ones can * look back at that token's value, using the BitSequence to find the correct index. */ struct BitSequence { mapping(uint => uint) bits; } using BitSequenceLib for BitSequence global; library BitSequenceLib { //Bits can only be set, not unset. This code is very much borrowed from BitMap function set(BitSequence storage sequence, uint index) internal { sequence.bits[index >> 8] |= (1 << (index & 0xff)); } //Works backwards looking for a given index to be set. Returns -1 if it can't find any bits set function firstSet(BitSequence storage sequence, uint startingIndex) internal view returns (int) { unchecked { int initialBucket = int(startingIndex >> 8); for(int bucket = initialBucket; bucket >= 0; bucket--) { uint bits = sequence.bits[uint(bucket)]; if(bits>0) { int slot = findFirstSetBitFromIndex(bits, int(bucket==initialBucket ? startingIndex & 0xff : 255)); if(slot >= 0) { return slot + (bucket << 8); } } } return -1; } } //Helper function which looks within a 256-bit uint to see which bit is set, working backwards from index function findFirstSetBitFromIndex(uint bits, int index) internal pure returns (int) { //check the 256 bits in groups of 16 to see if there are any bits set //then if a group has bits set, check each bit sequentially unchecked { while(index >=0) { int nextGroupIndex = (index >> 4 << 4) - 1; if((bits & (0xffff << (uint(index) >> 4 << 4)) == 0)) { index = nextGroupIndex; } else { while(index > nextGroupIndex) { if(bits & (1 << uint(index)) != 0) { return int(index); } index--; } } } } return -1; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.8; /* @title ArtGenerator * @author minimizer <[email protected]>; https://minimizer.art/ * * For Infininte Scribble, this is the interface between the minting contract and the artwork code. * Apart from name() and symbol() for ERC721Metadata, it provides tokenURI() which is passed all the data * needed to generate a given piece. */ interface ArtGenerator { function name() external view returns (string memory); function symbol() external view returns (string memory); function tokenURI(uint tokenId, bytes32 hash, uint8 widthRatio, uint8 heightRatio) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. */ abstract contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = 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(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
// 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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {OperatorFilterer} from "./OperatorFilterer.sol"; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {} }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of ERC721AQueryable. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721AQueryable.sol'; import '../ERC721A.sol'; /** * @title ERC721AQueryable. * * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] calldata tokenIds) external view virtual override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view virtual override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @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`, * 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 be 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, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @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 payable; /** * @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); // ============================================================= // IERC721Metadata // ============================================================= /** * @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); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // 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 {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @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, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @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) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @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) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @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. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @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 memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `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`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ 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. * And also called after one token has been burned. * * `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` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// 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 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.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// 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); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 20000 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract ArtGenerator","name":"artContract","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","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":false,"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_toTokenId","type":"uint256"}],"name":"BatchMetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"MetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"clearOverrideMintParameters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentMintParameters","outputs":[{"components":[{"internalType":"bool","name":"allowMintToSelf","type":"bool"},{"internalType":"bool","name":"allowMintToOthers","type":"bool"},{"internalType":"bool","name":"allowMintFromContract","type":"bool"},{"internalType":"uint256","name":"maxAddresses","type":"uint256"},{"internalType":"uint256","name":"maxPerAddress","type":"uint256"}],"internalType":"struct InfiniteScribbleMinter.MintParameters","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"currentOwnershipOf","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"firstOwnershipOf","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMintingOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"latestSnapshot","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"latestTokenToExtendMint","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint16","name":"num","type":"uint16"}],"internalType":"struct InfiniteScribbleMinter.MintTarget[]","name":"mints","type":"tuple[]"},{"internalType":"uint8","name":"widthRatio","type":"uint8"},{"internalType":"uint8","name":"heightRatio","type":"uint8"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintCloseTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"widthRatio","type":"uint8"},{"internalType":"uint8","name":"heightRatio","type":"uint8"}],"name":"mintOne","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintSettings","outputs":[{"components":[{"internalType":"bool","name":"allowMintToSelf","type":"bool"},{"internalType":"bool","name":"allowMintToOthers","type":"bool"},{"internalType":"bool","name":"allowMintFromContract","type":"bool"},{"internalType":"uint256","name":"maxAddresses","type":"uint256"},{"internalType":"uint256","name":"maxPerAddress","type":"uint256"}],"internalType":"struct InfiniteScribbleMinter.MintParameters","name":"defaultParameters","type":"tuple"},{"components":[{"internalType":"bool","name":"allowMintToSelf","type":"bool"},{"internalType":"bool","name":"allowMintToOthers","type":"bool"},{"internalType":"bool","name":"allowMintFromContract","type":"bool"},{"internalType":"uint256","name":"maxAddresses","type":"uint256"},{"internalType":"uint256","name":"maxPerAddress","type":"uint256"}],"internalType":"struct InfiniteScribbleMinter.MintParameters","name":"overrideParameters","type":"tuple"},{"components":[{"internalType":"bool","name":"isSet","type":"bool"},{"internalType":"bool","name":"isByTime","type":"bool"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"}],"internalType":"struct InfiniteScribbleMinter.OverrideCriteria","name":"overrideCriteria","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"allowMintToSelf","type":"bool"},{"internalType":"bool","name":"allowMintToOthers","type":"bool"},{"internalType":"bool","name":"allowMintFromContract","type":"bool"},{"internalType":"uint256","name":"maxAddresses","type":"uint256"},{"internalType":"uint256","name":"maxPerAddress","type":"uint256"}],"name":"setMintParameters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"allowMintToSelf","type":"bool"},{"internalType":"bool","name":"allowMintToOthers","type":"bool"},{"internalType":"bool","name":"allowMintFromContract","type":"bool"},{"internalType":"uint256","name":"maxAddresses","type":"uint256"},{"internalType":"uint256","name":"maxPerAddress","type":"uint256"},{"internalType":"bool","name":"isByTime","type":"bool"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"}],"name":"setOverrideMintParameters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"},{"internalType":"bool","name":"isPriviledged","type":"bool"}],"name":"setPriviledgedMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint16","name":"royaltyBasisPoints","type":"uint16"}],"name":"setRoyaltyAddressAndBasisPoints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint8","name":"widthRatio","type":"uint8"},{"internalType":"uint8","name":"heightRatio","type":"uint8"}],"name":"setTokenAspectRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"snapshotNumber","type":"uint256"}],"name":"snapshotInfo","outputs":[{"components":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"totalMinted","type":"uint256"}],"internalType":"struct ERC721ASnapshotable.SnapshotInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"snapshotNumber","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"snapshotOwnershipOf","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"takeSnapshot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenAspectRatio","outputs":[{"components":[{"internalType":"uint8","name":"width","type":"uint8"},{"internalType":"uint8","name":"height","type":"uint8"}],"internalType":"struct InfiniteScribbleMinter.AspectRatio","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint8","name":"widthRatio","type":"uint8"},{"internalType":"uint8","name":"heightRatio","type":"uint8"}],"name":"tokenURIAtAspectRatio","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bool","name":"allowMintToSelf","type":"bool"},{"internalType":"bool","name":"allowMintToOthers","type":"bool"},{"internalType":"bool","name":"allowMintFromContract","type":"bool"},{"internalType":"uint256","name":"maxAddresses","type":"uint256"},{"internalType":"uint256","name":"maxPerAddress","type":"uint256"}],"internalType":"struct InfiniteScribbleMinter.MintParameters","name":"mintParameters","type":"tuple"},{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint16","name":"num","type":"uint16"}],"internalType":"struct InfiniteScribbleMinter.MintTarget[]","name":"mints","type":"tuple[]"},{"internalType":"address","name":"msgSender","type":"address"},{"internalType":"address","name":"txOrigin","type":"address"}],"name":"validateMints","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052600060095560001960185560006019553480156200002157600080fd5b506040516200512838038062005128833981016040819052620000449162000402565b806001600160a01b03166306fdde036040518163ffffffff1660e01b8152600401600060405180830381865afa15801562000083573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620000ad91908101906200044a565b816001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa158015620000ec573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200011691908101906200044a565b8181733cc6cdda760b79bafa08df41ecfa224f810dceb660016daaeb6d7670e522a718067333cd4e3b1562000274578015620001c257604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b158015620001a357600080fd5b505af1158015620001b8573d6000803e3d6000fd5b5050505062000274565b6001600160a01b03821615620002135760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af29039060440162000188565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200025a57600080fd5b505af11580156200026f573d6000803e3d6000fd5b505050505b5060029050620002858382620005ae565b506003620002948282620005ae565b50506000805550620002aa9150339050620003b0565b600d80546001600160a01b0319166001600160a01b038316179055620002d8600b546001600160a01b031690565b601c80546001600160a01b03929092166001600160b01b031990921691909117607d60a21b179055506040805160a0808201835260008083526020808401829052838501829052600160608086018290526080958601829052600f805462ffffff199081169091556010839055601183905587519586018852848652858401859052858801859052858201839052948601829052601280549095169094556013819055601455845193840185528184528301819052928201839052018190526015805461ffff1916905560168190556017556200067a565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000602082840312156200041557600080fd5b81516001600160a01b03811681146200042d57600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200045e57600080fd5b82516001600160401b03808211156200047657600080fd5b818501915085601f8301126200048b57600080fd5b815181811115620004a057620004a062000434565b604051601f8201601f19908116603f01168101908382118183101715620004cb57620004cb62000434565b816040528281528886848701011115620004e457600080fd5b600093505b82841015620005085784840186015181850187015292850192620004e9565b600086848301015280965050505050505092915050565b600181811c908216806200053457607f821691505b6020821081036200055557634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620005a957600081815260208120601f850160051c81016020861015620005845750805b601f850160051c820191505b81811015620005a55782815560010162000590565b5050505b505050565b81516001600160401b03811115620005ca57620005ca62000434565b620005e281620005db84546200051f565b846200055b565b602080601f8311600181146200061a5760008415620006015750858301515b600019600386901b1c1916600185901b178555620005a5565b600085815260208120601f198616915b828110156200064b578886015182559484019460019091019084016200062a565b50858210156200066a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b614a9e806200068a6000396000f3fe60806040526004361061030c5760003560e01c806381ba32681161019a578063b3d3d37e116100e1578063e985e9c51161008a578063f2fde38b11610064578063f2fde38b14610a08578063fce4100f14610a28578063ffa68c5214610a3d57600080fd5b8063e985e9c5146108b2578063ed8d458114610908578063f2634afa146109e857600080fd5b8063c87b56dd116100bb578063c87b56dd14610867578063cb22af4c14610887578063dac2e8041461089c57600080fd5b8063b3d3d37e14610812578063b88d4fde14610827578063c23dc68f1461083a57600080fd5b8063910669881161014357806399a2557a1161011d57806399a2557a146107b2578063a22cb465146107d2578063a3864397146107f257600080fd5b8063910669881461075d57806395d89b411461077d5780639794de951461079257600080fd5b8063853828b611610174578063853828b6146106fd57806387ff994f146107125780638da5cb5b1461073257600080fd5b806381ba32681461069b5780638225865d146106bd5780638462151c146106d057600080fd5b806323b872dd1161025e5780635a702e01116102075780636352211e116101e15780636352211e1461064657806370a0823114610666578063715018a61461068657600080fd5b80635a702e01146105be5780635bbb2177146105de57806362172b461461060b57600080fd5b806342842e0e1161023857806342842e0e1461054a578063458cf5451461055d578063473773371461059e57600080fd5b806323b872dd146104c95780632a55205a146104dc57806341f434341461052857600080fd5b8063095ea7b3116102c05780631a2069101161029a5780631a2069101461043f5780631c94525c146104545780632316121c146104a957600080fd5b8063095ea7b3146103f657806316d7d7c01461040957806318160ddd1461041c57600080fd5b8063049877c7116102f1578063049877c71461036f57806306fdde031461038f578063081812fc146103b157600080fd5b806301601a631461031857806301ffc9a71461033a57600080fd5b3661031357005b600080fd5b34801561032457600080fd5b50610338610333366004613e43565b610a52565b005b34801561034657600080fd5b5061035a610355366004613ecc565b610b1f565b60405190151581526020015b60405180910390f35b34801561037b57600080fd5b5061033861038a366004613f24565b610bc8565b34801561039b57600080fd5b506103a4610c36565b6040516103669190613fc5565b3480156103bd57600080fd5b506103d16103cc366004613fd8565b610cc8565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610366565b610338610404366004613ff1565b610d32565b6103386104173660046141a8565b610d4b565b34801561042857600080fd5b50600154600054035b604051908152602001610366565b34801561044b57600080fd5b5061035a61114b565b34801561046057600080fd5b5061047461046f366004614206565b611163565b6040805173ffffffffffffffffffffffffffffffffffffffff909316835267ffffffffffffffff909116602083015201610366565b3480156104b557600080fd5b506103386104c4366004614228565b611186565b6103386104d736600461425f565b6111e4565b3480156104e857600080fd5b506104fc6104f7366004614206565b61121c565b6040805173ffffffffffffffffffffffffffffffffffffffff9093168352602083019190915201610366565b34801561053457600080fd5b506103d16daaeb6d7670e522a718067333cd4e81565b61033861055836600461425f565b61127b565b34801561056957600080fd5b5061057d610578366004613fd8565b6112ad565b60408051825160ff9081168252602093840151169281019290925201610366565b3480156105aa57600080fd5b506104746105b9366004613fd8565b61137a565b3480156105ca57600080fd5b506103386105d936600461429b565b61143e565b3480156105ea57600080fd5b506105fe6105f9366004614361565b6118f6565b60405161036691906143d6565b34801561061757600080fd5b5061062b610626366004613fd8565b6119e0565b60408051825181526020928301519281019290925201610366565b34801561065257600080fd5b506103d1610661366004613fd8565b6119fd565b34801561067257600080fd5b50610431610681366004614460565b611a08565b34801561069257600080fd5b50610338611a8a565b3480156106a757600080fd5b506106b0611a9e565b604051610366919061447b565b6103386106cb3660046144ba565b611bba565b3480156106dc57600080fd5b506106f06106eb366004614460565b611c81565b60405161036691906144e4565b34801561070957600080fd5b50610338611da9565b34801561071e57600080fd5b5061047461072d366004613fd8565b611de0565b34801561073e57600080fd5b50600b5473ffffffffffffffffffffffffffffffffffffffff166103d1565b34801561076957600080fd5b506103a461077836600461451c565b611e72565b34801561078957600080fd5b506103a4612041565b34801561079e57600080fd5b506103386107ad366004614541565b612050565b3480156107be57600080fd5b506106f06107cd3660046145c4565b61215d565b3480156107de57600080fd5b506103386107ed366004614228565b612317565b3480156107fe57600080fd5b5061043161080d366004613fd8565b61232b565b34801561081e57600080fd5b506103386123c2565b61033861083536600461463d565b6123d2565b34801561084657600080fd5b5061085a610855366004613fd8565b61240c565b60405161036691906146e8565b34801561087357600080fd5b506103a4610882366004613fd8565b612484565b34801561089357600080fd5b506104316124a6565b3480156108a857600080fd5b50610431600c5481565b3480156108be57600080fd5b5061035a6108cd36600461473a565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561091457600080fd5b506040805160a08082018352600f5460ff80821615158452610100808304821615156020808701919091526201000093849004831615158688015260105460608088019190915260115460808089019190915288519687018952601254808616151588528481048616151588850152959095048416151586890152601354868201526014548686015287519485018852601554808516151586529290920490921615159183019190915260165494820194909452601754938101939093526109d99283565b60405161036693929190614764565b3480156109f457600080fd5b50610338610a0336600461451c565b6124b1565b348015610a1457600080fd5b50610338610a23366004614460565b6127e3565b348015610a3457600080fd5b50610431612897565b348015610a4957600080fd5b506103386128bf565b610a5a612973565b6040805160a08101825295151580875294151560208701819052931515908601819052606086018390526080909501819052600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff90951694909417610100909302929092177fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff166201000090940293909317909155601091909155601155565b6000610b2a826129f4565b80610b7657507f2a55205a000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b80610bc257507f49064906000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b610bd0612973565b601c805461ffff90921674010000000000000000000000000000000000000000027fffffffffffffffffffff0000000000000000000000000000000000000000000090921673ffffffffffffffffffffffffffffffffffffffff90931692909217179055565b606060028054610c4590614810565b80601f0160208091040260200160405190810160405280929190818152602001828054610c7190614810565b8015610cbe5780601f10610c9357610100808354040283529160200191610cbe565b820191906000526020600020905b815481529060010190602001808311610ca157829003601f168201915b5050505050905090565b6000610cd382612ad5565b610d09576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5060009081526006602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b81610d3c81612b15565b610d468383612c1a565b505050565b818160008260ff16118015610d63575060008160ff16115b8015610d8157508060ff168260ff166003610d7e919061488c565b10155b8015610d9f57508160ff168160ff166003610d9c919061488c565b10155b610e2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f41737065637420726174696f206e6f74206265747765656e20333a3120616e6460448201527f20313a330000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b610e3761114b565b610e9d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f4d696e74696e6720697320636c6f7365640000000000000000000000000000006044820152606401610e26565b6000855111610f08576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4e6f206d696e74732072657175657374656400000000000000000000000000006044820152606401610e26565b6000610f29600b5473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610f715750336000908152600e602052604090205460ff165b90508015610fa25760005460195414610f9d576001610f8f60005490565b610f9991906148a3565b6018555b610fc6565b610fb5610fad611a9e565b87333261143e565b610fc262127500426148c3565b600c555b6000805490601b818315610fe457610fdf601a85612d05565b610fe7565b60005b8152602080820192909252604090810160002081518083019092525460ff80821680845261010090920481169383019390935290925090881614158061103757508560ff16816020015160ff1614155b156110cd5760408051808201825260ff808a16825288811660208084019182526000878152601b909152939093209151825493518216610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00009094169116179190911790556110cd601a83600881901c600090815260209290925260409091208054600160ff9093169290921b9091179055565b60005b8851811015611133576111218982815181106110ee576110ee6148d6565b6020026020010151600001518a838151811061110c5761110c6148d6565b60200260200101516020015161ffff16612db8565b8061112b81614905565b9150506110d0565b508215611141576000546019555b5050505050505050565b600042600c5410158061115e5750600c54155b905090565b60008060006111728585612dd6565b805160209091015190969095509350505050565b61118e612973565b73ffffffffffffffffffffffffffffffffffffffff919091166000908152600e6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b8273ffffffffffffffffffffffffffffffffffffffff8116331461120b5761120b33612b15565b611216848484612f01565b50505050565b601c54600090819073ffffffffffffffffffffffffffffffffffffffff811690612710906112669074010000000000000000000000000000000000000000900461ffff168661488c565b611270919061493d565b915091509250929050565b8273ffffffffffffffffffffffffffffffffffffffff811633146112a2576112a233612b15565b61121684848461319a565b6040805180820190915260008082526020820152816112cb81612ad5565b611331576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f496e76616c696420746f6b656e496400000000000000000000000000000000006044820152606401610e26565b601b6000611340601a86612d05565b8152602080820192909252604090810160002081518083019092525460ff8082168352610100909104169181019190915291505b50919050565b6000808261138781612ad5565b6113ed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f496e76616c696420746f6b656e496400000000000000000000000000000000006044820152606401610e26565b60006113f8856131b5565b805190915073ffffffffffffffffffffffffffffffffffffffff1661142a5761142085611de0565b9350935050611438565b805160209091015190935091505b50915091565b8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161480611479575083604001515b6114df576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f43616e6e6f74206d696e742066726f6d20636f6e7472616374000000000000006044820152606401610e26565b60006001815b855181101561187f576000868281518110611502576115026148d6565b60200260200101516020015161ffff1611611579576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f496e76616c696420616d6f756e740000000000000000000000000000000000006044820152606401610e26565b8373ffffffffffffffffffffffffffffffffffffffff168682815181106115a2576115a26148d6565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff1603611636578651611631576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f43616e6e6f74206d696e7420746f2073656c66000000000000000000000000006044820152606401610e26565b6116a1565b86602001516116a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f43616e6e6f74206d696e7420746f206f746865727300000000000000000000006044820152606401610e26565b60008682815181106116b5576116b56148d6565b602090810291909101810151015161ffff169050600182156117fa5783801561174657508783815181106116eb576116eb6148d6565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff16886001850381518110611722576117226148d6565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff16105b9350836117fa5760005b838110156117f85788848151811061176a5761176a6148d6565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff1689828151811061179e5761179e6148d6565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff16036117f0578881815181106117d7576117d76148d6565b60200260200101516020015161ffff1683019250600091505b600101611750565b505b8860800151821115611868576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4578636565646564206d617820706572206164647265737300000000000000006044820152606401610e26565b8015611875576001909401935b50506001016114e5565b5085606001518211156118ee576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4578636565646564206d617820616464726573736573000000000000000000006044820152606401610e26565b505050505050565b60608160008167ffffffffffffffff8111156119145761191461401b565b60405190808252806020026020018201604052801561198457816020015b6040805160808101825260008082526020808301829052928201819052606082015282527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9092019101816119325790505b50905060005b8281146119d7576119b28686838181106119a6576119a66148d6565b9050602002013561240c565b8282815181106119c4576119c46148d6565b602090810291909101015260010161198a565b50949350505050565b6040805180820190915260008082526020820152610bc28261324d565b6000610bc282613305565b600073ffffffffffffffffffffffffffffffffffffffff8216611a57576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5073ffffffffffffffffffffffffffffffffffffffff1660009081526005602052604090205467ffffffffffffffff1690565b611a92612973565b611a9c60006133bc565b565b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915260155460ff168015611af95750601654601554610100900460ff16611af45760015460005403611af6565b425b10155b8015611b235750601754601554610100900460ff16611b1e5760015460005403611b20565b425b11155b15611b7157506040805160a08101825260125460ff80821615158352610100820481161515602084015262010000909104161515918101919091526013546060820152601454608082015290565b506040805160a081018252600f5460ff80821615158352610100820481161515602084015262010000909104161515918101919091526010546060820152601154608082015290565b604080516001808252818301909252600091816020015b6040805180820190915260008082526020820152815260200190600190039081611bd15790505090503381600081518110611c0e57611c0e6148d6565b60200260200101516000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600181600081518110611c6157611c616148d6565b60209081029190910181015161ffff909216910152610d46818484610d4b565b60606000806000611c9185611a08565b905060008167ffffffffffffffff811115611cae57611cae61401b565b604051908082528060200260200182016040528015611cd7578160200160208202803683370190505b5060408051608081018252600080825260208201819052918101829052606081018290529192505b838614611d9d57611d0f81613433565b91508160400151611d9557815173ffffffffffffffffffffffffffffffffffffffff1615611d3c57815194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611d955780838780600101985081518110611d8857611d886148d6565b6020026020010181815250505b600101611cff565b50909695505050505050565b611db1612973565b60405133904780156108fc02916000818181858888f19350505050158015611ddd573d6000803e3d6000fd5b50565b60008082611ded81612ad5565b611e53576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f496e76616c696420746f6b656e496400000000000000000000000000000000006044820152606401610e26565b6000611e5e856134d8565b805160209091015190945092505050915091565b6060828260008260ff16118015611e8c575060008160ff16115b8015611eaa57508060ff168260ff166003611ea7919061488c565b10155b8015611ec857508160ff168160ff166003611ec5919061488c565b10155b611f53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f41737065637420726174696f206e6f74206265747765656e20333a3120616e6460448201527f20313a33000000000000000000000000000000000000000000000000000000006064820152608401610e26565b333214611f5f57600080fd5b600d5473ffffffffffffffffffffffffffffffffffffffff16630be6d21a87611f878161232b565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526004810192909252602482015260ff808916604483015287166064820152608401600060405180830381865afa158015611ff1573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526120379190810190614978565b9695505050505050565b606060038054610c4590614810565b612058612973565b6040805160a081018252981515808a529715156020808b018290529715158a83018190526060808c0189905260809b8c01889052601280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00009081167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909d169c909c17610100948502177fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff166201000090930292909217909155601397909755601495909555805198890181526001808a52931515968901879052880182905296909301869052601580549095169390910292909217909117909155601655601755565b6060818310612198576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806121a460005490565b9050808411156121b2578093505b60006121bd87611a08565b9050848610156121dc57858503818110156121d6578091505b506121e0565b5060005b60008167ffffffffffffffff8111156121fb576121fb61401b565b604051908082528060200260200182016040528015612224578160200160208202803683370190505b5090508160000361223a57935061231092505050565b60006122458861240c565b905060008160400151612256575080515b885b8881141580156122685750848714155b156123045761227681613433565b925082604001516122fc57825173ffffffffffffffffffffffffffffffffffffffff16156122a357825191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036122fc57808488806001019950815181106122ef576122ef6148d6565b6020026020010181815250505b600101612258565b50505092835250909150505b9392505050565b8161232181612b15565b610d468383613576565b60008060006123398461137a565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606084901b1660208201527fffffffffffffffff00000000000000000000000000000000000000000000000060c083901b166034820152603c81018790529193509150605c016040516020818303038152906040528051906020012092505050919050565b6123ca612973565b611a9c61360d565b8373ffffffffffffffffffffffffffffffffffffffff811633146123f9576123f933612b15565b61240585858585613666565b5050505050565b60408051608080820183526000808352602080840182905283850182905260608085018390528551938401865282845290830182905293820181905292810183905290915060005483106124605792915050565b61246983613433565b905080604001511561247b5792915050565b612310836134d8565b60606000612491836112ad565b90506123108382600001518360200151611e72565b600061115e60095490565b826124bb816119fd565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461254f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f43616c6c6572206973206e6f7420686f6c6465720000000000000000000000006044820152606401610e26565b828260008260ff16118015612567575060008160ff16115b801561258557508060ff168260ff166003612582919061488c565b10155b80156125a357508160ff168160ff1660036125a0919061488c565b10155b61262e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f41737065637420726174696f206e6f74206265747765656e20333a3120616e6460448201527f20313a33000000000000000000000000000000000000000000000000000000006064820152608401610e26565b60005486101561271757601b6000612647601a89612d05565b8152602001908152602001600020601b600088600161266691906148c3565b815260208101919091526040016000208154815460ff9182167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082168117845593547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000909116909317610100938490049091169092029190911790556127176126f08760016148c3565b600881901c6000908152601a602052604090208054600160ff9093169290921b9091179055565b60408051808201825260ff8088168252868116602080840191825260008b8152601b909152939093209151825493518216610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00009094169116179190911790556127a8601a87600881901c600090815260209290925260409091208054600160ff9093169290921b9091179055565b6040518681527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a1505050505050565b6127eb612973565b73ffffffffffffffffffffffffffffffffffffffff811661288e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610e26565b611ddd816133bc565b60008054601954146128b85760016128ae60005490565b61115e91906148a3565b5060185490565b6128c7612973565b6040805160a0810182526000808252602080830182905282840182905260608084018390526080938401839052601280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000016905560138390556014839055845193840185528284529083018290529282018190529101819052601580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001690556016819055601755565b600b5473ffffffffffffffffffffffffffffffffffffffff163314611a9c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e26565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083161480612a8757507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b80610bc25750507fffffffff00000000000000000000000000000000000000000000000000000000167f5b5e139f000000000000000000000000000000000000000000000000000000001490565b6000805482108015610bc25750506000908152600460205260409020547c0100000000000000000000000000000000000000000000000000000000161590565b6daaeb6d7670e522a718067333cd4e3b15611ddd576040517fc617113400000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015612ba8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bcc91906149ef565b611ddd576040517fede71dcc00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82166004820152602401610e26565b6000612c25826119fd565b90503373ffffffffffffffffffffffffffffffffffffffff821614612c8457612c4e81336108cd565b612c84576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000600882901c805b60008112612d8e576000818152602086905260409020548015612d66576000612d4882858514612d3f5760ff6136d0565b8760ff166136d0565b905060008112612d6457600883901b8101945050505050610bc2565b505b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01612d0e565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff949350505050565b612dd28282604051806020016040528060008152506137b0565b5050565b60408051608081018252600080825260208201819052918101829052606081019190915282600081118015612e0d57506009548111155b612e73576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f496e76616c696420736e617073686f74000000000000000000000000000000006044820152606401610e26565b6000848152600860205260409020600101548310612eed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f496e76616c696420746f6b656e496420666f7220736e617073686f74000000006044820152606401610e26565b612ef7848461383c565b91505b5092915050565b6000612f0c82613305565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612f73576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260066020526040902080543380821473ffffffffffffffffffffffffffffffffffffffff881690911417612fe657612fb086336108cd565b612fe6576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8516613033576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61304086868660016139e8565b801561304b57600082555b73ffffffffffffffffffffffffffffffffffffffff86811660009081526005602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019055918716808252919020805460010190554260a01b177c0200000000000000000000000000000000000000000000000000000000176000858152600460205260408120919091557c02000000000000000000000000000000000000000000000000000000008416900361313a576001840160008181526004602052604081205490036131385760005481146131385760008181526004602052604090208490555b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46118ee565b610d46838383604051806020016040528060008152506123d2565b604080516080810182526000808252602082018190529181018290526060810182905290548210613242576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f496e76616c696420746f6b656e496400000000000000000000000000000000006044820152606401610e26565b610bc260008361383c565b60408051808201909152600080825260208201528160008111801561327457506009548111155b6132da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f496e76616c696420736e617073686f74000000000000000000000000000000006044820152606401610e26565b5050600090815260086020908152604091829020825180840190935280548352600101549082015290565b60008160005481101561338a57600081815260046020526040812054907c010000000000000000000000000000000000000000000000000000000082169003613388575b8060000361231057507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01600081815260046020526040902054613349565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260046020526040902054610bc2906040805160808101825273ffffffffffffffffffffffffffffffffffffffff8316815260a083901c67ffffffffffffffff1660208201527c0100000000000000000000000000000000000000000000000000000000831615159181019190915260e89190911c606082015290565b604080516080810182526000808252602082018190529181018290526060810191909152610bc261350883613305565b6040805160808101825273ffffffffffffffffffffffffffffffffffffffff8316815260a083901c67ffffffffffffffff1660208201527c0100000000000000000000000000000000000000000000000000000000831615159181019190915260e89190911c606082015290565b33600081815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60016009600082825461362091906148c3565b92505081905550604051806040016040528042815260200161364160005490565b9052600954600090815260086020908152604090912082518155910151600190910155565b6136718484846111e4565b73ffffffffffffffffffffffffffffffffffffffff83163b156112165761369a84848484613b71565b611216576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b60008212613788577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600483811d901b0161ffff7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff084161b841660000361373c57809250613782565b80831315613782576001831b8416156137585782915050610bc2565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9092019161373c565b506136d3565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff92915050565b6137ba8383613cea565b73ffffffffffffffffffffffffffffffffffffffff83163b15610d46576000548281035b6137f16000868380600101945086613b71565b613827576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106137de57816000541461240557600080fd5b604080516080810182526000808252602082018190529181018290526060810191909152825b60095481116139bc576000818152600a6020908152604080832086845290915290205473ffffffffffffffffffffffffffffffffffffffff161515806138e157506000818152600a602090815260408083208684529091529020547c0100000000000000000000000000000000000000000000000000000000900460ff165b156139aa576000908152600a602090815260408083208584528252918290208251608081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c0100000000000000000000000000000000000000000000000000000000820460ff161515928101929092527d010000000000000000000000000000000000000000000000000000000000900462ffffff1660608201529050610bc2565b806139b481614905565b915050613862565b506139c682613433565b60400151156139df576139d882613433565b9050610bc2565b612310826134d8565b73ffffffffffffffffffffffffffffffffffffffff841615611216576009546000908152600a6020908152604080832085845290915290205473ffffffffffffffffffffffffffffffffffffffff1661121657613a44826134d8565b6009546000908152600a6020908152604080832086845282529182902083518154928501519385015160609095015162ffffff167d010000000000000000000000000000000000000000000000000000000000027cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9515157c010000000000000000000000000000000000000000000000000000000002959095167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff67ffffffffffffffff90951674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090941673ffffffffffffffffffffffffffffffffffffffff9092169190911792909217929092161791909117905550505050565b6040517f150b7a0200000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290613bcc903390899088908890600401614a0c565b6020604051808303816000875af1925050508015613c25575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613c2291810190614a4b565b60015b613c9c573d808015613c53576040519150601f19603f3d011682016040523d82523d6000602084013e613c58565b606091505b508051600003613c94576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050949350505050565b6000805490829003613d28576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613d3560008483856139e8565b73ffffffffffffffffffffffffffffffffffffffff831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114613df157808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101613db9565b5081600003613e2c576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005550505050565b8015158114611ddd57600080fd5b600080600080600060a08688031215613e5b57600080fd5b8535613e6681613e35565b94506020860135613e7681613e35565b93506040860135613e8681613e35565b94979396509394606081013594506080013592915050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611ddd57600080fd5b600060208284031215613ede57600080fd5b813561231081613e9e565b803573ffffffffffffffffffffffffffffffffffffffff81168114613f0d57600080fd5b919050565b803561ffff81168114613f0d57600080fd5b60008060408385031215613f3757600080fd5b613f4083613ee9565b9150613f4e60208401613f12565b90509250929050565b60005b83811015613f72578181015183820152602001613f5a565b50506000910152565b60008151808452613f93816020860160208601613f57565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006123106020830184613f7b565b600060208284031215613fea57600080fd5b5035919050565b6000806040838503121561400457600080fd5b61400d83613ee9565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040805190810167ffffffffffffffff8111828210171561406d5761406d61401b565b60405290565b60405160a0810167ffffffffffffffff8111828210171561406d5761406d61401b565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156140dd576140dd61401b565b604052919050565b600082601f8301126140f657600080fd5b8135602067ffffffffffffffff8211156141125761411261401b565b614120818360051b01614096565b82815260069290921b8401810191818101908684111561413f57600080fd5b8286015b8481101561418c576040818903121561415c5760008081fd5b61416461404a565b61416d82613ee9565b815261417a858301613f12565b81860152835291830191604001614143565b509695505050505050565b803560ff81168114613f0d57600080fd5b6000806000606084860312156141bd57600080fd5b833567ffffffffffffffff8111156141d457600080fd5b6141e0868287016140e5565b9350506141ef60208501614197565b91506141fd60408501614197565b90509250925092565b6000806040838503121561421957600080fd5b50508035926020909101359150565b6000806040838503121561423b57600080fd5b61424483613ee9565b9150602083013561425481613e35565b809150509250929050565b60008060006060848603121561427457600080fd5b61427d84613ee9565b925061428b60208501613ee9565b9150604084013590509250925092565b6000806000808486036101008112156142b357600080fd5b60a08112156142c157600080fd5b506142ca614073565b85356142d581613e35565b815260208601356142e581613e35565b602082015260408601356142f881613e35565b60408201526060868101359082015260808087013590820152935060a085013567ffffffffffffffff81111561432d57600080fd5b614339878288016140e5565b93505061434860c08601613ee9565b915061435660e08601613ee9565b905092959194509250565b6000806020838503121561437457600080fd5b823567ffffffffffffffff8082111561438c57600080fd5b818501915085601f8301126143a057600080fd5b8135818111156143af57600080fd5b8660208260051b85010111156143c457600080fd5b60209290920196919550909350505050565b6020808252825182820181905260009190848201906040850190845b81811015611d9d5761444d83855173ffffffffffffffffffffffffffffffffffffffff815116825267ffffffffffffffff602082015116602083015260408101511515604083015262ffffff60608201511660608301525050565b92840192608092909201916001016143f2565b60006020828403121561447257600080fd5b61231082613ee9565b60a08101610bc2828480511515825260208101511515602083015260408101511515604083015260608101516060830152608081015160808301525050565b600080604083850312156144cd57600080fd5b6144d683614197565b9150613f4e60208401614197565b6020808252825182820181905260009190848201906040850190845b81811015611d9d57835183529284019291840191600101614500565b60008060006060848603121561453157600080fd5b833592506141ef60208501614197565b600080600080600080600080610100898b03121561455e57600080fd5b883561456981613e35565b9750602089013561457981613e35565b9650604089013561458981613e35565b9550606089013594506080890135935060a08901356145a781613e35565b979a969950949793969295929450505060c08201359160e0013590565b6000806000606084860312156145d957600080fd5b6145e284613ee9565b95602085013595506040909401359392505050565b600067ffffffffffffffff8211156146115761461161401b565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b6000806000806080858703121561465357600080fd5b61465c85613ee9565b935061466a60208601613ee9565b925060408501359150606085013567ffffffffffffffff81111561468d57600080fd5b8501601f8101871361469e57600080fd5b80356146b16146ac826145f7565b614096565b8181528860208385010111156146c657600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b815173ffffffffffffffffffffffffffffffffffffffff16815260208083015167ffffffffffffffff169082015260408083015115159082015260608083015162ffffff169082015260808101610bc2565b6000806040838503121561474d57600080fd5b61475683613ee9565b9150613f4e60208401613ee9565b6101c081016147a4828680511515825260208101511515602083015260408101511515604083015260608101516060830152608081015160808301525050565b8351151560a08301526020840151151560c08301526040840151151560e0830152606084015161010083015260808401516101208301528251151561014083015260208301511515610160830152604083015161018083015260608301516101a0830152949350505050565b600181811c9082168061482457607f821691505b602082108103611374577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082028115828204841417610bc257610bc261485d565b8181036000831280158383131683831282161715612efa57612efa61485d565b80820180821115610bc257610bc261485d565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036149365761493661485d565b5060010190565b600082614973577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60006020828403121561498a57600080fd5b815167ffffffffffffffff8111156149a157600080fd5b8201601f810184136149b257600080fd5b80516149c06146ac826145f7565b8181528560208385010111156149d557600080fd5b6149e6826020830160208601613f57565b95945050505050565b600060208284031215614a0157600080fd5b815161231081613e35565b600073ffffffffffffffffffffffffffffffffffffffff8087168352808616602084015250836040830152608060608301526120376080830184613f7b565b600060208284031215614a5d57600080fd5b815161231081613e9e56fea26469706673582212206982320b4e867dd9422760e2b6053330236b44d3c3d727224baa541824bd8d4f64736f6c6343000811003300000000000000000000000015afab0d6f995f4bfe347af8119374351cae9e47
Deployed Bytecode
0x60806040526004361061030c5760003560e01c806381ba32681161019a578063b3d3d37e116100e1578063e985e9c51161008a578063f2fde38b11610064578063f2fde38b14610a08578063fce4100f14610a28578063ffa68c5214610a3d57600080fd5b8063e985e9c5146108b2578063ed8d458114610908578063f2634afa146109e857600080fd5b8063c87b56dd116100bb578063c87b56dd14610867578063cb22af4c14610887578063dac2e8041461089c57600080fd5b8063b3d3d37e14610812578063b88d4fde14610827578063c23dc68f1461083a57600080fd5b8063910669881161014357806399a2557a1161011d57806399a2557a146107b2578063a22cb465146107d2578063a3864397146107f257600080fd5b8063910669881461075d57806395d89b411461077d5780639794de951461079257600080fd5b8063853828b611610174578063853828b6146106fd57806387ff994f146107125780638da5cb5b1461073257600080fd5b806381ba32681461069b5780638225865d146106bd5780638462151c146106d057600080fd5b806323b872dd1161025e5780635a702e01116102075780636352211e116101e15780636352211e1461064657806370a0823114610666578063715018a61461068657600080fd5b80635a702e01146105be5780635bbb2177146105de57806362172b461461060b57600080fd5b806342842e0e1161023857806342842e0e1461054a578063458cf5451461055d578063473773371461059e57600080fd5b806323b872dd146104c95780632a55205a146104dc57806341f434341461052857600080fd5b8063095ea7b3116102c05780631a2069101161029a5780631a2069101461043f5780631c94525c146104545780632316121c146104a957600080fd5b8063095ea7b3146103f657806316d7d7c01461040957806318160ddd1461041c57600080fd5b8063049877c7116102f1578063049877c71461036f57806306fdde031461038f578063081812fc146103b157600080fd5b806301601a631461031857806301ffc9a71461033a57600080fd5b3661031357005b600080fd5b34801561032457600080fd5b50610338610333366004613e43565b610a52565b005b34801561034657600080fd5b5061035a610355366004613ecc565b610b1f565b60405190151581526020015b60405180910390f35b34801561037b57600080fd5b5061033861038a366004613f24565b610bc8565b34801561039b57600080fd5b506103a4610c36565b6040516103669190613fc5565b3480156103bd57600080fd5b506103d16103cc366004613fd8565b610cc8565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610366565b610338610404366004613ff1565b610d32565b6103386104173660046141a8565b610d4b565b34801561042857600080fd5b50600154600054035b604051908152602001610366565b34801561044b57600080fd5b5061035a61114b565b34801561046057600080fd5b5061047461046f366004614206565b611163565b6040805173ffffffffffffffffffffffffffffffffffffffff909316835267ffffffffffffffff909116602083015201610366565b3480156104b557600080fd5b506103386104c4366004614228565b611186565b6103386104d736600461425f565b6111e4565b3480156104e857600080fd5b506104fc6104f7366004614206565b61121c565b6040805173ffffffffffffffffffffffffffffffffffffffff9093168352602083019190915201610366565b34801561053457600080fd5b506103d16daaeb6d7670e522a718067333cd4e81565b61033861055836600461425f565b61127b565b34801561056957600080fd5b5061057d610578366004613fd8565b6112ad565b60408051825160ff9081168252602093840151169281019290925201610366565b3480156105aa57600080fd5b506104746105b9366004613fd8565b61137a565b3480156105ca57600080fd5b506103386105d936600461429b565b61143e565b3480156105ea57600080fd5b506105fe6105f9366004614361565b6118f6565b60405161036691906143d6565b34801561061757600080fd5b5061062b610626366004613fd8565b6119e0565b60408051825181526020928301519281019290925201610366565b34801561065257600080fd5b506103d1610661366004613fd8565b6119fd565b34801561067257600080fd5b50610431610681366004614460565b611a08565b34801561069257600080fd5b50610338611a8a565b3480156106a757600080fd5b506106b0611a9e565b604051610366919061447b565b6103386106cb3660046144ba565b611bba565b3480156106dc57600080fd5b506106f06106eb366004614460565b611c81565b60405161036691906144e4565b34801561070957600080fd5b50610338611da9565b34801561071e57600080fd5b5061047461072d366004613fd8565b611de0565b34801561073e57600080fd5b50600b5473ffffffffffffffffffffffffffffffffffffffff166103d1565b34801561076957600080fd5b506103a461077836600461451c565b611e72565b34801561078957600080fd5b506103a4612041565b34801561079e57600080fd5b506103386107ad366004614541565b612050565b3480156107be57600080fd5b506106f06107cd3660046145c4565b61215d565b3480156107de57600080fd5b506103386107ed366004614228565b612317565b3480156107fe57600080fd5b5061043161080d366004613fd8565b61232b565b34801561081e57600080fd5b506103386123c2565b61033861083536600461463d565b6123d2565b34801561084657600080fd5b5061085a610855366004613fd8565b61240c565b60405161036691906146e8565b34801561087357600080fd5b506103a4610882366004613fd8565b612484565b34801561089357600080fd5b506104316124a6565b3480156108a857600080fd5b50610431600c5481565b3480156108be57600080fd5b5061035a6108cd36600461473a565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561091457600080fd5b506040805160a08082018352600f5460ff80821615158452610100808304821615156020808701919091526201000093849004831615158688015260105460608088019190915260115460808089019190915288519687018952601254808616151588528481048616151588850152959095048416151586890152601354868201526014548686015287519485018852601554808516151586529290920490921615159183019190915260165494820194909452601754938101939093526109d99283565b60405161036693929190614764565b3480156109f457600080fd5b50610338610a0336600461451c565b6124b1565b348015610a1457600080fd5b50610338610a23366004614460565b6127e3565b348015610a3457600080fd5b50610431612897565b348015610a4957600080fd5b506103386128bf565b610a5a612973565b6040805160a08101825295151580875294151560208701819052931515908601819052606086018390526080909501819052600f80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff90951694909417610100909302929092177fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff166201000090940293909317909155601091909155601155565b6000610b2a826129f4565b80610b7657507f2a55205a000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b80610bc257507f49064906000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b610bd0612973565b601c805461ffff90921674010000000000000000000000000000000000000000027fffffffffffffffffffff0000000000000000000000000000000000000000000090921673ffffffffffffffffffffffffffffffffffffffff90931692909217179055565b606060028054610c4590614810565b80601f0160208091040260200160405190810160405280929190818152602001828054610c7190614810565b8015610cbe5780601f10610c9357610100808354040283529160200191610cbe565b820191906000526020600020905b815481529060010190602001808311610ca157829003601f168201915b5050505050905090565b6000610cd382612ad5565b610d09576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5060009081526006602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b81610d3c81612b15565b610d468383612c1a565b505050565b818160008260ff16118015610d63575060008160ff16115b8015610d8157508060ff168260ff166003610d7e919061488c565b10155b8015610d9f57508160ff168160ff166003610d9c919061488c565b10155b610e2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f41737065637420726174696f206e6f74206265747765656e20333a3120616e6460448201527f20313a330000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b610e3761114b565b610e9d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f4d696e74696e6720697320636c6f7365640000000000000000000000000000006044820152606401610e26565b6000855111610f08576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4e6f206d696e74732072657175657374656400000000000000000000000000006044820152606401610e26565b6000610f29600b5473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610f715750336000908152600e602052604090205460ff165b90508015610fa25760005460195414610f9d576001610f8f60005490565b610f9991906148a3565b6018555b610fc6565b610fb5610fad611a9e565b87333261143e565b610fc262127500426148c3565b600c555b6000805490601b818315610fe457610fdf601a85612d05565b610fe7565b60005b8152602080820192909252604090810160002081518083019092525460ff80821680845261010090920481169383019390935290925090881614158061103757508560ff16816020015160ff1614155b156110cd5760408051808201825260ff808a16825288811660208084019182526000878152601b909152939093209151825493518216610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00009094169116179190911790556110cd601a83600881901c600090815260209290925260409091208054600160ff9093169290921b9091179055565b60005b8851811015611133576111218982815181106110ee576110ee6148d6565b6020026020010151600001518a838151811061110c5761110c6148d6565b60200260200101516020015161ffff16612db8565b8061112b81614905565b9150506110d0565b508215611141576000546019555b5050505050505050565b600042600c5410158061115e5750600c54155b905090565b60008060006111728585612dd6565b805160209091015190969095509350505050565b61118e612973565b73ffffffffffffffffffffffffffffffffffffffff919091166000908152600e6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b8273ffffffffffffffffffffffffffffffffffffffff8116331461120b5761120b33612b15565b611216848484612f01565b50505050565b601c54600090819073ffffffffffffffffffffffffffffffffffffffff811690612710906112669074010000000000000000000000000000000000000000900461ffff168661488c565b611270919061493d565b915091509250929050565b8273ffffffffffffffffffffffffffffffffffffffff811633146112a2576112a233612b15565b61121684848461319a565b6040805180820190915260008082526020820152816112cb81612ad5565b611331576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f496e76616c696420746f6b656e496400000000000000000000000000000000006044820152606401610e26565b601b6000611340601a86612d05565b8152602080820192909252604090810160002081518083019092525460ff8082168352610100909104169181019190915291505b50919050565b6000808261138781612ad5565b6113ed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f496e76616c696420746f6b656e496400000000000000000000000000000000006044820152606401610e26565b60006113f8856131b5565b805190915073ffffffffffffffffffffffffffffffffffffffff1661142a5761142085611de0565b9350935050611438565b805160209091015190935091505b50915091565b8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161480611479575083604001515b6114df576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f43616e6e6f74206d696e742066726f6d20636f6e7472616374000000000000006044820152606401610e26565b60006001815b855181101561187f576000868281518110611502576115026148d6565b60200260200101516020015161ffff1611611579576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f496e76616c696420616d6f756e740000000000000000000000000000000000006044820152606401610e26565b8373ffffffffffffffffffffffffffffffffffffffff168682815181106115a2576115a26148d6565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff1603611636578651611631576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f43616e6e6f74206d696e7420746f2073656c66000000000000000000000000006044820152606401610e26565b6116a1565b86602001516116a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f43616e6e6f74206d696e7420746f206f746865727300000000000000000000006044820152606401610e26565b60008682815181106116b5576116b56148d6565b602090810291909101810151015161ffff169050600182156117fa5783801561174657508783815181106116eb576116eb6148d6565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff16886001850381518110611722576117226148d6565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff16105b9350836117fa5760005b838110156117f85788848151811061176a5761176a6148d6565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff1689828151811061179e5761179e6148d6565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff16036117f0578881815181106117d7576117d76148d6565b60200260200101516020015161ffff1683019250600091505b600101611750565b505b8860800151821115611868576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4578636565646564206d617820706572206164647265737300000000000000006044820152606401610e26565b8015611875576001909401935b50506001016114e5565b5085606001518211156118ee576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4578636565646564206d617820616464726573736573000000000000000000006044820152606401610e26565b505050505050565b60608160008167ffffffffffffffff8111156119145761191461401b565b60405190808252806020026020018201604052801561198457816020015b6040805160808101825260008082526020808301829052928201819052606082015282527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9092019101816119325790505b50905060005b8281146119d7576119b28686838181106119a6576119a66148d6565b9050602002013561240c565b8282815181106119c4576119c46148d6565b602090810291909101015260010161198a565b50949350505050565b6040805180820190915260008082526020820152610bc28261324d565b6000610bc282613305565b600073ffffffffffffffffffffffffffffffffffffffff8216611a57576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5073ffffffffffffffffffffffffffffffffffffffff1660009081526005602052604090205467ffffffffffffffff1690565b611a92612973565b611a9c60006133bc565b565b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915260155460ff168015611af95750601654601554610100900460ff16611af45760015460005403611af6565b425b10155b8015611b235750601754601554610100900460ff16611b1e5760015460005403611b20565b425b11155b15611b7157506040805160a08101825260125460ff80821615158352610100820481161515602084015262010000909104161515918101919091526013546060820152601454608082015290565b506040805160a081018252600f5460ff80821615158352610100820481161515602084015262010000909104161515918101919091526010546060820152601154608082015290565b604080516001808252818301909252600091816020015b6040805180820190915260008082526020820152815260200190600190039081611bd15790505090503381600081518110611c0e57611c0e6148d6565b60200260200101516000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600181600081518110611c6157611c616148d6565b60209081029190910181015161ffff909216910152610d46818484610d4b565b60606000806000611c9185611a08565b905060008167ffffffffffffffff811115611cae57611cae61401b565b604051908082528060200260200182016040528015611cd7578160200160208202803683370190505b5060408051608081018252600080825260208201819052918101829052606081018290529192505b838614611d9d57611d0f81613433565b91508160400151611d9557815173ffffffffffffffffffffffffffffffffffffffff1615611d3c57815194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611d955780838780600101985081518110611d8857611d886148d6565b6020026020010181815250505b600101611cff565b50909695505050505050565b611db1612973565b60405133904780156108fc02916000818181858888f19350505050158015611ddd573d6000803e3d6000fd5b50565b60008082611ded81612ad5565b611e53576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f496e76616c696420746f6b656e496400000000000000000000000000000000006044820152606401610e26565b6000611e5e856134d8565b805160209091015190945092505050915091565b6060828260008260ff16118015611e8c575060008160ff16115b8015611eaa57508060ff168260ff166003611ea7919061488c565b10155b8015611ec857508160ff168160ff166003611ec5919061488c565b10155b611f53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f41737065637420726174696f206e6f74206265747765656e20333a3120616e6460448201527f20313a33000000000000000000000000000000000000000000000000000000006064820152608401610e26565b333214611f5f57600080fd5b600d5473ffffffffffffffffffffffffffffffffffffffff16630be6d21a87611f878161232b565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526004810192909252602482015260ff808916604483015287166064820152608401600060405180830381865afa158015611ff1573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526120379190810190614978565b9695505050505050565b606060038054610c4590614810565b612058612973565b6040805160a081018252981515808a529715156020808b018290529715158a83018190526060808c0189905260809b8c01889052601280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00009081167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909d169c909c17610100948502177fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff166201000090930292909217909155601397909755601495909555805198890181526001808a52931515968901879052880182905296909301869052601580549095169390910292909217909117909155601655601755565b6060818310612198576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806121a460005490565b9050808411156121b2578093505b60006121bd87611a08565b9050848610156121dc57858503818110156121d6578091505b506121e0565b5060005b60008167ffffffffffffffff8111156121fb576121fb61401b565b604051908082528060200260200182016040528015612224578160200160208202803683370190505b5090508160000361223a57935061231092505050565b60006122458861240c565b905060008160400151612256575080515b885b8881141580156122685750848714155b156123045761227681613433565b925082604001516122fc57825173ffffffffffffffffffffffffffffffffffffffff16156122a357825191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036122fc57808488806001019950815181106122ef576122ef6148d6565b6020026020010181815250505b600101612258565b50505092835250909150505b9392505050565b8161232181612b15565b610d468383613576565b60008060006123398461137a565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606084901b1660208201527fffffffffffffffff00000000000000000000000000000000000000000000000060c083901b166034820152603c81018790529193509150605c016040516020818303038152906040528051906020012092505050919050565b6123ca612973565b611a9c61360d565b8373ffffffffffffffffffffffffffffffffffffffff811633146123f9576123f933612b15565b61240585858585613666565b5050505050565b60408051608080820183526000808352602080840182905283850182905260608085018390528551938401865282845290830182905293820181905292810183905290915060005483106124605792915050565b61246983613433565b905080604001511561247b5792915050565b612310836134d8565b60606000612491836112ad565b90506123108382600001518360200151611e72565b600061115e60095490565b826124bb816119fd565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461254f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f43616c6c6572206973206e6f7420686f6c6465720000000000000000000000006044820152606401610e26565b828260008260ff16118015612567575060008160ff16115b801561258557508060ff168260ff166003612582919061488c565b10155b80156125a357508160ff168160ff1660036125a0919061488c565b10155b61262e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f41737065637420726174696f206e6f74206265747765656e20333a3120616e6460448201527f20313a33000000000000000000000000000000000000000000000000000000006064820152608401610e26565b60005486101561271757601b6000612647601a89612d05565b8152602001908152602001600020601b600088600161266691906148c3565b815260208101919091526040016000208154815460ff9182167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082168117845593547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000909116909317610100938490049091169092029190911790556127176126f08760016148c3565b600881901c6000908152601a602052604090208054600160ff9093169290921b9091179055565b60408051808201825260ff8088168252868116602080840191825260008b8152601b909152939093209151825493518216610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00009094169116179190911790556127a8601a87600881901c600090815260209290925260409091208054600160ff9093169290921b9091179055565b6040518681527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a1505050505050565b6127eb612973565b73ffffffffffffffffffffffffffffffffffffffff811661288e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610e26565b611ddd816133bc565b60008054601954146128b85760016128ae60005490565b61115e91906148a3565b5060185490565b6128c7612973565b6040805160a0810182526000808252602080830182905282840182905260608084018390526080938401839052601280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000016905560138390556014839055845193840185528284529083018290529282018190529101819052601580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001690556016819055601755565b600b5473ffffffffffffffffffffffffffffffffffffffff163314611a9c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e26565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083161480612a8757507f80ac58cd000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b80610bc25750507fffffffff00000000000000000000000000000000000000000000000000000000167f5b5e139f000000000000000000000000000000000000000000000000000000001490565b6000805482108015610bc25750506000908152600460205260409020547c0100000000000000000000000000000000000000000000000000000000161590565b6daaeb6d7670e522a718067333cd4e3b15611ddd576040517fc617113400000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015612ba8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bcc91906149ef565b611ddd576040517fede71dcc00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82166004820152602401610e26565b6000612c25826119fd565b90503373ffffffffffffffffffffffffffffffffffffffff821614612c8457612c4e81336108cd565b612c84576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000600882901c805b60008112612d8e576000818152602086905260409020548015612d66576000612d4882858514612d3f5760ff6136d0565b8760ff166136d0565b905060008112612d6457600883901b8101945050505050610bc2565b505b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01612d0e565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff949350505050565b612dd28282604051806020016040528060008152506137b0565b5050565b60408051608081018252600080825260208201819052918101829052606081019190915282600081118015612e0d57506009548111155b612e73576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f496e76616c696420736e617073686f74000000000000000000000000000000006044820152606401610e26565b6000848152600860205260409020600101548310612eed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f496e76616c696420746f6b656e496420666f7220736e617073686f74000000006044820152606401610e26565b612ef7848461383c565b91505b5092915050565b6000612f0c82613305565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612f73576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260066020526040902080543380821473ffffffffffffffffffffffffffffffffffffffff881690911417612fe657612fb086336108cd565b612fe6576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8516613033576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61304086868660016139e8565b801561304b57600082555b73ffffffffffffffffffffffffffffffffffffffff86811660009081526005602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019055918716808252919020805460010190554260a01b177c0200000000000000000000000000000000000000000000000000000000176000858152600460205260408120919091557c02000000000000000000000000000000000000000000000000000000008416900361313a576001840160008181526004602052604081205490036131385760005481146131385760008181526004602052604090208490555b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46118ee565b610d46838383604051806020016040528060008152506123d2565b604080516080810182526000808252602082018190529181018290526060810182905290548210613242576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f496e76616c696420746f6b656e496400000000000000000000000000000000006044820152606401610e26565b610bc260008361383c565b60408051808201909152600080825260208201528160008111801561327457506009548111155b6132da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f496e76616c696420736e617073686f74000000000000000000000000000000006044820152606401610e26565b5050600090815260086020908152604091829020825180840190935280548352600101549082015290565b60008160005481101561338a57600081815260046020526040812054907c010000000000000000000000000000000000000000000000000000000082169003613388575b8060000361231057507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01600081815260046020526040902054613349565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260046020526040902054610bc2906040805160808101825273ffffffffffffffffffffffffffffffffffffffff8316815260a083901c67ffffffffffffffff1660208201527c0100000000000000000000000000000000000000000000000000000000831615159181019190915260e89190911c606082015290565b604080516080810182526000808252602082018190529181018290526060810191909152610bc261350883613305565b6040805160808101825273ffffffffffffffffffffffffffffffffffffffff8316815260a083901c67ffffffffffffffff1660208201527c0100000000000000000000000000000000000000000000000000000000831615159181019190915260e89190911c606082015290565b33600081815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60016009600082825461362091906148c3565b92505081905550604051806040016040528042815260200161364160005490565b9052600954600090815260086020908152604090912082518155910151600190910155565b6136718484846111e4565b73ffffffffffffffffffffffffffffffffffffffff83163b156112165761369a84848484613b71565b611216576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b60008212613788577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600483811d901b0161ffff7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff084161b841660000361373c57809250613782565b80831315613782576001831b8416156137585782915050610bc2565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9092019161373c565b506136d3565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff92915050565b6137ba8383613cea565b73ffffffffffffffffffffffffffffffffffffffff83163b15610d46576000548281035b6137f16000868380600101945086613b71565b613827576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106137de57816000541461240557600080fd5b604080516080810182526000808252602082018190529181018290526060810191909152825b60095481116139bc576000818152600a6020908152604080832086845290915290205473ffffffffffffffffffffffffffffffffffffffff161515806138e157506000818152600a602090815260408083208684529091529020547c0100000000000000000000000000000000000000000000000000000000900460ff165b156139aa576000908152600a602090815260408083208584528252918290208251608081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c0100000000000000000000000000000000000000000000000000000000820460ff161515928101929092527d010000000000000000000000000000000000000000000000000000000000900462ffffff1660608201529050610bc2565b806139b481614905565b915050613862565b506139c682613433565b60400151156139df576139d882613433565b9050610bc2565b612310826134d8565b73ffffffffffffffffffffffffffffffffffffffff841615611216576009546000908152600a6020908152604080832085845290915290205473ffffffffffffffffffffffffffffffffffffffff1661121657613a44826134d8565b6009546000908152600a6020908152604080832086845282529182902083518154928501519385015160609095015162ffffff167d010000000000000000000000000000000000000000000000000000000000027cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9515157c010000000000000000000000000000000000000000000000000000000002959095167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff67ffffffffffffffff90951674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090941673ffffffffffffffffffffffffffffffffffffffff9092169190911792909217929092161791909117905550505050565b6040517f150b7a0200000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290613bcc903390899088908890600401614a0c565b6020604051808303816000875af1925050508015613c25575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613c2291810190614a4b565b60015b613c9c573d808015613c53576040519150601f19603f3d011682016040523d82523d6000602084013e613c58565b606091505b508051600003613c94576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050949350505050565b6000805490829003613d28576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613d3560008483856139e8565b73ffffffffffffffffffffffffffffffffffffffff831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114613df157808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101613db9565b5081600003613e2c576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005550505050565b8015158114611ddd57600080fd5b600080600080600060a08688031215613e5b57600080fd5b8535613e6681613e35565b94506020860135613e7681613e35565b93506040860135613e8681613e35565b94979396509394606081013594506080013592915050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611ddd57600080fd5b600060208284031215613ede57600080fd5b813561231081613e9e565b803573ffffffffffffffffffffffffffffffffffffffff81168114613f0d57600080fd5b919050565b803561ffff81168114613f0d57600080fd5b60008060408385031215613f3757600080fd5b613f4083613ee9565b9150613f4e60208401613f12565b90509250929050565b60005b83811015613f72578181015183820152602001613f5a565b50506000910152565b60008151808452613f93816020860160208601613f57565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006123106020830184613f7b565b600060208284031215613fea57600080fd5b5035919050565b6000806040838503121561400457600080fd5b61400d83613ee9565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040805190810167ffffffffffffffff8111828210171561406d5761406d61401b565b60405290565b60405160a0810167ffffffffffffffff8111828210171561406d5761406d61401b565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156140dd576140dd61401b565b604052919050565b600082601f8301126140f657600080fd5b8135602067ffffffffffffffff8211156141125761411261401b565b614120818360051b01614096565b82815260069290921b8401810191818101908684111561413f57600080fd5b8286015b8481101561418c576040818903121561415c5760008081fd5b61416461404a565b61416d82613ee9565b815261417a858301613f12565b81860152835291830191604001614143565b509695505050505050565b803560ff81168114613f0d57600080fd5b6000806000606084860312156141bd57600080fd5b833567ffffffffffffffff8111156141d457600080fd5b6141e0868287016140e5565b9350506141ef60208501614197565b91506141fd60408501614197565b90509250925092565b6000806040838503121561421957600080fd5b50508035926020909101359150565b6000806040838503121561423b57600080fd5b61424483613ee9565b9150602083013561425481613e35565b809150509250929050565b60008060006060848603121561427457600080fd5b61427d84613ee9565b925061428b60208501613ee9565b9150604084013590509250925092565b6000806000808486036101008112156142b357600080fd5b60a08112156142c157600080fd5b506142ca614073565b85356142d581613e35565b815260208601356142e581613e35565b602082015260408601356142f881613e35565b60408201526060868101359082015260808087013590820152935060a085013567ffffffffffffffff81111561432d57600080fd5b614339878288016140e5565b93505061434860c08601613ee9565b915061435660e08601613ee9565b905092959194509250565b6000806020838503121561437457600080fd5b823567ffffffffffffffff8082111561438c57600080fd5b818501915085601f8301126143a057600080fd5b8135818111156143af57600080fd5b8660208260051b85010111156143c457600080fd5b60209290920196919550909350505050565b6020808252825182820181905260009190848201906040850190845b81811015611d9d5761444d83855173ffffffffffffffffffffffffffffffffffffffff815116825267ffffffffffffffff602082015116602083015260408101511515604083015262ffffff60608201511660608301525050565b92840192608092909201916001016143f2565b60006020828403121561447257600080fd5b61231082613ee9565b60a08101610bc2828480511515825260208101511515602083015260408101511515604083015260608101516060830152608081015160808301525050565b600080604083850312156144cd57600080fd5b6144d683614197565b9150613f4e60208401614197565b6020808252825182820181905260009190848201906040850190845b81811015611d9d57835183529284019291840191600101614500565b60008060006060848603121561453157600080fd5b833592506141ef60208501614197565b600080600080600080600080610100898b03121561455e57600080fd5b883561456981613e35565b9750602089013561457981613e35565b9650604089013561458981613e35565b9550606089013594506080890135935060a08901356145a781613e35565b979a969950949793969295929450505060c08201359160e0013590565b6000806000606084860312156145d957600080fd5b6145e284613ee9565b95602085013595506040909401359392505050565b600067ffffffffffffffff8211156146115761461161401b565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b6000806000806080858703121561465357600080fd5b61465c85613ee9565b935061466a60208601613ee9565b925060408501359150606085013567ffffffffffffffff81111561468d57600080fd5b8501601f8101871361469e57600080fd5b80356146b16146ac826145f7565b614096565b8181528860208385010111156146c657600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b815173ffffffffffffffffffffffffffffffffffffffff16815260208083015167ffffffffffffffff169082015260408083015115159082015260608083015162ffffff169082015260808101610bc2565b6000806040838503121561474d57600080fd5b61475683613ee9565b9150613f4e60208401613ee9565b6101c081016147a4828680511515825260208101511515602083015260408101511515604083015260608101516060830152608081015160808301525050565b8351151560a08301526020840151151560c08301526040840151151560e0830152606084015161010083015260808401516101208301528251151561014083015260208301511515610160830152604083015161018083015260608301516101a0830152949350505050565b600181811c9082168061482457607f821691505b602082108103611374577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082028115828204841417610bc257610bc261485d565b8181036000831280158383131683831282161715612efa57612efa61485d565b80820180821115610bc257610bc261485d565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036149365761493661485d565b5060010190565b600082614973577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60006020828403121561498a57600080fd5b815167ffffffffffffffff8111156149a157600080fd5b8201601f810184136149b257600080fd5b80516149c06146ac826145f7565b8181528560208385010111156149d557600080fd5b6149e6826020830160208601613f57565b95945050505050565b600060208284031215614a0157600080fd5b815161231081613e35565b600073ffffffffffffffffffffffffffffffffffffffff8087168352808616602084015250836040830152608060608301526120376080830184613f7b565b600060208284031215614a5d57600080fd5b815161231081613e9e56fea26469706673582212206982320b4e867dd9422760e2b6053330236b44d3c3d727224baa541824bd8d4f64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000015afab0d6f995f4bfe347af8119374351cae9e47
-----Decoded View---------------
Arg [0] : artContract (address): 0x15afAB0d6F995F4bFe347AF8119374351cAe9E47
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000015afab0d6f995f4bfe347af8119374351cae9e47
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.