Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
888 EX
Holders
173
Total Transfers
-
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
EXODUS
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT /* oooooooooooo .o8 `888' `8 "888 888 oooo ooo .ooooo. .oooo888 oooo oooo .oooo.o 888oooo8 `88b..8P' d88' `88b d88' `888 `888 `888 d88( "8 888 " Y888' 888 888 888 888 888 888 `"Y88b. 888 o .o8"'88b 888 888 888 888 888 888 o. )88b o888ooooood8 o88' 888o `Y8bod8P' `Y8bod88P" `V88V"V8P' 8""888P' */ pragma solidity ^0.8.13; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "./ERC721Psi.sol"; import "./operator-filter-registry/src/DefaultOperatorFilterer.sol"; contract EXODUS is ERC721Psi, ERC2981, Ownable, ReentrancyGuard, DefaultOperatorFilterer { using Strings for uint256; uint256 public maxSupply = 888; uint256 public vipPrice = 0.035 ether; uint256 public prePrice = 0.01 ether; uint256 public publicPrice = 0.012 ether; uint256 public dandyPrice = 0; bool public vipSaleStart = false; bool public preSaleStart = false; bool public pubSaleStart = false; bool public dandySaleStart = false; uint256 public vipMintLimit = 1; uint256 public vipMintQuantity = 4; uint256 public alMintLimit = 4; uint256 public publicMintLimit = 10; uint256 public dandyMintLimit; mapping(address => uint256) public vipClaimedCount; mapping(address => uint256) public vipClaimed; mapping(address => uint256) public alClaimed; mapping(address => uint256) public publicClaimed; mapping(address => uint256) public dandyClaimed; bytes32 public vipMerkleRoot = 0x72dccd22bce759f791815f55e802762cbd43b62f32ae43ea7b7ac4c0a816c059; bytes32 public merkleRoot = 0x65eb01599a027f354be4984ddf2283facbe1307d3ddc4aca4f6eb5ab5ed753fa; bytes32 public dandyMerkleRoot = 0xeb3e53e15dd1747e75e955c81efbb4068ab2658729444ea5a849b864286ba325; bool public revealed = false; string private _baseTokenURI; string private hiddenUri = "https://arweave.net/Ztn9VNOmj8iaRztb9ylCZpsoH5F6I45s6bAK0Mm3DgI/hidden.json"; constructor() ERC721Psi("EXODUS", "EX") { _setDefaultRoyalty(0xE8E269CB62EA0E3345C46C29A2A7291F64CF6D62, 420); _member.member1 = 0x75462a1041ef175754317C2a03cf12A351e63BC6; _member.member2 = 0x68B4008b6b69CF0A93DA3b76B90C2F26F5530f07; _member.member3 = 0x258a35308406F9B1E67692378630AAA09Efd0A1F; _member.member4 = 0x8C712B8754b8DBe89E2E3D83f96fdD7494F620e0; _member.member5 = 0xe8afaD3Ae50bF9D83e0B9F016C4fCb6Edd0f7A0f; _member.member6 = 0x07cE3bb422a537693aFD130259E5D3bD0dAC7479; _member.member7 = 0xeDAcc663C23ba31398550E17b1ccF47cd9Da1888; _member.treasury = 0xE8E269CB62EA0E3345C46C29A2A7291F64CF6D62; } // URI function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function tokenURI(uint256 _tokenId) public view virtual override(ERC721Psi) returns (string memory) { if (revealed) { return string(abi.encodePacked(ERC721Psi.tokenURI(_tokenId), ".json")); } else { return hiddenUri; } } // vipSale function checkVipMerkleProof(bytes32[] calldata _merkleProof) public view returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); return MerkleProof.verifyCalldata(_merkleProof, vipMerkleRoot, leaf); } function _vipMintCheck(uint256 _supply,uint256 _cost) private view { require(_supply + vipMintQuantity <= maxSupply, "Max supply over"); require(msg.value >= _cost, "Not enough funds"); require(vipClaimedCount[msg.sender] + 1 <= vipMintLimit, "Already claimed max"); } function vipMint(bytes32[] calldata _vipMerkleProof) public payable nonReentrant { uint256 supply = totalSupply(); uint256 cost = vipPrice; require(vipSaleStart, "Before sale begin."); _vipMintCheck(supply, cost); require(checkVipMerkleProof(_vipMerkleProof), "Invalid Merkle Proof"); vipClaimedCount[msg.sender] += 1; vipClaimed[msg.sender] += vipMintQuantity; _safeMint(msg.sender, vipMintQuantity); } // preSale function checkMerkleProof(bytes32[] calldata _merkleProof) public view returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); return MerkleProof.verifyCalldata(_merkleProof, merkleRoot, leaf); } function _preMintCheck(uint256 _quantity, uint256 _supply, uint256 _cost) private view { require(_supply + _quantity <= maxSupply, "Max supply over"); require(msg.value >= _cost, "Not enough funds"); require(alClaimed[msg.sender] + _quantity <= alMintLimit,"Already claimed max"); } function preMint(uint256 _quantity, bytes32[] calldata _merkleProof) public payable nonReentrant { uint256 supply = totalSupply(); uint256 cost = prePrice * _quantity; require(preSaleStart, "Before sale begin."); _preMintCheck(_quantity, supply, cost); require(checkMerkleProof(_merkleProof), "Invalid Merkle Proof"); alClaimed[msg.sender] += _quantity; _safeMint(msg.sender, _quantity); } // publicSale function pubMint(uint256 _quantity) public payable nonReentrant { uint256 supply = totalSupply(); uint256 cost = publicPrice * _quantity; require(pubSaleStart, "Before sale begin."); _publicMintCheck(_quantity, supply, cost); publicClaimed[msg.sender] += _quantity; _safeMint(msg.sender, _quantity); } function _publicMintCheck(uint256 _quantity, uint256 _supply, uint256 _cost) private view { require(_supply + _quantity <= maxSupply, "Max supply over"); require(msg.value >= _cost, "Not enough funds"); require(publicClaimed[msg.sender] + _quantity <= publicMintLimit,"Already claimed max"); } // dandySale function checkDandyMerkleProof(bytes32[] calldata _merkleProof) public view returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); return MerkleProof.verifyCalldata(_merkleProof, dandyMerkleRoot, leaf); } function _dandyMintCheck(uint256 _quantity,uint256 _supply,uint256 _cost) private view { require(_supply + _quantity <= maxSupply, "Max supply over"); require(msg.value >= _cost, "Not enough funds"); require(dandyClaimed[msg.sender] + _quantity <= dandyMintLimit, "Already claimed max"); } function dandyMint(uint256 _quantity, bytes32[] calldata _dandyMerkleProof) public payable nonReentrant { uint256 supply = totalSupply(); uint256 cost = dandyPrice * _quantity; require(dandySaleStart, "Before sale begin."); _dandyMintCheck(_quantity, supply, cost); require(checkDandyMerkleProof(_dandyMerkleProof), "Invalid Merkle Proof"); dandyClaimed[msg.sender] += _quantity; _safeMint(msg.sender, _quantity); } // ownerMint function ownerMint(address _address, uint256 _quantity) public onlyOwner { uint256 supply = totalSupply(); require(supply + _quantity <= maxSupply, "Max supply over"); _safeMint(_address, _quantity); } // setURI function setBaseURI(string calldata _uri) public onlyOwner { _baseTokenURI = _uri; } function setHiddenBaseURI(string memory uri_) public onlyOwner { hiddenUri = uri_; } // setReveal function reveal(bool bool_) public onlyOwner { revealed = bool_; } // setMerkleRoot function setVipMerkleRoot(bytes32 _vipMerkleRoot) public onlyOwner { vipMerkleRoot = _vipMerkleRoot; } function setAlMerkleRoot(bytes32 _merkleRoot) public onlyOwner { merkleRoot = _merkleRoot; } function setDandyMerkleRoot(bytes32 _dandyMerkleRoot) public onlyOwner { dandyMerkleRoot = _dandyMerkleRoot; } // setSaleStart function setVipSaleStart(bool _state) public onlyOwner { vipSaleStart = _state; } function setPreSaleStart(bool _state) public onlyOwner { preSaleStart = _state; } function setPublicSaleStart(bool _state) public onlyOwner { pubSaleStart = _state; } function setDandySaleStart(bool _state) public onlyOwner { dandySaleStart = _state; } // setLimit function setVipMintLimit(uint256 _count) public onlyOwner { vipMintLimit = _count; } function setAlMintLimit(uint256 _quantity) public onlyOwner { alMintLimit = _quantity; } function setPublicMintLimit(uint256 _quantity) public onlyOwner { publicMintLimit = _quantity; } function setDandyMintLimit(uint256 _quantity) public onlyOwner { dandyMintLimit = _quantity; } // setMaxSupply function setMaxSupply(uint256 _quantity) public onlyOwner { require(totalSupply() <= maxSupply, "Lower than _currentIndex."); maxSupply = _quantity; } // setPrice function setVipPrice(uint256 _price) public onlyOwner { vipPrice = _price; } function setPrePrice(uint256 _price) public onlyOwner { prePrice = _price; } function setPublicPrice(uint256 _price) public onlyOwner { publicPrice = _price; } function setDandyPrice(uint256 _price) public onlyOwner { dandyPrice = _price; } // withdraw struct ProjectMember { address member1; address member2; address member3; address member4; address member5; address member6; address member7; address treasury; } ProjectMember private _member; function setMemberAddress( address _member1, address _member2, address _member3, address _member4, address _member5, address _member6, address _member7, address _treasury ) public onlyOwner { _member.member1 = _member1; _member.member2 = _member2; _member.member3 = _member3; _member.member4 = _member4; _member.member5 = _member5; _member.member6 = _member6; _member.member7 = _member7; _member.treasury = _treasury; } function withdraw() external onlyOwner { require( _member.member1 != address(0) && _member.member2 != address(0) && _member.member3 != address(0) && _member.member4 != address(0) && _member.member5 != address(0) && _member.member6 != address(0) && _member.member7 != address(0) && _member.treasury != address(0), "Please set member address" ); uint256 balance = address(this).balance; Address.sendValue(payable(_member.member1), ((balance * 1000) / 10000)); Address.sendValue(payable(_member.member2),((balance * 1000) / 10000)); Address.sendValue(payable(_member.member3), ((balance * 1000) / 10000)); Address.sendValue(payable(_member.member4), ((balance * 1000) / 10000)); Address.sendValue(payable(_member.member5),((balance * 1000) / 10000)); Address.sendValue(payable(_member.member6),((balance * 1000) / 10000)); Address.sendValue(payable(_member.member7),((balance * 1000) / 10000)); Address.sendValue(payable(_member.treasury),((balance * 3000) / 10000)); } // OperatorFilterer function setOperatorFilteringEnabled(bool _state) external onlyOwner { operatorFilteringEnabled = _state; } function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom( address from, address to, uint256 tokenId ) public override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId ) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } // Royality function setRoyalty(address _royaltyAddress, uint96 _feeNumerator) external onlyOwner { _setDefaultRoyalty(_royaltyAddress, _feeNumerator); } function supportsInterface(bytes4 _interfaceId) public view virtual override(ERC721Psi, ERC2981) returns (bool) { return ERC721Psi.supportsInterface(_interfaceId) || ERC2981.supportsInterface(_interfaceId); } // walletOfOwner function _startTokenId() internal view virtual returns (uint256) { return 1; } function walletOfOwner(address _address) external view virtual returns (uint256[] memory) { uint256 ownerTokenCount = balanceOf(_address); uint256[] memory tokenIds = new uint256[](ownerTokenCount); uint256 tokenindex = 0; for (uint256 i = _startTokenId(); i < _minted; i++) { if(_address == this.tryOwnerOf(i)) tokenIds[tokenindex++] = i; } return tokenIds; } function tryOwnerOf(uint256 tokenId) external view virtual returns (address) { try this.ownerOf(tokenId) returns (address _address) { return(_address); } catch { return (address(0));//return 0x0 if error. } } }
// 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 /** ______ _____ _____ ______ ___ __ _ _ _ | ____| __ \ / ____|____ |__ \/_ | || || | | |__ | |__) | | / / ) || | \| |/ | | __| | _ /| | / / / / | |\_ _/ | |____| | \ \| |____ / / / /_ | | | | |______|_| \_\\_____|/_/ |____||_| |_| */ pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/StorageSlot.sol"; import "solidity-bits/contracts/BitMaps.sol"; contract ERC721Psi is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; using BitMaps for BitMaps.BitMap; BitMaps.BitMap private _batchHead; string private _name; string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) internal _owners; uint256 internal _minted = 1; mapping(uint256 => address) private _tokenApprovals; mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint) { require(owner != address(0), "ERC721Psi: balance query for the zero address"); uint count; for( uint i = 1; i < _minted; ++i ){ if(_exists(i)){ if( owner == ownerOf(i)){ ++count; } } } return count; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { (address owner, ) = _ownerAndBatchHeadOf(tokenId); return owner; } function _ownerAndBatchHeadOf(uint256 tokenId) internal view returns (address owner, uint256 tokenIdBatchHead){ require(_exists(tokenId), "ERC721Psi: owner query for nonexistent token"); tokenIdBatchHead = _getBatchHead(tokenId); owner = _owners[tokenIdBatchHead]; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Psi: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ownerOf(tokenId); require(to != owner, "ERC721Psi: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721Psi: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require( _exists(tokenId), "ERC721Psi: approved query for nonexistent token" ); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721Psi: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require( _isApprovedOrOwner(_msgSender(), tokenId), "ERC721Psi: transfer caller is not owner nor approved" ); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require( _isApprovedOrOwner(_msgSender(), tokenId), "ERC721Psi: transfer caller is not owner nor approved" ); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, 1,_data), "ERC721Psi: transfer to non ERC721Receiver implementer" ); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return tokenId < _minted; } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require( _exists(tokenId), "ERC721Psi: operator query for nonexistent token" ); address owner = ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @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. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ""); } function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { uint256 startTokenId = _minted; _mint(to, quantity); require( _checkOnERC721Received(address(0), to, startTokenId, quantity, _data), "ERC721Psi: transfer to non ERC721Receiver implementer" ); } function _mint( address to, uint256 quantity ) internal virtual { uint256 tokenIdBatchHead = _minted; require(quantity > 0, "ERC721Psi: quantity must be greater 0"); require(to != address(0), "ERC721Psi: mint to the zero address"); _beforeTokenTransfers(address(0), to, tokenIdBatchHead, quantity); _minted += quantity; _owners[tokenIdBatchHead] = to; _batchHead.set(tokenIdBatchHead); _afterTokenTransfers(address(0), to, tokenIdBatchHead, quantity); // Emit events for(uint256 tokenId=tokenIdBatchHead;tokenId < tokenIdBatchHead + quantity; tokenId++){ emit Transfer(address(0), to, tokenId); } } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { (address owner, uint256 tokenIdBatchHead) = _ownerAndBatchHeadOf(tokenId); require( owner == from, "ERC721Psi: transfer of token that is not own" ); require(to != address(0), "ERC721Psi: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId); uint256 nextTokenId = tokenId + 1; if(!_batchHead.get(nextTokenId) && nextTokenId < _minted ) { _owners[nextTokenId] = from; _batchHead.set(nextTokenId); } _owners[tokenId] = to; if(tokenId != tokenIdBatchHead) { _batchHead.set(tokenId); } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param startTokenId uint256 the first ID of the tokens to be transferred * @param quantity uint256 amount of the tokens to be transfered. * @param _data bytes optional data to send along with the call * @return r bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 startTokenId, uint256 quantity, bytes memory _data ) private returns (bool r) { if (to.isContract()) { r = true; for(uint256 tokenId = startTokenId; tokenId < startTokenId + quantity; tokenId++){ try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { r = r && retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721Psi: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } return r; } else { return true; } } function _getBatchHead(uint256 tokenId) internal view returns (uint256 tokenIdBatchHead) { tokenIdBatchHead = _batchHead.scanForward(tokenId); } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _minted - 1; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256 tokenId) { require(index < totalSupply(), "ERC721Psi: global index out of bounds"); uint count; for(uint i = 1; i < _minted; i++){ if(_exists(i)){ if(count == index) return i; else count++; } } } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256 tokenId) { uint count; for(uint i = 1; i < _minted; i++){ if(_exists(i) && owner == ownerOf(i)){ if(count == index) return i; else count++; } } revert("ERC721Psi: owner index out of bounds"); } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT 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); bool public operatorFilteringEnabled = true; IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0 && operatorFilteringEnabled) { if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
// SPDX-License-Identifier: MIT /** _____ ___ ___ __ ____ _ __ / ___/____ / (_)___/ (_) /___ __ / __ )(_) /______ \__ \/ __ \/ / / __ / / __/ / / / / __ / / __/ ___/ ___/ / /_/ / / / /_/ / / /_/ /_/ / / /_/ / / /_(__ ) /____/\____/_/_/\__,_/_/\__/\__, / /_____/_/\__/____/ /____/ - npm: https://www.npmjs.com/package/solidity-bits - github: https://github.com/estarriolvetch/solidity-bits */ pragma solidity ^0.8.0; import "./BitScan.sol"; import "./Popcount.sol"; /** * @dev This Library is a modified version of Openzeppelin's BitMaps library with extra features. * * 1. Functions of finding the index of the closest set bit from a given index are added. * The indexing of each bucket is modifed to count from the MSB to the LSB instead of from the LSB to the MSB. * The modification of indexing makes finding the closest previous set bit more efficient in gas usage. * 2. Setting and unsetting the bitmap consecutively. * 3. Accounting number of set bits within a given range. * */ /** * @dev Library for managing uint256 to bool mapping in a compact and efficient way, providing the keys are sequential. * Largelly inspired by Uniswap's https://github.com/Uniswap/merkle-distributor/blob/master/contracts/MerkleDistributor.sol[merkle-distributor]. */ library BitMaps { using BitScan for uint256; uint256 private constant MASK_INDEX_ZERO = (1 << 255); uint256 private constant MASK_FULL = type(uint256).max; struct BitMap { mapping(uint256 => uint256) _data; } /** * @dev Returns whether the bit at `index` is set. */ function get(BitMap storage bitmap, uint256 index) internal view returns (bool) { uint256 bucket = index >> 8; uint256 mask = MASK_INDEX_ZERO >> (index & 0xff); return bitmap._data[bucket] & mask != 0; } /** * @dev Sets the bit at `index` to the boolean `value`. */ function setTo( BitMap storage bitmap, uint256 index, bool value ) internal { if (value) { set(bitmap, index); } else { unset(bitmap, index); } } /** * @dev Sets the bit at `index`. */ function set(BitMap storage bitmap, uint256 index) internal { uint256 bucket = index >> 8; uint256 mask = MASK_INDEX_ZERO >> (index & 0xff); bitmap._data[bucket] |= mask; } /** * @dev Unsets the bit at `index`. */ function unset(BitMap storage bitmap, uint256 index) internal { uint256 bucket = index >> 8; uint256 mask = MASK_INDEX_ZERO >> (index & 0xff); bitmap._data[bucket] &= ~mask; } /** * @dev Consecutively sets `amount` of bits starting from the bit at `startIndex`. */ function setBatch(BitMap storage bitmap, uint256 startIndex, uint256 amount) internal { uint256 bucket = startIndex >> 8; uint256 bucketStartIndex = (startIndex & 0xff); unchecked { if(bucketStartIndex + amount < 256) { bitmap._data[bucket] |= MASK_FULL << (256 - amount) >> bucketStartIndex; } else { bitmap._data[bucket] |= MASK_FULL >> bucketStartIndex; amount -= (256 - bucketStartIndex); bucket++; while(amount > 256) { bitmap._data[bucket] = MASK_FULL; amount -= 256; bucket++; } bitmap._data[bucket] |= MASK_FULL << (256 - amount); } } } /** * @dev Consecutively unsets `amount` of bits starting from the bit at `startIndex`. */ function unsetBatch(BitMap storage bitmap, uint256 startIndex, uint256 amount) internal { uint256 bucket = startIndex >> 8; uint256 bucketStartIndex = (startIndex & 0xff); unchecked { if(bucketStartIndex + amount < 256) { bitmap._data[bucket] &= ~(MASK_FULL << (256 - amount) >> bucketStartIndex); } else { bitmap._data[bucket] &= ~(MASK_FULL >> bucketStartIndex); amount -= (256 - bucketStartIndex); bucket++; while(amount > 256) { bitmap._data[bucket] = 0; amount -= 256; bucket++; } bitmap._data[bucket] &= ~(MASK_FULL << (256 - amount)); } } } /** * @dev Returns number of set bits within a range. */ function popcountA(BitMap storage bitmap, uint256 startIndex, uint256 amount) internal view returns(uint256 count) { uint256 bucket = startIndex >> 8; uint256 bucketStartIndex = (startIndex & 0xff); unchecked { if(bucketStartIndex + amount < 256) { count += Popcount.popcount256A( bitmap._data[bucket] & (MASK_FULL << (256 - amount) >> bucketStartIndex) ); } else { count += Popcount.popcount256A( bitmap._data[bucket] & (MASK_FULL >> bucketStartIndex) ); amount -= (256 - bucketStartIndex); bucket++; while(amount > 256) { count += Popcount.popcount256A(bitmap._data[bucket]); amount -= 256; bucket++; } count += Popcount.popcount256A( bitmap._data[bucket] & (MASK_FULL << (256 - amount)) ); } } } /** * @dev Returns number of set bits within a range. */ function popcountB(BitMap storage bitmap, uint256 startIndex, uint256 amount) internal view returns(uint256 count) { uint256 bucket = startIndex >> 8; uint256 bucketStartIndex = (startIndex & 0xff); unchecked { if(bucketStartIndex + amount < 256) { count += Popcount.popcount256B( bitmap._data[bucket] & (MASK_FULL << (256 - amount) >> bucketStartIndex) ); } else { count += Popcount.popcount256B( bitmap._data[bucket] & (MASK_FULL >> bucketStartIndex) ); amount -= (256 - bucketStartIndex); bucket++; while(amount > 256) { count += Popcount.popcount256B(bitmap._data[bucket]); amount -= 256; bucket++; } count += Popcount.popcount256B( bitmap._data[bucket] & (MASK_FULL << (256 - amount)) ); } } } /** * @dev Find the closest index of the set bit before `index`. */ function scanForward(BitMap storage bitmap, uint256 index) internal view returns (uint256 setBitIndex) { uint256 bucket = index >> 8; // index within the bucket uint256 bucketIndex = (index & 0xff); // load a bitboard from the bitmap. uint256 bb = bitmap._data[bucket]; // offset the bitboard to scan from `bucketIndex`. bb = bb >> (0xff ^ bucketIndex); // bb >> (255 - bucketIndex) if(bb > 0) { unchecked { setBitIndex = (bucket << 8) | (bucketIndex - bb.bitScanForward256()); } } else { while(true) { require(bucket > 0, "BitMaps: The set bit before the index doesn't exist."); unchecked { bucket--; } // No offset. Always scan from the least significiant bit now. bb = bitmap._data[bucket]; if(bb > 0) { unchecked { setBitIndex = (bucket << 8) | (255 - bb.bitScanForward256()); break; } } } } } function getBucket(BitMap storage bitmap, uint256 bucket) internal view returns (uint256) { return bitmap._data[bucket]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/StorageSlot.sol) pragma solidity ^0.8.0; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ``` * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` * * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._ */ library StorageSlot { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT /** _____ ___ ___ __ ____ _ __ / ___/____ / (_)___/ (_) /___ __ / __ )(_) /______ \__ \/ __ \/ / / __ / / __/ / / / / __ / / __/ ___/ ___/ / /_/ / / / /_/ / / /_/ /_/ / / /_/ / / /_(__ ) /____/\____/_/_/\__,_/_/\__/\__, / /_____/_/\__/____/ /____/ - npm: https://www.npmjs.com/package/solidity-bits - github: https://github.com/estarriolvetch/solidity-bits */ pragma solidity ^0.8.0; library Popcount { uint256 private constant m1 = 0x5555555555555555555555555555555555555555555555555555555555555555; uint256 private constant m2 = 0x3333333333333333333333333333333333333333333333333333333333333333; uint256 private constant m4 = 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f; uint256 private constant h01 = 0x0101010101010101010101010101010101010101010101010101010101010101; function popcount256A(uint256 x) internal pure returns (uint256 count) { unchecked{ for (count=0; x!=0; count++) x &= x - 1; } } function popcount256B(uint256 x) internal pure returns (uint256) { if (x == type(uint256).max) { return 256; } unchecked { x -= (x >> 1) & m1; //put count of each 2 bits into those 2 bits x = (x & m2) + ((x >> 2) & m2); //put count of each 4 bits into those 4 bits x = (x + (x >> 4)) & m4; //put count of each 8 bits into those 8 bits x = (x * h01) >> 248; //returns left 8 bits of x + (x<<8) + (x<<16) + (x<<24) + ... } return x; } }
// SPDX-License-Identifier: MIT /** _____ ___ ___ __ ____ _ __ / ___/____ / (_)___/ (_) /___ __ / __ )(_) /______ \__ \/ __ \/ / / __ / / __/ / / / / __ / / __/ ___/ ___/ / /_/ / / / /_/ / / /_/ /_/ / / /_/ / / /_(__ ) /____/\____/_/_/\__,_/_/\__/\__, / /_____/_/\__/____/ /____/ - npm: https://www.npmjs.com/package/solidity-bits - github: https://github.com/estarriolvetch/solidity-bits */ pragma solidity ^0.8.0; library BitScan { uint256 constant private DEBRUIJN_256 = 0x818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff; bytes constant private LOOKUP_TABLE_256 = hex"0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8"; /** @dev Isolate the least significant set bit. */ function isolateLS1B256(uint256 bb) pure internal returns (uint256) { require(bb > 0); unchecked { return bb & (0 - bb); } } /** @dev Isolate the most significant set bit. */ function isolateMS1B256(uint256 bb) pure internal returns (uint256) { require(bb > 0); unchecked { bb |= bb >> 128; bb |= bb >> 64; bb |= bb >> 32; bb |= bb >> 16; bb |= bb >> 8; bb |= bb >> 4; bb |= bb >> 2; bb |= bb >> 1; return (bb >> 1) + 1; } } /** @dev Find the index of the lest significant set bit. (trailing zero count) */ function bitScanForward256(uint256 bb) pure internal returns (uint8) { unchecked { return uint8(LOOKUP_TABLE_256[(isolateLS1B256(bb) * DEBRUIJN_256) >> 248]); } } /** @dev Find the index of the most significant set bit. */ function bitScanReverse256(uint256 bb) pure internal returns (uint8) { unchecked { return 255 - uint8(LOOKUP_TABLE_256[((isolateMS1B256(bb) * DEBRUIJN_256) >> 248)]); } } function log2(uint256 bb) pure internal returns (uint8) { unchecked { return uint8(LOOKUP_TABLE_256[(isolateMS1B256(bb) * DEBRUIJN_256) >> 248]); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function unregister(address addr) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"alClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"alMintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"checkDandyMerkleProof","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"checkMerkleProof","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"checkVipMerkleProof","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"dandyClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dandyMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes32[]","name":"_dandyMerkleProof","type":"bytes32[]"}],"name":"dandyMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"dandyMintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dandyPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dandySaleStart","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorFilteringEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"preMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"prePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSaleStart","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"pubMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"pubSaleStart","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"bool_","type":"bool"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setAlMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"setAlMintLimit","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":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_dandyMerkleRoot","type":"bytes32"}],"name":"setDandyMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"setDandyMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setDandyPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setDandySaleStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri_","type":"string"}],"name":"setHiddenBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_member1","type":"address"},{"internalType":"address","name":"_member2","type":"address"},{"internalType":"address","name":"_member3","type":"address"},{"internalType":"address","name":"_member4","type":"address"},{"internalType":"address","name":"_member5","type":"address"},{"internalType":"address","name":"_member6","type":"address"},{"internalType":"address","name":"_member7","type":"address"},{"internalType":"address","name":"_treasury","type":"address"}],"name":"setMemberAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setOperatorFilteringEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPreSaleStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"setPublicMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPublicPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPublicSaleStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_royaltyAddress","type":"address"},{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_vipMerkleRoot","type":"bytes32"}],"name":"setVipMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"setVipMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setVipPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setVipSaleStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"_interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tryOwnerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"vipClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"vipClaimedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vipMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_vipMerkleProof","type":"bytes32[]"}],"name":"vipMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"vipMintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vipMintQuantity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vipPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vipSaleStart","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60016004818155600b805460ff199081168417909155610378600c55667c585087238000600d55662386f26fc10000600e55662aa1efb94e0000600f555f6010556011805463ffffffff191690556012929092556013819055601455600a6015557f72dccd22bce759f791815f55e802762cbd43b62f32ae43ea7b7ac4c0a816c059601c557f65eb01599a027f354be4984ddf2283facbe1307d3ddc4aca4f6eb5ab5ed753fa601d557feb3e53e15dd1747e75e955c81efbb4068ab2658729444ea5a849b864286ba325601e55601f80549091169055610100604052604b6080818152906200446560a039602190620000f99082620005f6565b5034801562000106575f80fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600681526020016545584f44555360d01b8152506040518060400160405280600281526020016108ab60f31b8152508160019081620001699190620005f6565b506002620001788282620005f6565b505050620001956200018f620003fc60201b60201c565b62000400565b6001600a556daaeb6d7670e522a718067333cd4e3b15620002d55780156200022857604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b5f604051808303815f87803b1580156200020b575f80fd5b505af11580156200021e573d5f803e3d5ffd5b50505050620002d5565b6001600160a01b03821615620002795760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401620001f3565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e486906024015f604051808303815f87803b158015620002bd575f80fd5b505af1158015620002d0573d5f803e3d5ffd5b505050505b50620002fa905073e8e269cb62ea0e3345c46c29a2a7291f64cf6d626101a462000451565b602280546001600160a01b03199081167375462a1041ef175754317c2a03cf12a351e63bc6179091556023805482167368b4008b6b69cf0a93da3b76b90c2f26f5530f0717905560248054821673258a35308406f9b1e67692378630aaa09efd0a1f179055602580548216738c712b8754b8dbe89e2e3d83f96fdd7494f620e017905560268054821673e8afad3ae50bf9d83e0b9f016c4fcb6edd0f7a0f1790556027805482167307ce3bb422a537693afd130259e5d3bd0dac747917905560288054821673edacc663c23ba31398550e17b1ccf47cd9da18881790556029805490911673e8e269cb62ea0e3345c46c29a2a7291f64cf6d62179055620006be565b3390565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6127106001600160601b0382161115620004c55760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b0382166200051d5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620004bc565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600755565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200057f57607f821691505b6020821081036200059e57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620005f1575f81815260208120601f850160051c81016020861015620005cc5750805b601f850160051c820191505b81811015620005ed57828155600101620005d8565b5050505b505050565b81516001600160401b0381111562000612576200061262000556565b6200062a816200062384546200056a565b84620005a4565b602080601f83116001811462000660575f8415620006485750858301515b5f19600386901b1c1916600185901b178555620005ed565b5f85815260208120601f198616915b8281101562000690578886015182559484019460019091019084016200066f565b5085821015620006ae57878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b613d9980620006cc5f395ff3fe60806040526004361061044d575f3560e01c8063805c896611610236578063b5b1cd7c11610134578063c87b56dd116100b3578063e985e9c511610078578063e985e9c514610ce5578063e9d407ac14610d2c578063ef3e067c14610d4b578063f2fde38b14610d6a578063fb796e6c14610d89575f80fd5b8063c87b56dd14610c6a578063cee22ba614610c89578063cfd9480b14610c9c578063d5abeb0114610cbb578063e567cad614610cd0575f80fd5b8063bc976afd116100f9578063bc976afd14610be1578063bdec8bac14610c00578063c1d9df8d14610c19578063c627525514610c2c578063c835990e14610c4b575f80fd5b8063b5b1cd7c14610b44578063b7c0b8e814610b6f578063b88d4fde14610b8e578063ba87b42814610bad578063bb485b8814610bcc575f80fd5b80639f0709d8116101c0578063a945bf8011610185578063a945bf8014610abb578063a9a3826214610ad0578063b3dd25de14610aef578063b424a7a414610b1a578063b5505b6514610b2f575f80fd5b80639f0709d814610a14578063a195aabd14610a3f578063a1f7628e14610a5e578063a22cb46514610a7d578063a7f2330214610a9c575f80fd5b80638f2fc60b116102065780638f2fc60b14610978578063940cd05b1461099757806395d89b41146109b657806396a16360146109ca5780639ad8bf3d146109f5575f80fd5b8063805c8966146108f2578063830b3a64146109115780638ce49f8d146109305780638da5cb5b1461095b575f80fd5b80633d73c75d1161034e5780635b7a5702116102cd5780636a73a8b4116102925780636a73a8b4146108765780636f8b44b01461088b57806370a08231146108aa578063715018a6146108c957806372a1056c146108dd575f80fd5b80635b7a5702146107e55780635f355587146107fa5780636352211e14610819578063682410c91461083857806368b6958614610857575f80fd5b80634f6ccce7116103135780634f6ccce71461075c578063518302271461077b57806351a5dce61461079457806355f804b3146107b35780635a546223146107d2575f80fd5b80633d73c75d146106b257806341f43434146106d157806342842e0e146106f2578063438b630014610711578063484b973c1461073d575f80fd5b806327b256c3116103da5780633647c85e1161039f5780633647c85e146106425780633711b23f1461065757806337ac3a8f1461066c5780633917bb721461067f5780633ccfd60b1461069e575f80fd5b806327b256c31461059b5780632a55205a146105bb5780632c86e5ba146105f95780632eb4a7ab1461060e5780632f745c5914610623575f80fd5b80630d5624b3116104205780630d5624b3146104fe5780630dcd3b481461051c57806318160ddd1461053b57806320ac68501461055d57806323b872dd1461057c575f80fd5b806301ffc9a71461045157806306fdde0314610485578063081812fc146104a6578063095ea7b3146104dd575b5f80fd5b34801561045c575f80fd5b5061047061046b36600461322e565b610da2565b60405190151581526020015b60405180910390f35b348015610490575f80fd5b50610499610dc1565b60405161047c9190613296565b3480156104b1575f80fd5b506104c56104c03660046132a8565b610e51565b6040516001600160a01b03909116815260200161047c565b3480156104e8575f80fd5b506104fc6104f73660046132d3565b610ee1565b005b348015610509575f80fd5b5060115461047090610100900460ff1681565b348015610527575f80fd5b506104fc6105363660046132a8565b610efa565b348015610546575f80fd5b5061054f610f07565b60405190815260200161047c565b348015610568575f80fd5b506104fc610577366004613384565b610f1c565b348015610587575f80fd5b506104fc6105963660046133c9565b610f34565b3480156105a6575f80fd5b50601154610470906301000000900460ff1681565b3480156105c6575f80fd5b506105da6105d5366004613407565b610f5f565b604080516001600160a01b03909316835260208301919091520161047c565b348015610604575f80fd5b5061054f60125481565b348015610619575f80fd5b5061054f601d5481565b34801561062e575f80fd5b5061054f61063d3660046132d3565b61100b565b34801561064d575f80fd5b5061054f601e5481565b348015610662575f80fd5b5061054f600d5481565b6104fc61067a366004613468565b6110d4565b34801561068a575f80fd5b506104fc6106993660046132a8565b61118d565b3480156106a9575f80fd5b506104fc61119a565b3480156106bd575f80fd5b506104fc6106cc3660046134bd565b6113a2565b3480156106dc575f80fd5b506104c56daaeb6d7670e522a718067333cd4e81565b3480156106fd575f80fd5b506104fc61070c3660046133c9565b6113c6565b34801561071c575f80fd5b5061073061072b3660046134d8565b6113eb565b60405161047c91906134f3565b348015610748575f80fd5b506104fc6107573660046132d3565b61150a565b348015610767575f80fd5b5061054f6107763660046132a8565b611553565b348015610786575f80fd5b50601f546104709060ff1681565b34801561079f575f80fd5b506104fc6107ae3660046132a8565b61160b565b3480156107be575f80fd5b506104fc6107cd366004613536565b611618565b6104fc6107e0366004613468565b61162d565b3480156107f0575f80fd5b5061054f60145481565b348015610805575f80fd5b506104706108143660046135a2565b6116c8565b348015610824575f80fd5b506104c56108333660046132a8565b611713565b348015610843575f80fd5b506104706108523660046135a2565b611726565b348015610862575f80fd5b506104fc6108713660046132a8565b611769565b348015610881575f80fd5b5061054f60105481565b348015610896575f80fd5b506104fc6108a53660046132a8565b611776565b3480156108b5575f80fd5b5061054f6108c43660046134d8565b6117dc565b3480156108d4575f80fd5b506104fc6118ab565b3480156108e8575f80fd5b5061054f601c5481565b3480156108fd575f80fd5b506104fc61090c3660046132a8565b6118be565b34801561091c575f80fd5b506104c561092b3660046132a8565b6118cb565b34801561093b575f80fd5b5061054f61094a3660046134d8565b60186020525f908152604090205481565b348015610966575f80fd5b506009546001600160a01b03166104c5565b348015610983575f80fd5b506104fc6109923660046135e1565b611930565b3480156109a2575f80fd5b506104fc6109b13660046134bd565b611942565b3480156109c1575f80fd5b5061049961195d565b3480156109d5575f80fd5b5061054f6109e43660046134d8565b60176020525f908152604090205481565b348015610a00575f80fd5b506104fc610a0f3660046134bd565b61196c565b348015610a1f575f80fd5b5061054f610a2e3660046134d8565b60196020525f908152604090205481565b348015610a4a575f80fd5b506104fc610a593660046132a8565b611987565b348015610a69575f80fd5b506104fc610a78366004613623565b611994565b348015610a88575f80fd5b506104fc610a973660046136c7565b611a2a565b348015610aa7575f80fd5b506104fc610ab63660046134bd565b611a3e565b348015610ac6575f80fd5b5061054f600f5481565b348015610adb575f80fd5b50610470610aea3660046135a2565b611a60565b348015610afa575f80fd5b5061054f610b093660046134d8565b601b6020525f908152604090205481565b348015610b25575f80fd5b5061054f60135481565b348015610b3a575f80fd5b5061054f60165481565b348015610b4f575f80fd5b5061054f610b5e3660046134d8565b601a6020525f908152604090205481565b348015610b7a575f80fd5b506104fc610b893660046134bd565b611aa3565b348015610b99575f80fd5b506104fc610ba83660046136f3565b611abe565b348015610bb8575f80fd5b506104fc610bc73660046132a8565b611aeb565b348015610bd7575f80fd5b5061054f60155481565b348015610bec575f80fd5b506104fc610bfb3660046132a8565b611af8565b348015610c0b575f80fd5b506011546104709060ff1681565b6104fc610c273660046132a8565b611b05565b348015610c37575f80fd5b506104fc610c463660046132a8565b611b97565b348015610c56575f80fd5b506104fc610c653660046132a8565b611ba4565b348015610c75575f80fd5b50610499610c843660046132a8565b611bb1565b6104fc610c973660046135a2565b611c7e565b348015610ca7575f80fd5b506011546104709062010000900460ff1681565b348015610cc6575f80fd5b5061054f600c5481565b348015610cdb575f80fd5b5061054f600e5481565b348015610cf0575f80fd5b50610470610cff36600461376e565b6001600160a01b039182165f90815260066020908152604080832093909416825291909152205460ff1690565b348015610d37575f80fd5b506104fc610d463660046134bd565b611d4c565b348015610d56575f80fd5b506104fc610d653660046132a8565b611d72565b348015610d75575f80fd5b506104fc610d843660046134d8565b611d7f565b348015610d94575f80fd5b50600b546104709060ff1681565b5f610dac82611df5565b80610dbb5750610dbb82611e5f565b92915050565b606060018054610dd09061379a565b80601f0160208091040260200160405190810160405280929190818152602001828054610dfc9061379a565b8015610e475780601f10610e1e57610100808354040283529160200191610e47565b820191905f5260205f20905b815481529060010190602001808311610e2a57829003601f168201915b5050505050905090565b5f610e5d826004541190565b610ec65760405162461bcd60e51b815260206004820152602f60248201527f4552433732315073693a20617070726f76656420717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084015b60405180910390fd5b505f908152600560205260409020546001600160a01b031690565b81610eeb81611e83565b610ef58383611f4a565b505050565b610f0261205b565b601d55565b5f6001600454610f1791906137e6565b905090565b610f2461205b565b6021610f30828261383e565b5050565b826001600160a01b0381163314610f4e57610f4e33611e83565b610f598484846120b5565b50505050565b5f8281526008602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610fd35750604080518082019091526007546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101515f9061271090610ff1906001600160601b0316876138fa565b610ffb9190613911565b91519350909150505b9250929050565b5f8060015b60045481101561107f57611025816004541190565b801561104a575061103581611713565b6001600160a01b0316856001600160a01b0316145b1561106d5783820361105f579150610dbb9050565b8161106981613930565b9250505b8061107781613930565b915050611010565b5060405162461bcd60e51b8152602060048201526024808201527f4552433732315073693a206f776e657220696e646578206f7574206f6620626f604482015263756e647360e01b6064820152608401610ebd565b6110dc6120e6565b5f6110e5610f07565b90505f846010546110f691906138fa565b6011549091506301000000900460ff166111225760405162461bcd60e51b8152600401610ebd90613948565b61112d85838361213f565b61113784846116c8565b6111535760405162461bcd60e51b8152600401610ebd90613974565b335f908152601b6020526040812080548792906111719084906139a2565b90915550611181905033866121eb565b5050610ef56001600a55565b61119561205b565b601055565b6111a261205b565b6022546001600160a01b0316158015906111c657506023546001600160a01b031615155b80156111dc57506024546001600160a01b031615155b80156111f257506025546001600160a01b031615155b801561120857506026546001600160a01b031615155b801561121e57506027546001600160a01b031615155b801561123457506028546001600160a01b031615155b801561124a57506029546001600160a01b031615155b6112965760405162461bcd60e51b815260206004820152601960248201527f506c6561736520736574206d656d6265722061646472657373000000000000006044820152606401610ebd565b60225447906112c6906001600160a01b03166127106112b7846103e86138fa565b6112c19190613911565b612204565b6023546112e5906001600160a01b03166127106112b7846103e86138fa565b602454611304906001600160a01b03166127106112b7846103e86138fa565b602554611323906001600160a01b03166127106112b7846103e86138fa565b602654611342906001600160a01b03166127106112b7846103e86138fa565b602754611361906001600160a01b03166127106112b7846103e86138fa565b602854611380906001600160a01b03166127106112b7846103e86138fa565b60295461139f906001600160a01b03166127106112b784610bb86138fa565b50565b6113aa61205b565b60118054911515620100000262ff000019909216919091179055565b826001600160a01b03811633146113e0576113e033611e83565b610f59848484612319565b60605f6113f7836117dc565b90505f8167ffffffffffffffff811115611413576114136132fd565b60405190808252806020026020018201604052801561143c578160200160208202803683370190505b5090505f60015b600454811015611500576040516320c2ce9960e21b815260048101829052309063830b3a6490602401602060405180830381865afa158015611487573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906114ab91906139b5565b6001600160a01b0316866001600160a01b0316036114ee578083836114cf81613930565b9450815181106114e1576114e16139d0565b6020026020010181815250505b806114f881613930565b915050611443565b5090949350505050565b61151261205b565b5f61151b610f07565b600c5490915061152b83836139a2565b11156115495760405162461bcd60e51b8152600401610ebd906139e4565b610ef583836121eb565b5f61155c610f07565b82106115b85760405162461bcd60e51b815260206004820152602560248201527f4552433732315073693a20676c6f62616c20696e646578206f7574206f6620626044820152646f756e647360d81b6064820152608401610ebd565b5f60015b600454811015611604576115d1816004541190565b156115f2578382036115e4579392505050565b816115ee81613930565b9250505b806115fc81613930565b9150506115bc565b5050919050565b61161361205b565b601255565b61162061205b565b6020610ef5828483613a0d565b6116356120e6565b5f61163e610f07565b90505f84600e5461164f91906138fa565b601154909150610100900460ff166116795760405162461bcd60e51b8152600401610ebd90613948565b611684858383612333565b61168e8484611a60565b6116aa5760405162461bcd60e51b8152600401610ebd90613974565b335f90815260196020526040812080548792906111719084906139a2565b6040516001600160601b03193360601b1660208201525f90819060340160405160208183030381529060405280519060200120905061170b8484601e548461239b565b949350505050565b5f8061171e836123b2565b509392505050565b6040516001600160601b03193360601b1660208201525f90819060340160405160208183030381529060405280519060200120905061170b8484601c548461239b565b61177161205b565b601655565b61177e61205b565b600c54611789610f07565b11156117d75760405162461bcd60e51b815260206004820152601960248201527f4c6f776572207468616e205f63757272656e74496e6465782e000000000000006044820152606401610ebd565b600c55565b5f6001600160a01b0382166118495760405162461bcd60e51b815260206004820152602d60248201527f4552433732315073693a2062616c616e636520717565727920666f722074686560448201526c207a65726f206164647265737360981b6064820152608401610ebd565b5f60015b6004548110156118a457611862816004541190565b156118945761187081611713565b6001600160a01b0316846001600160a01b0316036118945761189182613930565b91505b61189d81613930565b905061184d565b5092915050565b6118b361205b565b6118bc5f612449565b565b6118c661205b565b601e55565b6040516331a9108f60e11b8152600481018290525f903090636352211e90602401602060405180830381865afa925050508015611925575060408051601f3d908101601f19168201909252611922918101906139b5565b60015b610dbb57505f919050565b61193861205b565b610f30828261249a565b61194a61205b565b601f805460ff1916911515919091179055565b606060028054610dd09061379a565b61197461205b565b6011805460ff1916911515919091179055565b61198f61205b565b600d55565b61199c61205b565b602280546001600160a01b03199081166001600160a01b039a8b1617909155602380548216988a1698909817909755602480548816968916969096179095556025805487169488169490941790935560268054861692871692909217909155602780548516918616919091179055602880548416918516919091179055602980549092169216919091179055565b81611a3481611e83565b610ef58383612597565b611a4661205b565b601180549115156101000261ff0019909216919091179055565b6040516001600160601b03193360601b1660208201525f90819060340160405160208183030381529060405280519060200120905061170b8484601d548461239b565b611aab61205b565b600b805460ff1916911515919091179055565b836001600160a01b0381163314611ad857611ad833611e83565b611ae48585858561265a565b5050505050565b611af361205b565b601455565b611b0061205b565b601c55565b611b0d6120e6565b5f611b16610f07565b90505f82600f54611b2791906138fa565b60115490915062010000900460ff16611b525760405162461bcd60e51b8152600401610ebd90613948565b611b5d83838361268c565b335f908152601a602052604081208054859290611b7b9084906139a2565b90915550611b8b905033846121eb565b505061139f6001600a55565b611b9f61205b565b600f55565b611bac61205b565b600e55565b601f5460609060ff1615611bee57611bc8826126f4565b604051602001611bd89190613ac8565b6040516020818303038152906040529050919050565b60218054611bfb9061379a565b80601f0160208091040260200160405190810160405280929190818152602001828054611c279061379a565b8015611c725780601f10611c4957610100808354040283529160200191611c72565b820191905f5260205f20905b815481529060010190602001808311611c5557829003601f168201915b50505050509050919050565b611c866120e6565b5f611c8f610f07565b600d546011549192509060ff16611cb85760405162461bcd60e51b8152600401610ebd90613948565b611cc282826127b9565b611ccc8484611726565b611ce85760405162461bcd60e51b8152600401610ebd90613974565b335f908152601760205260408120805460019290611d079084906139a2565b9091555050601354335f9081526018602052604081208054909190611d2d9084906139a2565b92505081905550611d40336013546121eb565b5050610f306001600a55565b611d5461205b565b6011805491151563010000000263ff00000019909216919091179055565b611d7a61205b565b601555565b611d8761205b565b6001600160a01b038116611dec5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ebd565b61139f81612449565b5f6001600160e01b031982166380ac58cd60e01b1480611e2557506001600160e01b03198216635b5e139f60e01b145b80611e4057506001600160e01b0319821663780e9d6360e01b145b80610dbb57506301ffc9a760e01b6001600160e01b0319831614610dbb565b5f6001600160e01b0319821663152a902d60e11b1480610dbb5750610dbb82611df5565b6daaeb6d7670e522a718067333cd4e3b15801590611ea35750600b5460ff165b1561139f57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611efe573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611f229190613af0565b61139f57604051633b79c77360e21b81526001600160a01b0382166004820152602401610ebd565b5f611f5482611713565b9050806001600160a01b0316836001600160a01b031603611fc35760405162461bcd60e51b8152602060048201526024808201527f4552433732315073693a20617070726f76616c20746f2063757272656e74206f6044820152633bb732b960e11b6064820152608401610ebd565b336001600160a01b0382161480611fdf5750611fdf8133610cff565b6120515760405162461bcd60e51b815260206004820152603b60248201527f4552433732315073693a20617070726f76652063616c6c6572206973206e6f7460448201527f206f776e6572206e6f7220617070726f76656420666f7220616c6c00000000006064820152608401610ebd565b610ef58383612868565b6009546001600160a01b031633146118bc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ebd565b6120bf33826128d5565b6120db5760405162461bcd60e51b8152600401610ebd90613b0b565b610ef58383836129bd565b6002600a54036121385760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ebd565b6002600a55565b600c5461214c84846139a2565b111561216a5760405162461bcd60e51b8152600401610ebd906139e4565b8034101561218a5760405162461bcd60e51b8152600401610ebd90613b5f565b601654335f908152601b60205260409020546121a79085906139a2565b1115610ef55760405162461bcd60e51b8152602060048201526013602482015272082d8e4cac2c8f240c6d8c2d2dacac840dac2f606b1b6044820152606401610ebd565b610f30828260405180602001604052805f815250612ba3565b804710156122545760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610ebd565b5f826001600160a01b0316826040515f6040518083038185875af1925050503d805f811461229d576040519150601f19603f3d011682016040523d82523d5f602084013e6122a2565b606091505b5050905080610ef55760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610ebd565b610ef583838360405180602001604052805f815250611abe565b600c5461234084846139a2565b111561235e5760405162461bcd60e51b8152600401610ebd906139e4565b8034101561237e5760405162461bcd60e51b8152600401610ebd90613b5f565b601454335f908152601960205260409020546121a79085906139a2565b5f826123a8868685612bd9565b1495945050505050565b5f806123bf836004541190565b6124205760405162461bcd60e51b815260206004820152602c60248201527f4552433732315073693a206f776e657220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610ebd565b61242983612c24565b5f818152600360205260409020546001600160a01b031694909350915050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6127106001600160601b03821611156125085760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610ebd565b6001600160a01b03821661255e5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610ebd565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600755565b336001600160a01b038316036125ef5760405162461bcd60e51b815260206004820152601c60248201527f4552433732315073693a20617070726f766520746f2063616c6c6572000000006044820152606401610ebd565b335f8181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61266433836128d5565b6126805760405162461bcd60e51b8152600401610ebd90613b0b565b610f5984848484612c2f565b600c5461269984846139a2565b11156126b75760405162461bcd60e51b8152600401610ebd906139e4565b803410156126d75760405162461bcd60e51b8152600401610ebd90613b5f565b601554335f908152601a60205260409020546121a79085906139a2565b6060612701826004541190565b6127605760405162461bcd60e51b815260206004820152602a60248201527f4552433732315073693a2055524920717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610ebd565b5f612769612c48565b90505f8151116127875760405180602001604052805f8152506127b2565b8061279184612c57565b6040516020016127a2929190613b89565b6040516020818303038152906040525b9392505050565b600c546013546127c990846139a2565b11156127e75760405162461bcd60e51b8152600401610ebd906139e4565b803410156128075760405162461bcd60e51b8152600401610ebd90613b5f565b601254335f908152601760205260409020546128249060016139a2565b1115610f305760405162461bcd60e51b8152602060048201526013602482015272082d8e4cac2c8f240c6d8c2d2dacac840dac2f606b1b6044820152606401610ebd565b5f81815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061289c82611713565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b5f6128e1826004541190565b6129455760405162461bcd60e51b815260206004820152602f60248201527f4552433732315073693a206f70657261746f7220717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610ebd565b5f61294f83611713565b9050806001600160a01b0316846001600160a01b0316148061298a5750836001600160a01b031661297f84610e51565b6001600160a01b0316145b8061170b57506001600160a01b038082165f9081526006602090815260408083209388168352929052205460ff1661170b565b5f806129c8836123b2565b91509150846001600160a01b0316826001600160a01b031614612a425760405162461bcd60e51b815260206004820152602c60248201527f4552433732315073693a207472616e73666572206f6620746f6b656e2074686160448201526b3a1034b9903737ba1037bbb760a11b6064820152608401610ebd565b6001600160a01b038416612aa85760405162461bcd60e51b815260206004820152602760248201527f4552433732315073693a207472616e7366657220746f20746865207a65726f206044820152666164647265737360c81b6064820152608401610ebd565b612ab25f84612868565b5f612abe8460016139a2565b600881901c5f90815260208190526040902054909150600160ff1b60ff83161c16158015612aed575060045481105b15612b22575f81815260036020526040812080546001600160a01b0319166001600160a01b038916179055612b229082612ce7565b5f84815260036020526040902080546001600160a01b0319166001600160a01b038716179055818414612b5957612b595f85612ce7565b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b600454612bb08484612d12565b612bbd5f85838686612e74565b610f595760405162461bcd60e51b8152600401610ebd90613bb7565b5f81815b84811015612c1b57612c0782878784818110612bfb57612bfb6139d0565b90506020020135612fa7565b915080612c1381613930565b915050612bdd565b50949350505050565b5f610dbb8183612fd0565b612c3a8484846129bd565b612bbd848484600185612e74565b606060208054610dd09061379a565b60605f612c63836130c4565b60010190505f8167ffffffffffffffff811115612c8257612c826132fd565b6040519080825280601f01601f191660200182016040528015612cac576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084612cb657509392505050565b600881901c5f90815260209290925260409091208054600160ff1b60ff9093169290921c9091179055565b60045481612d705760405162461bcd60e51b815260206004820152602560248201527f4552433732315073693a207175616e74697479206d7573742062652067726561604482015264074657220360dc1b6064820152608401610ebd565b6001600160a01b038316612dd25760405162461bcd60e51b815260206004820152602360248201527f4552433732315073693a206d696e7420746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610ebd565b8160045f828254612de391906139a2565b90915550505f81815260036020526040812080546001600160a01b0319166001600160a01b038616179055612e189082612ce7565b805b612e2483836139a2565b811015610f595760405181906001600160a01b038616905f907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480612e6c81613930565b915050612e1a565b5f6001600160a01b0385163b15612f9a57506001835b612e9484866139a2565b811015612f9457604051630a85bd0160e11b81526001600160a01b0387169063150b7a0290612ecd9033908b9086908990600401613c0c565b6020604051808303815f875af1925050508015612f07575060408051601f3d908101601f19168201909252612f0491810190613c48565b60015b612f62573d808015612f34576040519150601f19603f3d011682016040523d82523d5f602084013e612f39565b606091505b5080515f03612f5a5760405162461bcd60e51b8152600401610ebd90613bb7565b805181602001fd5b828015612f7f57506001600160e01b03198116630a85bd0160e11b145b92505080612f8c81613930565b915050612e8a565b50612f9e565b5060015b95945050505050565b5f818310612fc1575f8281526020849052604090206127b2565b505f9182526020526040902090565b600881901c5f8181526020849052604081205490919060ff808516919082181c801561301157612fff8161319b565b60ff168203600884901b1793506130bb565b5f831161307d5760405162461bcd60e51b815260206004820152603460248201527f4269744d6170733a205468652073657420626974206265666f7265207468652060448201527334b73232bc103237b2b9b713ba1032bc34b9ba1760611b6064820152608401610ebd565b505f199091015f8181526020869052604090205490919080156130b6576130a38161319b565b60ff0360ff16600884901b1793506130bb565b613011565b50505092915050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106131025772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061312e576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061314c57662386f26fc10000830492506010015b6305f5e1008310613164576305f5e100830492506008015b612710831061317857612710830492506004015b6064831061318a576064830492506002015b600a8310610dbb5760010192915050565b5f6040518061012001604052806101008152602001613c64610100913960f87e818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff6131e385613204565b02901c815181106131f6576131f66139d0565b016020015160f81c92915050565b5f808211613210575f80fd5b505f8190031690565b6001600160e01b03198116811461139f575f80fd5b5f6020828403121561323e575f80fd5b81356127b281613219565b5f5b8381101561326357818101518382015260200161324b565b50505f910152565b5f8151808452613282816020860160208601613249565b601f01601f19169290920160200192915050565b602081525f6127b2602083018461326b565b5f602082840312156132b8575f80fd5b5035919050565b6001600160a01b038116811461139f575f80fd5b5f80604083850312156132e4575f80fd5b82356132ef816132bf565b946020939093013593505050565b634e487b7160e01b5f52604160045260245ffd5b5f67ffffffffffffffff8084111561332b5761332b6132fd565b604051601f8501601f19908116603f01168101908282118183101715613353576133536132fd565b8160405280935085815286868601111561336b575f80fd5b858560208301375f602087830101525050509392505050565b5f60208284031215613394575f80fd5b813567ffffffffffffffff8111156133aa575f80fd5b8201601f810184136133ba575f80fd5b61170b84823560208401613311565b5f805f606084860312156133db575f80fd5b83356133e6816132bf565b925060208401356133f6816132bf565b929592945050506040919091013590565b5f8060408385031215613418575f80fd5b50508035926020909101359150565b5f8083601f840112613437575f80fd5b50813567ffffffffffffffff81111561344e575f80fd5b6020830191508360208260051b8501011115611004575f80fd5b5f805f6040848603121561347a575f80fd5b83359250602084013567ffffffffffffffff811115613497575f80fd5b6134a386828701613427565b9497909650939450505050565b801515811461139f575f80fd5b5f602082840312156134cd575f80fd5b81356127b2816134b0565b5f602082840312156134e8575f80fd5b81356127b2816132bf565b602080825282518282018190525f9190848201906040850190845b8181101561352a5783518352928401929184019160010161350e565b50909695505050505050565b5f8060208385031215613547575f80fd5b823567ffffffffffffffff8082111561355e575f80fd5b818501915085601f830112613571575f80fd5b81358181111561357f575f80fd5b866020828501011115613590575f80fd5b60209290920196919550909350505050565b5f80602083850312156135b3575f80fd5b823567ffffffffffffffff8111156135c9575f80fd5b6135d585828601613427565b90969095509350505050565b5f80604083850312156135f2575f80fd5b82356135fd816132bf565b915060208301356001600160601b0381168114613618575f80fd5b809150509250929050565b5f805f805f805f80610100898b03121561363b575f80fd5b8835613646816132bf565b97506020890135613656816132bf565b96506040890135613666816132bf565b95506060890135613676816132bf565b94506080890135613686816132bf565b935060a0890135613696816132bf565b925060c08901356136a6816132bf565b915060e08901356136b6816132bf565b809150509295985092959890939650565b5f80604083850312156136d8575f80fd5b82356136e3816132bf565b91506020830135613618816134b0565b5f805f8060808587031215613706575f80fd5b8435613711816132bf565b93506020850135613721816132bf565b925060408501359150606085013567ffffffffffffffff811115613743575f80fd5b8501601f81018713613753575f80fd5b61376287823560208401613311565b91505092959194509250565b5f806040838503121561377f575f80fd5b823561378a816132bf565b91506020830135613618816132bf565b600181811c908216806137ae57607f821691505b6020821081036137cc57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b81810381811115610dbb57610dbb6137d2565b601f821115610ef5575f81815260208120601f850160051c8101602086101561381f5750805b601f850160051c820191505b81811015612b9b5782815560010161382b565b815167ffffffffffffffff811115613858576138586132fd565b61386c81613866845461379a565b846137f9565b602080601f83116001811461389f575f84156138885750858301515b5f19600386901b1c1916600185901b178555612b9b565b5f85815260208120601f198616915b828110156138cd578886015182559484019460019091019084016138ae565b50858210156138ea57878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b8082028115828204841417610dbb57610dbb6137d2565b5f8261392b57634e487b7160e01b5f52601260045260245ffd5b500490565b5f60018201613941576139416137d2565b5060010190565b6020808252601290820152712132b337b9329039b0b632903132b3b4b71760711b604082015260600190565b60208082526014908201527324b73b30b634b21026b2b935b63290283937b7b360611b604082015260600190565b80820180821115610dbb57610dbb6137d2565b5f602082840312156139c5575f80fd5b81516127b2816132bf565b634e487b7160e01b5f52603260045260245ffd5b6020808252600f908201526e26b0bc1039bab838363c9037bb32b960891b604082015260600190565b67ffffffffffffffff831115613a2557613a256132fd565b613a3983613a33835461379a565b836137f9565b5f601f841160018114613a6a575f8515613a535750838201355b5f19600387901b1c1916600186901b178355611ae4565b5f83815260209020601f19861690835b82811015613a9a5786850135825560209485019460019092019101613a7a565b5086821015613ab6575f1960f88860031b161c19848701351681555b505060018560011b0183555050505050565b5f8251613ad9818460208701613249565b64173539b7b760d91b920191825250600501919050565b5f60208284031215613b00575f80fd5b81516127b2816134b0565b60208082526034908201527f4552433732315073693a207472616e736665722063616c6c6572206973206e6f6040820152731d081bdddb995c881b9bdc88185c1c1c9bdd995960621b606082015260800190565b60208082526010908201526f4e6f7420656e6f7567682066756e647360801b604082015260600190565b5f8351613b9a818460208801613249565b835190830190613bae818360208801613249565b01949350505050565b60208082526035908201527f4552433732315073693a207472616e7366657220746f206e6f6e20455243373260408201527418a932b1b2b4bb32b91034b6b83632b6b2b73a32b960591b606082015260800190565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f90613c3e9083018461326b565b9695505050505050565b5f60208284031215613c58575f80fd5b81516127b28161321956fe0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8a2646970667358221220cc1384c07e2f66b024132ba16a1e085b62c7a214722116046632cdf55003299564736f6c6343000814003368747470733a2f2f617277656176652e6e65742f5a746e39564e4f6d6a386961527a746239796c435a70736f48354636493435733662414b304d6d334467492f68696464656e2e6a736f6e
Deployed Bytecode
0x60806040526004361061044d575f3560e01c8063805c896611610236578063b5b1cd7c11610134578063c87b56dd116100b3578063e985e9c511610078578063e985e9c514610ce5578063e9d407ac14610d2c578063ef3e067c14610d4b578063f2fde38b14610d6a578063fb796e6c14610d89575f80fd5b8063c87b56dd14610c6a578063cee22ba614610c89578063cfd9480b14610c9c578063d5abeb0114610cbb578063e567cad614610cd0575f80fd5b8063bc976afd116100f9578063bc976afd14610be1578063bdec8bac14610c00578063c1d9df8d14610c19578063c627525514610c2c578063c835990e14610c4b575f80fd5b8063b5b1cd7c14610b44578063b7c0b8e814610b6f578063b88d4fde14610b8e578063ba87b42814610bad578063bb485b8814610bcc575f80fd5b80639f0709d8116101c0578063a945bf8011610185578063a945bf8014610abb578063a9a3826214610ad0578063b3dd25de14610aef578063b424a7a414610b1a578063b5505b6514610b2f575f80fd5b80639f0709d814610a14578063a195aabd14610a3f578063a1f7628e14610a5e578063a22cb46514610a7d578063a7f2330214610a9c575f80fd5b80638f2fc60b116102065780638f2fc60b14610978578063940cd05b1461099757806395d89b41146109b657806396a16360146109ca5780639ad8bf3d146109f5575f80fd5b8063805c8966146108f2578063830b3a64146109115780638ce49f8d146109305780638da5cb5b1461095b575f80fd5b80633d73c75d1161034e5780635b7a5702116102cd5780636a73a8b4116102925780636a73a8b4146108765780636f8b44b01461088b57806370a08231146108aa578063715018a6146108c957806372a1056c146108dd575f80fd5b80635b7a5702146107e55780635f355587146107fa5780636352211e14610819578063682410c91461083857806368b6958614610857575f80fd5b80634f6ccce7116103135780634f6ccce71461075c578063518302271461077b57806351a5dce61461079457806355f804b3146107b35780635a546223146107d2575f80fd5b80633d73c75d146106b257806341f43434146106d157806342842e0e146106f2578063438b630014610711578063484b973c1461073d575f80fd5b806327b256c3116103da5780633647c85e1161039f5780633647c85e146106425780633711b23f1461065757806337ac3a8f1461066c5780633917bb721461067f5780633ccfd60b1461069e575f80fd5b806327b256c31461059b5780632a55205a146105bb5780632c86e5ba146105f95780632eb4a7ab1461060e5780632f745c5914610623575f80fd5b80630d5624b3116104205780630d5624b3146104fe5780630dcd3b481461051c57806318160ddd1461053b57806320ac68501461055d57806323b872dd1461057c575f80fd5b806301ffc9a71461045157806306fdde0314610485578063081812fc146104a6578063095ea7b3146104dd575b5f80fd5b34801561045c575f80fd5b5061047061046b36600461322e565b610da2565b60405190151581526020015b60405180910390f35b348015610490575f80fd5b50610499610dc1565b60405161047c9190613296565b3480156104b1575f80fd5b506104c56104c03660046132a8565b610e51565b6040516001600160a01b03909116815260200161047c565b3480156104e8575f80fd5b506104fc6104f73660046132d3565b610ee1565b005b348015610509575f80fd5b5060115461047090610100900460ff1681565b348015610527575f80fd5b506104fc6105363660046132a8565b610efa565b348015610546575f80fd5b5061054f610f07565b60405190815260200161047c565b348015610568575f80fd5b506104fc610577366004613384565b610f1c565b348015610587575f80fd5b506104fc6105963660046133c9565b610f34565b3480156105a6575f80fd5b50601154610470906301000000900460ff1681565b3480156105c6575f80fd5b506105da6105d5366004613407565b610f5f565b604080516001600160a01b03909316835260208301919091520161047c565b348015610604575f80fd5b5061054f60125481565b348015610619575f80fd5b5061054f601d5481565b34801561062e575f80fd5b5061054f61063d3660046132d3565b61100b565b34801561064d575f80fd5b5061054f601e5481565b348015610662575f80fd5b5061054f600d5481565b6104fc61067a366004613468565b6110d4565b34801561068a575f80fd5b506104fc6106993660046132a8565b61118d565b3480156106a9575f80fd5b506104fc61119a565b3480156106bd575f80fd5b506104fc6106cc3660046134bd565b6113a2565b3480156106dc575f80fd5b506104c56daaeb6d7670e522a718067333cd4e81565b3480156106fd575f80fd5b506104fc61070c3660046133c9565b6113c6565b34801561071c575f80fd5b5061073061072b3660046134d8565b6113eb565b60405161047c91906134f3565b348015610748575f80fd5b506104fc6107573660046132d3565b61150a565b348015610767575f80fd5b5061054f6107763660046132a8565b611553565b348015610786575f80fd5b50601f546104709060ff1681565b34801561079f575f80fd5b506104fc6107ae3660046132a8565b61160b565b3480156107be575f80fd5b506104fc6107cd366004613536565b611618565b6104fc6107e0366004613468565b61162d565b3480156107f0575f80fd5b5061054f60145481565b348015610805575f80fd5b506104706108143660046135a2565b6116c8565b348015610824575f80fd5b506104c56108333660046132a8565b611713565b348015610843575f80fd5b506104706108523660046135a2565b611726565b348015610862575f80fd5b506104fc6108713660046132a8565b611769565b348015610881575f80fd5b5061054f60105481565b348015610896575f80fd5b506104fc6108a53660046132a8565b611776565b3480156108b5575f80fd5b5061054f6108c43660046134d8565b6117dc565b3480156108d4575f80fd5b506104fc6118ab565b3480156108e8575f80fd5b5061054f601c5481565b3480156108fd575f80fd5b506104fc61090c3660046132a8565b6118be565b34801561091c575f80fd5b506104c561092b3660046132a8565b6118cb565b34801561093b575f80fd5b5061054f61094a3660046134d8565b60186020525f908152604090205481565b348015610966575f80fd5b506009546001600160a01b03166104c5565b348015610983575f80fd5b506104fc6109923660046135e1565b611930565b3480156109a2575f80fd5b506104fc6109b13660046134bd565b611942565b3480156109c1575f80fd5b5061049961195d565b3480156109d5575f80fd5b5061054f6109e43660046134d8565b60176020525f908152604090205481565b348015610a00575f80fd5b506104fc610a0f3660046134bd565b61196c565b348015610a1f575f80fd5b5061054f610a2e3660046134d8565b60196020525f908152604090205481565b348015610a4a575f80fd5b506104fc610a593660046132a8565b611987565b348015610a69575f80fd5b506104fc610a78366004613623565b611994565b348015610a88575f80fd5b506104fc610a973660046136c7565b611a2a565b348015610aa7575f80fd5b506104fc610ab63660046134bd565b611a3e565b348015610ac6575f80fd5b5061054f600f5481565b348015610adb575f80fd5b50610470610aea3660046135a2565b611a60565b348015610afa575f80fd5b5061054f610b093660046134d8565b601b6020525f908152604090205481565b348015610b25575f80fd5b5061054f60135481565b348015610b3a575f80fd5b5061054f60165481565b348015610b4f575f80fd5b5061054f610b5e3660046134d8565b601a6020525f908152604090205481565b348015610b7a575f80fd5b506104fc610b893660046134bd565b611aa3565b348015610b99575f80fd5b506104fc610ba83660046136f3565b611abe565b348015610bb8575f80fd5b506104fc610bc73660046132a8565b611aeb565b348015610bd7575f80fd5b5061054f60155481565b348015610bec575f80fd5b506104fc610bfb3660046132a8565b611af8565b348015610c0b575f80fd5b506011546104709060ff1681565b6104fc610c273660046132a8565b611b05565b348015610c37575f80fd5b506104fc610c463660046132a8565b611b97565b348015610c56575f80fd5b506104fc610c653660046132a8565b611ba4565b348015610c75575f80fd5b50610499610c843660046132a8565b611bb1565b6104fc610c973660046135a2565b611c7e565b348015610ca7575f80fd5b506011546104709062010000900460ff1681565b348015610cc6575f80fd5b5061054f600c5481565b348015610cdb575f80fd5b5061054f600e5481565b348015610cf0575f80fd5b50610470610cff36600461376e565b6001600160a01b039182165f90815260066020908152604080832093909416825291909152205460ff1690565b348015610d37575f80fd5b506104fc610d463660046134bd565b611d4c565b348015610d56575f80fd5b506104fc610d653660046132a8565b611d72565b348015610d75575f80fd5b506104fc610d843660046134d8565b611d7f565b348015610d94575f80fd5b50600b546104709060ff1681565b5f610dac82611df5565b80610dbb5750610dbb82611e5f565b92915050565b606060018054610dd09061379a565b80601f0160208091040260200160405190810160405280929190818152602001828054610dfc9061379a565b8015610e475780601f10610e1e57610100808354040283529160200191610e47565b820191905f5260205f20905b815481529060010190602001808311610e2a57829003601f168201915b5050505050905090565b5f610e5d826004541190565b610ec65760405162461bcd60e51b815260206004820152602f60248201527f4552433732315073693a20617070726f76656420717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084015b60405180910390fd5b505f908152600560205260409020546001600160a01b031690565b81610eeb81611e83565b610ef58383611f4a565b505050565b610f0261205b565b601d55565b5f6001600454610f1791906137e6565b905090565b610f2461205b565b6021610f30828261383e565b5050565b826001600160a01b0381163314610f4e57610f4e33611e83565b610f598484846120b5565b50505050565b5f8281526008602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610fd35750604080518082019091526007546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101515f9061271090610ff1906001600160601b0316876138fa565b610ffb9190613911565b91519350909150505b9250929050565b5f8060015b60045481101561107f57611025816004541190565b801561104a575061103581611713565b6001600160a01b0316856001600160a01b0316145b1561106d5783820361105f579150610dbb9050565b8161106981613930565b9250505b8061107781613930565b915050611010565b5060405162461bcd60e51b8152602060048201526024808201527f4552433732315073693a206f776e657220696e646578206f7574206f6620626f604482015263756e647360e01b6064820152608401610ebd565b6110dc6120e6565b5f6110e5610f07565b90505f846010546110f691906138fa565b6011549091506301000000900460ff166111225760405162461bcd60e51b8152600401610ebd90613948565b61112d85838361213f565b61113784846116c8565b6111535760405162461bcd60e51b8152600401610ebd90613974565b335f908152601b6020526040812080548792906111719084906139a2565b90915550611181905033866121eb565b5050610ef56001600a55565b61119561205b565b601055565b6111a261205b565b6022546001600160a01b0316158015906111c657506023546001600160a01b031615155b80156111dc57506024546001600160a01b031615155b80156111f257506025546001600160a01b031615155b801561120857506026546001600160a01b031615155b801561121e57506027546001600160a01b031615155b801561123457506028546001600160a01b031615155b801561124a57506029546001600160a01b031615155b6112965760405162461bcd60e51b815260206004820152601960248201527f506c6561736520736574206d656d6265722061646472657373000000000000006044820152606401610ebd565b60225447906112c6906001600160a01b03166127106112b7846103e86138fa565b6112c19190613911565b612204565b6023546112e5906001600160a01b03166127106112b7846103e86138fa565b602454611304906001600160a01b03166127106112b7846103e86138fa565b602554611323906001600160a01b03166127106112b7846103e86138fa565b602654611342906001600160a01b03166127106112b7846103e86138fa565b602754611361906001600160a01b03166127106112b7846103e86138fa565b602854611380906001600160a01b03166127106112b7846103e86138fa565b60295461139f906001600160a01b03166127106112b784610bb86138fa565b50565b6113aa61205b565b60118054911515620100000262ff000019909216919091179055565b826001600160a01b03811633146113e0576113e033611e83565b610f59848484612319565b60605f6113f7836117dc565b90505f8167ffffffffffffffff811115611413576114136132fd565b60405190808252806020026020018201604052801561143c578160200160208202803683370190505b5090505f60015b600454811015611500576040516320c2ce9960e21b815260048101829052309063830b3a6490602401602060405180830381865afa158015611487573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906114ab91906139b5565b6001600160a01b0316866001600160a01b0316036114ee578083836114cf81613930565b9450815181106114e1576114e16139d0565b6020026020010181815250505b806114f881613930565b915050611443565b5090949350505050565b61151261205b565b5f61151b610f07565b600c5490915061152b83836139a2565b11156115495760405162461bcd60e51b8152600401610ebd906139e4565b610ef583836121eb565b5f61155c610f07565b82106115b85760405162461bcd60e51b815260206004820152602560248201527f4552433732315073693a20676c6f62616c20696e646578206f7574206f6620626044820152646f756e647360d81b6064820152608401610ebd565b5f60015b600454811015611604576115d1816004541190565b156115f2578382036115e4579392505050565b816115ee81613930565b9250505b806115fc81613930565b9150506115bc565b5050919050565b61161361205b565b601255565b61162061205b565b6020610ef5828483613a0d565b6116356120e6565b5f61163e610f07565b90505f84600e5461164f91906138fa565b601154909150610100900460ff166116795760405162461bcd60e51b8152600401610ebd90613948565b611684858383612333565b61168e8484611a60565b6116aa5760405162461bcd60e51b8152600401610ebd90613974565b335f90815260196020526040812080548792906111719084906139a2565b6040516001600160601b03193360601b1660208201525f90819060340160405160208183030381529060405280519060200120905061170b8484601e548461239b565b949350505050565b5f8061171e836123b2565b509392505050565b6040516001600160601b03193360601b1660208201525f90819060340160405160208183030381529060405280519060200120905061170b8484601c548461239b565b61177161205b565b601655565b61177e61205b565b600c54611789610f07565b11156117d75760405162461bcd60e51b815260206004820152601960248201527f4c6f776572207468616e205f63757272656e74496e6465782e000000000000006044820152606401610ebd565b600c55565b5f6001600160a01b0382166118495760405162461bcd60e51b815260206004820152602d60248201527f4552433732315073693a2062616c616e636520717565727920666f722074686560448201526c207a65726f206164647265737360981b6064820152608401610ebd565b5f60015b6004548110156118a457611862816004541190565b156118945761187081611713565b6001600160a01b0316846001600160a01b0316036118945761189182613930565b91505b61189d81613930565b905061184d565b5092915050565b6118b361205b565b6118bc5f612449565b565b6118c661205b565b601e55565b6040516331a9108f60e11b8152600481018290525f903090636352211e90602401602060405180830381865afa925050508015611925575060408051601f3d908101601f19168201909252611922918101906139b5565b60015b610dbb57505f919050565b61193861205b565b610f30828261249a565b61194a61205b565b601f805460ff1916911515919091179055565b606060028054610dd09061379a565b61197461205b565b6011805460ff1916911515919091179055565b61198f61205b565b600d55565b61199c61205b565b602280546001600160a01b03199081166001600160a01b039a8b1617909155602380548216988a1698909817909755602480548816968916969096179095556025805487169488169490941790935560268054861692871692909217909155602780548516918616919091179055602880548416918516919091179055602980549092169216919091179055565b81611a3481611e83565b610ef58383612597565b611a4661205b565b601180549115156101000261ff0019909216919091179055565b6040516001600160601b03193360601b1660208201525f90819060340160405160208183030381529060405280519060200120905061170b8484601d548461239b565b611aab61205b565b600b805460ff1916911515919091179055565b836001600160a01b0381163314611ad857611ad833611e83565b611ae48585858561265a565b5050505050565b611af361205b565b601455565b611b0061205b565b601c55565b611b0d6120e6565b5f611b16610f07565b90505f82600f54611b2791906138fa565b60115490915062010000900460ff16611b525760405162461bcd60e51b8152600401610ebd90613948565b611b5d83838361268c565b335f908152601a602052604081208054859290611b7b9084906139a2565b90915550611b8b905033846121eb565b505061139f6001600a55565b611b9f61205b565b600f55565b611bac61205b565b600e55565b601f5460609060ff1615611bee57611bc8826126f4565b604051602001611bd89190613ac8565b6040516020818303038152906040529050919050565b60218054611bfb9061379a565b80601f0160208091040260200160405190810160405280929190818152602001828054611c279061379a565b8015611c725780601f10611c4957610100808354040283529160200191611c72565b820191905f5260205f20905b815481529060010190602001808311611c5557829003601f168201915b50505050509050919050565b611c866120e6565b5f611c8f610f07565b600d546011549192509060ff16611cb85760405162461bcd60e51b8152600401610ebd90613948565b611cc282826127b9565b611ccc8484611726565b611ce85760405162461bcd60e51b8152600401610ebd90613974565b335f908152601760205260408120805460019290611d079084906139a2565b9091555050601354335f9081526018602052604081208054909190611d2d9084906139a2565b92505081905550611d40336013546121eb565b5050610f306001600a55565b611d5461205b565b6011805491151563010000000263ff00000019909216919091179055565b611d7a61205b565b601555565b611d8761205b565b6001600160a01b038116611dec5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ebd565b61139f81612449565b5f6001600160e01b031982166380ac58cd60e01b1480611e2557506001600160e01b03198216635b5e139f60e01b145b80611e4057506001600160e01b0319821663780e9d6360e01b145b80610dbb57506301ffc9a760e01b6001600160e01b0319831614610dbb565b5f6001600160e01b0319821663152a902d60e11b1480610dbb5750610dbb82611df5565b6daaeb6d7670e522a718067333cd4e3b15801590611ea35750600b5460ff165b1561139f57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611efe573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611f229190613af0565b61139f57604051633b79c77360e21b81526001600160a01b0382166004820152602401610ebd565b5f611f5482611713565b9050806001600160a01b0316836001600160a01b031603611fc35760405162461bcd60e51b8152602060048201526024808201527f4552433732315073693a20617070726f76616c20746f2063757272656e74206f6044820152633bb732b960e11b6064820152608401610ebd565b336001600160a01b0382161480611fdf5750611fdf8133610cff565b6120515760405162461bcd60e51b815260206004820152603b60248201527f4552433732315073693a20617070726f76652063616c6c6572206973206e6f7460448201527f206f776e6572206e6f7220617070726f76656420666f7220616c6c00000000006064820152608401610ebd565b610ef58383612868565b6009546001600160a01b031633146118bc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ebd565b6120bf33826128d5565b6120db5760405162461bcd60e51b8152600401610ebd90613b0b565b610ef58383836129bd565b6002600a54036121385760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ebd565b6002600a55565b600c5461214c84846139a2565b111561216a5760405162461bcd60e51b8152600401610ebd906139e4565b8034101561218a5760405162461bcd60e51b8152600401610ebd90613b5f565b601654335f908152601b60205260409020546121a79085906139a2565b1115610ef55760405162461bcd60e51b8152602060048201526013602482015272082d8e4cac2c8f240c6d8c2d2dacac840dac2f606b1b6044820152606401610ebd565b610f30828260405180602001604052805f815250612ba3565b804710156122545760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610ebd565b5f826001600160a01b0316826040515f6040518083038185875af1925050503d805f811461229d576040519150601f19603f3d011682016040523d82523d5f602084013e6122a2565b606091505b5050905080610ef55760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610ebd565b610ef583838360405180602001604052805f815250611abe565b600c5461234084846139a2565b111561235e5760405162461bcd60e51b8152600401610ebd906139e4565b8034101561237e5760405162461bcd60e51b8152600401610ebd90613b5f565b601454335f908152601960205260409020546121a79085906139a2565b5f826123a8868685612bd9565b1495945050505050565b5f806123bf836004541190565b6124205760405162461bcd60e51b815260206004820152602c60248201527f4552433732315073693a206f776e657220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610ebd565b61242983612c24565b5f818152600360205260409020546001600160a01b031694909350915050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6127106001600160601b03821611156125085760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610ebd565b6001600160a01b03821661255e5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610ebd565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600755565b336001600160a01b038316036125ef5760405162461bcd60e51b815260206004820152601c60248201527f4552433732315073693a20617070726f766520746f2063616c6c6572000000006044820152606401610ebd565b335f8181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61266433836128d5565b6126805760405162461bcd60e51b8152600401610ebd90613b0b565b610f5984848484612c2f565b600c5461269984846139a2565b11156126b75760405162461bcd60e51b8152600401610ebd906139e4565b803410156126d75760405162461bcd60e51b8152600401610ebd90613b5f565b601554335f908152601a60205260409020546121a79085906139a2565b6060612701826004541190565b6127605760405162461bcd60e51b815260206004820152602a60248201527f4552433732315073693a2055524920717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610ebd565b5f612769612c48565b90505f8151116127875760405180602001604052805f8152506127b2565b8061279184612c57565b6040516020016127a2929190613b89565b6040516020818303038152906040525b9392505050565b600c546013546127c990846139a2565b11156127e75760405162461bcd60e51b8152600401610ebd906139e4565b803410156128075760405162461bcd60e51b8152600401610ebd90613b5f565b601254335f908152601760205260409020546128249060016139a2565b1115610f305760405162461bcd60e51b8152602060048201526013602482015272082d8e4cac2c8f240c6d8c2d2dacac840dac2f606b1b6044820152606401610ebd565b5f81815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061289c82611713565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b5f6128e1826004541190565b6129455760405162461bcd60e51b815260206004820152602f60248201527f4552433732315073693a206f70657261746f7220717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610ebd565b5f61294f83611713565b9050806001600160a01b0316846001600160a01b0316148061298a5750836001600160a01b031661297f84610e51565b6001600160a01b0316145b8061170b57506001600160a01b038082165f9081526006602090815260408083209388168352929052205460ff1661170b565b5f806129c8836123b2565b91509150846001600160a01b0316826001600160a01b031614612a425760405162461bcd60e51b815260206004820152602c60248201527f4552433732315073693a207472616e73666572206f6620746f6b656e2074686160448201526b3a1034b9903737ba1037bbb760a11b6064820152608401610ebd565b6001600160a01b038416612aa85760405162461bcd60e51b815260206004820152602760248201527f4552433732315073693a207472616e7366657220746f20746865207a65726f206044820152666164647265737360c81b6064820152608401610ebd565b612ab25f84612868565b5f612abe8460016139a2565b600881901c5f90815260208190526040902054909150600160ff1b60ff83161c16158015612aed575060045481105b15612b22575f81815260036020526040812080546001600160a01b0319166001600160a01b038916179055612b229082612ce7565b5f84815260036020526040902080546001600160a01b0319166001600160a01b038716179055818414612b5957612b595f85612ce7565b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b600454612bb08484612d12565b612bbd5f85838686612e74565b610f595760405162461bcd60e51b8152600401610ebd90613bb7565b5f81815b84811015612c1b57612c0782878784818110612bfb57612bfb6139d0565b90506020020135612fa7565b915080612c1381613930565b915050612bdd565b50949350505050565b5f610dbb8183612fd0565b612c3a8484846129bd565b612bbd848484600185612e74565b606060208054610dd09061379a565b60605f612c63836130c4565b60010190505f8167ffffffffffffffff811115612c8257612c826132fd565b6040519080825280601f01601f191660200182016040528015612cac576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084612cb657509392505050565b600881901c5f90815260209290925260409091208054600160ff1b60ff9093169290921c9091179055565b60045481612d705760405162461bcd60e51b815260206004820152602560248201527f4552433732315073693a207175616e74697479206d7573742062652067726561604482015264074657220360dc1b6064820152608401610ebd565b6001600160a01b038316612dd25760405162461bcd60e51b815260206004820152602360248201527f4552433732315073693a206d696e7420746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610ebd565b8160045f828254612de391906139a2565b90915550505f81815260036020526040812080546001600160a01b0319166001600160a01b038616179055612e189082612ce7565b805b612e2483836139a2565b811015610f595760405181906001600160a01b038616905f907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480612e6c81613930565b915050612e1a565b5f6001600160a01b0385163b15612f9a57506001835b612e9484866139a2565b811015612f9457604051630a85bd0160e11b81526001600160a01b0387169063150b7a0290612ecd9033908b9086908990600401613c0c565b6020604051808303815f875af1925050508015612f07575060408051601f3d908101601f19168201909252612f0491810190613c48565b60015b612f62573d808015612f34576040519150601f19603f3d011682016040523d82523d5f602084013e612f39565b606091505b5080515f03612f5a5760405162461bcd60e51b8152600401610ebd90613bb7565b805181602001fd5b828015612f7f57506001600160e01b03198116630a85bd0160e11b145b92505080612f8c81613930565b915050612e8a565b50612f9e565b5060015b95945050505050565b5f818310612fc1575f8281526020849052604090206127b2565b505f9182526020526040902090565b600881901c5f8181526020849052604081205490919060ff808516919082181c801561301157612fff8161319b565b60ff168203600884901b1793506130bb565b5f831161307d5760405162461bcd60e51b815260206004820152603460248201527f4269744d6170733a205468652073657420626974206265666f7265207468652060448201527334b73232bc103237b2b9b713ba1032bc34b9ba1760611b6064820152608401610ebd565b505f199091015f8181526020869052604090205490919080156130b6576130a38161319b565b60ff0360ff16600884901b1793506130bb565b613011565b50505092915050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106131025772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061312e576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061314c57662386f26fc10000830492506010015b6305f5e1008310613164576305f5e100830492506008015b612710831061317857612710830492506004015b6064831061318a576064830492506002015b600a8310610dbb5760010192915050565b5f6040518061012001604052806101008152602001613c64610100913960f87e818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff6131e385613204565b02901c815181106131f6576131f66139d0565b016020015160f81c92915050565b5f808211613210575f80fd5b505f8190031690565b6001600160e01b03198116811461139f575f80fd5b5f6020828403121561323e575f80fd5b81356127b281613219565b5f5b8381101561326357818101518382015260200161324b565b50505f910152565b5f8151808452613282816020860160208601613249565b601f01601f19169290920160200192915050565b602081525f6127b2602083018461326b565b5f602082840312156132b8575f80fd5b5035919050565b6001600160a01b038116811461139f575f80fd5b5f80604083850312156132e4575f80fd5b82356132ef816132bf565b946020939093013593505050565b634e487b7160e01b5f52604160045260245ffd5b5f67ffffffffffffffff8084111561332b5761332b6132fd565b604051601f8501601f19908116603f01168101908282118183101715613353576133536132fd565b8160405280935085815286868601111561336b575f80fd5b858560208301375f602087830101525050509392505050565b5f60208284031215613394575f80fd5b813567ffffffffffffffff8111156133aa575f80fd5b8201601f810184136133ba575f80fd5b61170b84823560208401613311565b5f805f606084860312156133db575f80fd5b83356133e6816132bf565b925060208401356133f6816132bf565b929592945050506040919091013590565b5f8060408385031215613418575f80fd5b50508035926020909101359150565b5f8083601f840112613437575f80fd5b50813567ffffffffffffffff81111561344e575f80fd5b6020830191508360208260051b8501011115611004575f80fd5b5f805f6040848603121561347a575f80fd5b83359250602084013567ffffffffffffffff811115613497575f80fd5b6134a386828701613427565b9497909650939450505050565b801515811461139f575f80fd5b5f602082840312156134cd575f80fd5b81356127b2816134b0565b5f602082840312156134e8575f80fd5b81356127b2816132bf565b602080825282518282018190525f9190848201906040850190845b8181101561352a5783518352928401929184019160010161350e565b50909695505050505050565b5f8060208385031215613547575f80fd5b823567ffffffffffffffff8082111561355e575f80fd5b818501915085601f830112613571575f80fd5b81358181111561357f575f80fd5b866020828501011115613590575f80fd5b60209290920196919550909350505050565b5f80602083850312156135b3575f80fd5b823567ffffffffffffffff8111156135c9575f80fd5b6135d585828601613427565b90969095509350505050565b5f80604083850312156135f2575f80fd5b82356135fd816132bf565b915060208301356001600160601b0381168114613618575f80fd5b809150509250929050565b5f805f805f805f80610100898b03121561363b575f80fd5b8835613646816132bf565b97506020890135613656816132bf565b96506040890135613666816132bf565b95506060890135613676816132bf565b94506080890135613686816132bf565b935060a0890135613696816132bf565b925060c08901356136a6816132bf565b915060e08901356136b6816132bf565b809150509295985092959890939650565b5f80604083850312156136d8575f80fd5b82356136e3816132bf565b91506020830135613618816134b0565b5f805f8060808587031215613706575f80fd5b8435613711816132bf565b93506020850135613721816132bf565b925060408501359150606085013567ffffffffffffffff811115613743575f80fd5b8501601f81018713613753575f80fd5b61376287823560208401613311565b91505092959194509250565b5f806040838503121561377f575f80fd5b823561378a816132bf565b91506020830135613618816132bf565b600181811c908216806137ae57607f821691505b6020821081036137cc57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b81810381811115610dbb57610dbb6137d2565b601f821115610ef5575f81815260208120601f850160051c8101602086101561381f5750805b601f850160051c820191505b81811015612b9b5782815560010161382b565b815167ffffffffffffffff811115613858576138586132fd565b61386c81613866845461379a565b846137f9565b602080601f83116001811461389f575f84156138885750858301515b5f19600386901b1c1916600185901b178555612b9b565b5f85815260208120601f198616915b828110156138cd578886015182559484019460019091019084016138ae565b50858210156138ea57878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b8082028115828204841417610dbb57610dbb6137d2565b5f8261392b57634e487b7160e01b5f52601260045260245ffd5b500490565b5f60018201613941576139416137d2565b5060010190565b6020808252601290820152712132b337b9329039b0b632903132b3b4b71760711b604082015260600190565b60208082526014908201527324b73b30b634b21026b2b935b63290283937b7b360611b604082015260600190565b80820180821115610dbb57610dbb6137d2565b5f602082840312156139c5575f80fd5b81516127b2816132bf565b634e487b7160e01b5f52603260045260245ffd5b6020808252600f908201526e26b0bc1039bab838363c9037bb32b960891b604082015260600190565b67ffffffffffffffff831115613a2557613a256132fd565b613a3983613a33835461379a565b836137f9565b5f601f841160018114613a6a575f8515613a535750838201355b5f19600387901b1c1916600186901b178355611ae4565b5f83815260209020601f19861690835b82811015613a9a5786850135825560209485019460019092019101613a7a565b5086821015613ab6575f1960f88860031b161c19848701351681555b505060018560011b0183555050505050565b5f8251613ad9818460208701613249565b64173539b7b760d91b920191825250600501919050565b5f60208284031215613b00575f80fd5b81516127b2816134b0565b60208082526034908201527f4552433732315073693a207472616e736665722063616c6c6572206973206e6f6040820152731d081bdddb995c881b9bdc88185c1c1c9bdd995960621b606082015260800190565b60208082526010908201526f4e6f7420656e6f7567682066756e647360801b604082015260600190565b5f8351613b9a818460208801613249565b835190830190613bae818360208801613249565b01949350505050565b60208082526035908201527f4552433732315073693a207472616e7366657220746f206e6f6e20455243373260408201527418a932b1b2b4bb32b91034b6b83632b6b2b73a32b960591b606082015260800190565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f90613c3e9083018461326b565b9695505050505050565b5f60208284031215613c58575f80fd5b81516127b28161321956fe0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8a2646970667358221220cc1384c07e2f66b024132ba16a1e085b62c7a214722116046632cdf55003299564736f6c63430008140033
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.