Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 513 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 16891616 | 531 days ago | IN | 0 ETH | 0.00199011 | ||||
Safe Transfer Fr... | 16560933 | 578 days ago | IN | 0 ETH | 0.00109945 | ||||
Set Approval For... | 15891676 | 671 days ago | IN | 0 ETH | 0.00095754 | ||||
Set Approval For... | 15823172 | 681 days ago | IN | 0 ETH | 0.00059399 | ||||
Set Approval For... | 15545563 | 720 days ago | IN | 0 ETH | 0.00031972 | ||||
Set Approval For... | 15439835 | 737 days ago | IN | 0 ETH | 0.00039249 | ||||
Safe Transfer Fr... | 15386356 | 745 days ago | IN | 0 ETH | 0.00067521 | ||||
Set Approval For... | 15380575 | 746 days ago | IN | 0 ETH | 0.000265 | ||||
Safe Transfer Fr... | 15380122 | 746 days ago | IN | 0 ETH | 0.00032105 | ||||
Set Approval For... | 15037194 | 800 days ago | IN | 0 ETH | 0.00202646 | ||||
Set Approval For... | 15006138 | 806 days ago | IN | 0 ETH | 0.00113731 | ||||
Set Approval For... | 14982673 | 810 days ago | IN | 0 ETH | 0.000925 | ||||
Set Approval For... | 14942135 | 817 days ago | IN | 0 ETH | 0.00113435 | ||||
Transfer From | 14933740 | 818 days ago | IN | 0 ETH | 0.00869593 | ||||
Free Mint | 14932429 | 819 days ago | IN | 0 ETH | 0.00095455 | ||||
Set Approval For... | 14924364 | 820 days ago | IN | 0 ETH | 0.00680981 | ||||
Transfer From | 14921905 | 820 days ago | IN | 0 ETH | 0.00260037 | ||||
Mint | 14921882 | 820 days ago | IN | 0.05 ETH | 0.0019158 | ||||
Free Mint | 14921847 | 820 days ago | IN | 0 ETH | 0.00142527 | ||||
Free Mint | 14921847 | 820 days ago | IN | 0 ETH | 0.00141659 | ||||
Transfer From | 14921733 | 820 days ago | IN | 0 ETH | 0.00252533 | ||||
Withdraw | 14921671 | 820 days ago | IN | 0 ETH | 0.00186372 | ||||
Transfer From | 14921671 | 820 days ago | IN | 0 ETH | 0.00254438 | ||||
Free Mint | 14921664 | 820 days ago | IN | 0 ETH | 0.0017287 | ||||
Transfer From | 14921656 | 820 days ago | IN | 0 ETH | 0.00307596 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
14921671 | 820 days ago | 1.71 ETH |
Loading...
Loading
Contract Name:
SuperBest
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 20 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.13; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; contract OwnableDelegateProxy {} contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } contract SuperBest is ERC721A, Ownable, ReentrancyGuard { using Strings for uint256; enum Stage { FreeSale, PublicSale, SoldOut } uint256 public maxSupply; uint256 public freeSupply; mapping(address => bool) private freeMinted; mapping(address => bool) private publicSaleMinted; uint64 public giftedMintCounts; uint256 public constant FREE_MINT_MAX_PER_WALLET = 1; uint256 public constant PUBLIC_MINT_MIN_PER_WALLET = 1; uint256 public constant PUBLIC_MINT_MAX_PER_WALLET = 10; uint256 public constant PUBLIC_SALE_PRICE = 0.01 ether; bool public isMintedSuspend; bool public isTransactionFreezed; string private baseTokenURI = "ipfs://QmatwBZ2zN3eJotE7sJZFkiZff16euGeKcsRQFYuadVhUp/"; address public vaultAddress; bool private isOpenSeaProxyActive = true; address proxyRegistryAddress; event KidMinted(address account, uint256 startTokenId,uint256 amount); event KidBurned(address account, uint256 tokenId); // ============ ACCESS CONTROL/SANITY MODIFIERS ============ modifier isNotContract() { require(tx.origin == msg.sender,"contract is not allowed to operate"); _; } modifier notMintSuspend(){ require(!isMintedSuspend, "Mint best has been suspended!"); _; } modifier publicSaleActive() { require(totalSupply() >= freeSupply, "Public sale is not open"); _; } modifier canMintBestGlobal(uint256 numberOfTokens) { require(numberOfTokens > 0,"Mint count must be greater than 0"); require( totalSupply() + numberOfTokens <= maxSupply, "Not enough bests remaining to mint" ); _; } modifier isCorrectPayment(uint256 price, uint256 numberOfTokens) { require( msg.value >= price * numberOfTokens, "Incorrect ETH value sent" ); _; } modifier isCorrectAmount(uint256 numberOfTokens){ require(numberOfTokens >= PUBLIC_MINT_MIN_PER_WALLET && numberOfTokens <= PUBLIC_MINT_MAX_PER_WALLET, "Incorrect mint amount sent."); _; } constructor( string memory name, string memory symbol, address _openSeaProxyRegistryAddress, uint256 _maxSupply, uint256 _freeSupply ) ERC721A(name, symbol){ proxyRegistryAddress = _openSeaProxyRegistryAddress; maxSupply = _maxSupply; freeSupply = _freeSupply; vaultAddress = owner(); } function setMintSuspend(bool isSuspend) external onlyOwner{ isMintedSuspend = isSuspend; } function freezeTransaction(bool isFreezed) external onlyOwner{ isTransactionFreezed = isFreezed; } function setVaultAddress(address _vaultAddress) external onlyOwner { vaultAddress = _vaultAddress; } function setIsOpenSeaProxyActive(bool _isOpenSeaProxyActive) external onlyOwner { isOpenSeaProxyActive = _isOpenSeaProxyActive; } function setProxyRegistryAddress(address _proxyRegistryAddress) external onlyOwner { proxyRegistryAddress = _proxyRegistryAddress; } function setBaseURI(string memory baseURI) external onlyOwner { baseTokenURI = baseURI; } function _baseURI() internal view virtual override returns (string memory) { return baseTokenURI; } // ============ PUBLIC FUNCTIONS FOR MINTING ============ function getCurrentStage() public view returns (Stage){ Stage curStage; if(getLeftBestCount() == 0){ curStage = Stage.SoldOut; } else if(totalSupply() >= freeSupply){ curStage = Stage.PublicSale; }else { curStage = Stage.FreeSale; } return curStage; } function getLeftBestCount() public view returns(uint256){ uint256 numMintedSoFar = totalSupply(); return maxSupply - numMintedSoFar; } function freeMint() external nonReentrant isNotContract notMintSuspend canMintBestGlobal(FREE_MINT_MAX_PER_WALLET) { require(totalSupply() + FREE_MINT_MAX_PER_WALLET <= freeSupply,"Exceed maximum free mint quantity."); require(!freeMinted[msg.sender],"You have mint best by free,please try other mint method."); freeMinted[msg.sender] = true; _mintNFT(msg.sender,FREE_MINT_MAX_PER_WALLET); } function mint(uint256 amount) external payable nonReentrant isNotContract publicSaleActive notMintSuspend isCorrectAmount(amount) isCorrectPayment(PUBLIC_SALE_PRICE, amount) canMintBestGlobal(amount) { require(!publicSaleMinted[msg.sender],"You have minted bests before."); publicSaleMinted[msg.sender] = true; _mintNFT(msg.sender,amount); refundIfOver(PUBLIC_SALE_PRICE * amount); } function airDrop(address to, uint256 amount) external nonReentrant isNotContract notMintSuspend canMintBestGlobal(amount) onlyOwner { giftedMintCounts += uint64(amount); _mintNFT(to, amount); } function _mintNFT(address to, uint256 amount) internal { _safeMint(to, amount); emit KidMinted(msg.sender, _nextTokenId(), amount); } function burnNFT(uint256 tokenId) external { require(_exists(tokenId), "ERC721: owner query for nonexistent token"); require(ownerOf(tokenId) == msg.sender, "not your token"); _burn(tokenId); emit KidBurned(msg.sender,tokenId); } function refundIfOver(uint256 price) private { require(msg.value >= price, "SuperBest: Need to send more ETH."); if (msg.value > price) { payable(msg.sender).transfer(msg.value - price); } } function withdraw() external onlyOwner { require(vaultAddress != address(0x0), "vault address is not set"); payable(vaultAddress).transfer(address(this).balance); } function setApprovalForAll(address operator, bool approved) public override { require(!isTransactionFreezed,"Transaction has been freezed!"); super.setApprovalForAll(operator,approved); } function isApprovedForAll(address owner, address operator) public view override returns (bool) { if(isTransactionFreezed){ return false; }else{ // whitelist OpenSea proxy contract for easy trading. if (proxyRegistryAddress != address(0x0)) { ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); if (isOpenSeaProxyActive && address(proxyRegistry.proxies(owner)) == operator) { return true; } } return super.isApprovedForAll(owner, operator); } } function transferFrom( address from, address to, uint256 tokenId ) public override { if(isTransactionFreezed){ revert('Transaction is being Freezed now!'); }else{ super.transferFrom(from,to,tokenId); } } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { if(isTransactionFreezed){ revert('Transaction is being Freezed now!'); }else{ super.safeTransferFrom(from,to,tokenId,_data); } } // should never be used inside of transaction because of gas fee function tokensOfOwner(address owner) external view returns (uint256[] memory ownerTokens) { uint256 tokenCount = balanceOf(owner); if (tokenCount == 0) { return new uint256[](0); } else { uint256[] memory result = new uint256[](tokenCount); uint256 resultIndex = 0; uint256 i = 0; uint256 numMintedSoFar = _nextTokenId(); while(i < numMintedSoFar){ if(_exists(i)){ TokenOwnership memory ownership = _ownershipOf(i); if (ownership.addr == owner && resultIndex < tokenCount) { result[resultIndex] = i; resultIndex++; } } i++; } return result; } } function getTokenIds() internal view returns (uint256[] memory _tokenIds){ uint256[] memory tokenIdList = new uint256[](totalSupply()); uint index = 0; for(uint i = _startTokenId();i < _nextTokenId();i++){ if(_exists(i)){ tokenIdList[index] = i; index++; } } return tokenIdList; } function tokenByIndex(uint256 _index) public view returns (uint256 tokenId){ if(totalSupply() > 0){ return getTokenIds()[_index]; }else{ revert('No any token has been minted so far.'); } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.0.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // 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); // ============================== // IERC721 // ============================== /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * 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 be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================== // IERC721Metadata // ============================== /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.0.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Mask of an entry in packed address data. uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225; // The tokenId of the next token to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See `_packedOwnershipOf` implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see `_totalMinted`. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to `_startTokenId()` unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes of the XOR of // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165 // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)` return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> BITPOS_AUX); } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; assembly { // Cast aux without masking. auxCasted := aux } packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX); _packedAddressData[owner] = packed; } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & BITMASK_BURNED == 0) { // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP); ownership.burned = packed & BITMASK_BURNED != 0; } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @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) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev Casts the address to uint256 without masking. */ function _addressToUint256(address value) private pure returns (uint256 result) { assembly { result := value } } /** * @dev Casts the boolean to uint256 without branching. */ function _boolToUint256(bool value) private pure returns (uint256 result) { assembly { result := value } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = address(uint160(_packedOwnershipOf(tokenId))); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), 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 { _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 { _transfer(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the balance and number minted. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.code.length != 0) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the balance and number minted. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSenderERC721A() == from || isApprovedForAll(from, _msgSenderERC721A()) || getApproved(tokenId) == _msgSenderERC721A()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | BITMASK_NEXT_INITIALIZED; // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); if (approvalCheck) { bool isApprovedOrOwner = (_msgSenderERC721A() == from || isApprovedForAll(from, _msgSenderERC721A()) || getApproved(tokenId) == _msgSenderERC721A()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _addressToUint256(from) | (block.timestamp << BITPOS_START_TIMESTAMP) | BITMASK_BURNED | BITMASK_NEXT_INITIALIZED; // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function _toString(uint256 value) internal pure returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 20 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"_openSeaProxyRegistryAddress","type":"address"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_freeSupply","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"KidBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"startTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"KidMinted","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":"FREE_MINT_MAX_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_MINT_MAX_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_MINT_MIN_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_SALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"airDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burnNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"isFreezed","type":"bool"}],"name":"freezeTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentStage","outputs":[{"internalType":"enum SuperBest.Stage","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLeftBestCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"giftedMintCounts","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"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":"isMintedSuspend","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isTransactionFreezed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isOpenSeaProxyActive","type":"bool"}],"name":"setIsOpenSeaProxyActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isSuspend","type":"bool"}],"name":"setMintSuspend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"name":"setProxyRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vaultAddress","type":"address"}],"name":"setVaultAddress","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":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"ownerTokens","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vaultAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60e0604052603660808181529062002d2760a03980516200002991600f9160209091019062000169565b506010805460ff60a01b1916600160a01b1790553480156200004a57600080fd5b5060405162002d5d38038062002d5d8339810160408190526200006d91620002dc565b8451859085906200008690600290602085019062000169565b5080516200009c90600390602084019062000169565b50506000805550620000ae3362000117565b6001600955601180546001600160a01b0319166001600160a01b038516179055600a829055600b819055620000eb6008546001600160a01b031690565b601080546001600160a01b0319166001600160a01b039290921691909117905550620003b69350505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000177906200037a565b90600052602060002090601f0160209004810192826200019b5760008555620001e6565b82601f10620001b657805160ff1916838001178555620001e6565b82800160010185558215620001e6579182015b82811115620001e6578251825591602001919060010190620001c9565b50620001f4929150620001f8565b5090565b5b80821115620001f45760008155600101620001f9565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200023757600080fd5b81516001600160401b03808211156200025457620002546200020f565b604051601f8301601f19908116603f011681019082821181831017156200027f576200027f6200020f565b816040528381526020925086838588010111156200029c57600080fd5b600091505b83821015620002c05785820183015181830184015290820190620002a1565b83821115620002d25760008385830101525b9695505050505050565b600080600080600060a08688031215620002f557600080fd5b85516001600160401b03808211156200030d57600080fd5b6200031b89838a0162000225565b965060208801519150808211156200033257600080fd5b50620003418882890162000225565b604088015190955090506001600160a01b03811681146200036157600080fd5b6060870151608090970151959894975095949392505050565b600181811c908216806200038f57607f821691505b602082108103620003b057634e487b7160e01b600052602260045260246000fd5b50919050565b61296180620003c66000396000f3fe6080604052600436106101f15760003560e01c8063715018a611610109578063715018a6146104895780638462151c1461049e57806385535cc5146104cb5780638859bc09146104eb5780638da5cb5b1461050057806395d89b4114610515578063a0712d681461052a578063a22cb4651461053d578063a721a9891461055d578063b88d4fde1461057e578063b98be1a71461059e578063c87b56dd146105be578063d26ea6c0146105de578063d5abeb01146105fe578063e43082f714610614578063e985e9c514610634578063eedbe31d14610654578063f0a568df146102fe578063f2fde38b14610676578063f6e4192514610696578063fed5802d146106ce57600080fd5b806301ffc9a7146101f6578063045f78501461022b57806306fdde031461024d57806307e89ec01461026f578063081812fc14610298578063095ea7b3146102c557806318160ddd146102e55780631e425b17146102fe57806320551ef61461031357806323b872dd1461032857806324a6ab0c146103485780632890e0d71461035e5780633ccfd60b1461037e5780633d4fa3ad1461039357806342842e0e146103b4578063430bf08a146103d45780634f6ccce7146103f457806355f804b3146104145780635b70ea9f146104345780636352211e1461044957806370a0823114610469575b600080fd5b34801561020257600080fd5b50610216610211366004612228565b6106ee565b60405190151581526020015b60405180910390f35b34801561023757600080fd5b5061024b61024636600461225a565b610740565b005b34801561025957600080fd5b50610262610898565b60405161022291906122de565b34801561027b57600080fd5b5061028a662386f26fc1000081565b604051908152602001610222565b3480156102a457600080fd5b506102b86102b33660046122f1565b61092a565b604051610222919061230a565b3480156102d157600080fd5b5061024b6102e036600461225a565b61096e565b3480156102f157600080fd5b506001546000540361028a565b34801561030a57600080fd5b5061028a600181565b34801561031f57600080fd5b5061028a610a40565b34801561033457600080fd5b5061024b61034336600461231e565b610a66565b34801561035457600080fd5b5061028a600b5481565b34801561036a57600080fd5b5061024b6103793660046122f1565b610aa0565b34801561038a57600080fd5b5061024b610b9d565b34801561039f57600080fd5b50600e5461021690600160401b900460ff1681565b3480156103c057600080fd5b5061024b6103cf36600461231e565b610c5b565b3480156103e057600080fd5b506010546102b8906001600160a01b031681565b34801561040057600080fd5b5061028a61040f3660046122f1565b610c76565b34801561042057600080fd5b5061024b61042f3660046123ea565b610d0d565b34801561044057600080fd5b5061024b610d53565b34801561045557600080fd5b506102b86104643660046122f1565b610f1c565b34801561047557600080fd5b5061028a610484366004612432565b610f27565b34801561049557600080fd5b5061024b610f75565b3480156104aa57600080fd5b506104be6104b9366004612432565b610fb0565b604051610222919061244f565b3480156104d757600080fd5b5061024b6104e6366004612432565b6110d1565b3480156104f757600080fd5b5061028a600a81565b34801561050c57600080fd5b506102b8611122565b34801561052157600080fd5b50610262611131565b61024b6105383660046122f1565b611140565b34801561054957600080fd5b5061024b6105583660046124a3565b6113bf565b34801561056957600080fd5b50600e5461021690600160481b900460ff1681565b34801561058a57600080fd5b5061024b6105993660046124d8565b611423565b3480156105aa57600080fd5b5061024b6105b9366004612557565b61145f565b3480156105ca57600080fd5b506102626105d93660046122f1565b6114ac565b3480156105ea57600080fd5b5061024b6105f9366004612432565b611530565b34801561060a57600080fd5b5061028a600a5481565b34801561062057600080fd5b5061024b61062f366004612557565b611581565b34801561064057600080fd5b5061021661064f366004612572565b6115ce565b34801561066057600080fd5b506106696116e1565b60405161022291906125ab565b34801561068257600080fd5b5061024b610691366004612432565b61171a565b3480156106a257600080fd5b50600e546106b6906001600160401b031681565b6040516001600160401b039091168152602001610222565b3480156106da57600080fd5b5061024b6106e9366004612557565b6117b7565b60006301ffc9a760e01b6001600160e01b03198316148061071f57506380ac58cd60e01b6001600160e01b03198316145b8061073a5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60026009540361076b5760405162461bcd60e51b8152600401610762906125d3565b60405180910390fd5b600260095532331461078f5760405162461bcd60e51b81526004016107629061260a565b600e54600160401b900460ff16156107b95760405162461bcd60e51b81526004016107629061264c565b80600081116107da5760405162461bcd60e51b815260040161076290612683565b600a54816107eb6001546000540390565b6107f591906126da565b11156108135760405162461bcd60e51b8152600401610762906126f2565b3361081c611122565b6001600160a01b0316146108425760405162461bcd60e51b815260040161076290612734565b600e80548391906000906108609084906001600160401b0316612769565b92506101000a8154816001600160401b0302191690836001600160401b0316021790555061088e8383611804565b5050600160095550565b6060600280546108a790612794565b80601f01602080910402602001604051908101604052809291908181526020018280546108d390612794565b80156109205780601f106108f557610100808354040283529160200191610920565b820191906000526020600020905b81548152906001019060200180831161090357829003601f168201915b5050505050905090565b600061093582611866565b610952576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006109798261188d565b9050806001600160a01b0316836001600160a01b0316036109ad5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146109e4576109c781336115ce565b6109e4576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600080610a506001546000540390565b905080600a54610a6091906127c8565b91505090565b600e54600160481b900460ff1615610a905760405162461bcd60e51b8152600401610762906127df565b610a9b8383836118f4565b505050565b610aa981611866565b610b075760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610762565b33610b1182610f1c565b6001600160a01b031614610b585760405162461bcd60e51b815260206004820152600e60248201526d3737ba103cb7bab9103a37b5b2b760911b6044820152606401610762565b610b61816118ff565b60408051338152602081018390527f5f2a7da7e504dab0e63a8098f782c68c65cc6b598569765500040b548daf5321910160405180910390a150565b33610ba6611122565b6001600160a01b031614610bcc5760405162461bcd60e51b815260040161076290612734565b6010546001600160a01b0316610c1f5760405162461bcd60e51b81526020600482015260186024820152771d985d5b1d081859191c995cdcc81a5cc81b9bdd081cd95d60421b6044820152606401610762565b6010546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610c58573d6000803e3d6000fd5b50565b610a9b83838360405180602001604052806000815250611423565b600080610c866001546000540390565b1115610cb457610c9461190a565b8281518110610ca557610ca5612820565b60200260200101519050919050565b60405162461bcd60e51b8152602060048201526024808201527f4e6f20616e7920746f6b656e20686173206265656e206d696e74656420736f206044820152633330b91760e11b6064820152608401610762565b919050565b33610d16611122565b6001600160a01b031614610d3c5760405162461bcd60e51b815260040161076290612734565b8051610d4f90600f906020840190612159565b5050565b600260095403610d755760405162461bcd60e51b8152600401610762906125d3565b6002600955323314610d995760405162461bcd60e51b81526004016107629061260a565b600e54600160401b900460ff1615610dc35760405162461bcd60e51b81526004016107629061264c565b6001600a5481610dd66001546000540390565b610de091906126da565b1115610dfe5760405162461bcd60e51b8152600401610762906126f2565b600b546001805460005403610e1391906126da565b1115610e6c5760405162461bcd60e51b815260206004820152602260248201527f457863656564206d6178696d756d2066726565206d696e74207175616e7469746044820152613c9760f11b6064820152608401610762565b336000908152600c602052604090205460ff1615610eed5760405162461bcd60e51b815260206004820152603860248201527f596f752068617665206d696e74206265737420627920667265652c706c65617360448201527732903a393c9037ba3432b91036b4b73a1036b2ba3437b21760411b6064820152608401610762565b336000818152600c60205260409020805460ff19166001908117909155610f149190611804565b506001600955565b600061073a8261188d565b60006001600160a01b038216610f50576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b33610f7e611122565b6001600160a01b031614610fa45760405162461bcd60e51b815260040161076290612734565b610fae60006119c0565b565b60606000610fbd83610f27565b905080600003610fdd575050604080516000815260208101909152919050565b6000816001600160401b03811115610ff757610ff761235f565b604051908082528060200260200182016040528015611020578160200160208202803683370190505b509050600080600061103160005490565b90505b808210156110c05761104582611866565b156110ae57600061105583611a12565b9050876001600160a01b031681600001516001600160a01b031614801561107b57508584105b156110ac578285858151811061109357611093612820565b6020908102919091010152836110a881612836565b9450505b505b816110b881612836565b925050611034565b509195945050505050565b50919050565b336110da611122565b6001600160a01b0316146111005760405162461bcd60e51b815260040161076290612734565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b031690565b6060600380546108a790612794565b6002600954036111625760405162461bcd60e51b8152600401610762906125d3565b60026009553233146111865760405162461bcd60e51b81526004016107629061260a565b600b546001546000540310156111d85760405162461bcd60e51b8152602060048201526017602482015276283ab13634b19039b0b6329034b9903737ba1037b832b760491b6044820152606401610762565b600e54600160401b900460ff16156112025760405162461bcd60e51b81526004016107629061264c565b80600181101580156112155750600a8111155b61125f5760405162461bcd60e51b815260206004820152601b60248201527a24b731b7b93932b1ba1036b4b73a1030b6b7bab73a1039b2b73a1760291b6044820152606401610762565b662386f26fc1000082611272818361284f565b3410156112bc5760405162461bcd60e51b8152602060048201526018602482015277125b98dbdc9c9958dd08115512081d985b1d59481cd95b9d60421b6044820152606401610762565b83600081116112dd5760405162461bcd60e51b815260040161076290612683565b600a54816112ee6001546000540390565b6112f891906126da565b11156113165760405162461bcd60e51b8152600401610762906126f2565b336000908152600d602052604090205460ff16156113765760405162461bcd60e51b815260206004820152601d60248201527f596f752068617665206d696e746564206265737473206265666f72652e0000006044820152606401610762565b336000818152600d60205260409020805460ff1916600117905561139a9086611804565b6113b36113ae86662386f26fc1000061284f565b611a2b565b50506001600955505050565b600e54600160481b900460ff16156114195760405162461bcd60e51b815260206004820152601d60248201527f5472616e73616374696f6e20686173206265656e20667265657a6564210000006044820152606401610762565b610d4f8282611ac3565b600e54600160481b900460ff161561144d5760405162461bcd60e51b8152600401610762906127df565b61145984848484611b58565b50505050565b33611468611122565b6001600160a01b03161461148e5760405162461bcd60e51b815260040161076290612734565b600e8054911515600160401b0260ff60401b19909216919091179055565b60606114b782611866565b6114d457604051630a14c4b560e41b815260040160405180910390fd5b60006114de611b9c565b905080516000036114fe5760405180602001604052806000815250611529565b8061150884611bab565b60405160200161151992919061286e565b6040516020818303038152906040525b9392505050565b33611539611122565b6001600160a01b03161461155f5760405162461bcd60e51b815260040161076290612734565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b3361158a611122565b6001600160a01b0316146115b05760405162461bcd60e51b815260040161076290612734565b60108054911515600160a01b0260ff60a01b19909216919091179055565b600e54600090600160481b900460ff16156115eb5750600061073a565b6011546001600160a01b0316156116b2576011546010546001600160a01b0390911690600160a01b900460ff1680156116a15750826001600160a01b0316816001600160a01b031663c4552791866040518263ffffffff1660e01b8152600401611655919061230a565b602060405180830381865afa158015611672573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116969190612894565b6001600160a01b0316145b156116b057600191505061073a565b505b506001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6000806116ec610a40565b6000036116fb57506002919050565b600b54600154600054031061171257506001919050565b506000919050565b33611723611122565b6001600160a01b0316146117495760405162461bcd60e51b815260040161076290612734565b6001600160a01b0381166117ae5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610762565b610c58816119c0565b336117c0611122565b6001600160a01b0316146117e65760405162461bcd60e51b815260040161076290612734565b600e8054911515600160481b0260ff60481b19909216919091179055565b61180e8282611bfa565b7f8f8506a9f60b90b7b6d8f81783e2b24e05fc022fa469f05527cd50ec9ba53df43361183960005490565b604080516001600160a01b0390931683526020830191909152810183905260600160405180910390a15050565b600080548210801561073a575050600090815260046020526040902054600160e01b161590565b6000816000548110156118db5760008181526004602052604081205490600160e01b821690036118d9575b806000036115295750600019016000818152600460205260409020546118b8565b505b604051636f96cda160e11b815260040160405180910390fd5b610a9b838383611c14565b610c58816000611da9565b6060600061191b6001546000540390565b6001600160401b038111156119325761193261235f565b60405190808252806020026020018201604052801561195b578160200160208202803683370190505b5090506000805b6000548110156119b85761197581611866565b156119a6578083838151811061198d5761198d612820565b6020908102919091010152816119a281612836565b9250505b806119b081612836565b915050611962565b509092915050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611a1a6121dd565b61073a611a268361188d565b611ee6565b80341015611a855760405162461bcd60e51b815260206004820152602160248201527f5375706572426573743a204e65656420746f2073656e64206d6f7265204554486044820152601760f91b6064820152608401610762565b80341115610c5857336108fc611a9b83346127c8565b6040518115909202916000818181858888f19350505050158015610d4f573d6000803e3d6000fd5b336001600160a01b03831603611aec5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611b63848484611c14565b6001600160a01b0383163b1561145957611b7f84848484611f1f565b611459576040516368d2bf6b60e11b815260040160405180910390fd5b6060600f80546108a790612794565b604080516080810191829052607f0190826030600a8206018353600a90045b8015611be857600183039250600a81066030018353600a9004611bca565b50819003601f19909101908152919050565b610d4f82826040518060200160405280600081525061200b565b6000611c1f8261188d565b9050836001600160a01b0316816001600160a01b031614611c525760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611c705750611c7085336115ce565b80611c8b575033611c808461092a565b6001600160a01b0316145b905080611cab57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611cd257604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091528120600160e11b4260a01b8717811790915583169003611d7357600183016000818152600460205260408120549003611d71576000548114611d715760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b031660008051602061290c83398151915260405160405180910390a45050505050565b6000611db48361188d565b9050808215611e18576000336001600160a01b0383161480611ddb5750611ddb82336115ce565b80611df6575033611deb8661092a565b6001600160a01b0316145b905080611e1657604051632ce44b5f60e11b815260040160405180910390fd5b505b600084815260066020908152604080832080546001600160a01b03191690556001600160a01b03841683526005825280832080546001600160801b0301905586835260049091528120600360e01b4260a01b8417179055600160e11b83169003611eb257600184016000818152600460205260408120549003611eb0576000548114611eb05760008181526004602052604090208390555b505b60405184906000906001600160a01b0384169060008051602061290c833981519152908390a4505060018054810190555050565b611eee6121dd565b6001600160a01b03821681526001600160401b0360a083901c166020820152600160e01b9091161515604082015290565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611f549033908990889088906004016128b1565b6020604051808303816000875af1925050508015611f8f575060408051601f3d908101601f19168201909252611f8c918101906128ee565b60015b611fed573d808015611fbd576040519150601f19603f3d011682016040523d82523d6000602084013e611fc2565b606091505b508051600003611fe5576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6000546001600160a01b03841661203457604051622e076360e81b815260040160405180910390fd5b826000036120555760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080546001600160401b018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b15612116575b60405182906001600160a01b0388169060009060008051602061290c833981519152908290a46120df6000878480600101955087611f1f565b6120fc576040516368d2bf6b60e11b815260040160405180910390fd5b8082106120a657826000541461211157600080fd5b612149565b5b6040516001830192906001600160a01b0388169060009060008051602061290c833981519152908290a4808210612117575b5060009081556114599085838684565b82805461216590612794565b90600052602060002090601f01602090048101928261218757600085556121cd565b82601f106121a057805160ff19168380011785556121cd565b828001600101855582156121cd579182015b828111156121cd5782518255916020019190600101906121b2565b506121d99291506121fd565b5090565b604080516060810182526000808252602082018190529181019190915290565b5b808211156121d957600081556001016121fe565b6001600160e01b031981168114610c5857600080fd5b60006020828403121561223a57600080fd5b813561152981612212565b6001600160a01b0381168114610c5857600080fd5b6000806040838503121561226d57600080fd5b823561227881612245565b946020939093013593505050565b60005b838110156122a1578181015183820152602001612289565b838111156114595750506000910152565b600081518084526122ca816020860160208601612286565b601f01601f19169290920160200192915050565b60208152600061152960208301846122b2565b60006020828403121561230357600080fd5b5035919050565b6001600160a01b0391909116815260200190565b60008060006060848603121561233357600080fd5b833561233e81612245565b9250602084013561234e81612245565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b038084111561238f5761238f61235f565b604051601f8501601f19908116603f011681019082821181831017156123b7576123b761235f565b816040528093508581528686860111156123d057600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156123fc57600080fd5b81356001600160401b0381111561241257600080fd5b8201601f8101841361242357600080fd5b61200384823560208401612375565b60006020828403121561244457600080fd5b813561152981612245565b6020808252825182820181905260009190848201906040850190845b818110156124875783518352928401929184019160010161246b565b50909695505050505050565b80358015158114610d0857600080fd5b600080604083850312156124b657600080fd5b82356124c181612245565b91506124cf60208401612493565b90509250929050565b600080600080608085870312156124ee57600080fd5b84356124f981612245565b9350602085013561250981612245565b92506040850135915060608501356001600160401b0381111561252b57600080fd5b8501601f8101871361253c57600080fd5b61254b87823560208401612375565b91505092959194509250565b60006020828403121561256957600080fd5b61152982612493565b6000806040838503121561258557600080fd5b823561259081612245565b915060208301356125a081612245565b809150509250929050565b60208101600383106125cd57634e487b7160e01b600052602160045260246000fd5b91905290565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526022908201527f636f6e7472616374206973206e6f7420616c6c6f77656420746f206f70657261604082015261746560f01b606082015260800190565b6020808252601d908201527f4d696e74206265737420686173206265656e2073757370656e64656421000000604082015260600190565b60208082526021908201527f4d696e7420636f756e74206d7573742062652067726561746572207468616e206040820152600360fc1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600082198211156126ed576126ed6126c4565b500190565b60208082526022908201527f4e6f7420656e6f7567682062657374732072656d61696e696e6720746f206d696040820152611b9d60f21b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006001600160401b0380831681851680830382111561278b5761278b6126c4565b01949350505050565b600181811c908216806127a857607f821691505b6020821081036110cb57634e487b7160e01b600052602260045260246000fd5b6000828210156127da576127da6126c4565b500390565b60208082526021908201527f5472616e73616374696f6e206973206265696e6720467265657a6564206e6f776040820152602160f81b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b600060018201612848576128486126c4565b5060010190565b6000816000190483118215151615612869576128696126c4565b500290565b60008351612880818460208801612286565b83519083019061278b818360208801612286565b6000602082840312156128a657600080fd5b815161152981612245565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906128e4908301846122b2565b9695505050505050565b60006020828403121561290057600080fd5b81516115298161221256feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212207a13a4e56e3fa5d61436c6f4bff5cb02fdae956c69397d2b330f03026db4f9b164736f6c634300080d0033697066733a2f2f516d617477425a327a4e33654a6f744537734a5a466b695a66663136657547654b637352514659756164566855702f00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c100000000000000000000000000000000000000000000000000000000000015b300000000000000000000000000000000000000000000000000000000000004d20000000000000000000000000000000000000000000000000000000000000009537570657242657374000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000095355504552424553540000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101f15760003560e01c8063715018a611610109578063715018a6146104895780638462151c1461049e57806385535cc5146104cb5780638859bc09146104eb5780638da5cb5b1461050057806395d89b4114610515578063a0712d681461052a578063a22cb4651461053d578063a721a9891461055d578063b88d4fde1461057e578063b98be1a71461059e578063c87b56dd146105be578063d26ea6c0146105de578063d5abeb01146105fe578063e43082f714610614578063e985e9c514610634578063eedbe31d14610654578063f0a568df146102fe578063f2fde38b14610676578063f6e4192514610696578063fed5802d146106ce57600080fd5b806301ffc9a7146101f6578063045f78501461022b57806306fdde031461024d57806307e89ec01461026f578063081812fc14610298578063095ea7b3146102c557806318160ddd146102e55780631e425b17146102fe57806320551ef61461031357806323b872dd1461032857806324a6ab0c146103485780632890e0d71461035e5780633ccfd60b1461037e5780633d4fa3ad1461039357806342842e0e146103b4578063430bf08a146103d45780634f6ccce7146103f457806355f804b3146104145780635b70ea9f146104345780636352211e1461044957806370a0823114610469575b600080fd5b34801561020257600080fd5b50610216610211366004612228565b6106ee565b60405190151581526020015b60405180910390f35b34801561023757600080fd5b5061024b61024636600461225a565b610740565b005b34801561025957600080fd5b50610262610898565b60405161022291906122de565b34801561027b57600080fd5b5061028a662386f26fc1000081565b604051908152602001610222565b3480156102a457600080fd5b506102b86102b33660046122f1565b61092a565b604051610222919061230a565b3480156102d157600080fd5b5061024b6102e036600461225a565b61096e565b3480156102f157600080fd5b506001546000540361028a565b34801561030a57600080fd5b5061028a600181565b34801561031f57600080fd5b5061028a610a40565b34801561033457600080fd5b5061024b61034336600461231e565b610a66565b34801561035457600080fd5b5061028a600b5481565b34801561036a57600080fd5b5061024b6103793660046122f1565b610aa0565b34801561038a57600080fd5b5061024b610b9d565b34801561039f57600080fd5b50600e5461021690600160401b900460ff1681565b3480156103c057600080fd5b5061024b6103cf36600461231e565b610c5b565b3480156103e057600080fd5b506010546102b8906001600160a01b031681565b34801561040057600080fd5b5061028a61040f3660046122f1565b610c76565b34801561042057600080fd5b5061024b61042f3660046123ea565b610d0d565b34801561044057600080fd5b5061024b610d53565b34801561045557600080fd5b506102b86104643660046122f1565b610f1c565b34801561047557600080fd5b5061028a610484366004612432565b610f27565b34801561049557600080fd5b5061024b610f75565b3480156104aa57600080fd5b506104be6104b9366004612432565b610fb0565b604051610222919061244f565b3480156104d757600080fd5b5061024b6104e6366004612432565b6110d1565b3480156104f757600080fd5b5061028a600a81565b34801561050c57600080fd5b506102b8611122565b34801561052157600080fd5b50610262611131565b61024b6105383660046122f1565b611140565b34801561054957600080fd5b5061024b6105583660046124a3565b6113bf565b34801561056957600080fd5b50600e5461021690600160481b900460ff1681565b34801561058a57600080fd5b5061024b6105993660046124d8565b611423565b3480156105aa57600080fd5b5061024b6105b9366004612557565b61145f565b3480156105ca57600080fd5b506102626105d93660046122f1565b6114ac565b3480156105ea57600080fd5b5061024b6105f9366004612432565b611530565b34801561060a57600080fd5b5061028a600a5481565b34801561062057600080fd5b5061024b61062f366004612557565b611581565b34801561064057600080fd5b5061021661064f366004612572565b6115ce565b34801561066057600080fd5b506106696116e1565b60405161022291906125ab565b34801561068257600080fd5b5061024b610691366004612432565b61171a565b3480156106a257600080fd5b50600e546106b6906001600160401b031681565b6040516001600160401b039091168152602001610222565b3480156106da57600080fd5b5061024b6106e9366004612557565b6117b7565b60006301ffc9a760e01b6001600160e01b03198316148061071f57506380ac58cd60e01b6001600160e01b03198316145b8061073a5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60026009540361076b5760405162461bcd60e51b8152600401610762906125d3565b60405180910390fd5b600260095532331461078f5760405162461bcd60e51b81526004016107629061260a565b600e54600160401b900460ff16156107b95760405162461bcd60e51b81526004016107629061264c565b80600081116107da5760405162461bcd60e51b815260040161076290612683565b600a54816107eb6001546000540390565b6107f591906126da565b11156108135760405162461bcd60e51b8152600401610762906126f2565b3361081c611122565b6001600160a01b0316146108425760405162461bcd60e51b815260040161076290612734565b600e80548391906000906108609084906001600160401b0316612769565b92506101000a8154816001600160401b0302191690836001600160401b0316021790555061088e8383611804565b5050600160095550565b6060600280546108a790612794565b80601f01602080910402602001604051908101604052809291908181526020018280546108d390612794565b80156109205780601f106108f557610100808354040283529160200191610920565b820191906000526020600020905b81548152906001019060200180831161090357829003601f168201915b5050505050905090565b600061093582611866565b610952576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006109798261188d565b9050806001600160a01b0316836001600160a01b0316036109ad5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146109e4576109c781336115ce565b6109e4576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600080610a506001546000540390565b905080600a54610a6091906127c8565b91505090565b600e54600160481b900460ff1615610a905760405162461bcd60e51b8152600401610762906127df565b610a9b8383836118f4565b505050565b610aa981611866565b610b075760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610762565b33610b1182610f1c565b6001600160a01b031614610b585760405162461bcd60e51b815260206004820152600e60248201526d3737ba103cb7bab9103a37b5b2b760911b6044820152606401610762565b610b61816118ff565b60408051338152602081018390527f5f2a7da7e504dab0e63a8098f782c68c65cc6b598569765500040b548daf5321910160405180910390a150565b33610ba6611122565b6001600160a01b031614610bcc5760405162461bcd60e51b815260040161076290612734565b6010546001600160a01b0316610c1f5760405162461bcd60e51b81526020600482015260186024820152771d985d5b1d081859191c995cdcc81a5cc81b9bdd081cd95d60421b6044820152606401610762565b6010546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610c58573d6000803e3d6000fd5b50565b610a9b83838360405180602001604052806000815250611423565b600080610c866001546000540390565b1115610cb457610c9461190a565b8281518110610ca557610ca5612820565b60200260200101519050919050565b60405162461bcd60e51b8152602060048201526024808201527f4e6f20616e7920746f6b656e20686173206265656e206d696e74656420736f206044820152633330b91760e11b6064820152608401610762565b919050565b33610d16611122565b6001600160a01b031614610d3c5760405162461bcd60e51b815260040161076290612734565b8051610d4f90600f906020840190612159565b5050565b600260095403610d755760405162461bcd60e51b8152600401610762906125d3565b6002600955323314610d995760405162461bcd60e51b81526004016107629061260a565b600e54600160401b900460ff1615610dc35760405162461bcd60e51b81526004016107629061264c565b6001600a5481610dd66001546000540390565b610de091906126da565b1115610dfe5760405162461bcd60e51b8152600401610762906126f2565b600b546001805460005403610e1391906126da565b1115610e6c5760405162461bcd60e51b815260206004820152602260248201527f457863656564206d6178696d756d2066726565206d696e74207175616e7469746044820152613c9760f11b6064820152608401610762565b336000908152600c602052604090205460ff1615610eed5760405162461bcd60e51b815260206004820152603860248201527f596f752068617665206d696e74206265737420627920667265652c706c65617360448201527732903a393c9037ba3432b91036b4b73a1036b2ba3437b21760411b6064820152608401610762565b336000818152600c60205260409020805460ff19166001908117909155610f149190611804565b506001600955565b600061073a8261188d565b60006001600160a01b038216610f50576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b33610f7e611122565b6001600160a01b031614610fa45760405162461bcd60e51b815260040161076290612734565b610fae60006119c0565b565b60606000610fbd83610f27565b905080600003610fdd575050604080516000815260208101909152919050565b6000816001600160401b03811115610ff757610ff761235f565b604051908082528060200260200182016040528015611020578160200160208202803683370190505b509050600080600061103160005490565b90505b808210156110c05761104582611866565b156110ae57600061105583611a12565b9050876001600160a01b031681600001516001600160a01b031614801561107b57508584105b156110ac578285858151811061109357611093612820565b6020908102919091010152836110a881612836565b9450505b505b816110b881612836565b925050611034565b509195945050505050565b50919050565b336110da611122565b6001600160a01b0316146111005760405162461bcd60e51b815260040161076290612734565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b031690565b6060600380546108a790612794565b6002600954036111625760405162461bcd60e51b8152600401610762906125d3565b60026009553233146111865760405162461bcd60e51b81526004016107629061260a565b600b546001546000540310156111d85760405162461bcd60e51b8152602060048201526017602482015276283ab13634b19039b0b6329034b9903737ba1037b832b760491b6044820152606401610762565b600e54600160401b900460ff16156112025760405162461bcd60e51b81526004016107629061264c565b80600181101580156112155750600a8111155b61125f5760405162461bcd60e51b815260206004820152601b60248201527a24b731b7b93932b1ba1036b4b73a1030b6b7bab73a1039b2b73a1760291b6044820152606401610762565b662386f26fc1000082611272818361284f565b3410156112bc5760405162461bcd60e51b8152602060048201526018602482015277125b98dbdc9c9958dd08115512081d985b1d59481cd95b9d60421b6044820152606401610762565b83600081116112dd5760405162461bcd60e51b815260040161076290612683565b600a54816112ee6001546000540390565b6112f891906126da565b11156113165760405162461bcd60e51b8152600401610762906126f2565b336000908152600d602052604090205460ff16156113765760405162461bcd60e51b815260206004820152601d60248201527f596f752068617665206d696e746564206265737473206265666f72652e0000006044820152606401610762565b336000818152600d60205260409020805460ff1916600117905561139a9086611804565b6113b36113ae86662386f26fc1000061284f565b611a2b565b50506001600955505050565b600e54600160481b900460ff16156114195760405162461bcd60e51b815260206004820152601d60248201527f5472616e73616374696f6e20686173206265656e20667265657a6564210000006044820152606401610762565b610d4f8282611ac3565b600e54600160481b900460ff161561144d5760405162461bcd60e51b8152600401610762906127df565b61145984848484611b58565b50505050565b33611468611122565b6001600160a01b03161461148e5760405162461bcd60e51b815260040161076290612734565b600e8054911515600160401b0260ff60401b19909216919091179055565b60606114b782611866565b6114d457604051630a14c4b560e41b815260040160405180910390fd5b60006114de611b9c565b905080516000036114fe5760405180602001604052806000815250611529565b8061150884611bab565b60405160200161151992919061286e565b6040516020818303038152906040525b9392505050565b33611539611122565b6001600160a01b03161461155f5760405162461bcd60e51b815260040161076290612734565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b3361158a611122565b6001600160a01b0316146115b05760405162461bcd60e51b815260040161076290612734565b60108054911515600160a01b0260ff60a01b19909216919091179055565b600e54600090600160481b900460ff16156115eb5750600061073a565b6011546001600160a01b0316156116b2576011546010546001600160a01b0390911690600160a01b900460ff1680156116a15750826001600160a01b0316816001600160a01b031663c4552791866040518263ffffffff1660e01b8152600401611655919061230a565b602060405180830381865afa158015611672573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116969190612894565b6001600160a01b0316145b156116b057600191505061073a565b505b506001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6000806116ec610a40565b6000036116fb57506002919050565b600b54600154600054031061171257506001919050565b506000919050565b33611723611122565b6001600160a01b0316146117495760405162461bcd60e51b815260040161076290612734565b6001600160a01b0381166117ae5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610762565b610c58816119c0565b336117c0611122565b6001600160a01b0316146117e65760405162461bcd60e51b815260040161076290612734565b600e8054911515600160481b0260ff60481b19909216919091179055565b61180e8282611bfa565b7f8f8506a9f60b90b7b6d8f81783e2b24e05fc022fa469f05527cd50ec9ba53df43361183960005490565b604080516001600160a01b0390931683526020830191909152810183905260600160405180910390a15050565b600080548210801561073a575050600090815260046020526040902054600160e01b161590565b6000816000548110156118db5760008181526004602052604081205490600160e01b821690036118d9575b806000036115295750600019016000818152600460205260409020546118b8565b505b604051636f96cda160e11b815260040160405180910390fd5b610a9b838383611c14565b610c58816000611da9565b6060600061191b6001546000540390565b6001600160401b038111156119325761193261235f565b60405190808252806020026020018201604052801561195b578160200160208202803683370190505b5090506000805b6000548110156119b85761197581611866565b156119a6578083838151811061198d5761198d612820565b6020908102919091010152816119a281612836565b9250505b806119b081612836565b915050611962565b509092915050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611a1a6121dd565b61073a611a268361188d565b611ee6565b80341015611a855760405162461bcd60e51b815260206004820152602160248201527f5375706572426573743a204e65656420746f2073656e64206d6f7265204554486044820152601760f91b6064820152608401610762565b80341115610c5857336108fc611a9b83346127c8565b6040518115909202916000818181858888f19350505050158015610d4f573d6000803e3d6000fd5b336001600160a01b03831603611aec5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611b63848484611c14565b6001600160a01b0383163b1561145957611b7f84848484611f1f565b611459576040516368d2bf6b60e11b815260040160405180910390fd5b6060600f80546108a790612794565b604080516080810191829052607f0190826030600a8206018353600a90045b8015611be857600183039250600a81066030018353600a9004611bca565b50819003601f19909101908152919050565b610d4f82826040518060200160405280600081525061200b565b6000611c1f8261188d565b9050836001600160a01b0316816001600160a01b031614611c525760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611c705750611c7085336115ce565b80611c8b575033611c808461092a565b6001600160a01b0316145b905080611cab57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611cd257604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091528120600160e11b4260a01b8717811790915583169003611d7357600183016000818152600460205260408120549003611d71576000548114611d715760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b031660008051602061290c83398151915260405160405180910390a45050505050565b6000611db48361188d565b9050808215611e18576000336001600160a01b0383161480611ddb5750611ddb82336115ce565b80611df6575033611deb8661092a565b6001600160a01b0316145b905080611e1657604051632ce44b5f60e11b815260040160405180910390fd5b505b600084815260066020908152604080832080546001600160a01b03191690556001600160a01b03841683526005825280832080546001600160801b0301905586835260049091528120600360e01b4260a01b8417179055600160e11b83169003611eb257600184016000818152600460205260408120549003611eb0576000548114611eb05760008181526004602052604090208390555b505b60405184906000906001600160a01b0384169060008051602061290c833981519152908390a4505060018054810190555050565b611eee6121dd565b6001600160a01b03821681526001600160401b0360a083901c166020820152600160e01b9091161515604082015290565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611f549033908990889088906004016128b1565b6020604051808303816000875af1925050508015611f8f575060408051601f3d908101601f19168201909252611f8c918101906128ee565b60015b611fed573d808015611fbd576040519150601f19603f3d011682016040523d82523d6000602084013e611fc2565b606091505b508051600003611fe5576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6000546001600160a01b03841661203457604051622e076360e81b815260040160405180910390fd5b826000036120555760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080546001600160401b018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b15612116575b60405182906001600160a01b0388169060009060008051602061290c833981519152908290a46120df6000878480600101955087611f1f565b6120fc576040516368d2bf6b60e11b815260040160405180910390fd5b8082106120a657826000541461211157600080fd5b612149565b5b6040516001830192906001600160a01b0388169060009060008051602061290c833981519152908290a4808210612117575b5060009081556114599085838684565b82805461216590612794565b90600052602060002090601f01602090048101928261218757600085556121cd565b82601f106121a057805160ff19168380011785556121cd565b828001600101855582156121cd579182015b828111156121cd5782518255916020019190600101906121b2565b506121d99291506121fd565b5090565b604080516060810182526000808252602082018190529181019190915290565b5b808211156121d957600081556001016121fe565b6001600160e01b031981168114610c5857600080fd5b60006020828403121561223a57600080fd5b813561152981612212565b6001600160a01b0381168114610c5857600080fd5b6000806040838503121561226d57600080fd5b823561227881612245565b946020939093013593505050565b60005b838110156122a1578181015183820152602001612289565b838111156114595750506000910152565b600081518084526122ca816020860160208601612286565b601f01601f19169290920160200192915050565b60208152600061152960208301846122b2565b60006020828403121561230357600080fd5b5035919050565b6001600160a01b0391909116815260200190565b60008060006060848603121561233357600080fd5b833561233e81612245565b9250602084013561234e81612245565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b038084111561238f5761238f61235f565b604051601f8501601f19908116603f011681019082821181831017156123b7576123b761235f565b816040528093508581528686860111156123d057600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156123fc57600080fd5b81356001600160401b0381111561241257600080fd5b8201601f8101841361242357600080fd5b61200384823560208401612375565b60006020828403121561244457600080fd5b813561152981612245565b6020808252825182820181905260009190848201906040850190845b818110156124875783518352928401929184019160010161246b565b50909695505050505050565b80358015158114610d0857600080fd5b600080604083850312156124b657600080fd5b82356124c181612245565b91506124cf60208401612493565b90509250929050565b600080600080608085870312156124ee57600080fd5b84356124f981612245565b9350602085013561250981612245565b92506040850135915060608501356001600160401b0381111561252b57600080fd5b8501601f8101871361253c57600080fd5b61254b87823560208401612375565b91505092959194509250565b60006020828403121561256957600080fd5b61152982612493565b6000806040838503121561258557600080fd5b823561259081612245565b915060208301356125a081612245565b809150509250929050565b60208101600383106125cd57634e487b7160e01b600052602160045260246000fd5b91905290565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526022908201527f636f6e7472616374206973206e6f7420616c6c6f77656420746f206f70657261604082015261746560f01b606082015260800190565b6020808252601d908201527f4d696e74206265737420686173206265656e2073757370656e64656421000000604082015260600190565b60208082526021908201527f4d696e7420636f756e74206d7573742062652067726561746572207468616e206040820152600360fc1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600082198211156126ed576126ed6126c4565b500190565b60208082526022908201527f4e6f7420656e6f7567682062657374732072656d61696e696e6720746f206d696040820152611b9d60f21b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006001600160401b0380831681851680830382111561278b5761278b6126c4565b01949350505050565b600181811c908216806127a857607f821691505b6020821081036110cb57634e487b7160e01b600052602260045260246000fd5b6000828210156127da576127da6126c4565b500390565b60208082526021908201527f5472616e73616374696f6e206973206265696e6720467265657a6564206e6f776040820152602160f81b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b600060018201612848576128486126c4565b5060010190565b6000816000190483118215151615612869576128696126c4565b500290565b60008351612880818460208801612286565b83519083019061278b818360208801612286565b6000602082840312156128a657600080fd5b815161152981612245565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906128e4908301846122b2565b9695505050505050565b60006020828403121561290057600080fd5b81516115298161221256feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212207a13a4e56e3fa5d61436c6f4bff5cb02fdae956c69397d2b330f03026db4f9b164736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c100000000000000000000000000000000000000000000000000000000000015b300000000000000000000000000000000000000000000000000000000000004d20000000000000000000000000000000000000000000000000000000000000009537570657242657374000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000095355504552424553540000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): SuperBest
Arg [1] : symbol (string): SUPERBEST
Arg [2] : _openSeaProxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [3] : _maxSupply (uint256): 5555
Arg [4] : _freeSupply (uint256): 1234
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [3] : 00000000000000000000000000000000000000000000000000000000000015b3
Arg [4] : 00000000000000000000000000000000000000000000000000000000000004d2
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [6] : 5375706572426573740000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [8] : 5355504552424553540000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.