ERC-721
Overview
Max Total Supply
555 MSHOT-WOW37
Holders
130
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 MSHOT-WOW37Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MovieShotWOW37
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import "erc721a/contracts/extensions/ERC721AQueryable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import {DefaultOperatorFilterer} from "./DefaultOperatorFilterer.sol"; /////////////////////////////////////////////////////////////////////////////////////////// // // // ███ ███ ██████ ██ ██ ██ ███████ ███████ ██ ██ ██████ ████████ ███████ // // ████ ████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ // // ██ ████ ██ ██ ██ ██ ██ ██ █████ ███████ ███████ ██ ██ ██ ███████ // // ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ // // ██ ██ ██████ ████ ██ ███████ ███████ ██ ██ ██████ ██ ███████ // // // /////////////////////////////////////////////////////////////////////////////////////////// contract MovieShotWOW37 is ERC721AQueryable, IERC2981, Ownable, ReentrancyGuard, DefaultOperatorFilterer { struct BonusMintDetail { uint256 quantityFrom; uint256 quantityTo; uint256 bonusAmount; } uint256 public immutable maxSupply; uint256 public immutable publicSupply; bool public isPublicSaleActive = false; bool public isPresaleActive = false; bool public isBonusMintActive = true; bytes32 public whitelistMerkleRoot; bytes32 public freemintMerkleRoot; address public adminMinter; address public beneficiaryAddress; address public royaltyAddress; uint256 public royaltyShare10000; uint256 public publicSalePrice; uint256 public publicSaleMaxMintAmount; uint256 public presalePrice; uint256 public presaleMaxMintAmount; mapping(address => uint256) public totalPresaleAddressMint; mapping(address => bool) public freeMintClaimed; BonusMintDetail[] public bonusMintDetails; string private baseUri; string private baseExtension; constructor( uint256 _maxSupply, address _adminMinter, address _beneficiaryAddress, address _owner, address _royaltyAddress, string memory _baseUri, string memory _baseExtension ) ERC721A("MovieShots - Way Out West", "MSHOT-WOW37") { presalePrice = .0555 ether; presaleMaxMintAmount = 50; publicSalePrice = .111 ether; publicSaleMaxMintAmount = 100; baseUri = _baseUri; baseExtension = _baseExtension; maxSupply = _maxSupply; // Final credits are reserved publicSupply = _maxSupply - 1; transferOwnership(_owner); adminMinter = _adminMinter; beneficiaryAddress = _beneficiaryAddress; royaltyAddress = _royaltyAddress; royaltyShare10000 = 420; bonusMintDetails.push( BonusMintDetail({quantityFrom: 5, quantityTo: 9, bonusAmount: 1}) ); bonusMintDetails.push( BonusMintDetail({quantityFrom: 10, quantityTo: 19, bonusAmount: 3}) ); bonusMintDetails.push( BonusMintDetail({quantityFrom: 20, quantityTo: 999, bonusAmount: 8}) ); } modifier preSaleActive() { require(isPresaleActive, "Presale not active"); _; } modifier publicSaleActive() { require(isPublicSaleActive, "Public sale not active"); _; } modifier onlyAdminMinter() { require(adminMinter == msg.sender, "Caller is not the admin minter"); _; } function mint(uint256 quantity) external payable publicSaleActive nonReentrant { require( msg.value == publicSalePrice * quantity, "Incorrect eth amount" ); require( quantity <= publicSaleMaxMintAmount, "Attempting to mint too many tokens" ); uint256 totalMints = getBonusMintsCount(quantity) + quantity; require( (totalSupply() + totalMints) <= publicSupply, "Public supply exceeded" ); _safeMint(msg.sender, totalMints); } function whitelistMint(uint256 quantity, bytes32[] calldata merkleProof) external payable preSaleActive nonReentrant { require( MerkleProof.verify( merkleProof, whitelistMerkleRoot, keccak256(abi.encodePacked(msg.sender)) ), "You're not whitelisted" ); require(msg.value == presalePrice * quantity, "Incorrect eth amount"); require( totalPresaleAddressMint[msg.sender] + quantity <= presaleMaxMintAmount, "Attempting to mint too many tokens" ); uint256 totalMints = getBonusMintsCount(quantity) + quantity; require( (totalSupply() + totalMints) <= publicSupply, "Public supply exceeded" ); totalPresaleAddressMint[msg.sender] += totalMints; _safeMint(msg.sender, totalMints); } function freeMint(uint256 quantity, bytes32[] calldata merkleProof) external preSaleActive nonReentrant { require( MerkleProof.verify( merkleProof, freemintMerkleRoot, keccak256(abi.encodePacked(msg.sender, quantity)) ), "You're not whitelisted" ); require( (totalSupply() + quantity) <= publicSupply, "Public supply exceeded" ); require(!freeMintClaimed[msg.sender], "Free mints already claimed"); freeMintClaimed[msg.sender] = true; _safeMint(msg.sender, quantity); } function getBonusMintsCount(uint256 quantity) internal view returns (uint256) { if (!isBonusMintActive) { return 0; } if ( bonusMintDetails.length > 0 && quantity >= bonusMintDetails[0].quantityFrom ) { for (uint256 i = 0; i < bonusMintDetails.length; i++) { if ( quantity >= bonusMintDetails[i].quantityFrom && quantity <= bonusMintDetails[i].quantityTo ) { return bonusMintDetails[i].bonusAmount; } } } return 0; } function adminMint(address recipient, uint256 quantity) external onlyAdminMinter { require(totalSupply() + quantity <= maxSupply, "Max supply exceeded"); _safeMint(recipient, quantity); } function _baseURI() internal view virtual override returns (string memory) { return baseUri; } function tokenURI(uint256 tokenId) public view virtual override(ERC721A, IERC721A) returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); return bytes(baseUri).length > 0 ? string( abi.encodePacked( baseUri, Strings.toString(tokenId), baseExtension ) ) : ""; } function addBonusMintDetail( uint256 quantityFrom, uint256 quantityTo, uint256 bonusMintAmount ) external onlyOwner { bonusMintDetails.push( BonusMintDetail(quantityFrom, quantityTo, bonusMintAmount) ); } function updateBonusMintDetail( uint256 index, uint256 quantityFrom, uint256 quantityTo, uint256 bonusMintAmount ) external onlyOwner { require(index < bonusMintDetails.length, "Wrong index"); bonusMintDetails[index].quantityFrom = quantityFrom; bonusMintDetails[index].quantityTo = quantityTo; bonusMintDetails[index].bonusAmount = bonusMintAmount; } function removeLastBonusMintDetail() external onlyOwner { bonusMintDetails.pop(); } function getBonusMintDetails() public view returns (BonusMintDetail[] memory) { return bonusMintDetails; } function setMaxMintAmounts(uint256 presaleMax, uint256 publicSaleMax) external onlyOwner { presaleMaxMintAmount = presaleMax; publicSaleMaxMintAmount = publicSaleMax; } function setPrices(uint256 prePrice, uint256 publicPrice) external onlyOwner { presalePrice = prePrice; publicSalePrice = publicPrice; } function setBaseUriExtension(string memory baseUriExtension) external onlyOwner { baseExtension = baseUriExtension; } function setBaseTokenUri(string memory uri) external onlyOwner { baseUri = uri; } function setWhitelistMerkleRoot(bytes32 merkleroot) external onlyOwner { whitelistMerkleRoot = merkleroot; } function setFreeMintMerkleRoot(bytes32 merkleroot) external onlyOwner { freemintMerkleRoot = merkleroot; } function setPresale(bool presaleValue) external onlyOwner { isPresaleActive = presaleValue; } function setPublicSale(bool publicSaleValue) external onlyOwner { isPublicSaleActive = publicSaleValue; } function setBonusMintActive(bool bonusMintActive) external onlyOwner { isBonusMintActive = bonusMintActive; } function setRoyaltyShare(uint256 royaltyShare) external onlyOwner { royaltyShare10000 = royaltyShare; } function setRoyaltyReceiver(address royaltyReceiver) external onlyOwner { royaltyAddress = royaltyReceiver; } function setAdminMinter(address admin) external onlyOwner { adminMinter = admin; } function setBeneficiaryAddress(address beneficiary) external onlyOwner { beneficiaryAddress = beneficiary; } function royaltyInfo(uint256 tokenId, uint256 salePrice) external view override returns (address receiver, uint256 royaltyAmount) { require(_exists(tokenId), "Non-existent token"); return (royaltyAddress, (salePrice * royaltyShare10000) / 10000); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, IERC721A, IERC165) returns (bool) { return (interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId)); } function withdraw() external onlyOwner { uint256 balance = address(this).balance; (bool success, ) = payable(beneficiaryAddress).call{value: balance}(""); require(success, "Withdraw failed"); } function setApprovalForAll(address operator, bool approved) public override(ERC721A, IERC721A) onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public payable override(ERC721A, IERC721A) onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom( address from, address to, uint256 tokenId ) public payable override(ERC721A, IERC721A) onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId ) public payable override(ERC721A, IERC721A) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public payable override(ERC721A, IERC721A) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } }
// 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 // OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "./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 payed 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 v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// 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 './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 // 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 // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
// 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 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 { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from == msg.sender) { _; return; } if ( !OPERATOR_FILTER_REGISTRY.isOperatorAllowed( address(this), msg.sender ) ) { revert OperatorNotAllowed(msg.sender); } } _; } modifier onlyAllowedOperatorApproval(address operator) 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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"address","name":"_adminMinter","type":"address"},{"internalType":"address","name":"_beneficiaryAddress","type":"address"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_royaltyAddress","type":"address"},{"internalType":"string","name":"_baseUri","type":"string"},{"internalType":"string","name":"_baseExtension","type":"string"}],"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":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":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":"uint256","name":"quantityFrom","type":"uint256"},{"internalType":"uint256","name":"quantityTo","type":"uint256"},{"internalType":"uint256","name":"bonusMintAmount","type":"uint256"}],"name":"addBonusMintDetail","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"adminMinter","outputs":[{"internalType":"address","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":"beneficiaryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"bonusMintDetails","outputs":[{"internalType":"uint256","name":"quantityFrom","type":"uint256"},{"internalType":"uint256","name":"quantityTo","type":"uint256"},{"internalType":"uint256","name":"bonusAmount","type":"uint256"}],"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":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"freeMintClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freemintMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBonusMintDetails","outputs":[{"components":[{"internalType":"uint256","name":"quantityFrom","type":"uint256"},{"internalType":"uint256","name":"quantityTo","type":"uint256"},{"internalType":"uint256","name":"bonusAmount","type":"uint256"}],"internalType":"struct MovieShotWOW37.BonusMintDetail[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isBonusMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPresaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"presaleMaxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleMaxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"removeLastBonusMintDetail","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyShare10000","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":"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":"admin","type":"address"}],"name":"setAdminMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseTokenUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseUriExtension","type":"string"}],"name":"setBaseUriExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"setBeneficiaryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"bonusMintActive","type":"bool"}],"name":"setBonusMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleroot","type":"bytes32"}],"name":"setFreeMintMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"presaleMax","type":"uint256"},{"internalType":"uint256","name":"publicSaleMax","type":"uint256"}],"name":"setMaxMintAmounts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"presaleValue","type":"bool"}],"name":"setPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"prePrice","type":"uint256"},{"internalType":"uint256","name":"publicPrice","type":"uint256"}],"name":"setPrices","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"publicSaleValue","type":"bool"}],"name":"setPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"royaltyReceiver","type":"address"}],"name":"setRoyaltyReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"royaltyShare","type":"uint256"}],"name":"setRoyaltyShare","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleroot","type":"bytes32"}],"name":"setWhitelistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","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":[{"internalType":"address","name":"","type":"address"}],"name":"totalPresaleAddressMint","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":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"quantityFrom","type":"uint256"},{"internalType":"uint256","name":"quantityTo","type":"uint256"},{"internalType":"uint256","name":"bonusMintAmount","type":"uint256"}],"name":"updateBonusMintDetail","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c0604052600a805462ffffff1916620100001790553480156200002257600080fd5b50604051620040aa380380620040aa8339810160408190526200004591620006d3565b604080518082018252601981527f4d6f76696553686f7473202d20576179204f757420576573740000000000000060208083019182528351808501909452600b84526a4d53484f542d574f57333760a81b908401528151733cc6cdda760b79bafa08df41ecfa224f810dceb693600193929091620000c69160029162000543565b508051620000dc90600390602084019062000543565b50506000805550620000ee336200041c565b60016009556daaeb6d7670e522a718067333cd4e3b15620002385780156200018657604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200016757600080fd5b505af11580156200017c573d6000803e3d6000fd5b5050505062000238565b6001600160a01b03821615620001d75760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af2903906044016200014c565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200021e57600080fd5b505af115801562000233573d6000803e3d6000fd5b505050505b505066c52cf4b908c000601355603260145567018a59e972118000601155606460125581516200027090601890602085019062000543565b5080516200028690601990602084019062000543565b5060808790526200029960018862000792565b60a052620002a7846200046e565b5050600d80546001600160a01b03199081166001600160a01b0396871617909155600e8054821694861694909417909355600f8054909316931692909217905550506101a4601055604080516060808201835260058252600960208084019182526001848601818152601780548084018255600082815297517fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c1560039283028181019290925596517fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c168083019190915593517fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c179182015589518089018b52600a81526013818801908152818c0184815285548089018755868d529251928502808b0193909355905182870155519082015589519788018a52601488526103e79588019586526008998801998a5282549485018355919097529451919095029283015551928101929092559151910155620007f4565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6008546001600160a01b03163314620004ce5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b038116620005355760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401620004c5565b62000540816200041c565b50565b8280546200055190620007b8565b90600052602060002090601f016020900481019282620005755760008555620005c0565b82601f106200059057805160ff1916838001178555620005c0565b82800160010185558215620005c0579182015b82811115620005c0578251825591602001919060010190620005a3565b50620005ce929150620005d2565b5090565b5b80821115620005ce5760008155600101620005d3565b80516001600160a01b03811681146200060157600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200062e57600080fd5b81516001600160401b03808211156200064b576200064b62000606565b604051601f8301601f19908116603f0116810190828211818310171562000676576200067662000606565b816040528381526020925086838588010111156200069357600080fd5b600091505b83821015620006b7578582018301518183018401529082019062000698565b83821115620006c95760008385830101525b9695505050505050565b600080600080600080600060e0888a031215620006ef57600080fd5b875196506200070160208901620005e9565b95506200071160408901620005e9565b94506200072160608901620005e9565b93506200073160808901620005e9565b60a08901519093506001600160401b03808211156200074f57600080fd5b6200075d8b838c016200061c565b935060c08a01519150808211156200077457600080fd5b50620007838a828b016200061c565b91505092959891949750929550565b600082821015620007b357634e487b7160e01b600052601160045260246000fd5b500390565b600181811c90821680620007cd57607f821691505b602082108103620007ee57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a0516138746200083660003960008181610698015281816118bf01528181611f2101526120fc0152600081816109be015261223b01526138746000f3fe6080604052600436106103b75760003560e01c80638dc251e3116101f2578063d2cab0561161010d578063e6e070cb116100a0578063f24b87211161006f578063f24b872114610b51578063f2fde38b14610b71578063f3602a5e14610b91578063ff799d5114610bbe57600080fd5b8063e6e070cb14610aa6578063e985e9c514610ac8578063ec6be06e14610b11578063ed7bec9914610b3157600080fd5b8063e0ec7c36116100dc578063e0ec7c3614610a20578063e2f36dce14610a50578063e4203b5d14610a70578063e58306f914610a8657600080fd5b8063d2cab05614610999578063d5abeb01146109ac578063d9c4870e146109e0578063dde44b8914610a0057600080fd5b8063aa98e0c611610185578063bd32fb6611610154578063bd32fb661461090c578063c23dc68f1461092c578063c54e73e314610959578063c87b56dd1461097957600080fd5b8063aa98e0c6146108a3578063ad2f852a146108b9578063b11e1256146108d9578063b88d4fde146108f957600080fd5b806399a2557a116101c157806399a2557a1461083a5780639b6860c81461085a578063a0712d6814610870578063a22cb4651461088357600080fd5b80638dc251e3146107c557806395652cfa146107e557806395d89b411461080557806397377e901461081a57600080fd5b806342842e0e116102e25780636352211e116102755780637bd1c6aa116102445780637bd1c6aa146107445780637e8f1c2c1461075a5780638462151c1461077a5780638da5cb5b146107a757600080fd5b80636352211e146106d957806370a08231146106f9578063715018a61461071957806372fe71771461072e57600080fd5b80635aca1bb6116102b15780635aca1bb6146106395780635bbb2177146106595780635e84d7231461068657806360d938dc146106ba57600080fd5b806342842e0e146105ab57806350a4a120146105be57806353244feb146105f95780635354d0c41461061957600080fd5b80631b2204651161035a5780632ad0a197116103295780632ad0a1971461053e57806334d608c1146105545780633ccfd60b1461057457806341f434341461058957600080fd5b80631b220465146104bd5780631e84c413146104d257806323b872dd146104ec5780632a55205a146104ff57600080fd5b806306fdde031161039657806306fdde0314610437578063081812fc14610459578063095ea7b31461049157806318160ddd146104a457600080fd5b80620e7fa8146103bc57806301ffc9a7146103e557806305fefda714610415575b600080fd5b3480156103c857600080fd5b506103d260135481565b6040519081526020015b60405180910390f35b3480156103f157600080fd5b50610405610400366004612f3b565b610bde565b60405190151581526020016103dc565b34801561042157600080fd5b50610435610430366004612f58565b610c09565b005b34801561044357600080fd5b5061044c610c47565b6040516103dc9190612fd2565b34801561046557600080fd5b50610479610474366004612fe5565b610cd9565b6040516001600160a01b0390911681526020016103dc565b61043561049f36600461301a565b610d1d565b3480156104b057600080fd5b50600154600054036103d2565b3480156104c957600080fd5b50610435610de6565b3480156104de57600080fd5b50600a546104059060ff1681565b6104356104fa366004613044565b610e48565b34801561050b57600080fd5b5061051f61051a366004612f58565b610f21565b604080516001600160a01b0390931683526020830191909152016103dc565b34801561054a57600080fd5b506103d260125481565b34801561056057600080fd5b5061043561056f36600461310b565b610fa4565b34801561058057600080fd5b50610435610fe5565b34801561059557600080fd5b506104796daaeb6d7670e522a718067333cd4e81565b6104356105b9366004613044565b6110a8565b3480156105ca57600080fd5b506105de6105d9366004612fe5565b611176565b604080519384526020840192909252908201526060016103dc565b34801561060557600080fd5b50610435610614366004613161565b6111a9565b34801561062557600080fd5b5061043561063436600461317e565b6111ef565b34801561064557600080fd5b50610435610654366004613161565b6112d9565b34801561066557600080fd5b506106796106743660046131f4565b611316565b6040516103dc9190613271565b34801561069257600080fd5b506103d27f000000000000000000000000000000000000000000000000000000000000000081565b3480156106c657600080fd5b50600a5461040590610100900460ff1681565b3480156106e557600080fd5b506104796106f4366004612fe5565b6113e1565b34801561070557600080fd5b506103d26107143660046132b3565b6113ec565b34801561072557600080fd5b5061043561143a565b34801561073a57600080fd5b506103d260145481565b34801561075057600080fd5b506103d260105481565b34801561076657600080fd5b50600a546104059062010000900460ff1681565b34801561078657600080fd5b5061079a6107953660046132b3565b611470565b6040516103dc91906132ce565b3480156107b357600080fd5b506008546001600160a01b0316610479565b3480156107d157600080fd5b506104356107e03660046132b3565b611578565b3480156107f157600080fd5b5061043561080036600461310b565b6115c4565b34801561081157600080fd5b5061044c611601565b34801561082657600080fd5b50610435610835366004612f58565b611610565b34801561084657600080fd5b5061079a610855366004613306565b611645565b34801561086657600080fd5b506103d260115481565b61043561087e366004612fe5565b6117be565b34801561088f57600080fd5b5061043561089e366004613339565b611927565b3480156108af57600080fd5b506103d2600b5481565b3480156108c557600080fd5b50600f54610479906001600160a01b031681565b3480156108e557600080fd5b506104356108f4366004613370565b6119eb565b61043561090736600461339c565b611ab8565b34801561091857600080fd5b50610435610927366004612fe5565b611b94565b34801561093857600080fd5b5061094c610947366004612fe5565b611bc3565b6040516103dc9190613417565b34801561096557600080fd5b50610435610974366004613161565b611c3b565b34801561098557600080fd5b5061044c610994366004612fe5565b611c7f565b6104356109a7366004613425565b611d4d565b3480156109b857600080fd5b506103d27f000000000000000000000000000000000000000000000000000000000000000081565b3480156109ec57600080fd5b50600e54610479906001600160a01b031681565b348015610a0c57600080fd5b50610435610a1b366004612fe5565b611fb0565b348015610a2c57600080fd5b50610405610a3b3660046132b3565b60166020526000908152604090205460ff1681565b348015610a5c57600080fd5b50610435610a6b366004613425565b611fdf565b348015610a7c57600080fd5b506103d2600c5481565b348015610a9257600080fd5b50610435610aa136600461301a565b6121df565b348015610ab257600080fd5b50610abb6122c0565b6040516103dc9190613470565b348015610ad457600080fd5b50610405610ae33660046134c9565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610b1d57600080fd5b50610435610b2c3660046132b3565b61233d565b348015610b3d57600080fd5b50600d54610479906001600160a01b031681565b348015610b5d57600080fd5b50610435610b6c3660046132b3565b612389565b348015610b7d57600080fd5b50610435610b8c3660046132b3565b6123d5565b348015610b9d57600080fd5b506103d2610bac3660046132b3565b60156020526000908152604090205481565b348015610bca57600080fd5b50610435610bd9366004612fe5565b612470565b60006001600160e01b0319821663152a902d60e11b1480610c035750610c038261249f565b92915050565b6008546001600160a01b03163314610c3c5760405162461bcd60e51b8152600401610c33906134fc565b60405180910390fd5b601391909155601155565b606060028054610c5690613531565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8290613531565b8015610ccf5780601f10610ca457610100808354040283529160200191610ccf565b820191906000526020600020905b815481529060010190602001808311610cb257829003601f168201915b5050505050905090565b6000610ce4826124ed565b610d01576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b816daaeb6d7670e522a718067333cd4e3b15610dd757604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610d8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610daf919061356b565b610dd757604051633b79c77360e21b81526001600160a01b0382166004820152602401610c33565b610de18383612514565b505050565b6008546001600160a01b03163314610e105760405162461bcd60e51b8152600401610c33906134fc565b6017805480610e2157610e21613588565b60008281526020812060036000199093019283020181815560018101829055600201559055565b826daaeb6d7670e522a718067333cd4e3b15610f1057336001600160a01b03821603610e7e57610e798484846125b4565b610f1b565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610ecd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef1919061356b565b610f1057604051633b79c77360e21b8152336004820152602401610c33565b610f1b8484846125b4565b50505050565b600080610f2d846124ed565b610f6e5760405162461bcd60e51b81526020600482015260126024820152712737b716b2bc34b9ba32b73a103a37b5b2b760711b6044820152606401610c33565b600f546010546001600160a01b039091169061271090610f8e90866135b4565b610f9891906135e9565b915091505b9250929050565b6008546001600160a01b03163314610fce5760405162461bcd60e51b8152600401610c33906134fc565b8051610fe1906019906020840190612e8c565b5050565b6008546001600160a01b0316331461100f5760405162461bcd60e51b8152600401610c33906134fc565b600e5460405147916000916001600160a01b039091169083908381818185875af1925050503d8060008114611060576040519150601f19603f3d011682016040523d82523d6000602084013e611065565b606091505b5050905080610fe15760405162461bcd60e51b815260206004820152600f60248201526e15da5d1a191c985dc819985a5b1959608a1b6044820152606401610c33565b826daaeb6d7670e522a718067333cd4e3b1561116b57336001600160a01b038216036110d957610e7984848461274c565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611128573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061114c919061356b565b61116b57604051633b79c77360e21b8152336004820152602401610c33565b610f1b84848461274c565b6017818154811061118657600080fd5b600091825260209091206003909102018054600182015460029092015490925083565b6008546001600160a01b031633146111d35760405162461bcd60e51b8152600401610c33906134fc565b600a8054911515620100000262ff000019909216919091179055565b6008546001600160a01b031633146112195760405162461bcd60e51b8152600401610c33906134fc565b60175484106112585760405162461bcd60e51b815260206004820152600b60248201526a0aee4dedcce40d2dcc8caf60ab1b6044820152606401610c33565b826017858154811061126c5761126c6135fd565b9060005260206000209060030201600001819055508160178581548110611295576112956135fd565b90600052602060002090600302016001018190555080601785815481106112be576112be6135fd565b90600052602060002090600302016002018190555050505050565b6008546001600160a01b031633146113035760405162461bcd60e51b8152600401610c33906134fc565b600a805460ff1916911515919091179055565b6060816000816001600160401b0381111561133357611333613080565b60405190808252806020026020018201604052801561138557816020015b6040805160808101825260008082526020808301829052928201819052606082015282526000199092019101816113515790505b50905060005b8281146113d8576113b38686838181106113a7576113a76135fd565b90506020020135611bc3565b8282815181106113c5576113c56135fd565b602090810291909101015260010161138b565b50949350505050565b6000610c0382612767565b60006001600160a01b038216611415576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146114645760405162461bcd60e51b8152600401610c33906134fc565b61146e60006127ce565b565b60606000806000611480856113ec565b90506000816001600160401b0381111561149c5761149c613080565b6040519080825280602002602001820160405280156114c5578160200160208202803683370190505b5090506114f260408051608081018252600080825260208201819052918101829052606081019190915290565b60005b83861461156c5761150581612820565b915081604001516115645781516001600160a01b03161561152557815194505b876001600160a01b0316856001600160a01b0316036115645780838780600101985081518110611557576115576135fd565b6020026020010181815250505b6001016114f5565b50909695505050505050565b6008546001600160a01b031633146115a25760405162461bcd60e51b8152600401610c33906134fc565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b031633146115ee5760405162461bcd60e51b8152600401610c33906134fc565b8051610fe1906018906020840190612e8c565b606060038054610c5690613531565b6008546001600160a01b0316331461163a5760405162461bcd60e51b8152600401610c33906134fc565b601491909155601255565b606081831061166757604051631960ccad60e11b815260040160405180910390fd5b60008061167360005490565b905080841115611681578093505b600061168c876113ec565b9050848610156116ab57858503818110156116a5578091505b506116af565b5060005b6000816001600160401b038111156116c9576116c9613080565b6040519080825280602002602001820160405280156116f2578160200160208202803683370190505b509050816000036117085793506117b792505050565b600061171388611bc3565b905060008160400151611724575080515b885b8881141580156117365750848714155b156117ab5761174481612820565b925082604001516117a35782516001600160a01b03161561176457825191505b8a6001600160a01b0316826001600160a01b0316036117a35780848880600101995081518110611796576117966135fd565b6020026020010181815250505b600101611726565b50505092835250909150505b9392505050565b600a5460ff166118095760405162461bcd60e51b81526020600482015260166024820152755075626c69632073616c65206e6f742061637469766560501b6044820152606401610c33565b60026009540361182b5760405162461bcd60e51b8152600401610c3390613613565b600260095560115461183e9082906135b4565b34146118835760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd08195d1a08185b5bdd5b9d60621b6044820152606401610c33565b6012548111156118a55760405162461bcd60e51b8152600401610c339061364a565b6000816118b18361285c565b6118bb919061368c565b90507f0000000000000000000000000000000000000000000000000000000000000000816118ec6001546000540390565b6118f6919061368c565b11156119145760405162461bcd60e51b8152600401610c33906136a4565b61191e3382612965565b50506001600955565b816daaeb6d7670e522a718067333cd4e3b156119e157604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611995573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119b9919061356b565b6119e157604051633b79c77360e21b81526001600160a01b0382166004820152602401610c33565b610de1838361297f565b6008546001600160a01b03163314611a155760405162461bcd60e51b8152600401610c33906134fc565b604080516060810182529384526020840192835283019081526017805460018101825560009190915292517fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c1560039094029384015590517fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c16830155517fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c1790910155565b836daaeb6d7670e522a718067333cd4e3b15611b8157336001600160a01b03821603611aef57611aea858585856129eb565b611b8d565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611b3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b62919061356b565b611b8157604051633b79c77360e21b8152336004820152602401610c33565b611b8d858585856129eb565b5050505050565b6008546001600160a01b03163314611bbe5760405162461bcd60e51b8152600401610c33906134fc565b600b55565b6040805160808082018352600080835260208084018290528385018290526060808501839052855193840186528284529083018290529382018190529281018390529091506000548310611c175792915050565b611c2083612820565b9050806040015115611c325792915050565b6117b783612a2f565b6008546001600160a01b03163314611c655760405162461bcd60e51b8152600401610c33906134fc565b600a80549115156101000261ff0019909216919091179055565b6060611c8a826124ed565b611cee5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610c33565b600060188054611cfd90613531565b905011611d195760405180602001604052806000815250610c03565b6018611d2483612a64565b6019604051602001611d389392919061376d565b60405160208183030381529060405292915050565b600a54610100900460ff16611d995760405162461bcd60e51b815260206004820152601260248201527150726573616c65206e6f742061637469766560701b6044820152606401610c33565b600260095403611dbb5760405162461bcd60e51b8152600401610c3390613613565b60026009556040805160208084028281018201909352838252611e339285918591829185019084908082843760009201919091525050600b546040516bffffffffffffffffffffffff193360601b16602082015290925060340190505b60405160208183030381529060405280519060200120612b6c565b611e785760405162461bcd60e51b8152602060048201526016602482015275165bdd49dc99481b9bdd081dda1a5d195b1a5cdd195960521b6044820152606401610c33565b82601354611e8691906135b4565b3414611ecb5760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd08195d1a08185b5bdd5b9d60621b6044820152606401610c33565b60145433600090815260156020526040902054611ee990859061368c565b1115611f075760405162461bcd60e51b8152600401610c339061364a565b600083611f138561285c565b611f1d919061368c565b90507f000000000000000000000000000000000000000000000000000000000000000081611f4e6001546000540390565b611f58919061368c565b1115611f765760405162461bcd60e51b8152600401610c33906136a4565b3360009081526015602052604081208054839290611f9590849061368c565b90915550611fa590503382612965565b505060016009555050565b6008546001600160a01b03163314611fda5760405162461bcd60e51b8152600401610c33906134fc565b600c55565b600a54610100900460ff1661202b5760405162461bcd60e51b815260206004820152601260248201527150726573616c65206e6f742061637469766560701b6044820152606401610c33565b60026009540361204d5760405162461bcd60e51b8152600401610c3390613613565b600260095560408051602080840282810182019093528382526120b59285918591829185019084908082843760009201919091525050600c546040516bffffffffffffffffffffffff193360601b166020820152603481018990529092506054019050611e18565b6120fa5760405162461bcd60e51b8152602060048201526016602482015275165bdd49dc99481b9bdd081dda1a5d195b1a5cdd195960521b6044820152606401610c33565b7f0000000000000000000000000000000000000000000000000000000000000000836121296001546000540390565b612133919061368c565b11156121515760405162461bcd60e51b8152600401610c33906136a4565b3360009081526016602052604090205460ff16156121b15760405162461bcd60e51b815260206004820152601a60248201527f46726565206d696e747320616c726561647920636c61696d65640000000000006044820152606401610c33565b336000818152601660205260409020805460ff191660011790556121d59084612965565b5050600160095550565b600d546001600160a01b031633146122395760405162461bcd60e51b815260206004820152601e60248201527f43616c6c6572206973206e6f74207468652061646d696e206d696e74657200006044820152606401610c33565b7f0000000000000000000000000000000000000000000000000000000000000000816122686001546000540390565b612272919061368c565b11156122b65760405162461bcd60e51b815260206004820152601360248201527213585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610c33565b610fe18282612965565b60606017805480602002602001604051908101604052809291908181526020016000905b8282101561233457838290600052602060002090600302016040518060600160405290816000820154815260200160018201548152602001600282015481525050815260200190600101906122e4565b50505050905090565b6008546001600160a01b031633146123675760405162461bcd60e51b8152600401610c33906134fc565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b031633146123b35760405162461bcd60e51b8152600401610c33906134fc565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b031633146123ff5760405162461bcd60e51b8152600401610c33906134fc565b6001600160a01b0381166124645760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c33565b61246d816127ce565b50565b6008546001600160a01b0316331461249a5760405162461bcd60e51b8152600401610c33906134fc565b601055565b60006301ffc9a760e01b6001600160e01b0319831614806124d057506380ac58cd60e01b6001600160e01b03198316145b80610c035750506001600160e01b031916635b5e139f60e01b1490565b6000805482108015610c03575050600090815260046020526040902054600160e01b161590565b600061251f826113e1565b9050336001600160a01b038216146125585761253b8133610ae3565b612558576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006125bf82612767565b9050836001600160a01b0316816001600160a01b0316146125f25760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b0388169091141761263f576126228633610ae3565b61263f57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661266657604051633a954ecd60e21b815260040160405180910390fd5b801561267157600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003612703576001840160008181526004602052604081205490036127015760005481146127015760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b610de183838360405180602001604052806000815250611ab8565b6000816000548110156127b55760008181526004602052604081205490600160e01b821690036127b3575b806000036117b7575060001901600081815260046020526040902054612792565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260046020526040902054610c0390612b82565b600a5460009062010000900460ff1661287757506000919050565b601754158015906128ad57506017600081548110612897576128976135fd565b9060005260206000209060030201600001548210155b1561295d5760005b60175481101561295b57601781815481106128d2576128d26135fd565b9060005260206000209060030201600001548310158015612917575060178181548110612901576129016135fd565b9060005260206000209060030201600101548311155b15612949576017818154811061292f5761292f6135fd565b906000526020600020906003020160020154915050919050565b80612953816137a0565b9150506128b5565b505b506000919050565b610fe1828260405180602001604052806000815250612bc9565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6129f6848484610e48565b6001600160a01b0383163b15610f1b57612a1284848484612c2f565b610f1b576040516368d2bf6b60e11b815260040160405180910390fd5b604080516080810182526000808252602082018190529181018290526060810191909152610c03612a5f83612767565b612b82565b606081600003612a8b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612ab55780612a9f816137a0565b9150612aae9050600a836135e9565b9150612a8f565b6000816001600160401b03811115612acf57612acf613080565b6040519080825280601f01601f191660200182016040528015612af9576020820181803683370190505b5090505b8415612b6457612b0e6001836137b9565b9150612b1b600a866137d0565b612b2690603061368c565b60f81b818381518110612b3b57612b3b6135fd565b60200101906001600160f81b031916908160001a905350612b5d600a866135e9565b9450612afd565b949350505050565b600082612b798584612d1a565b14949350505050565b604080516080810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b831615159181019190915260e89190911c606082015290565b612bd38383612d8e565b6001600160a01b0383163b15610de1576000548281035b612bfd6000868380600101945086612c2f565b612c1a576040516368d2bf6b60e11b815260040160405180910390fd5b818110612bea578160005414611b8d57600080fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612c649033908990889088906004016137e4565b6020604051808303816000875af1925050508015612c9f575060408051601f3d908101601f19168201909252612c9c91810190613821565b60015b612cfd573d808015612ccd576040519150601f19603f3d011682016040523d82523d6000602084013e612cd2565b606091505b508051600003612cf5576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b600081815b8451811015612d86576000858281518110612d3c57612d3c6135fd565b60200260200101519050808311612d625760008381526020829052604090209250612d73565b600081815260208490526040902092505b5080612d7e816137a0565b915050612d1f565b509392505050565b6000805490829003612db35760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114612e6257808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101612e2a565b5081600003612e8357604051622e076360e81b815260040160405180910390fd5b60005550505050565b828054612e9890613531565b90600052602060002090601f016020900481019282612eba5760008555612f00565b82601f10612ed357805160ff1916838001178555612f00565b82800160010185558215612f00579182015b82811115612f00578251825591602001919060010190612ee5565b50612f0c929150612f10565b5090565b5b80821115612f0c5760008155600101612f11565b6001600160e01b03198116811461246d57600080fd5b600060208284031215612f4d57600080fd5b81356117b781612f25565b60008060408385031215612f6b57600080fd5b50508035926020909101359150565b60005b83811015612f95578181015183820152602001612f7d565b83811115610f1b5750506000910152565b60008151808452612fbe816020860160208601612f7a565b601f01601f19169290920160200192915050565b6020815260006117b76020830184612fa6565b600060208284031215612ff757600080fd5b5035919050565b80356001600160a01b038116811461301557600080fd5b919050565b6000806040838503121561302d57600080fd5b61303683612ffe565b946020939093013593505050565b60008060006060848603121561305957600080fd5b61306284612ffe565b925061307060208501612ffe565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b03808411156130b0576130b0613080565b604051601f8501601f19908116603f011681019082821181831017156130d8576130d8613080565b816040528093508581528686860111156130f157600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561311d57600080fd5b81356001600160401b0381111561313357600080fd5b8201601f8101841361314457600080fd5b612b6484823560208401613096565b801515811461246d57600080fd5b60006020828403121561317357600080fd5b81356117b781613153565b6000806000806080858703121561319457600080fd5b5050823594602084013594506040840135936060013592509050565b60008083601f8401126131c257600080fd5b5081356001600160401b038111156131d957600080fd5b6020830191508360208260051b8501011115610f9d57600080fd5b6000806020838503121561320757600080fd5b82356001600160401b0381111561321d57600080fd5b613229858286016131b0565b90969095509350505050565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b8181101561156c576132a0838551613235565b928401926080929092019160010161328d565b6000602082840312156132c557600080fd5b6117b782612ffe565b6020808252825182820181905260009190848201906040850190845b8181101561156c578351835292840192918401916001016132ea565b60008060006060848603121561331b57600080fd5b61332484612ffe565b95602085013595506040909401359392505050565b6000806040838503121561334c57600080fd5b61335583612ffe565b9150602083013561336581613153565b809150509250929050565b60008060006060848603121561338557600080fd5b505081359360208301359350604090920135919050565b600080600080608085870312156133b257600080fd5b6133bb85612ffe565b93506133c960208601612ffe565b92506040850135915060608501356001600160401b038111156133eb57600080fd5b8501601f810187136133fc57600080fd5b61340b87823560208401613096565b91505092959194509250565b60808101610c038284613235565b60008060006040848603121561343a57600080fd5b8335925060208401356001600160401b0381111561345757600080fd5b613463868287016131b0565b9497909650939450505050565b602080825282518282018190526000919060409081850190868401855b828110156134bc578151805185528681015187860152850151858501526060909301929085019060010161348d565b5091979650505050505050565b600080604083850312156134dc57600080fd5b6134e583612ffe565b91506134f360208401612ffe565b90509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061354557607f821691505b60208210810361356557634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561357d57600080fd5b81516117b781613153565b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156135ce576135ce61359e565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826135f8576135f86135d3565b500490565b634e487b7160e01b600052603260045260246000fd5b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526022908201527f417474656d7074696e6720746f206d696e7420746f6f206d616e7920746f6b656040820152616e7360f01b606082015260800190565b6000821982111561369f5761369f61359e565b500190565b602080825260169082015275141d589b1a58c81cdd5c1c1b1e48195e18d95959195960521b604082015260600190565b8054600090600181811c90808316806136ee57607f831692505b6020808410820361370f57634e487b7160e01b600052602260045260246000fd5b818015613723576001811461373457613761565b60ff19861689528489019650613761565b60008881526020902060005b868110156137595781548b820152908501908301613740565b505084890196505b50505050505092915050565b600061377982866136d4565b8451613789818360208901612f7a565b613795818301866136d4565b979650505050505050565b6000600182016137b2576137b261359e565b5060010190565b6000828210156137cb576137cb61359e565b500390565b6000826137df576137df6135d3565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061381790830184612fa6565b9695505050505050565b60006020828403121561383357600080fd5b81516117b781612f2556fea2646970667358221220ebd4a17c48b88ff981458793b62f35fdd2623865af218b65d325e56401e2baf864736f6c634300080d0033000000000000000000000000000000000000000000000000000000000000022b0000000000000000000000003db44da322ec23ac294362b0d75eefbc381694b4000000000000000000000000bfc07405f4afb78be5d352f57268d21c5ea7937a000000000000000000000000f0f8e9fdcf40b1b4ee575661b9307b7828eb4c4d000000000000000000000000a6160180df5d140c2622cdad07b1fd29de30795800000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000002e68747470733a2f2f6170692e6d6f76696573686f74732e696f2f636f6c6c656374696f6e732f746167732f34322f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000052e6a736f6e000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106103b75760003560e01c80638dc251e3116101f2578063d2cab0561161010d578063e6e070cb116100a0578063f24b87211161006f578063f24b872114610b51578063f2fde38b14610b71578063f3602a5e14610b91578063ff799d5114610bbe57600080fd5b8063e6e070cb14610aa6578063e985e9c514610ac8578063ec6be06e14610b11578063ed7bec9914610b3157600080fd5b8063e0ec7c36116100dc578063e0ec7c3614610a20578063e2f36dce14610a50578063e4203b5d14610a70578063e58306f914610a8657600080fd5b8063d2cab05614610999578063d5abeb01146109ac578063d9c4870e146109e0578063dde44b8914610a0057600080fd5b8063aa98e0c611610185578063bd32fb6611610154578063bd32fb661461090c578063c23dc68f1461092c578063c54e73e314610959578063c87b56dd1461097957600080fd5b8063aa98e0c6146108a3578063ad2f852a146108b9578063b11e1256146108d9578063b88d4fde146108f957600080fd5b806399a2557a116101c157806399a2557a1461083a5780639b6860c81461085a578063a0712d6814610870578063a22cb4651461088357600080fd5b80638dc251e3146107c557806395652cfa146107e557806395d89b411461080557806397377e901461081a57600080fd5b806342842e0e116102e25780636352211e116102755780637bd1c6aa116102445780637bd1c6aa146107445780637e8f1c2c1461075a5780638462151c1461077a5780638da5cb5b146107a757600080fd5b80636352211e146106d957806370a08231146106f9578063715018a61461071957806372fe71771461072e57600080fd5b80635aca1bb6116102b15780635aca1bb6146106395780635bbb2177146106595780635e84d7231461068657806360d938dc146106ba57600080fd5b806342842e0e146105ab57806350a4a120146105be57806353244feb146105f95780635354d0c41461061957600080fd5b80631b2204651161035a5780632ad0a197116103295780632ad0a1971461053e57806334d608c1146105545780633ccfd60b1461057457806341f434341461058957600080fd5b80631b220465146104bd5780631e84c413146104d257806323b872dd146104ec5780632a55205a146104ff57600080fd5b806306fdde031161039657806306fdde0314610437578063081812fc14610459578063095ea7b31461049157806318160ddd146104a457600080fd5b80620e7fa8146103bc57806301ffc9a7146103e557806305fefda714610415575b600080fd5b3480156103c857600080fd5b506103d260135481565b6040519081526020015b60405180910390f35b3480156103f157600080fd5b50610405610400366004612f3b565b610bde565b60405190151581526020016103dc565b34801561042157600080fd5b50610435610430366004612f58565b610c09565b005b34801561044357600080fd5b5061044c610c47565b6040516103dc9190612fd2565b34801561046557600080fd5b50610479610474366004612fe5565b610cd9565b6040516001600160a01b0390911681526020016103dc565b61043561049f36600461301a565b610d1d565b3480156104b057600080fd5b50600154600054036103d2565b3480156104c957600080fd5b50610435610de6565b3480156104de57600080fd5b50600a546104059060ff1681565b6104356104fa366004613044565b610e48565b34801561050b57600080fd5b5061051f61051a366004612f58565b610f21565b604080516001600160a01b0390931683526020830191909152016103dc565b34801561054a57600080fd5b506103d260125481565b34801561056057600080fd5b5061043561056f36600461310b565b610fa4565b34801561058057600080fd5b50610435610fe5565b34801561059557600080fd5b506104796daaeb6d7670e522a718067333cd4e81565b6104356105b9366004613044565b6110a8565b3480156105ca57600080fd5b506105de6105d9366004612fe5565b611176565b604080519384526020840192909252908201526060016103dc565b34801561060557600080fd5b50610435610614366004613161565b6111a9565b34801561062557600080fd5b5061043561063436600461317e565b6111ef565b34801561064557600080fd5b50610435610654366004613161565b6112d9565b34801561066557600080fd5b506106796106743660046131f4565b611316565b6040516103dc9190613271565b34801561069257600080fd5b506103d27f000000000000000000000000000000000000000000000000000000000000022a81565b3480156106c657600080fd5b50600a5461040590610100900460ff1681565b3480156106e557600080fd5b506104796106f4366004612fe5565b6113e1565b34801561070557600080fd5b506103d26107143660046132b3565b6113ec565b34801561072557600080fd5b5061043561143a565b34801561073a57600080fd5b506103d260145481565b34801561075057600080fd5b506103d260105481565b34801561076657600080fd5b50600a546104059062010000900460ff1681565b34801561078657600080fd5b5061079a6107953660046132b3565b611470565b6040516103dc91906132ce565b3480156107b357600080fd5b506008546001600160a01b0316610479565b3480156107d157600080fd5b506104356107e03660046132b3565b611578565b3480156107f157600080fd5b5061043561080036600461310b565b6115c4565b34801561081157600080fd5b5061044c611601565b34801561082657600080fd5b50610435610835366004612f58565b611610565b34801561084657600080fd5b5061079a610855366004613306565b611645565b34801561086657600080fd5b506103d260115481565b61043561087e366004612fe5565b6117be565b34801561088f57600080fd5b5061043561089e366004613339565b611927565b3480156108af57600080fd5b506103d2600b5481565b3480156108c557600080fd5b50600f54610479906001600160a01b031681565b3480156108e557600080fd5b506104356108f4366004613370565b6119eb565b61043561090736600461339c565b611ab8565b34801561091857600080fd5b50610435610927366004612fe5565b611b94565b34801561093857600080fd5b5061094c610947366004612fe5565b611bc3565b6040516103dc9190613417565b34801561096557600080fd5b50610435610974366004613161565b611c3b565b34801561098557600080fd5b5061044c610994366004612fe5565b611c7f565b6104356109a7366004613425565b611d4d565b3480156109b857600080fd5b506103d27f000000000000000000000000000000000000000000000000000000000000022b81565b3480156109ec57600080fd5b50600e54610479906001600160a01b031681565b348015610a0c57600080fd5b50610435610a1b366004612fe5565b611fb0565b348015610a2c57600080fd5b50610405610a3b3660046132b3565b60166020526000908152604090205460ff1681565b348015610a5c57600080fd5b50610435610a6b366004613425565b611fdf565b348015610a7c57600080fd5b506103d2600c5481565b348015610a9257600080fd5b50610435610aa136600461301a565b6121df565b348015610ab257600080fd5b50610abb6122c0565b6040516103dc9190613470565b348015610ad457600080fd5b50610405610ae33660046134c9565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610b1d57600080fd5b50610435610b2c3660046132b3565b61233d565b348015610b3d57600080fd5b50600d54610479906001600160a01b031681565b348015610b5d57600080fd5b50610435610b6c3660046132b3565b612389565b348015610b7d57600080fd5b50610435610b8c3660046132b3565b6123d5565b348015610b9d57600080fd5b506103d2610bac3660046132b3565b60156020526000908152604090205481565b348015610bca57600080fd5b50610435610bd9366004612fe5565b612470565b60006001600160e01b0319821663152a902d60e11b1480610c035750610c038261249f565b92915050565b6008546001600160a01b03163314610c3c5760405162461bcd60e51b8152600401610c33906134fc565b60405180910390fd5b601391909155601155565b606060028054610c5690613531565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8290613531565b8015610ccf5780601f10610ca457610100808354040283529160200191610ccf565b820191906000526020600020905b815481529060010190602001808311610cb257829003601f168201915b5050505050905090565b6000610ce4826124ed565b610d01576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b816daaeb6d7670e522a718067333cd4e3b15610dd757604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610d8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610daf919061356b565b610dd757604051633b79c77360e21b81526001600160a01b0382166004820152602401610c33565b610de18383612514565b505050565b6008546001600160a01b03163314610e105760405162461bcd60e51b8152600401610c33906134fc565b6017805480610e2157610e21613588565b60008281526020812060036000199093019283020181815560018101829055600201559055565b826daaeb6d7670e522a718067333cd4e3b15610f1057336001600160a01b03821603610e7e57610e798484846125b4565b610f1b565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610ecd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef1919061356b565b610f1057604051633b79c77360e21b8152336004820152602401610c33565b610f1b8484846125b4565b50505050565b600080610f2d846124ed565b610f6e5760405162461bcd60e51b81526020600482015260126024820152712737b716b2bc34b9ba32b73a103a37b5b2b760711b6044820152606401610c33565b600f546010546001600160a01b039091169061271090610f8e90866135b4565b610f9891906135e9565b915091505b9250929050565b6008546001600160a01b03163314610fce5760405162461bcd60e51b8152600401610c33906134fc565b8051610fe1906019906020840190612e8c565b5050565b6008546001600160a01b0316331461100f5760405162461bcd60e51b8152600401610c33906134fc565b600e5460405147916000916001600160a01b039091169083908381818185875af1925050503d8060008114611060576040519150601f19603f3d011682016040523d82523d6000602084013e611065565b606091505b5050905080610fe15760405162461bcd60e51b815260206004820152600f60248201526e15da5d1a191c985dc819985a5b1959608a1b6044820152606401610c33565b826daaeb6d7670e522a718067333cd4e3b1561116b57336001600160a01b038216036110d957610e7984848461274c565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611128573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061114c919061356b565b61116b57604051633b79c77360e21b8152336004820152602401610c33565b610f1b84848461274c565b6017818154811061118657600080fd5b600091825260209091206003909102018054600182015460029092015490925083565b6008546001600160a01b031633146111d35760405162461bcd60e51b8152600401610c33906134fc565b600a8054911515620100000262ff000019909216919091179055565b6008546001600160a01b031633146112195760405162461bcd60e51b8152600401610c33906134fc565b60175484106112585760405162461bcd60e51b815260206004820152600b60248201526a0aee4dedcce40d2dcc8caf60ab1b6044820152606401610c33565b826017858154811061126c5761126c6135fd565b9060005260206000209060030201600001819055508160178581548110611295576112956135fd565b90600052602060002090600302016001018190555080601785815481106112be576112be6135fd565b90600052602060002090600302016002018190555050505050565b6008546001600160a01b031633146113035760405162461bcd60e51b8152600401610c33906134fc565b600a805460ff1916911515919091179055565b6060816000816001600160401b0381111561133357611333613080565b60405190808252806020026020018201604052801561138557816020015b6040805160808101825260008082526020808301829052928201819052606082015282526000199092019101816113515790505b50905060005b8281146113d8576113b38686838181106113a7576113a76135fd565b90506020020135611bc3565b8282815181106113c5576113c56135fd565b602090810291909101015260010161138b565b50949350505050565b6000610c0382612767565b60006001600160a01b038216611415576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146114645760405162461bcd60e51b8152600401610c33906134fc565b61146e60006127ce565b565b60606000806000611480856113ec565b90506000816001600160401b0381111561149c5761149c613080565b6040519080825280602002602001820160405280156114c5578160200160208202803683370190505b5090506114f260408051608081018252600080825260208201819052918101829052606081019190915290565b60005b83861461156c5761150581612820565b915081604001516115645781516001600160a01b03161561152557815194505b876001600160a01b0316856001600160a01b0316036115645780838780600101985081518110611557576115576135fd565b6020026020010181815250505b6001016114f5565b50909695505050505050565b6008546001600160a01b031633146115a25760405162461bcd60e51b8152600401610c33906134fc565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b031633146115ee5760405162461bcd60e51b8152600401610c33906134fc565b8051610fe1906018906020840190612e8c565b606060038054610c5690613531565b6008546001600160a01b0316331461163a5760405162461bcd60e51b8152600401610c33906134fc565b601491909155601255565b606081831061166757604051631960ccad60e11b815260040160405180910390fd5b60008061167360005490565b905080841115611681578093505b600061168c876113ec565b9050848610156116ab57858503818110156116a5578091505b506116af565b5060005b6000816001600160401b038111156116c9576116c9613080565b6040519080825280602002602001820160405280156116f2578160200160208202803683370190505b509050816000036117085793506117b792505050565b600061171388611bc3565b905060008160400151611724575080515b885b8881141580156117365750848714155b156117ab5761174481612820565b925082604001516117a35782516001600160a01b03161561176457825191505b8a6001600160a01b0316826001600160a01b0316036117a35780848880600101995081518110611796576117966135fd565b6020026020010181815250505b600101611726565b50505092835250909150505b9392505050565b600a5460ff166118095760405162461bcd60e51b81526020600482015260166024820152755075626c69632073616c65206e6f742061637469766560501b6044820152606401610c33565b60026009540361182b5760405162461bcd60e51b8152600401610c3390613613565b600260095560115461183e9082906135b4565b34146118835760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd08195d1a08185b5bdd5b9d60621b6044820152606401610c33565b6012548111156118a55760405162461bcd60e51b8152600401610c339061364a565b6000816118b18361285c565b6118bb919061368c565b90507f000000000000000000000000000000000000000000000000000000000000022a816118ec6001546000540390565b6118f6919061368c565b11156119145760405162461bcd60e51b8152600401610c33906136a4565b61191e3382612965565b50506001600955565b816daaeb6d7670e522a718067333cd4e3b156119e157604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611995573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119b9919061356b565b6119e157604051633b79c77360e21b81526001600160a01b0382166004820152602401610c33565b610de1838361297f565b6008546001600160a01b03163314611a155760405162461bcd60e51b8152600401610c33906134fc565b604080516060810182529384526020840192835283019081526017805460018101825560009190915292517fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c1560039094029384015590517fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c16830155517fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c1790910155565b836daaeb6d7670e522a718067333cd4e3b15611b8157336001600160a01b03821603611aef57611aea858585856129eb565b611b8d565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611b3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b62919061356b565b611b8157604051633b79c77360e21b8152336004820152602401610c33565b611b8d858585856129eb565b5050505050565b6008546001600160a01b03163314611bbe5760405162461bcd60e51b8152600401610c33906134fc565b600b55565b6040805160808082018352600080835260208084018290528385018290526060808501839052855193840186528284529083018290529382018190529281018390529091506000548310611c175792915050565b611c2083612820565b9050806040015115611c325792915050565b6117b783612a2f565b6008546001600160a01b03163314611c655760405162461bcd60e51b8152600401610c33906134fc565b600a80549115156101000261ff0019909216919091179055565b6060611c8a826124ed565b611cee5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610c33565b600060188054611cfd90613531565b905011611d195760405180602001604052806000815250610c03565b6018611d2483612a64565b6019604051602001611d389392919061376d565b60405160208183030381529060405292915050565b600a54610100900460ff16611d995760405162461bcd60e51b815260206004820152601260248201527150726573616c65206e6f742061637469766560701b6044820152606401610c33565b600260095403611dbb5760405162461bcd60e51b8152600401610c3390613613565b60026009556040805160208084028281018201909352838252611e339285918591829185019084908082843760009201919091525050600b546040516bffffffffffffffffffffffff193360601b16602082015290925060340190505b60405160208183030381529060405280519060200120612b6c565b611e785760405162461bcd60e51b8152602060048201526016602482015275165bdd49dc99481b9bdd081dda1a5d195b1a5cdd195960521b6044820152606401610c33565b82601354611e8691906135b4565b3414611ecb5760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd08195d1a08185b5bdd5b9d60621b6044820152606401610c33565b60145433600090815260156020526040902054611ee990859061368c565b1115611f075760405162461bcd60e51b8152600401610c339061364a565b600083611f138561285c565b611f1d919061368c565b90507f000000000000000000000000000000000000000000000000000000000000022a81611f4e6001546000540390565b611f58919061368c565b1115611f765760405162461bcd60e51b8152600401610c33906136a4565b3360009081526015602052604081208054839290611f9590849061368c565b90915550611fa590503382612965565b505060016009555050565b6008546001600160a01b03163314611fda5760405162461bcd60e51b8152600401610c33906134fc565b600c55565b600a54610100900460ff1661202b5760405162461bcd60e51b815260206004820152601260248201527150726573616c65206e6f742061637469766560701b6044820152606401610c33565b60026009540361204d5760405162461bcd60e51b8152600401610c3390613613565b600260095560408051602080840282810182019093528382526120b59285918591829185019084908082843760009201919091525050600c546040516bffffffffffffffffffffffff193360601b166020820152603481018990529092506054019050611e18565b6120fa5760405162461bcd60e51b8152602060048201526016602482015275165bdd49dc99481b9bdd081dda1a5d195b1a5cdd195960521b6044820152606401610c33565b7f000000000000000000000000000000000000000000000000000000000000022a836121296001546000540390565b612133919061368c565b11156121515760405162461bcd60e51b8152600401610c33906136a4565b3360009081526016602052604090205460ff16156121b15760405162461bcd60e51b815260206004820152601a60248201527f46726565206d696e747320616c726561647920636c61696d65640000000000006044820152606401610c33565b336000818152601660205260409020805460ff191660011790556121d59084612965565b5050600160095550565b600d546001600160a01b031633146122395760405162461bcd60e51b815260206004820152601e60248201527f43616c6c6572206973206e6f74207468652061646d696e206d696e74657200006044820152606401610c33565b7f000000000000000000000000000000000000000000000000000000000000022b816122686001546000540390565b612272919061368c565b11156122b65760405162461bcd60e51b815260206004820152601360248201527213585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610c33565b610fe18282612965565b60606017805480602002602001604051908101604052809291908181526020016000905b8282101561233457838290600052602060002090600302016040518060600160405290816000820154815260200160018201548152602001600282015481525050815260200190600101906122e4565b50505050905090565b6008546001600160a01b031633146123675760405162461bcd60e51b8152600401610c33906134fc565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b031633146123b35760405162461bcd60e51b8152600401610c33906134fc565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b031633146123ff5760405162461bcd60e51b8152600401610c33906134fc565b6001600160a01b0381166124645760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c33565b61246d816127ce565b50565b6008546001600160a01b0316331461249a5760405162461bcd60e51b8152600401610c33906134fc565b601055565b60006301ffc9a760e01b6001600160e01b0319831614806124d057506380ac58cd60e01b6001600160e01b03198316145b80610c035750506001600160e01b031916635b5e139f60e01b1490565b6000805482108015610c03575050600090815260046020526040902054600160e01b161590565b600061251f826113e1565b9050336001600160a01b038216146125585761253b8133610ae3565b612558576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006125bf82612767565b9050836001600160a01b0316816001600160a01b0316146125f25760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b0388169091141761263f576126228633610ae3565b61263f57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661266657604051633a954ecd60e21b815260040160405180910390fd5b801561267157600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003612703576001840160008181526004602052604081205490036127015760005481146127015760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b610de183838360405180602001604052806000815250611ab8565b6000816000548110156127b55760008181526004602052604081205490600160e01b821690036127b3575b806000036117b7575060001901600081815260046020526040902054612792565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260046020526040902054610c0390612b82565b600a5460009062010000900460ff1661287757506000919050565b601754158015906128ad57506017600081548110612897576128976135fd565b9060005260206000209060030201600001548210155b1561295d5760005b60175481101561295b57601781815481106128d2576128d26135fd565b9060005260206000209060030201600001548310158015612917575060178181548110612901576129016135fd565b9060005260206000209060030201600101548311155b15612949576017818154811061292f5761292f6135fd565b906000526020600020906003020160020154915050919050565b80612953816137a0565b9150506128b5565b505b506000919050565b610fe1828260405180602001604052806000815250612bc9565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6129f6848484610e48565b6001600160a01b0383163b15610f1b57612a1284848484612c2f565b610f1b576040516368d2bf6b60e11b815260040160405180910390fd5b604080516080810182526000808252602082018190529181018290526060810191909152610c03612a5f83612767565b612b82565b606081600003612a8b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612ab55780612a9f816137a0565b9150612aae9050600a836135e9565b9150612a8f565b6000816001600160401b03811115612acf57612acf613080565b6040519080825280601f01601f191660200182016040528015612af9576020820181803683370190505b5090505b8415612b6457612b0e6001836137b9565b9150612b1b600a866137d0565b612b2690603061368c565b60f81b818381518110612b3b57612b3b6135fd565b60200101906001600160f81b031916908160001a905350612b5d600a866135e9565b9450612afd565b949350505050565b600082612b798584612d1a565b14949350505050565b604080516080810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b831615159181019190915260e89190911c606082015290565b612bd38383612d8e565b6001600160a01b0383163b15610de1576000548281035b612bfd6000868380600101945086612c2f565b612c1a576040516368d2bf6b60e11b815260040160405180910390fd5b818110612bea578160005414611b8d57600080fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612c649033908990889088906004016137e4565b6020604051808303816000875af1925050508015612c9f575060408051601f3d908101601f19168201909252612c9c91810190613821565b60015b612cfd573d808015612ccd576040519150601f19603f3d011682016040523d82523d6000602084013e612cd2565b606091505b508051600003612cf5576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b600081815b8451811015612d86576000858281518110612d3c57612d3c6135fd565b60200260200101519050808311612d625760008381526020829052604090209250612d73565b600081815260208490526040902092505b5080612d7e816137a0565b915050612d1f565b509392505050565b6000805490829003612db35760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114612e6257808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101612e2a565b5081600003612e8357604051622e076360e81b815260040160405180910390fd5b60005550505050565b828054612e9890613531565b90600052602060002090601f016020900481019282612eba5760008555612f00565b82601f10612ed357805160ff1916838001178555612f00565b82800160010185558215612f00579182015b82811115612f00578251825591602001919060010190612ee5565b50612f0c929150612f10565b5090565b5b80821115612f0c5760008155600101612f11565b6001600160e01b03198116811461246d57600080fd5b600060208284031215612f4d57600080fd5b81356117b781612f25565b60008060408385031215612f6b57600080fd5b50508035926020909101359150565b60005b83811015612f95578181015183820152602001612f7d565b83811115610f1b5750506000910152565b60008151808452612fbe816020860160208601612f7a565b601f01601f19169290920160200192915050565b6020815260006117b76020830184612fa6565b600060208284031215612ff757600080fd5b5035919050565b80356001600160a01b038116811461301557600080fd5b919050565b6000806040838503121561302d57600080fd5b61303683612ffe565b946020939093013593505050565b60008060006060848603121561305957600080fd5b61306284612ffe565b925061307060208501612ffe565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b03808411156130b0576130b0613080565b604051601f8501601f19908116603f011681019082821181831017156130d8576130d8613080565b816040528093508581528686860111156130f157600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561311d57600080fd5b81356001600160401b0381111561313357600080fd5b8201601f8101841361314457600080fd5b612b6484823560208401613096565b801515811461246d57600080fd5b60006020828403121561317357600080fd5b81356117b781613153565b6000806000806080858703121561319457600080fd5b5050823594602084013594506040840135936060013592509050565b60008083601f8401126131c257600080fd5b5081356001600160401b038111156131d957600080fd5b6020830191508360208260051b8501011115610f9d57600080fd5b6000806020838503121561320757600080fd5b82356001600160401b0381111561321d57600080fd5b613229858286016131b0565b90969095509350505050565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b8181101561156c576132a0838551613235565b928401926080929092019160010161328d565b6000602082840312156132c557600080fd5b6117b782612ffe565b6020808252825182820181905260009190848201906040850190845b8181101561156c578351835292840192918401916001016132ea565b60008060006060848603121561331b57600080fd5b61332484612ffe565b95602085013595506040909401359392505050565b6000806040838503121561334c57600080fd5b61335583612ffe565b9150602083013561336581613153565b809150509250929050565b60008060006060848603121561338557600080fd5b505081359360208301359350604090920135919050565b600080600080608085870312156133b257600080fd5b6133bb85612ffe565b93506133c960208601612ffe565b92506040850135915060608501356001600160401b038111156133eb57600080fd5b8501601f810187136133fc57600080fd5b61340b87823560208401613096565b91505092959194509250565b60808101610c038284613235565b60008060006040848603121561343a57600080fd5b8335925060208401356001600160401b0381111561345757600080fd5b613463868287016131b0565b9497909650939450505050565b602080825282518282018190526000919060409081850190868401855b828110156134bc578151805185528681015187860152850151858501526060909301929085019060010161348d565b5091979650505050505050565b600080604083850312156134dc57600080fd5b6134e583612ffe565b91506134f360208401612ffe565b90509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061354557607f821691505b60208210810361356557634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561357d57600080fd5b81516117b781613153565b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156135ce576135ce61359e565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826135f8576135f86135d3565b500490565b634e487b7160e01b600052603260045260246000fd5b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526022908201527f417474656d7074696e6720746f206d696e7420746f6f206d616e7920746f6b656040820152616e7360f01b606082015260800190565b6000821982111561369f5761369f61359e565b500190565b602080825260169082015275141d589b1a58c81cdd5c1c1b1e48195e18d95959195960521b604082015260600190565b8054600090600181811c90808316806136ee57607f831692505b6020808410820361370f57634e487b7160e01b600052602260045260246000fd5b818015613723576001811461373457613761565b60ff19861689528489019650613761565b60008881526020902060005b868110156137595781548b820152908501908301613740565b505084890196505b50505050505092915050565b600061377982866136d4565b8451613789818360208901612f7a565b613795818301866136d4565b979650505050505050565b6000600182016137b2576137b261359e565b5060010190565b6000828210156137cb576137cb61359e565b500390565b6000826137df576137df6135d3565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061381790830184612fa6565b9695505050505050565b60006020828403121561383357600080fd5b81516117b781612f2556fea2646970667358221220ebd4a17c48b88ff981458793b62f35fdd2623865af218b65d325e56401e2baf864736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000022b0000000000000000000000003db44da322ec23ac294362b0d75eefbc381694b4000000000000000000000000bfc07405f4afb78be5d352f57268d21c5ea7937a000000000000000000000000f0f8e9fdcf40b1b4ee575661b9307b7828eb4c4d000000000000000000000000a6160180df5d140c2622cdad07b1fd29de30795800000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000002e68747470733a2f2f6170692e6d6f76696573686f74732e696f2f636f6c6c656374696f6e732f746167732f34322f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000052e6a736f6e000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _maxSupply (uint256): 555
Arg [1] : _adminMinter (address): 0x3dB44dA322ec23aC294362B0D75eEfbc381694B4
Arg [2] : _beneficiaryAddress (address): 0xBFC07405F4AFB78BE5d352f57268d21c5eA7937a
Arg [3] : _owner (address): 0xF0F8e9fdCf40B1B4Ee575661b9307B7828eb4C4d
Arg [4] : _royaltyAddress (address): 0xa6160180dF5D140C2622cdAD07b1FD29DE307958
Arg [5] : _baseUri (string): https://api.movieshots.io/collections/tags/42/
Arg [6] : _baseExtension (string): .json
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000000000022b
Arg [1] : 0000000000000000000000003db44da322ec23ac294362b0d75eefbc381694b4
Arg [2] : 000000000000000000000000bfc07405f4afb78be5d352f57268d21c5ea7937a
Arg [3] : 000000000000000000000000f0f8e9fdcf40b1b4ee575661b9307b7828eb4c4d
Arg [4] : 000000000000000000000000a6160180df5d140c2622cdad07b1fd29de307958
Arg [5] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [7] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [8] : 68747470733a2f2f6170692e6d6f76696573686f74732e696f2f636f6c6c6563
Arg [9] : 74696f6e732f746167732f34322f000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [11] : 2e6a736f6e000000000000000000000000000000000000000000000000000000
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.