Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
3,333 EG
Holders
708
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
11 EGLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
EVERGIRL
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "erc721a/contracts/ERC721A.sol"; import "./lib/rarible/royalties/contracts/LibPart.sol"; import "./lib/rarible/royalties/contracts/LibRoyaltiesV2.sol"; import "./lib/rarible/royalties/contracts/RoyaltiesV2.sol"; contract EVERGIRL is ERC721A, Ownable, ReentrancyGuard, RoyaltiesV2 { mapping(address => uint256) public whiteLists_phase1; mapping(address => uint256) public whiteLists_phase2; uint256 private _phase1_whiteListCount; uint256 private _phase2_whiteListCount; uint256 public tokenAmount = 0; uint256 public mintPrice_phase1 = 0.02 ether; uint256 public mintPrice_phase2 = 0.02 ether; uint256 public mintPrice_phase3 = 0.03 ether; bool public startPhase1Sale = false; bool public startPhase2Sale = false; bool public startPhase3Sale = false; bool public revealed = false; uint256 private maxMintsPhase1 = 1; uint256 private maxMintsPhase3PerTx = 5; uint256 private _totalSupply = 3333; string private _beforeTokenURI; string private _afterTokenPath; mapping(address => uint256) public phase1Minted; mapping(address => uint256) public phase2Minted; // Royality management bytes4 public constant _INTERFACE_ID_ERC2981 = 0x2a55205a; address payable public defaultRoyaltiesReceipientAddress; // This will be set in the constructor uint96 public defaultPercentageBasisPoints = 1000; // 10% constructor(address _royaltiesReceipientAddress) ERC721A("EVERGIRL", "EG") { defaultRoyaltiesReceipientAddress = payable( _royaltiesReceipientAddress ); } function ownerMint(uint256 amount, address _address) public onlyOwner { require((amount + tokenAmount) <= (_totalSupply), "mint failure"); _safeMint(_address, amount); tokenAmount += amount; } function phase1Mint(uint256 amount) external payable nonReentrant { require(startPhase1Sale, "sale: Paused"); require( whiteLists_phase1[msg.sender] >= phase1Minted[msg.sender] + amount, "You have no wl left" ); require( msg.value == mintPrice_phase1 * amount, "Value sent is not correct" ); require((amount + tokenAmount) <= (_totalSupply), "mint failure"); phase1Minted[msg.sender] += amount; _safeMint(msg.sender, amount); tokenAmount += amount; } function phase2Mint(uint256 amount) external payable nonReentrant { require(startPhase2Sale, "sale: Paused"); require( whiteLists_phase2[msg.sender] >= phase2Minted[msg.sender] + amount, "You have no wl left" ); require( msg.value == mintPrice_phase2 * amount, "Value sent is not correct" ); require((amount + tokenAmount) <= (_totalSupply), "mint failure"); phase2Minted[msg.sender] += amount; _safeMint(msg.sender, amount); tokenAmount += amount; } function phase3Mint(uint256 amount) public payable nonReentrant { require(startPhase3Sale, "sale: Paused"); require(maxMintsPhase3PerTx >= amount, "sale: 5 maxper tx"); require( msg.value == mintPrice_phase3 * amount, "Value sent is not correct" ); require((amount + tokenAmount) <= (_totalSupply), "mint failure"); _safeMint(msg.sender, amount); tokenAmount += amount; } function setMintPricePhase1(uint256 newPrice) external onlyOwner { mintPrice_phase1 = newPrice; } function setMintPricePhase2(uint256 newPrice) external onlyOwner { mintPrice_phase2 = newPrice; } function setMintPricePhase3(uint256 newPrice) external onlyOwner { mintPrice_phase3 = newPrice; } function setReveal(bool bool_) external onlyOwner { revealed = bool_; } function setStartPhase1Sale(bool bool_) external onlyOwner { startPhase1Sale = bool_; } function setStartPhase2Sale(bool bool_) external onlyOwner { startPhase2Sale = bool_; } function setStartPhase3Sale(bool bool_) external onlyOwner { startPhase3Sale = bool_; } function setBeforeURI(string memory beforeTokenURI_) public onlyOwner { _beforeTokenURI = beforeTokenURI_; } function setAfterURI(string memory afterTokenPath_) public onlyOwner { _afterTokenPath = afterTokenPath_; } function setTotalSupply(uint256 newTotalSupply) external onlyOwner { _totalSupply = newTotalSupply; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); if (revealed == false) { return _beforeTokenURI; } else { return string( abi.encodePacked( _afterTokenPath, Strings.toString(tokenId), ".json" ) ); } } function deletePhase1WL(address addr) public virtual onlyOwner { _phase1_whiteListCount = _phase1_whiteListCount - whiteLists_phase1[addr]; delete (whiteLists_phase1[addr]); } function deletePhase2WL(address addr) public virtual onlyOwner { _phase2_whiteListCount = _phase2_whiteListCount - whiteLists_phase2[addr]; delete (whiteLists_phase2[addr]); } function upsertPhase1WL(address addr, uint256 maxMint) public virtual onlyOwner { _phase1_whiteListCount = _phase1_whiteListCount - whiteLists_phase1[addr]; whiteLists_phase1[addr] = maxMint; _phase1_whiteListCount = _phase1_whiteListCount + maxMint; } function upsertPhase2WL(address addr, uint256 maxMint) public virtual onlyOwner { _phase2_whiteListCount = _phase2_whiteListCount - whiteLists_phase2[addr]; whiteLists_phase2[addr] = maxMint; _phase2_whiteListCount = _phase2_whiteListCount + maxMint; } function pushMultiPhase1WLSpecifyNum(address[] memory list, uint256 num) public virtual onlyOwner { for (uint256 i = 0; i < list.length; i++) { whiteLists_phase1[list[i]] = num; _phase1_whiteListCount += num; } } function pushMultiPhase2WLSpecifyNum(address[] memory list, uint256 num) public virtual onlyOwner { for (uint256 i = 0; i < list.length; i++) { whiteLists_phase2[list[i]] = num; _phase2_whiteListCount += num; } } function getPhase1WLCount() public view returns (uint256) { return _phase1_whiteListCount; } function getPhase2WLCount() public view returns (uint256) { return _phase2_whiteListCount; } function getPhase1WL(address _address) public view returns (uint256) { return whiteLists_phase1[_address] - phase1Minted[msg.sender]; } function getPhase2WL(address _address) public view returns (uint256) { return whiteLists_phase2[_address] - phase2Minted[msg.sender]; } function _startTokenId() internal pure override returns (uint256) { return 1; } /** * @dev disable Ownerble renounceOwnership */ function renounceOwnership() public override onlyOwner {} /** * @dev do withdraw eth. */ function withdrawETH() external virtual onlyOwner { uint256 royalty = address(this).balance; Address.sendValue(payable(owner()), royalty); } // Copied from ForgottenRunesWarriorsGuild. Thank you dotta ;) /** * @dev ERC20s should not be sent to this contract, but if someone * does, it's nice to be able to recover them * @param token IERC20 the token address * @param amount uint256 the amount to send */ function forwardERC20s(IERC20 token, uint256 amount) public onlyOwner { require(address(msg.sender) != address(0)); token.transfer(msg.sender, amount); } // Royality management /** * @dev set defaultRoyaltiesReceipientAddress * @param _defaultRoyaltiesReceipientAddress address New royality receipient address */ function setDefaultRoyaltiesReceipientAddress( address payable _defaultRoyaltiesReceipientAddress ) public onlyOwner { defaultRoyaltiesReceipientAddress = _defaultRoyaltiesReceipientAddress; } /** * @dev set defaultPercentageBasisPoints * @param _defaultPercentageBasisPoints uint96 New royality percentagy basis points */ function setDefaultPercentageBasisPoints( uint96 _defaultPercentageBasisPoints ) public onlyOwner { defaultPercentageBasisPoints = _defaultPercentageBasisPoints; } /** * @dev return royality for Rarible */ function getRaribleV2Royalties(uint256) external view override returns (LibPart.Part[] memory) { LibPart.Part[] memory _royalties = new LibPart.Part[](1); _royalties[0].value = defaultPercentageBasisPoints; _royalties[0].account = defaultRoyaltiesReceipientAddress; return _royalties; } /** * @dev return royality in EIP-2981 standard * @param _salePrice uint256 sales price of the token royality is calculated */ function royaltyInfo(uint256, uint256 _salePrice) external view returns (address receiver, uint256 royaltyAmount) { return ( defaultRoyaltiesReceipientAddress, (_salePrice * defaultPercentageBasisPoints) / 10000 ); } /** * @dev Interface */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A) returns (bool) { if (interfaceId == LibRoyaltiesV2._INTERFACE_ID_ROYALTIES) { return true; } if (interfaceId == _INTERFACE_ID_ERC2981) { return true; } return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./LibPart.sol"; interface RoyaltiesV2 { event RoyaltiesSet(uint256 tokenId, LibPart.Part[] royalties); function getRaribleV2Royalties(uint256 id) external view returns (LibPart.Part[] memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library LibPart { bytes32 public constant TYPE_HASH = keccak256("Part(address account,uint96 value)"); struct Part { address payable account; uint96 value; } function hash(Part memory part) internal pure returns (bytes32) { return keccak256(abi.encode(TYPE_HASH, part.account, part.value)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library LibRoyaltiesV2 { /* * bytes4(keccak256('getRoyalties(LibAsset.AssetType)')) == 0xcad96cca */ bytes4 constant _INTERFACE_ID_ROYALTIES = 0xcad96cca; }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // 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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_royaltiesReceipientAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"indexed":false,"internalType":"struct LibPart.Part[]","name":"royalties","type":"tuple[]"}],"name":"RoyaltiesSet","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":"_INTERFACE_ID_ERC2981","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultPercentageBasisPoints","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultRoyaltiesReceipientAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"deletePhase1WL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"deletePhase2WL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"forwardERC20s","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":[{"internalType":"address","name":"_address","type":"address"}],"name":"getPhase1WL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPhase1WLCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getPhase2WL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPhase2WLCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getRaribleV2Royalties","outputs":[{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"internalType":"struct LibPart.Part[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice_phase1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice_phase2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice_phase3","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"_address","type":"address"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"phase1Mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"phase1Minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"phase2Mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"phase2Minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"phase3Mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"list","type":"address[]"},{"internalType":"uint256","name":"num","type":"uint256"}],"name":"pushMultiPhase1WLSpecifyNum","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"list","type":"address[]"},{"internalType":"uint256","name":"num","type":"uint256"}],"name":"pushMultiPhase2WLSpecifyNum","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"afterTokenPath_","type":"string"}],"name":"setAfterURI","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":"beforeTokenURI_","type":"string"}],"name":"setBeforeURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint96","name":"_defaultPercentageBasisPoints","type":"uint96"}],"name":"setDefaultPercentageBasisPoints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_defaultRoyaltiesReceipientAddress","type":"address"}],"name":"setDefaultRoyaltiesReceipientAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setMintPricePhase1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setMintPricePhase2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setMintPricePhase3","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"bool_","type":"bool"}],"name":"setReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"bool_","type":"bool"}],"name":"setStartPhase1Sale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"bool_","type":"bool"}],"name":"setStartPhase2Sale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"bool_","type":"bool"}],"name":"setStartPhase3Sale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newTotalSupply","type":"uint256"}],"name":"setTotalSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startPhase1Sale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startPhase2Sale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startPhase3Sale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"maxMint","type":"uint256"}],"name":"upsertPhase1WL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"maxMint","type":"uint256"}],"name":"upsertPhase2WL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whiteLists_phase1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whiteLists_phase2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000600e5566470de4df820000600f5566470de4df820000601055666a94d74f4300006011556000601260006101000a81548160ff0219169083151502179055506000601260016101000a81548160ff0219169083151502179055506000601260026101000a81548160ff0219169083151502179055506000601260036101000a81548160ff02191690831515021790555060016013556005601455610d056015556103e8601a60146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550348015620000e657600080fd5b50604051620051e7380380620051e783398181016040528101906200010c919062000423565b6040518060400160405280600881526020017f455645524749524c0000000000000000000000000000000000000000000000008152506040518060400160405280600281526020017f454700000000000000000000000000000000000000000000000000000000000081525081600290805190602001906200019092919062000309565b508060039080519060200190620001a992919062000309565b50620001ba6200023260201b60201c565b6000819055505050620001e2620001d66200023b60201b60201c565b6200024360201b60201c565b600160098190555080601a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050620004ba565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620003179062000484565b90600052602060002090601f0160209004810192826200033b576000855562000387565b82601f106200035657805160ff191683800117855562000387565b8280016001018555821562000387579182015b828111156200038657825182559160200191906001019062000369565b5b5090506200039691906200039a565b5090565b5b80821115620003b55760008160009055506001016200039b565b5090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620003eb82620003be565b9050919050565b620003fd81620003de565b81146200040957600080fd5b50565b6000815190506200041d81620003f2565b92915050565b6000602082840312156200043c576200043b620003b9565b5b60006200044c848285016200040c565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200049d57607f821691505b60208210811415620004b457620004b362000455565b5b50919050565b614d1d80620004ca6000396000f3fe6080604052600436106103ad5760003560e01c806380c8c2ca116101e7578063cad96cca1161010d578063e985e9c5116100a0578063f0ac74bd1161006f578063f0ac74bd14610da4578063f2fde38b14610dcd578063f7de0ad114610df6578063f7ea7a3d14610e33576103ad565b8063e985e9c514610cf7578063e9c6cde914610d34578063ed00c02d14610d50578063eec7faa114610d79576103ad565b8063d1f75954116100dc578063d1f7595414610c65578063d52c57e014610c8e578063dbec31ae14610cb7578063e086e5ec14610ce0576103ad565b8063cad96cca14610ba9578063cd3a8e2714610be6578063cedf100b14610c11578063d060534914610c3a576103ad565b806397a6a8ed11610185578063b8a916ed11610154578063b8a916ed14610aef578063c87b56dd14610b1a578063c8a9f0b314610b57578063ca2c25d214610b80576103ad565b806397a6a8ed14610a545780639a6a967014610a7f578063a22cb46514610aaa578063b88d4fde14610ad3576103ad565b80638da5cb5b116101c15780638da5cb5b146109ac57806391dcbd10146109d757806395d89b4114610a005780639727151a14610a2b576103ad565b806380c8c2ca1461092f578063862d37241461095a5780638cffd16a14610983576103ad565b80633a8088db116102d757806362b54ded1161026a57806370a082311161023957806370a0823114610882578063715018a6146108bf57806375915599146108d65780637d286f9d14610913576103ad565b806362b54ded146107b45780636352211e146107df5780636f97633c1461081c5780636fc6e1fe14610859576103ad565b80634cfe2728116102a65780634cfe27281461070a57806351830227146107355780635709d900146107605780635b384fcb14610789576103ad565b80633a8088db1461065d57806342842e0e1461068857806343195aff146106a45780634aeea184146106e1576103ad565b806318160ddd1161034f578063258b8a9f1161031e578063258b8a9f146105b15780632a3f300c146105cd5780632a55205a146105f657806339ffa8ae14610634576103ad565b806318160ddd146104f057806318b411b01461051b5780631960ead71461055857806323b872dd14610595576103ad565b8063086d06731161038b578063086d067314610457578063095ea7b314610480578063152375171461049c57806316481abd146104c5576103ad565b806301ffc9a7146103b257806306fdde03146103ef578063081812fc1461041a575b600080fd5b3480156103be57600080fd5b506103d960048036038101906103d4919061376d565b610e5c565b6040516103e691906137b5565b60405180910390f35b3480156103fb57600080fd5b50610404610f1b565b6040516104119190613869565b60405180910390f35b34801561042657600080fd5b50610441600480360381019061043c91906138c1565b610fad565b60405161044e919061392f565b60405180910390f35b34801561046357600080fd5b5061047e60048036038101906104799190613976565b61102c565b005b61049a600480360381019061049591906139cf565b611051565b005b3480156104a857600080fd5b506104c360048036038101906104be9190613976565b611195565b005b3480156104d157600080fd5b506104da6111ba565b6040516104e79190613a1e565b60405180910390f35b3480156104fc57600080fd5b506105056111c4565b6040516105129190613a1e565b60405180910390f35b34801561052757600080fd5b50610542600480360381019061053d9190613a39565b6111db565b60405161054f9190613a1e565b60405180910390f35b34801561056457600080fd5b5061057f600480360381019061057a9190613a39565b61126e565b60405161058c9190613a1e565b60405180910390f35b6105af60048036038101906105aa9190613a66565b611286565b005b6105cb60048036038101906105c691906138c1565b6115ab565b005b3480156105d957600080fd5b506105f460048036038101906105ef9190613976565b61175c565b005b34801561060257600080fd5b5061061d60048036038101906106189190613ab9565b611781565b60405161062b929190613af9565b60405180910390f35b34801561064057600080fd5b5061065b600480360381019061065691906139cf565b6117f3565b005b34801561066957600080fd5b506106726118aa565b60405161067f91906137b5565b60405180910390f35b6106a2600480360381019061069d9190613a66565b6118bd565b005b3480156106b057600080fd5b506106cb60048036038101906106c69190613a39565b6118dd565b6040516106d89190613a1e565b60405180910390f35b3480156106ed57600080fd5b50610708600480360381019061070391906138c1565b6118f5565b005b34801561071657600080fd5b5061071f611907565b60405161072c9190613a1e565b60405180910390f35b34801561074157600080fd5b5061074a611911565b60405161075791906137b5565b60405180910390f35b34801561076c57600080fd5b50610787600480360381019061078291906138c1565b611924565b005b34801561079557600080fd5b5061079e611936565b6040516107ab9190613a1e565b60405180910390f35b3480156107c057600080fd5b506107c961193c565b6040516107d69190613a1e565b60405180910390f35b3480156107eb57600080fd5b50610806600480360381019061080191906138c1565b611942565b604051610813919061392f565b60405180910390f35b34801561082857600080fd5b50610843600480360381019061083e9190613a39565b611954565b6040516108509190613a1e565b60405180910390f35b34801561086557600080fd5b50610880600480360381019061087b9190613a39565b61196c565b005b34801561088e57600080fd5b506108a960048036038101906108a49190613a39565b611a0d565b6040516108b69190613a1e565b60405180910390f35b3480156108cb57600080fd5b506108d4611ac6565b005b3480156108e257600080fd5b506108fd60048036038101906108f89190613a39565b611ad0565b60405161090a9190613a1e565b60405180910390f35b61092d600480360381019061092891906138c1565b611b63565b005b34801561093b57600080fd5b50610944611df1565b6040516109519190613a1e565b60405180910390f35b34801561096657600080fd5b50610981600480360381019061097c9190613c57565b611df7565b005b34801561098f57600080fd5b506109aa60048036038101906109a59190613cde565b611e19565b005b3480156109b857600080fd5b506109c1611e65565b6040516109ce919061392f565b60405180910390f35b3480156109e357600080fd5b506109fe60048036038101906109f99190613c57565b611e8f565b005b348015610a0c57600080fd5b50610a15611eb1565b604051610a229190613869565b60405180910390f35b348015610a3757600080fd5b50610a526004803603810190610a4d9190613d49565b611f43565b005b348015610a6057600080fd5b50610a69612017565b604051610a769190613d98565b60405180910390f35b348015610a8b57600080fd5b50610a94612022565b604051610aa19190613dda565b60405180910390f35b348015610ab657600080fd5b50610ad16004803603810190610acc9190613df5565b612040565b005b610aed6004803603810190610ae89190613ed6565b61214b565b005b348015610afb57600080fd5b50610b046121be565b604051610b1191906137b5565b60405180910390f35b348015610b2657600080fd5b50610b416004803603810190610b3c91906138c1565b6121d1565b604051610b4e9190613869565b60405180910390f35b348015610b6357600080fd5b50610b7e6004803603810190610b799190614021565b6122fc565b005b348015610b8c57600080fd5b50610ba76004803603810190610ba29190613a39565b61239f565b005b348015610bb557600080fd5b50610bd06004803603810190610bcb91906138c1565b612440565b604051610bdd9190614179565b60405180910390f35b348015610bf257600080fd5b50610bfb612576565b604051610c0891906141aa565b60405180910390f35b348015610c1d57600080fd5b50610c386004803603810190610c3391906138c1565b61259c565b005b348015610c4657600080fd5b50610c4f6125ae565b604051610c5c91906137b5565b60405180910390f35b348015610c7157600080fd5b50610c8c6004803603810190610c879190614021565b6125c1565b005b348015610c9a57600080fd5b50610cb56004803603810190610cb091906141c5565b612664565b005b348015610cc357600080fd5b50610cde6004803603810190610cd99190613976565b6126e5565b005b348015610cec57600080fd5b50610cf561270a565b005b348015610d0357600080fd5b50610d1e6004803603810190610d199190614205565b61272b565b604051610d2b91906137b5565b60405180910390f35b610d4e6004803603810190610d4991906138c1565b6127bf565b005b348015610d5c57600080fd5b50610d776004803603810190610d729190614271565b612a4d565b005b348015610d8557600080fd5b50610d8e612a89565b604051610d9b9190613a1e565b60405180910390f35b348015610db057600080fd5b50610dcb6004803603810190610dc691906139cf565b612a8f565b005b348015610dd957600080fd5b50610df46004803603810190610def9190613a39565b612b46565b005b348015610e0257600080fd5b50610e1d6004803603810190610e189190613a39565b612bca565b604051610e2a9190613a1e565b60405180910390f35b348015610e3f57600080fd5b50610e5a6004803603810190610e5591906138c1565b612be2565b005b600063cad96cca60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415610eb45760019050610f16565b632a55205a60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415610f0a5760019050610f16565b610f1382612bf4565b90505b919050565b606060028054610f2a906142cd565b80601f0160208091040260200160405190810160405280929190818152602001828054610f56906142cd565b8015610fa35780601f10610f7857610100808354040283529160200191610fa3565b820191906000526020600020905b815481529060010190602001808311610f8657829003601f168201915b5050505050905090565b6000610fb882612c86565b610fee576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b611034612ce5565b80601260016101000a81548160ff02191690831515021790555050565b600061105c82611942565b90508073ffffffffffffffffffffffffffffffffffffffff1661107d612d63565b73ffffffffffffffffffffffffffffffffffffffff16146110e0576110a9816110a4612d63565b61272b565b6110df576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b61119d612ce5565b80601260026101000a81548160ff02191690831515021790555050565b6000600d54905090565b60006111ce612d6b565b6001546000540303905090565b6000601960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611267919061432e565b9050919050565b600a6020528060005260406000206000915090505481565b600061129182612d74565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146112f8576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061130484612e42565b9150915061131a8187611315612d63565b612e69565b6113665761132f8661132a612d63565b61272b565b611365576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156113cd576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113da8686866001612ead565b80156113e557600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506114b38561148f888887612eb3565b7c020000000000000000000000000000000000000000000000000000000017612edb565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416141561153b576000600185019050600060046000838152602001908152602001600020541415611539576000548114611538578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46115a38686866001612f06565b505050505050565b600260095414156115f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e8906143ae565b60405180910390fd5b6002600981905550601260029054906101000a900460ff16611648576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163f9061441a565b60405180910390fd5b80601454101561168d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168490614486565b60405180910390fd5b8060115461169b91906144a6565b34146116dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d39061454c565b60405180910390fd5b601554600e54826116ed919061456c565b111561172e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117259061460e565b60405180910390fd5b6117383382612f0c565b80600e600082825461174a919061456c565b92505081905550600160098190555050565b611764612ce5565b80601260036101000a81548160ff02191690831515021790555050565b600080601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612710601a60149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16856117de91906144a6565b6117e8919061465d565b915091509250929050565b6117fb612ce5565b600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600d54611848919061432e565b600d8190555080600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600d546118a0919061456c565b600d819055505050565b601260009054906101000a900460ff1681565b6118d88383836040518060200160405280600081525061214b565b505050565b600b6020528060005260406000206000915090505481565b6118fd612ce5565b8060118190555050565b6000600c54905090565b601260039054906101000a900460ff1681565b61192c612ce5565b8060108190555050565b60105481565b600f5481565b600061194d82612d74565b9050919050565b60186020528060005260406000206000915090505481565b611974612ce5565b600b60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600d546119c1919061432e565b600d81905550600b60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000905550565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a75576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611ace612ce5565b565b6000601860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611b5c919061432e565b9050919050565b60026009541415611ba9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba0906143ae565b60405180910390fd5b6002600981905550601260019054906101000a900460ff16611c00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf79061441a565b60405180910390fd5b80601960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611c4b919061456c565b600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611ccc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cc3906146da565b60405180910390fd5b80601054611cda91906144a6565b3414611d1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d129061454c565b60405180910390fd5b601554600e5482611d2c919061456c565b1115611d6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d649061460e565b60405180910390fd5b80601960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611dbc919061456c565b92505081905550611dcd3382612f0c565b80600e6000828254611ddf919061456c565b92505081905550600160098190555050565b60115481565b611dff612ce5565b8060179080519060200190611e15929190613620565b5050565b611e21612ce5565b80601a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611e97612ce5565b8060169080519060200190611ead929190613620565b5050565b606060038054611ec0906142cd565b80601f0160208091040260200160405190810160405280929190818152602001828054611eec906142cd565b8015611f395780601f10611f0e57610100808354040283529160200191611f39565b820191906000526020600020905b815481529060010190602001808311611f1c57829003601f168201915b5050505050905090565b611f4b612ce5565b600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415611f8557600080fd5b8173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401611fc0929190613af9565b602060405180830381600087803b158015611fda57600080fd5b505af1158015611fee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612012919061470f565b505050565b632a55205a60e01b81565b601a60149054906101000a90046bffffffffffffffffffffffff1681565b806007600061204d612d63565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166120fa612d63565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161213f91906137b5565b60405180910390a35050565b612156848484611286565b60008373ffffffffffffffffffffffffffffffffffffffff163b146121b85761218184848484612f2a565b6121b7576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b601260029054906101000a900460ff1681565b60606121dc82612c86565b61221b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612212906147ae565b60405180910390fd5b60001515601260039054906101000a900460ff16151514156122c95760168054612244906142cd565b80601f0160208091040260200160405190810160405280929190818152602001828054612270906142cd565b80156122bd5780601f10612292576101008083540402835291602001916122bd565b820191906000526020600020905b8154815290600101906020018083116122a057829003601f168201915b505050505090506122f7565b60176122d48361308a565b6040516020016122e59291906148ea565b60405160208183030381529060405290505b919050565b612304612ce5565b60005b825181101561239a5781600b600085848151811061232857612327614919565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600d6000828254612380919061456c565b92505081905550808061239290614948565b915050612307565b505050565b6123a7612ce5565b600a60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600c546123f4919061432e565b600c81905550600a60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000905550565b60606000600167ffffffffffffffff81111561245f5761245e613b2c565b5b60405190808252806020026020018201604052801561249857816020015b6124856136a6565b81526020019060019003908161247d5790505b509050601a60149054906101000a90046bffffffffffffffffffffffff16816000815181106124ca576124c9614919565b5b6020026020010151602001906bffffffffffffffffffffffff1690816bffffffffffffffffffffffff1681525050601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160008151811061252f5761252e614919565b5b60200260200101516000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505080915050919050565b601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6125a4612ce5565b80600f8190555050565b601260019054906101000a900460ff1681565b6125c9612ce5565b60005b825181101561265f5781600a60008584815181106125ed576125ec614919565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600c6000828254612645919061456c565b92505081905550808061265790614948565b9150506125cc565b505050565b61266c612ce5565b601554600e548361267d919061456c565b11156126be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b59061460e565b60405180910390fd5b6126c88183612f0c565b81600e60008282546126da919061456c565b925050819055505050565b6126ed612ce5565b80601260006101000a81548160ff02191690831515021790555050565b612712612ce5565b6000479050612728612722611e65565b826131eb565b50565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60026009541415612805576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127fc906143ae565b60405180910390fd5b6002600981905550601260009054906101000a900460ff1661285c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128539061441a565b60405180910390fd5b80601860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546128a7919061456c565b600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015612928576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161291f906146da565b60405180910390fd5b80600f5461293691906144a6565b3414612977576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161296e9061454c565b60405180910390fd5b601554600e5482612988919061456c565b11156129c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129c09061460e565b60405180910390fd5b80601860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a18919061456c565b92505081905550612a293382612f0c565b80600e6000828254612a3b919061456c565b92505081905550600160098190555050565b612a55612ce5565b80601a60146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555050565b600e5481565b612a97612ce5565b600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600c54612ae4919061432e565b600c8190555080600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600c54612b3c919061456c565b600c819055505050565b612b4e612ce5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612bbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bb590614a03565b60405180910390fd5b612bc7816132df565b50565b60196020528060005260406000206000915090505481565b612bea612ce5565b8060158190555050565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612c4f57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612c7f5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600081612c91612d6b565b11158015612ca0575060005482105b8015612cde575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b612ced6133a5565b73ffffffffffffffffffffffffffffffffffffffff16612d0b611e65565b73ffffffffffffffffffffffffffffffffffffffff1614612d61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d5890614a6f565b60405180910390fd5b565b600033905090565b60006001905090565b60008082905080612d83612d6b565b11612e0b57600054811015612e0a5760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612e08575b6000811415612dfe576004600083600190039350838152602001908152602001600020549050612dd3565b8092505050612e3d565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612eca8686846133ad565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b612f268282604051806020016040528060008152506133b6565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612f50612d63565b8786866040518563ffffffff1660e01b8152600401612f729493929190614ae4565b602060405180830381600087803b158015612f8c57600080fd5b505af1925050508015612fbd57506040513d601f19601f82011682018060405250810190612fba9190614b45565b60015b613037573d8060008114612fed576040519150601f19603f3d011682016040523d82523d6000602084013e612ff2565b606091505b5060008151141561302f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060008214156130d2576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506131e6565b600082905060005b600082146131045780806130ed90614948565b915050600a826130fd919061465d565b91506130da565b60008167ffffffffffffffff8111156131205761311f613b2c565b5b6040519080825280601f01601f1916602001820160405280156131525781602001600182028036833780820191505090505b5090505b600085146131df5760018261316b919061432e565b9150600a8561317a9190614b72565b6030613186919061456c565b60f81b81838151811061319c5761319b614919565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856131d8919061465d565b9450613156565b8093505050505b919050565b8047101561322e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161322590614bef565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161325490614c40565b60006040518083038185875af1925050503d8060008114613291576040519150601f19603f3d011682016040523d82523d6000602084013e613296565b606091505b50509050806132da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132d190614cc7565b60405180910390fd5b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b60009392505050565b6133c08383613453565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461344e57600080549050600083820390505b6134006000868380600101945086612f2a565b613436576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106133ed57816000541461344b57600080fd5b50505b505050565b6000805490506000821415613494576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6134a16000848385612ead565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613518836135096000866000612eb3565b61351285613610565b17612edb565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146135b957808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460018101905061357e565b5060008214156135f5576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600081905550505061360b6000848385612f06565b505050565b60006001821460e11b9050919050565b82805461362c906142cd565b90600052602060002090601f01602090048101928261364e5760008555613695565b82601f1061366757805160ff1916838001178555613695565b82800160010185558215613695579182015b82811115613694578251825591602001919060010190613679565b5b5090506136a291906136e4565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160006bffffffffffffffffffffffff1681525090565b5b808211156136fd5760008160009055506001016136e5565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61374a81613715565b811461375557600080fd5b50565b60008135905061376781613741565b92915050565b6000602082840312156137835761378261370b565b5b600061379184828501613758565b91505092915050565b60008115159050919050565b6137af8161379a565b82525050565b60006020820190506137ca60008301846137a6565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561380a5780820151818401526020810190506137ef565b83811115613819576000848401525b50505050565b6000601f19601f8301169050919050565b600061383b826137d0565b61384581856137db565b93506138558185602086016137ec565b61385e8161381f565b840191505092915050565b600060208201905081810360008301526138838184613830565b905092915050565b6000819050919050565b61389e8161388b565b81146138a957600080fd5b50565b6000813590506138bb81613895565b92915050565b6000602082840312156138d7576138d661370b565b5b60006138e5848285016138ac565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613919826138ee565b9050919050565b6139298161390e565b82525050565b60006020820190506139446000830184613920565b92915050565b6139538161379a565b811461395e57600080fd5b50565b6000813590506139708161394a565b92915050565b60006020828403121561398c5761398b61370b565b5b600061399a84828501613961565b91505092915050565b6139ac8161390e565b81146139b757600080fd5b50565b6000813590506139c9816139a3565b92915050565b600080604083850312156139e6576139e561370b565b5b60006139f4858286016139ba565b9250506020613a05858286016138ac565b9150509250929050565b613a188161388b565b82525050565b6000602082019050613a336000830184613a0f565b92915050565b600060208284031215613a4f57613a4e61370b565b5b6000613a5d848285016139ba565b91505092915050565b600080600060608486031215613a7f57613a7e61370b565b5b6000613a8d868287016139ba565b9350506020613a9e868287016139ba565b9250506040613aaf868287016138ac565b9150509250925092565b60008060408385031215613ad057613acf61370b565b5b6000613ade858286016138ac565b9250506020613aef858286016138ac565b9150509250929050565b6000604082019050613b0e6000830185613920565b613b1b6020830184613a0f565b9392505050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613b648261381f565b810181811067ffffffffffffffff82111715613b8357613b82613b2c565b5b80604052505050565b6000613b96613701565b9050613ba28282613b5b565b919050565b600067ffffffffffffffff821115613bc257613bc1613b2c565b5b613bcb8261381f565b9050602081019050919050565b82818337600083830152505050565b6000613bfa613bf584613ba7565b613b8c565b905082815260208101848484011115613c1657613c15613b27565b5b613c21848285613bd8565b509392505050565b600082601f830112613c3e57613c3d613b22565b5b8135613c4e848260208601613be7565b91505092915050565b600060208284031215613c6d57613c6c61370b565b5b600082013567ffffffffffffffff811115613c8b57613c8a613710565b5b613c9784828501613c29565b91505092915050565b6000613cab826138ee565b9050919050565b613cbb81613ca0565b8114613cc657600080fd5b50565b600081359050613cd881613cb2565b92915050565b600060208284031215613cf457613cf361370b565b5b6000613d0284828501613cc9565b91505092915050565b6000613d168261390e565b9050919050565b613d2681613d0b565b8114613d3157600080fd5b50565b600081359050613d4381613d1d565b92915050565b60008060408385031215613d6057613d5f61370b565b5b6000613d6e85828601613d34565b9250506020613d7f858286016138ac565b9150509250929050565b613d9281613715565b82525050565b6000602082019050613dad6000830184613d89565b92915050565b60006bffffffffffffffffffffffff82169050919050565b613dd481613db3565b82525050565b6000602082019050613def6000830184613dcb565b92915050565b60008060408385031215613e0c57613e0b61370b565b5b6000613e1a858286016139ba565b9250506020613e2b85828601613961565b9150509250929050565b600067ffffffffffffffff821115613e5057613e4f613b2c565b5b613e598261381f565b9050602081019050919050565b6000613e79613e7484613e35565b613b8c565b905082815260208101848484011115613e9557613e94613b27565b5b613ea0848285613bd8565b509392505050565b600082601f830112613ebd57613ebc613b22565b5b8135613ecd848260208601613e66565b91505092915050565b60008060008060808587031215613ef057613eef61370b565b5b6000613efe878288016139ba565b9450506020613f0f878288016139ba565b9350506040613f20878288016138ac565b925050606085013567ffffffffffffffff811115613f4157613f40613710565b5b613f4d87828801613ea8565b91505092959194509250565b600067ffffffffffffffff821115613f7457613f73613b2c565b5b602082029050602081019050919050565b600080fd5b6000613f9d613f9884613f59565b613b8c565b90508083825260208201905060208402830185811115613fc057613fbf613f85565b5b835b81811015613fe95780613fd588826139ba565b845260208401935050602081019050613fc2565b5050509392505050565b600082601f83011261400857614007613b22565b5b8135614018848260208601613f8a565b91505092915050565b600080604083850312156140385761403761370b565b5b600083013567ffffffffffffffff81111561405657614055613710565b5b61406285828601613ff3565b9250506020614073858286016138ac565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6140b281613ca0565b82525050565b6140c181613db3565b82525050565b6040820160008201516140dd60008501826140a9565b5060208201516140f060208501826140b8565b50505050565b600061410283836140c7565b60408301905092915050565b6000602082019050919050565b60006141268261407d565b6141308185614088565b935061413b83614099565b8060005b8381101561416c57815161415388826140f6565b975061415e8361410e565b92505060018101905061413f565b5085935050505092915050565b60006020820190508181036000830152614193818461411b565b905092915050565b6141a481613ca0565b82525050565b60006020820190506141bf600083018461419b565b92915050565b600080604083850312156141dc576141db61370b565b5b60006141ea858286016138ac565b92505060206141fb858286016139ba565b9150509250929050565b6000806040838503121561421c5761421b61370b565b5b600061422a858286016139ba565b925050602061423b858286016139ba565b9150509250929050565b61424e81613db3565b811461425957600080fd5b50565b60008135905061426b81614245565b92915050565b6000602082840312156142875761428661370b565b5b60006142958482850161425c565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806142e557607f821691505b602082108114156142f9576142f861429e565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006143398261388b565b91506143448361388b565b925082821015614357576143566142ff565b5b828203905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614398601f836137db565b91506143a382614362565b602082019050919050565b600060208201905081810360008301526143c78161438b565b9050919050565b7f73616c653a205061757365640000000000000000000000000000000000000000600082015250565b6000614404600c836137db565b915061440f826143ce565b602082019050919050565b60006020820190508181036000830152614433816143f7565b9050919050565b7f73616c653a2035206d6178706572207478000000000000000000000000000000600082015250565b60006144706011836137db565b915061447b8261443a565b602082019050919050565b6000602082019050818103600083015261449f81614463565b9050919050565b60006144b18261388b565b91506144bc8361388b565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156144f5576144f46142ff565b5b828202905092915050565b7f56616c75652073656e74206973206e6f7420636f727265637400000000000000600082015250565b60006145366019836137db565b915061454182614500565b602082019050919050565b6000602082019050818103600083015261456581614529565b9050919050565b60006145778261388b565b91506145828361388b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156145b7576145b66142ff565b5b828201905092915050565b7f6d696e74206661696c7572650000000000000000000000000000000000000000600082015250565b60006145f8600c836137db565b9150614603826145c2565b602082019050919050565b60006020820190508181036000830152614627816145eb565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006146688261388b565b91506146738361388b565b9250826146835761468261462e565b5b828204905092915050565b7f596f752068617665206e6f20776c206c65667400000000000000000000000000600082015250565b60006146c46013836137db565b91506146cf8261468e565b602082019050919050565b600060208201905081810360008301526146f3816146b7565b9050919050565b6000815190506147098161394a565b92915050565b6000602082840312156147255761472461370b565b5b6000614733848285016146fa565b91505092915050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614798602f836137db565b91506147a38261473c565b604082019050919050565b600060208201905081810360008301526147c78161478b565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b600081546147fb816142cd565b61480581866147ce565b94506001821660008114614820576001811461483157614864565b60ff19831686528186019350614864565b61483a856147d9565b60005b8381101561485c5781548189015260018201915060208101905061483d565b838801955050505b50505092915050565b6000614878826137d0565b61488281856147ce565b93506148928185602086016137ec565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006148d46005836147ce565b91506148df8261489e565b600582019050919050565b60006148f682856147ee565b9150614902828461486d565b915061490d826148c7565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006149538261388b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614986576149856142ff565b5b600182019050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006149ed6026836137db565b91506149f882614991565b604082019050919050565b60006020820190508181036000830152614a1c816149e0565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614a596020836137db565b9150614a6482614a23565b602082019050919050565b60006020820190508181036000830152614a8881614a4c565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614ab682614a8f565b614ac08185614a9a565b9350614ad08185602086016137ec565b614ad98161381f565b840191505092915050565b6000608082019050614af96000830187613920565b614b066020830186613920565b614b136040830185613a0f565b8181036060830152614b258184614aab565b905095945050505050565b600081519050614b3f81613741565b92915050565b600060208284031215614b5b57614b5a61370b565b5b6000614b6984828501614b30565b91505092915050565b6000614b7d8261388b565b9150614b888361388b565b925082614b9857614b9761462e565b5b828206905092915050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000614bd9601d836137db565b9150614be482614ba3565b602082019050919050565b60006020820190508181036000830152614c0881614bcc565b9050919050565b600081905092915050565b50565b6000614c2a600083614c0f565b9150614c3582614c1a565b600082019050919050565b6000614c4b82614c1d565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000614cb1603a836137db565b9150614cbc82614c55565b604082019050919050565b60006020820190508181036000830152614ce081614ca4565b905091905056fea26469706673582212205c8d42962e3336c039dd0320f75ba8bbeb9e467a27b867a75690cf3fd94d758964736f6c634300080900330000000000000000000000009cd8086b43829f3713896a365aca9add1b59dc1d
Deployed Bytecode
0x6080604052600436106103ad5760003560e01c806380c8c2ca116101e7578063cad96cca1161010d578063e985e9c5116100a0578063f0ac74bd1161006f578063f0ac74bd14610da4578063f2fde38b14610dcd578063f7de0ad114610df6578063f7ea7a3d14610e33576103ad565b8063e985e9c514610cf7578063e9c6cde914610d34578063ed00c02d14610d50578063eec7faa114610d79576103ad565b8063d1f75954116100dc578063d1f7595414610c65578063d52c57e014610c8e578063dbec31ae14610cb7578063e086e5ec14610ce0576103ad565b8063cad96cca14610ba9578063cd3a8e2714610be6578063cedf100b14610c11578063d060534914610c3a576103ad565b806397a6a8ed11610185578063b8a916ed11610154578063b8a916ed14610aef578063c87b56dd14610b1a578063c8a9f0b314610b57578063ca2c25d214610b80576103ad565b806397a6a8ed14610a545780639a6a967014610a7f578063a22cb46514610aaa578063b88d4fde14610ad3576103ad565b80638da5cb5b116101c15780638da5cb5b146109ac57806391dcbd10146109d757806395d89b4114610a005780639727151a14610a2b576103ad565b806380c8c2ca1461092f578063862d37241461095a5780638cffd16a14610983576103ad565b80633a8088db116102d757806362b54ded1161026a57806370a082311161023957806370a0823114610882578063715018a6146108bf57806375915599146108d65780637d286f9d14610913576103ad565b806362b54ded146107b45780636352211e146107df5780636f97633c1461081c5780636fc6e1fe14610859576103ad565b80634cfe2728116102a65780634cfe27281461070a57806351830227146107355780635709d900146107605780635b384fcb14610789576103ad565b80633a8088db1461065d57806342842e0e1461068857806343195aff146106a45780634aeea184146106e1576103ad565b806318160ddd1161034f578063258b8a9f1161031e578063258b8a9f146105b15780632a3f300c146105cd5780632a55205a146105f657806339ffa8ae14610634576103ad565b806318160ddd146104f057806318b411b01461051b5780631960ead71461055857806323b872dd14610595576103ad565b8063086d06731161038b578063086d067314610457578063095ea7b314610480578063152375171461049c57806316481abd146104c5576103ad565b806301ffc9a7146103b257806306fdde03146103ef578063081812fc1461041a575b600080fd5b3480156103be57600080fd5b506103d960048036038101906103d4919061376d565b610e5c565b6040516103e691906137b5565b60405180910390f35b3480156103fb57600080fd5b50610404610f1b565b6040516104119190613869565b60405180910390f35b34801561042657600080fd5b50610441600480360381019061043c91906138c1565b610fad565b60405161044e919061392f565b60405180910390f35b34801561046357600080fd5b5061047e60048036038101906104799190613976565b61102c565b005b61049a600480360381019061049591906139cf565b611051565b005b3480156104a857600080fd5b506104c360048036038101906104be9190613976565b611195565b005b3480156104d157600080fd5b506104da6111ba565b6040516104e79190613a1e565b60405180910390f35b3480156104fc57600080fd5b506105056111c4565b6040516105129190613a1e565b60405180910390f35b34801561052757600080fd5b50610542600480360381019061053d9190613a39565b6111db565b60405161054f9190613a1e565b60405180910390f35b34801561056457600080fd5b5061057f600480360381019061057a9190613a39565b61126e565b60405161058c9190613a1e565b60405180910390f35b6105af60048036038101906105aa9190613a66565b611286565b005b6105cb60048036038101906105c691906138c1565b6115ab565b005b3480156105d957600080fd5b506105f460048036038101906105ef9190613976565b61175c565b005b34801561060257600080fd5b5061061d60048036038101906106189190613ab9565b611781565b60405161062b929190613af9565b60405180910390f35b34801561064057600080fd5b5061065b600480360381019061065691906139cf565b6117f3565b005b34801561066957600080fd5b506106726118aa565b60405161067f91906137b5565b60405180910390f35b6106a2600480360381019061069d9190613a66565b6118bd565b005b3480156106b057600080fd5b506106cb60048036038101906106c69190613a39565b6118dd565b6040516106d89190613a1e565b60405180910390f35b3480156106ed57600080fd5b50610708600480360381019061070391906138c1565b6118f5565b005b34801561071657600080fd5b5061071f611907565b60405161072c9190613a1e565b60405180910390f35b34801561074157600080fd5b5061074a611911565b60405161075791906137b5565b60405180910390f35b34801561076c57600080fd5b50610787600480360381019061078291906138c1565b611924565b005b34801561079557600080fd5b5061079e611936565b6040516107ab9190613a1e565b60405180910390f35b3480156107c057600080fd5b506107c961193c565b6040516107d69190613a1e565b60405180910390f35b3480156107eb57600080fd5b50610806600480360381019061080191906138c1565b611942565b604051610813919061392f565b60405180910390f35b34801561082857600080fd5b50610843600480360381019061083e9190613a39565b611954565b6040516108509190613a1e565b60405180910390f35b34801561086557600080fd5b50610880600480360381019061087b9190613a39565b61196c565b005b34801561088e57600080fd5b506108a960048036038101906108a49190613a39565b611a0d565b6040516108b69190613a1e565b60405180910390f35b3480156108cb57600080fd5b506108d4611ac6565b005b3480156108e257600080fd5b506108fd60048036038101906108f89190613a39565b611ad0565b60405161090a9190613a1e565b60405180910390f35b61092d600480360381019061092891906138c1565b611b63565b005b34801561093b57600080fd5b50610944611df1565b6040516109519190613a1e565b60405180910390f35b34801561096657600080fd5b50610981600480360381019061097c9190613c57565b611df7565b005b34801561098f57600080fd5b506109aa60048036038101906109a59190613cde565b611e19565b005b3480156109b857600080fd5b506109c1611e65565b6040516109ce919061392f565b60405180910390f35b3480156109e357600080fd5b506109fe60048036038101906109f99190613c57565b611e8f565b005b348015610a0c57600080fd5b50610a15611eb1565b604051610a229190613869565b60405180910390f35b348015610a3757600080fd5b50610a526004803603810190610a4d9190613d49565b611f43565b005b348015610a6057600080fd5b50610a69612017565b604051610a769190613d98565b60405180910390f35b348015610a8b57600080fd5b50610a94612022565b604051610aa19190613dda565b60405180910390f35b348015610ab657600080fd5b50610ad16004803603810190610acc9190613df5565b612040565b005b610aed6004803603810190610ae89190613ed6565b61214b565b005b348015610afb57600080fd5b50610b046121be565b604051610b1191906137b5565b60405180910390f35b348015610b2657600080fd5b50610b416004803603810190610b3c91906138c1565b6121d1565b604051610b4e9190613869565b60405180910390f35b348015610b6357600080fd5b50610b7e6004803603810190610b799190614021565b6122fc565b005b348015610b8c57600080fd5b50610ba76004803603810190610ba29190613a39565b61239f565b005b348015610bb557600080fd5b50610bd06004803603810190610bcb91906138c1565b612440565b604051610bdd9190614179565b60405180910390f35b348015610bf257600080fd5b50610bfb612576565b604051610c0891906141aa565b60405180910390f35b348015610c1d57600080fd5b50610c386004803603810190610c3391906138c1565b61259c565b005b348015610c4657600080fd5b50610c4f6125ae565b604051610c5c91906137b5565b60405180910390f35b348015610c7157600080fd5b50610c8c6004803603810190610c879190614021565b6125c1565b005b348015610c9a57600080fd5b50610cb56004803603810190610cb091906141c5565b612664565b005b348015610cc357600080fd5b50610cde6004803603810190610cd99190613976565b6126e5565b005b348015610cec57600080fd5b50610cf561270a565b005b348015610d0357600080fd5b50610d1e6004803603810190610d199190614205565b61272b565b604051610d2b91906137b5565b60405180910390f35b610d4e6004803603810190610d4991906138c1565b6127bf565b005b348015610d5c57600080fd5b50610d776004803603810190610d729190614271565b612a4d565b005b348015610d8557600080fd5b50610d8e612a89565b604051610d9b9190613a1e565b60405180910390f35b348015610db057600080fd5b50610dcb6004803603810190610dc691906139cf565b612a8f565b005b348015610dd957600080fd5b50610df46004803603810190610def9190613a39565b612b46565b005b348015610e0257600080fd5b50610e1d6004803603810190610e189190613a39565b612bca565b604051610e2a9190613a1e565b60405180910390f35b348015610e3f57600080fd5b50610e5a6004803603810190610e5591906138c1565b612be2565b005b600063cad96cca60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415610eb45760019050610f16565b632a55205a60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415610f0a5760019050610f16565b610f1382612bf4565b90505b919050565b606060028054610f2a906142cd565b80601f0160208091040260200160405190810160405280929190818152602001828054610f56906142cd565b8015610fa35780601f10610f7857610100808354040283529160200191610fa3565b820191906000526020600020905b815481529060010190602001808311610f8657829003601f168201915b5050505050905090565b6000610fb882612c86565b610fee576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b611034612ce5565b80601260016101000a81548160ff02191690831515021790555050565b600061105c82611942565b90508073ffffffffffffffffffffffffffffffffffffffff1661107d612d63565b73ffffffffffffffffffffffffffffffffffffffff16146110e0576110a9816110a4612d63565b61272b565b6110df576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b61119d612ce5565b80601260026101000a81548160ff02191690831515021790555050565b6000600d54905090565b60006111ce612d6b565b6001546000540303905090565b6000601960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611267919061432e565b9050919050565b600a6020528060005260406000206000915090505481565b600061129182612d74565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146112f8576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061130484612e42565b9150915061131a8187611315612d63565b612e69565b6113665761132f8661132a612d63565b61272b565b611365576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156113cd576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113da8686866001612ead565b80156113e557600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506114b38561148f888887612eb3565b7c020000000000000000000000000000000000000000000000000000000017612edb565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416141561153b576000600185019050600060046000838152602001908152602001600020541415611539576000548114611538578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46115a38686866001612f06565b505050505050565b600260095414156115f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e8906143ae565b60405180910390fd5b6002600981905550601260029054906101000a900460ff16611648576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163f9061441a565b60405180910390fd5b80601454101561168d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168490614486565b60405180910390fd5b8060115461169b91906144a6565b34146116dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d39061454c565b60405180910390fd5b601554600e54826116ed919061456c565b111561172e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117259061460e565b60405180910390fd5b6117383382612f0c565b80600e600082825461174a919061456c565b92505081905550600160098190555050565b611764612ce5565b80601260036101000a81548160ff02191690831515021790555050565b600080601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612710601a60149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16856117de91906144a6565b6117e8919061465d565b915091509250929050565b6117fb612ce5565b600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600d54611848919061432e565b600d8190555080600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600d546118a0919061456c565b600d819055505050565b601260009054906101000a900460ff1681565b6118d88383836040518060200160405280600081525061214b565b505050565b600b6020528060005260406000206000915090505481565b6118fd612ce5565b8060118190555050565b6000600c54905090565b601260039054906101000a900460ff1681565b61192c612ce5565b8060108190555050565b60105481565b600f5481565b600061194d82612d74565b9050919050565b60186020528060005260406000206000915090505481565b611974612ce5565b600b60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600d546119c1919061432e565b600d81905550600b60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000905550565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a75576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611ace612ce5565b565b6000601860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611b5c919061432e565b9050919050565b60026009541415611ba9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba0906143ae565b60405180910390fd5b6002600981905550601260019054906101000a900460ff16611c00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf79061441a565b60405180910390fd5b80601960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611c4b919061456c565b600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611ccc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cc3906146da565b60405180910390fd5b80601054611cda91906144a6565b3414611d1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d129061454c565b60405180910390fd5b601554600e5482611d2c919061456c565b1115611d6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d649061460e565b60405180910390fd5b80601960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611dbc919061456c565b92505081905550611dcd3382612f0c565b80600e6000828254611ddf919061456c565b92505081905550600160098190555050565b60115481565b611dff612ce5565b8060179080519060200190611e15929190613620565b5050565b611e21612ce5565b80601a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611e97612ce5565b8060169080519060200190611ead929190613620565b5050565b606060038054611ec0906142cd565b80601f0160208091040260200160405190810160405280929190818152602001828054611eec906142cd565b8015611f395780601f10611f0e57610100808354040283529160200191611f39565b820191906000526020600020905b815481529060010190602001808311611f1c57829003601f168201915b5050505050905090565b611f4b612ce5565b600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415611f8557600080fd5b8173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401611fc0929190613af9565b602060405180830381600087803b158015611fda57600080fd5b505af1158015611fee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612012919061470f565b505050565b632a55205a60e01b81565b601a60149054906101000a90046bffffffffffffffffffffffff1681565b806007600061204d612d63565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166120fa612d63565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161213f91906137b5565b60405180910390a35050565b612156848484611286565b60008373ffffffffffffffffffffffffffffffffffffffff163b146121b85761218184848484612f2a565b6121b7576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b601260029054906101000a900460ff1681565b60606121dc82612c86565b61221b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612212906147ae565b60405180910390fd5b60001515601260039054906101000a900460ff16151514156122c95760168054612244906142cd565b80601f0160208091040260200160405190810160405280929190818152602001828054612270906142cd565b80156122bd5780601f10612292576101008083540402835291602001916122bd565b820191906000526020600020905b8154815290600101906020018083116122a057829003601f168201915b505050505090506122f7565b60176122d48361308a565b6040516020016122e59291906148ea565b60405160208183030381529060405290505b919050565b612304612ce5565b60005b825181101561239a5781600b600085848151811061232857612327614919565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600d6000828254612380919061456c565b92505081905550808061239290614948565b915050612307565b505050565b6123a7612ce5565b600a60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600c546123f4919061432e565b600c81905550600a60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000905550565b60606000600167ffffffffffffffff81111561245f5761245e613b2c565b5b60405190808252806020026020018201604052801561249857816020015b6124856136a6565b81526020019060019003908161247d5790505b509050601a60149054906101000a90046bffffffffffffffffffffffff16816000815181106124ca576124c9614919565b5b6020026020010151602001906bffffffffffffffffffffffff1690816bffffffffffffffffffffffff1681525050601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160008151811061252f5761252e614919565b5b60200260200101516000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505080915050919050565b601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6125a4612ce5565b80600f8190555050565b601260019054906101000a900460ff1681565b6125c9612ce5565b60005b825181101561265f5781600a60008584815181106125ed576125ec614919565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600c6000828254612645919061456c565b92505081905550808061265790614948565b9150506125cc565b505050565b61266c612ce5565b601554600e548361267d919061456c565b11156126be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b59061460e565b60405180910390fd5b6126c88183612f0c565b81600e60008282546126da919061456c565b925050819055505050565b6126ed612ce5565b80601260006101000a81548160ff02191690831515021790555050565b612712612ce5565b6000479050612728612722611e65565b826131eb565b50565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60026009541415612805576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127fc906143ae565b60405180910390fd5b6002600981905550601260009054906101000a900460ff1661285c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128539061441a565b60405180910390fd5b80601860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546128a7919061456c565b600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015612928576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161291f906146da565b60405180910390fd5b80600f5461293691906144a6565b3414612977576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161296e9061454c565b60405180910390fd5b601554600e5482612988919061456c565b11156129c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129c09061460e565b60405180910390fd5b80601860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a18919061456c565b92505081905550612a293382612f0c565b80600e6000828254612a3b919061456c565b92505081905550600160098190555050565b612a55612ce5565b80601a60146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555050565b600e5481565b612a97612ce5565b600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600c54612ae4919061432e565b600c8190555080600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600c54612b3c919061456c565b600c819055505050565b612b4e612ce5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612bbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bb590614a03565b60405180910390fd5b612bc7816132df565b50565b60196020528060005260406000206000915090505481565b612bea612ce5565b8060158190555050565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612c4f57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612c7f5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600081612c91612d6b565b11158015612ca0575060005482105b8015612cde575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b612ced6133a5565b73ffffffffffffffffffffffffffffffffffffffff16612d0b611e65565b73ffffffffffffffffffffffffffffffffffffffff1614612d61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d5890614a6f565b60405180910390fd5b565b600033905090565b60006001905090565b60008082905080612d83612d6b565b11612e0b57600054811015612e0a5760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612e08575b6000811415612dfe576004600083600190039350838152602001908152602001600020549050612dd3565b8092505050612e3d565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612eca8686846133ad565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b612f268282604051806020016040528060008152506133b6565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612f50612d63565b8786866040518563ffffffff1660e01b8152600401612f729493929190614ae4565b602060405180830381600087803b158015612f8c57600080fd5b505af1925050508015612fbd57506040513d601f19601f82011682018060405250810190612fba9190614b45565b60015b613037573d8060008114612fed576040519150601f19603f3d011682016040523d82523d6000602084013e612ff2565b606091505b5060008151141561302f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060008214156130d2576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506131e6565b600082905060005b600082146131045780806130ed90614948565b915050600a826130fd919061465d565b91506130da565b60008167ffffffffffffffff8111156131205761311f613b2c565b5b6040519080825280601f01601f1916602001820160405280156131525781602001600182028036833780820191505090505b5090505b600085146131df5760018261316b919061432e565b9150600a8561317a9190614b72565b6030613186919061456c565b60f81b81838151811061319c5761319b614919565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856131d8919061465d565b9450613156565b8093505050505b919050565b8047101561322e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161322590614bef565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161325490614c40565b60006040518083038185875af1925050503d8060008114613291576040519150601f19603f3d011682016040523d82523d6000602084013e613296565b606091505b50509050806132da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132d190614cc7565b60405180910390fd5b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b60009392505050565b6133c08383613453565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461344e57600080549050600083820390505b6134006000868380600101945086612f2a565b613436576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106133ed57816000541461344b57600080fd5b50505b505050565b6000805490506000821415613494576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6134a16000848385612ead565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613518836135096000866000612eb3565b61351285613610565b17612edb565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146135b957808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460018101905061357e565b5060008214156135f5576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600081905550505061360b6000848385612f06565b505050565b60006001821460e11b9050919050565b82805461362c906142cd565b90600052602060002090601f01602090048101928261364e5760008555613695565b82601f1061366757805160ff1916838001178555613695565b82800160010185558215613695579182015b82811115613694578251825591602001919060010190613679565b5b5090506136a291906136e4565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160006bffffffffffffffffffffffff1681525090565b5b808211156136fd5760008160009055506001016136e5565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61374a81613715565b811461375557600080fd5b50565b60008135905061376781613741565b92915050565b6000602082840312156137835761378261370b565b5b600061379184828501613758565b91505092915050565b60008115159050919050565b6137af8161379a565b82525050565b60006020820190506137ca60008301846137a6565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561380a5780820151818401526020810190506137ef565b83811115613819576000848401525b50505050565b6000601f19601f8301169050919050565b600061383b826137d0565b61384581856137db565b93506138558185602086016137ec565b61385e8161381f565b840191505092915050565b600060208201905081810360008301526138838184613830565b905092915050565b6000819050919050565b61389e8161388b565b81146138a957600080fd5b50565b6000813590506138bb81613895565b92915050565b6000602082840312156138d7576138d661370b565b5b60006138e5848285016138ac565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613919826138ee565b9050919050565b6139298161390e565b82525050565b60006020820190506139446000830184613920565b92915050565b6139538161379a565b811461395e57600080fd5b50565b6000813590506139708161394a565b92915050565b60006020828403121561398c5761398b61370b565b5b600061399a84828501613961565b91505092915050565b6139ac8161390e565b81146139b757600080fd5b50565b6000813590506139c9816139a3565b92915050565b600080604083850312156139e6576139e561370b565b5b60006139f4858286016139ba565b9250506020613a05858286016138ac565b9150509250929050565b613a188161388b565b82525050565b6000602082019050613a336000830184613a0f565b92915050565b600060208284031215613a4f57613a4e61370b565b5b6000613a5d848285016139ba565b91505092915050565b600080600060608486031215613a7f57613a7e61370b565b5b6000613a8d868287016139ba565b9350506020613a9e868287016139ba565b9250506040613aaf868287016138ac565b9150509250925092565b60008060408385031215613ad057613acf61370b565b5b6000613ade858286016138ac565b9250506020613aef858286016138ac565b9150509250929050565b6000604082019050613b0e6000830185613920565b613b1b6020830184613a0f565b9392505050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613b648261381f565b810181811067ffffffffffffffff82111715613b8357613b82613b2c565b5b80604052505050565b6000613b96613701565b9050613ba28282613b5b565b919050565b600067ffffffffffffffff821115613bc257613bc1613b2c565b5b613bcb8261381f565b9050602081019050919050565b82818337600083830152505050565b6000613bfa613bf584613ba7565b613b8c565b905082815260208101848484011115613c1657613c15613b27565b5b613c21848285613bd8565b509392505050565b600082601f830112613c3e57613c3d613b22565b5b8135613c4e848260208601613be7565b91505092915050565b600060208284031215613c6d57613c6c61370b565b5b600082013567ffffffffffffffff811115613c8b57613c8a613710565b5b613c9784828501613c29565b91505092915050565b6000613cab826138ee565b9050919050565b613cbb81613ca0565b8114613cc657600080fd5b50565b600081359050613cd881613cb2565b92915050565b600060208284031215613cf457613cf361370b565b5b6000613d0284828501613cc9565b91505092915050565b6000613d168261390e565b9050919050565b613d2681613d0b565b8114613d3157600080fd5b50565b600081359050613d4381613d1d565b92915050565b60008060408385031215613d6057613d5f61370b565b5b6000613d6e85828601613d34565b9250506020613d7f858286016138ac565b9150509250929050565b613d9281613715565b82525050565b6000602082019050613dad6000830184613d89565b92915050565b60006bffffffffffffffffffffffff82169050919050565b613dd481613db3565b82525050565b6000602082019050613def6000830184613dcb565b92915050565b60008060408385031215613e0c57613e0b61370b565b5b6000613e1a858286016139ba565b9250506020613e2b85828601613961565b9150509250929050565b600067ffffffffffffffff821115613e5057613e4f613b2c565b5b613e598261381f565b9050602081019050919050565b6000613e79613e7484613e35565b613b8c565b905082815260208101848484011115613e9557613e94613b27565b5b613ea0848285613bd8565b509392505050565b600082601f830112613ebd57613ebc613b22565b5b8135613ecd848260208601613e66565b91505092915050565b60008060008060808587031215613ef057613eef61370b565b5b6000613efe878288016139ba565b9450506020613f0f878288016139ba565b9350506040613f20878288016138ac565b925050606085013567ffffffffffffffff811115613f4157613f40613710565b5b613f4d87828801613ea8565b91505092959194509250565b600067ffffffffffffffff821115613f7457613f73613b2c565b5b602082029050602081019050919050565b600080fd5b6000613f9d613f9884613f59565b613b8c565b90508083825260208201905060208402830185811115613fc057613fbf613f85565b5b835b81811015613fe95780613fd588826139ba565b845260208401935050602081019050613fc2565b5050509392505050565b600082601f83011261400857614007613b22565b5b8135614018848260208601613f8a565b91505092915050565b600080604083850312156140385761403761370b565b5b600083013567ffffffffffffffff81111561405657614055613710565b5b61406285828601613ff3565b9250506020614073858286016138ac565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6140b281613ca0565b82525050565b6140c181613db3565b82525050565b6040820160008201516140dd60008501826140a9565b5060208201516140f060208501826140b8565b50505050565b600061410283836140c7565b60408301905092915050565b6000602082019050919050565b60006141268261407d565b6141308185614088565b935061413b83614099565b8060005b8381101561416c57815161415388826140f6565b975061415e8361410e565b92505060018101905061413f565b5085935050505092915050565b60006020820190508181036000830152614193818461411b565b905092915050565b6141a481613ca0565b82525050565b60006020820190506141bf600083018461419b565b92915050565b600080604083850312156141dc576141db61370b565b5b60006141ea858286016138ac565b92505060206141fb858286016139ba565b9150509250929050565b6000806040838503121561421c5761421b61370b565b5b600061422a858286016139ba565b925050602061423b858286016139ba565b9150509250929050565b61424e81613db3565b811461425957600080fd5b50565b60008135905061426b81614245565b92915050565b6000602082840312156142875761428661370b565b5b60006142958482850161425c565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806142e557607f821691505b602082108114156142f9576142f861429e565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006143398261388b565b91506143448361388b565b925082821015614357576143566142ff565b5b828203905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614398601f836137db565b91506143a382614362565b602082019050919050565b600060208201905081810360008301526143c78161438b565b9050919050565b7f73616c653a205061757365640000000000000000000000000000000000000000600082015250565b6000614404600c836137db565b915061440f826143ce565b602082019050919050565b60006020820190508181036000830152614433816143f7565b9050919050565b7f73616c653a2035206d6178706572207478000000000000000000000000000000600082015250565b60006144706011836137db565b915061447b8261443a565b602082019050919050565b6000602082019050818103600083015261449f81614463565b9050919050565b60006144b18261388b565b91506144bc8361388b565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156144f5576144f46142ff565b5b828202905092915050565b7f56616c75652073656e74206973206e6f7420636f727265637400000000000000600082015250565b60006145366019836137db565b915061454182614500565b602082019050919050565b6000602082019050818103600083015261456581614529565b9050919050565b60006145778261388b565b91506145828361388b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156145b7576145b66142ff565b5b828201905092915050565b7f6d696e74206661696c7572650000000000000000000000000000000000000000600082015250565b60006145f8600c836137db565b9150614603826145c2565b602082019050919050565b60006020820190508181036000830152614627816145eb565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006146688261388b565b91506146738361388b565b9250826146835761468261462e565b5b828204905092915050565b7f596f752068617665206e6f20776c206c65667400000000000000000000000000600082015250565b60006146c46013836137db565b91506146cf8261468e565b602082019050919050565b600060208201905081810360008301526146f3816146b7565b9050919050565b6000815190506147098161394a565b92915050565b6000602082840312156147255761472461370b565b5b6000614733848285016146fa565b91505092915050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614798602f836137db565b91506147a38261473c565b604082019050919050565b600060208201905081810360008301526147c78161478b565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b600081546147fb816142cd565b61480581866147ce565b94506001821660008114614820576001811461483157614864565b60ff19831686528186019350614864565b61483a856147d9565b60005b8381101561485c5781548189015260018201915060208101905061483d565b838801955050505b50505092915050565b6000614878826137d0565b61488281856147ce565b93506148928185602086016137ec565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006148d46005836147ce565b91506148df8261489e565b600582019050919050565b60006148f682856147ee565b9150614902828461486d565b915061490d826148c7565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006149538261388b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614986576149856142ff565b5b600182019050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006149ed6026836137db565b91506149f882614991565b604082019050919050565b60006020820190508181036000830152614a1c816149e0565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614a596020836137db565b9150614a6482614a23565b602082019050919050565b60006020820190508181036000830152614a8881614a4c565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614ab682614a8f565b614ac08185614a9a565b9350614ad08185602086016137ec565b614ad98161381f565b840191505092915050565b6000608082019050614af96000830187613920565b614b066020830186613920565b614b136040830185613a0f565b8181036060830152614b258184614aab565b905095945050505050565b600081519050614b3f81613741565b92915050565b600060208284031215614b5b57614b5a61370b565b5b6000614b6984828501614b30565b91505092915050565b6000614b7d8261388b565b9150614b888361388b565b925082614b9857614b9761462e565b5b828206905092915050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000614bd9601d836137db565b9150614be482614ba3565b602082019050919050565b60006020820190508181036000830152614c0881614bcc565b9050919050565b600081905092915050565b50565b6000614c2a600083614c0f565b9150614c3582614c1a565b600082019050919050565b6000614c4b82614c1d565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000614cb1603a836137db565b9150614cbc82614c55565b604082019050919050565b60006020820190508181036000830152614ce081614ca4565b905091905056fea26469706673582212205c8d42962e3336c039dd0320f75ba8bbeb9e467a27b867a75690cf3fd94d758964736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000009cd8086b43829f3713896a365aca9add1b59dc1d
-----Decoded View---------------
Arg [0] : _royaltiesReceipientAddress (address): 0x9cD8086b43829f3713896a365aCa9aDD1B59Dc1D
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000009cd8086b43829f3713896a365aca9add1b59dc1d
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.