ERC-721
NFT
Overview
Max Total Supply
21,477 WOWG
Holders
11,159
Market
Volume (24H)
0.3519 ETH
Min Price (24H)
$164.88 @ 0.048000 ETH
Max Price (24H)
$195.63 @ 0.056950 ETH
Other Info
Token Contract
Balance
1 WOWGLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
WoWGalaxy
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 500 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.11; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; // // // // ,#(((((((( // (#((((((###(# // /##(#(((((((((#(### // #(((##(((((((((## #(%## // (#(#((((((((((#(.% *## // ###((((((((#(. . *. *#( // #(######/(///*,.# . , #.## // ((#(#####/&%%&*\*,,./%%%%&@# // ##(####/**# *#%,,,/( *** | // ,###(### * | ,,*,,,,.| // (#### / \ ,*&.* // (@@@@, &&#### % @ ,/@/@ ,@@@@ // @@@@&&&&& ,#(#### (@&&&&@ ,,,&@ &&&&&@@@* // @@&&&&&&&&&&& , \ °°°° ,/ &&&&&&&&&&@@@ // &&&&&&&&&&&&&&&&, .@&&&.\, ,,/*&&&@ &&&&&&&&&&&&&&&@ // @&&&&&&&&&&&&&&&&&& &&@& __,,,,,,&&&* &&&&&&&&&&&&&&&&&&& // @@@@&&&&&&&&&&&&&&&&&&& &&&&&&, ,,@&&&& &&&&&&&&&&&&&&&&&&&@@@@ // @@&@&&&&&&&&&&&&&&&&&&&&.%&&&&&&, @&&&&&& &&&&&&&&&&&&&&&&&&&&&@@( // &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& @&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& // @&&&&&&&&&&&&&&&&@@@&&&&&&&&&&&&& &&&&&&&&&&&&&@@&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&&&@@@@@&&&&&&&&&&&&@.@&&&&&&&&&&&&@@@@&&&&&&&&&&&&&&&& // &&&&&&&&&&&&&@&&&&&&&&&&&&&&&###(/##&&&&&&&&&&&&&&&&&&&&&&&&&&&&& // &&&&&&&&&&&&@&&&&&&&&&&&&&&&@*(((@&&&&&&&&&&&&&&&@@&&&&&&&&&&&& // @@@&&&@@@@@@&@@@&&&&&&&&&@@@@@.@@@@&&&&&&&&&@@@&&@@@@&&&&&&@& // @@&&&&&&&&&@@&&&&&&@@@@@##((/#%@@@@&&&&&&@@&&&&&&&&&&@@ /** * @title WoWGalaxy Contract * @author Ben Yu, Itzik Lerner, @RMinLA, Mai Akiyoshi, Morgan Giraud, Toomaie, Eugene Strelkov * @notice This contract handles minting and distribution of World of Women Galaxy tokens. */ contract WoWGalaxy is ERC721, ERC721Enumerable, ERC2981, ReentrancyGuard, Ownable { using ECDSA for bytes32; using Strings for uint256; uint256 constant TOTAL_FREE_CLAIM_IDS = 10000; uint256 constant FIRST_PUBLIC_ID = 10000; uint256 constant LAST_PUBLIC_ID = 19999; uint256 constant FIRST_ALLOWLIST_ID = 20000; uint256 constant LAST_ALLOWLIST_ID = 22221; uint256 constant MAX_MINTS_PER_TRANSACTION = 20; address constant WOW_CONTRACT_ADDRESS = 0xe785E82358879F061BC3dcAC6f0444462D4b5330; address constant WITHDRAW_ADDRESS = 0x646B9Ed09B130899be4c4bEc114A1aA94618bE09; address public royaltyAddress = 0x646B9Ed09B130899be4c4bEc114A1aA94618bE09; uint96 public royaltyFee = 400; // Public vars string public wowGProvenance; uint256 public wowGProvenanceTimestamp; string public baseTokenURI; uint256 public allowListPrice; uint256 public dutchAuctionDuration; uint256[] public dutchAuctionSteps; uint256 private minutesPerStep; uint256 public freeClaimSaleStartTime; uint256 public publicSaleStartTime; uint256 public allowListSaleStartTime; bytes32 public merkleRoot; uint256 public startingIndexFreeClaim; uint256 public startingIndexFreeClaimTimestamp; uint256 public startingIndexPublicAndAllowList; uint256 public startingIndexPublicAndAllowListTimestamp; mapping(address => bool) public allowListMinted; uint256 public freeClaimTokensMinted; uint256 public allowListTokenIdCounter = FIRST_ALLOWLIST_ID; uint256 public publicSaleTokenIdCounter = FIRST_PUBLIC_ID; bool public isFreeClaimActive = false; bool public isPublicSaleActive = false; bool public isAllowListActive = false; // support eth transactions to the contract event Received(address, uint); receive() external payable { emit Received(msg.sender, msg.value); } /** * @notice Construct a WoWG contract instance * @param _name Token name * @param _symbol Token symbol * @param _baseTokenURI Base URI for all tokens */ constructor( string memory _name, string memory _symbol, string memory _baseTokenURI ) ERC721(_name, _symbol) { baseTokenURI = _baseTokenURI; _setDefaultRoyalty(royaltyAddress, royaltyFee); } modifier originalUser() { require(msg.sender == tx.origin,"MUST_INVOKE_FUNCTION_DIRECTLY"); _; } /** * @notice Update the base token URI */ function setBaseURI(string calldata _newBaseURI) external onlyOwner { baseTokenURI = _newBaseURI; } /** * @notice read the base token URI */ function _baseURI() internal view override returns (string memory) { return baseTokenURI; } /** * @notice Change the royalty fee for the collection */ function setRoyaltyFee(uint96 _feeNumerator) external onlyOwner { royaltyFee = _feeNumerator; _setDefaultRoyalty(royaltyAddress, royaltyFee); } /** * @notice Change the royalty address where royalty payouts are sent */ function setRoyaltyAddress(address _royaltyAddress) external onlyOwner { royaltyAddress = _royaltyAddress; _setDefaultRoyalty(royaltyAddress, royaltyFee); } /** * @notice Sets a provenance hash of pregenerated tokens for fairness. Should be set before first token mints */ function setProvenanceHash(string memory _provenanceHash) public onlyOwner { wowGProvenance = _provenanceHash; wowGProvenanceTimestamp = block.timestamp; } /** * @notice Manually allow the owner to set the starting index for the free claim mint */ function setStartingIndexFreeClaim() external onlyOwner { _setStartingIndexFreeClaim(); } /** * @notice Set the starting index for the free claim mint */ function _setStartingIndexFreeClaim() internal { require(startingIndexFreeClaim == 0, "STARTING_INDEX_FREE_CLAIM_ALREADY_SET"); startingIndexFreeClaim = generateRandomStartingIndex(TOTAL_FREE_CLAIM_IDS); startingIndexFreeClaimTimestamp = block.timestamp; } /** * @notice Manually allow the owner to set the starting index for the public and allow list mints */ function setStartingIndexPublicAndAllowList() external onlyOwner { _setStartingIndexPublicAndAllowList(); } /** * @notice Set the starting index for the public and allow list mints */ function _setStartingIndexPublicAndAllowList() internal { require(startingIndexPublicAndAllowList == 0, "STARTING_INDEX_PUBLIC_AND_ALLOWLIST_ALREADY_SET"); startingIndexPublicAndAllowList = generateRandomStartingIndex( LAST_ALLOWLIST_ID - FIRST_ALLOWLIST_ID + 1 + LAST_PUBLIC_ID - FIRST_PUBLIC_ID + 1); startingIndexPublicAndAllowListTimestamp = block.timestamp; } /** * @notice Creates a random starting index to offset pregenerated tokens by for fairness */ function generateRandomStartingIndex(uint256 _range) public view returns (uint256) { uint256 startingIndex; // Blockhash only works for the most 256 recent blocks. uint256 _block_shift = uint(keccak256(abi.encodePacked(block.difficulty, block.timestamp))); _block_shift = 1 + (_block_shift % 255); // This shouldn't happen, but just in case the blockchain gets a reboot? if (block.number < _block_shift) { _block_shift = 1; } uint256 _block_ref = block.number - _block_shift; startingIndex = uint(blockhash(_block_ref)) % _range; // Prevent default sequence if (startingIndex == 0) { startingIndex++; } return startingIndex; } /** * @notice Set the steps and duration in minutes for the public Dutch auction mint */ function setDutchAuctionParams(uint256[] calldata _steps, uint256 _duration) public onlyOwner { require(_steps.length > 0 && _duration > 0,'ZERO_STEPS_OR_ZERO_DURATION'); dutchAuctionSteps = _steps; dutchAuctionDuration = _duration; minutesPerStep = dutchAuctionDuration / dutchAuctionSteps.length; } /** * @notice Retrieve the current Dutch auction price per token */ function getCurrentDutchAuctionPrice() public view returns (uint256) { uint256 minutesPassed = uint256(block.timestamp - publicSaleStartTime) / 60; if (minutesPassed >= dutchAuctionDuration) { return dutchAuctionSteps[dutchAuctionSteps.length - 1]; } return dutchAuctionSteps[minutesPassed / minutesPerStep]; } /** * @notice Set the price per token for the allow list mint */ function setAllowListPrice(uint256 _newAllowListPrice) public onlyOwner { require(_newAllowListPrice > 0 ether, "CANT_SET_ALLOW_LIST_PRICE_BACK_TO_ZERO"); allowListPrice = _newAllowListPrice; } /** * @notice Set the merkle root for the allow list mint */ function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner { merkleRoot = _merkleRoot; } /** * @notice Verify address eligibility for the allow list mint */ function isAllowListEligible(address addr, bytes32[] calldata _merkleProof) public view returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(addr)); return MerkleProof.verify(_merkleProof, merkleRoot, leaf); } // Sales /** * @notice Set the active/inactive state of the allow list mint */ function flipAllowListState() public onlyOwner { require(isAllowListActive || allowListPrice > 0, "ALLOW_LIST_PRICE_NOT_SET"); isAllowListActive = !isAllowListActive; if (allowListSaleStartTime == 0) { allowListSaleStartTime = block.timestamp; } } /** * @notice Allow an address on the allow list to mint a single token */ function allowListMint(bytes32[] calldata _merkleProof) external payable nonReentrant originalUser { require(isAllowListActive, "ALLOW_LIST_SALE_IS_NOT_ACTIVE"); require(allowListTokenIdCounter <= LAST_ALLOWLIST_ID, "INSUFFICIENT_SUPPLY"); require( !allowListMinted[msg.sender], "ADDRESS_ALREADY_MINTED_IN_ALLOW_LIST" ); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require( MerkleProof.verify(_merkleProof, merkleRoot, leaf), "ADDRESS_NOT_ELIGIBLE_FOR_ALLOW_LIST" ); require(msg.value == allowListPrice, "INVALID_PRICE"); allowListMinted[msg.sender] = true; _safeMint(msg.sender, allowListTokenIdCounter); allowListTokenIdCounter++; } /** * @notice Allow the owner to start/stop the public sale */ function flipPublicSaleState() public onlyOwner { isPublicSaleActive = !isPublicSaleActive; if (publicSaleStartTime == 0) { publicSaleStartTime = block.timestamp; } else { publicSaleStartTime = 0; } } /** * @notice Allow anyone to mint tokens publicly */ function publicSaleMint(uint256 _numberToMint) external payable nonReentrant originalUser { require(isPublicSaleActive, "PUBLIC_SALE_IS_NOT_ACTIVE"); uint256 costToMint = getCurrentDutchAuctionPrice() * _numberToMint; require( _numberToMint <= MAX_MINTS_PER_TRANSACTION, "EXCEEDS_MAX_MINTS_PER_TRANSACTION" ); require( msg.value >= costToMint, "INSUFFICIENT_PAYMENT" ); require( publicSaleTokenIdCounter + _numberToMint <= LAST_PUBLIC_ID + 1, "INSUFFICIENT_SUPPLY" ); for (uint256 i; i < _numberToMint; i++) { _safeMint(msg.sender, publicSaleTokenIdCounter + i); } publicSaleTokenIdCounter += _numberToMint; // last mint will increase the counter past LAST_PUBLIC_ID if (publicSaleTokenIdCounter > LAST_PUBLIC_ID) { isPublicSaleActive = false; if (startingIndexPublicAndAllowList == 0) { _setStartingIndexPublicAndAllowList(); } } if (msg.value > costToMint) { Address.sendValue(payable(msg.sender), msg.value - costToMint); } } /** * @notice Allow to owner to start/stop the free claim mint */ function flipFreeClaimState() public onlyOwner { isFreeClaimActive = !isFreeClaimActive; if (freeClaimSaleStartTime == 0) { freeClaimSaleStartTime = block.timestamp; } } /** * @notice Allow an existing WoW holder to mint corresponding WoWG tokens for free */ function freeClaimMint(uint256[] calldata _tokenIDs) external nonReentrant { require(isFreeClaimActive, "FREE_CLAIM_IS_NOT_ACTIVE"); uint256 numberToMint = _tokenIDs.length; require( numberToMint <= MAX_MINTS_PER_TRANSACTION, "EXCEEDS_MAX_MINTS_PER_TRANSACTION" ); ERC721 WoW = ERC721(WOW_CONTRACT_ADDRESS); for (uint256 i; i < numberToMint; i++) { require(WoW.ownerOf(_tokenIDs[i]) == msg.sender, "DOES_NOT_OWN_WOW_TOKEN_ID"); _safeMint(msg.sender, _tokenIDs[i]); freeClaimTokensMinted++; } if (freeClaimTokensMinted == TOTAL_FREE_CLAIM_IDS) { isFreeClaimActive = false; } // set starting index for free claim tokens as soon as the first token is minted if (startingIndexFreeClaim == 0) { _setStartingIndexFreeClaim(); } } /** * @notice Easily get the number of steps for the public sale */ function getDutchAuctionStepsCount() public view returns (uint256 count) { return dutchAuctionSteps.length; } // Owner /** * @notice Allow the owner to gift tokens to an arbitrary number of addresses */ function giftMint(address[] calldata _receivers) external onlyOwner { require( allowListTokenIdCounter + _receivers.length <= LAST_ALLOWLIST_ID + 1, "NOT_ENOUGH_ALLOW_LIST_TOKENS_REMAINING" ); for (uint256 i; i < _receivers.length; i++) { _safeMint(_receivers[i], allowListTokenIdCounter + i); } allowListTokenIdCounter += _receivers.length; } /** * @notice Allow withdrawing funds to the withdrawAddress */ function withdraw() public onlyOwner { uint256 balance = address(this).balance; require(balance > 0,'NOTHING_TO_WITHDRAW'); require(payable(WITHDRAW_ADDRESS).send(balance)); } // Utils /** * @notice Returns a list of token IDs owned by a given address */ function walletOfOwner(address _owner) public view returns(uint256[] memory) { uint256 tokenCount = balanceOf(_owner); uint256[] memory tokensId = new uint256[](tokenCount); for(uint256 i; i < tokenCount; i++){ tokensId[i] = tokenOfOwnerByIndex(_owner, i); } return tokensId; } /** * @notice Allow external checks for token existence */ function tokenExists(uint256 _tokenId) public view returns(bool) { return _exists(_tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `tokenId` must be already minted. * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be payed in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
{ "optimizer": { "enabled": true, "runs": 500 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_baseTokenURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"","type":"address"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"Received","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":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"allowListMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowListMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowListPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowListSaleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowListTokenIdCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dutchAuctionDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"dutchAuctionSteps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipAllowListState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipFreeClaimState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipPublicSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIDs","type":"uint256[]"}],"name":"freeClaimMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeClaimSaleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeClaimTokensMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_range","type":"uint256"}],"name":"generateRandomStartingIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentDutchAuctionPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDutchAuctionStepsCount","outputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_receivers","type":"address[]"}],"name":"giftMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isAllowListActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"isAllowListEligible","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"isFreeClaimActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numberToMint","type":"uint256"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSaleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleTokenIdCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyFee","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newAllowListPrice","type":"uint256"}],"name":"setAllowListPrice","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":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_steps","type":"uint256[]"},{"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"setDutchAuctionParams","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_provenanceHash","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_royaltyAddress","type":"address"}],"name":"setRoyaltyAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"setRoyaltyFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setStartingIndexFreeClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setStartingIndexPublicAndAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startingIndexFreeClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startingIndexFreeClaimTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startingIndexPublicAndAllowList","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startingIndexPublicAndAllowListTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenExists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wowGProvenance","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wowGProvenanceTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052750190646b9ed09b130899be4c4bec114a1aa94618be09600e55614e206020556127106021556022805462ffffff191690553480156200004357600080fd5b5060405162004442380380620044428339810160408190526200006691620003ba565b8251839083906200007f90600090602085019062000247565b5080516200009590600190602084019062000247565b50506001600c5550620000a833620000f0565b8051620000bd90601190602084019062000247565b50600e54620000e7906001600160a01b03811690600160a01b90046001600160601b031662000142565b50505062000488565b600d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b0382161115620001b65760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b0382166200020e5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620001ad565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600a55565b82805462000255906200044b565b90600052602060002090601f016020900481019282620002795760008555620002c4565b82601f106200029457805160ff1916838001178555620002c4565b82800160010185558215620002c4579182015b82811115620002c4578251825591602001919060010190620002a7565b50620002d2929150620002d6565b5090565b5b80821115620002d25760008155600101620002d7565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200031557600080fd5b81516001600160401b0380821115620003325762000332620002ed565b604051601f8301601f19908116603f011681019082821181831017156200035d576200035d620002ed565b816040528381526020925086838588010111156200037a57600080fd5b600091505b838210156200039e57858201830151818301840152908201906200037f565b83821115620003b05760008385830101525b9695505050505050565b600080600060608486031215620003d057600080fd5b83516001600160401b0380821115620003e857600080fd5b620003f68783880162000303565b945060208601519150808211156200040d57600080fd5b6200041b8783880162000303565b935060408601519150808211156200043257600080fd5b50620004418682870162000303565b9150509250925092565b600181811c908216806200046057607f821691505b602082108114156200048257634e487b7160e01b600052602260045260246000fd5b50919050565b613faa80620004986000396000f3fe6080604052600436106103dc5760003560e01c80636bb7b1d9116101fd578063b3ab66b011610118578063df7f0a63116100ab578063f2fde38b1161007a578063f2fde38b14610b50578063fa1431da14610b70578063fa53cd3814610ba0578063fad19d3714610bba578063feb309ad14610bd057600080fd5b8063df7f0a6314610abc578063e94d731314610ad1578063e985e9c514610ae7578063eb0b7b2f14610b3057600080fd5b8063c87b56dd116100e7578063c87b56dd14610a5d578063d17d252514610a7d578063d547cfb714610a92578063d7c7743b14610aa757600080fd5b8063b3ab66b0146109d5578063b88d4fde146109e8578063b8997a9714610a08578063ba6f841014610a4757600080fd5b80639d21a70311610190578063a5fd7bec1161015f578063a5fd7bec1461096a578063aaaec2a01461098a578063ad2f852a146109a0578063b2435de6146109c057600080fd5b80639d21a70314610909578063a10866ef1461091f578063a22cb46514610934578063a24e51531461095457600080fd5b80637cb64759116101cc5780637cb64759146108a05780637da9519a146108c05780638da5cb5b146108d657806395d89b41146108f457600080fd5b80636bb7b1d9146108355780636df9fa881461084b57806370a082311461086b578063715018a61461088b57600080fd5b806329fc6bae116102f857806342842e0e1161028b57806355f804b31161025a57806355f804b3146107ac5780635cfe6b84146107cc57806361129e99146107df5780636352211e146107ff578063690de4621461081f57600080fd5b806342842e0e14610729578063438b6300146107495780634f2b654c146107765780634f6ccce71461078c57600080fd5b806331faafb4116102c757806331faafb4146106be578063343d573e146106de5780633ccfd60b146106f4578063410524bc1461070957600080fd5b806329fc6bae146106295780632a55205a146106495780632eb4a7ab146106885780632f745c591461069e57600080fd5b80630d5296af116103705780631e84c4131161033f5780631e84c413146105b45780631fdf6a7d146105d3578063214616a1146105f357806323b872dd1461060957600080fd5b80630d5296af1461054a578063109695231461056a57806314d0bf2b1461058a57806318160ddd1461059f57600080fd5b806306fdde03116103ac57806306fdde03146104bb578063081812fc146104dd578063095ea7b3146105155780630d26a0641461053557600080fd5b8062923f9e1461042057806301ffc9a71461045557806304e29c441461047557806306d254da1461049957600080fd5b3661041b57604080513381523460208201527f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f88525874910160405180910390a1005b600080fd5b34801561042c57600080fd5b5061044061043b36600461384b565b610be5565b60405190151581526020015b60405180910390f35b34801561046157600080fd5b5061044061047036600461387a565b610c06565b34801561048157600080fd5b5061048b601d5481565b60405190815260200161044c565b3480156104a557600080fd5b506104b96104b43660046138ac565b610c11565b005b3480156104c757600080fd5b506104d0610c99565b60405161044c9190613921565b3480156104e957600080fd5b506104fd6104f836600461384b565b610d2b565b6040516001600160a01b03909116815260200161044c565b34801561052157600080fd5b506104b9610530366004613934565b610dc0565b34801561054157600080fd5b506104b9610ed6565b34801561055657600080fd5b506104406105653660046139a5565b610f28565b34801561057657600080fd5b506104b9610585366004613a86565b610fae565b34801561059657600080fd5b506104d0611011565b3480156105ab57600080fd5b5060085461048b565b3480156105c057600080fd5b5060225461044090610100900460ff1681565b3480156105df57600080fd5b5061048b6105ee36600461384b565b61109f565b3480156105ff57600080fd5b5061048b601b5481565b34801561061557600080fd5b506104b9610624366004613acf565b6110c0565b34801561063557600080fd5b506022546104409062010000900460ff1681565b34801561065557600080fd5b50610669610664366004613b10565b61113b565b604080516001600160a01b03909316835260208301919091520161044c565b34801561069457600080fd5b5061048b60195481565b3480156106aa57600080fd5b5061048b6106b9366004613934565b6111e9565b3480156106ca57600080fd5b506104b96106d9366004613b32565b61127f565b3480156106ea57600080fd5b5061048b60105481565b34801561070057600080fd5b506104b9611300565b34801561071557600080fd5b5061048b61072436600461384b565b6113cf565b34801561073557600080fd5b506104b9610744366004613acf565b611465565b34801561075557600080fd5b506107696107643660046138ac565b611480565b60405161044c9190613b5b565b34801561078257600080fd5b5061048b60185481565b34801561079857600080fd5b5061048b6107a736600461384b565b611522565b3480156107b857600080fd5b506104b96107c7366004613b9f565b6115b5565b6104b96107da366004613c11565b611609565b3480156107eb57600080fd5b506104b96107fa366004613c53565b611918565b34801561080b57600080fd5b506104fd61081a36600461384b565b6119e2565b34801561082b57600080fd5b5061048b60215481565b34801561084157600080fd5b5061048b60175481565b34801561085757600080fd5b506104b961086636600461384b565b611a59565b34801561087757600080fd5b5061048b6108863660046138ac565b611b05565b34801561089757600080fd5b506104b9611b8c565b3480156108ac57600080fd5b506104b96108bb36600461384b565b611bde565b3480156108cc57600080fd5b5061048b60135481565b3480156108e257600080fd5b50600d546001600160a01b03166104fd565b34801561090057600080fd5b506104d0611c2b565b34801561091557600080fd5b5061048b60165481565b34801561092b57600080fd5b506104b9611c3a565b34801561094057600080fd5b506104b961094f366004613c9f565b611cb1565b34801561096057600080fd5b5061048b60125481565b34801561097657600080fd5b506104b9610985366004613c11565b611cc0565b34801561099657600080fd5b5061048b601c5481565b3480156109ac57600080fd5b50600e546104fd906001600160a01b031681565b3480156109cc57600080fd5b5060145461048b565b6104b96109e336600461384b565b611df9565b3480156109f457600080fd5b506104b9610a03366004613cdd565b6120a9565b348015610a1457600080fd5b50600e54610a2f90600160a01b90046001600160601b031681565b6040516001600160601b03909116815260200161044c565b348015610a5357600080fd5b5061048b60205481565b348015610a6957600080fd5b506104d0610a7836600461384b565b61212b565b348015610a8957600080fd5b5061048b612214565b348015610a9e57600080fd5b506104d061227d565b348015610ab357600080fd5b506104b961228a565b348015610ac857600080fd5b506104b96122f1565b348015610add57600080fd5b5061048b601a5481565b348015610af357600080fd5b50610440610b02366004613d5d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610b3c57600080fd5b506104b9610b4b366004613c11565b612341565b348015610b5c57600080fd5b506104b9610b6b3660046138ac565b6125c1565b348015610b7c57600080fd5b50610440610b8b3660046138ac565b601e6020526000908152604090205460ff1681565b348015610bac57600080fd5b506022546104409060ff1681565b348015610bc657600080fd5b5061048b601f5481565b348015610bdc57600080fd5b506104b9612677565b6000818152600260205260408120546001600160a01b031615155b92915050565b6000610c008261274e565b600d546001600160a01b03163314610c5e5760405162461bcd60e51b81526020600482018190526024820152600080516020613f5583398151915260448201526064015b60405180910390fd5b600e80546001600160a01b0319166001600160a01b03831690811791829055610c9691600160a01b90046001600160601b0316612773565b50565b606060008054610ca890613d8b565b80601f0160208091040260200160405190810160405280929190818152602001828054610cd490613d8b565b8015610d215780601f10610cf657610100808354040283529160200191610d21565b820191906000526020600020905b815481529060010190602001808311610d0457829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610da45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c55565b506000908152600460205260409020546001600160a01b031690565b6000610dcb826119e2565b9050806001600160a01b0316836001600160a01b03161415610e395760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c55565b336001600160a01b0382161480610e555750610e558133610b02565b610ec75760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c55565b610ed18383612870565b505050565b600d546001600160a01b03163314610f1e5760405162461bcd60e51b81526020600482018190526024820152600080516020613f558339815191526044820152606401610c55565b610f266128de565b565b6040516bffffffffffffffffffffffff19606085901b1660208201526000908190603401604051602081830303815290604052805190602001209050610fa5848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506019549150849050612950565b95945050505050565b600d546001600160a01b03163314610ff65760405162461bcd60e51b81526020600482018190526024820152600080516020613f558339815191526044820152606401610c55565b805161100990600f906020840190613704565b505042601055565b600f805461101e90613d8b565b80601f016020809104026020016040519081016040528092919081815260200182805461104a90613d8b565b80156110975780601f1061106c57610100808354040283529160200191611097565b820191906000526020600020905b81548152906001019060200180831161107a57829003601f168201915b505050505081565b601481815481106110af57600080fd5b600091825260209091200154905081565b6110ca3382612966565b6111305760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610c55565b610ed1838383612a5d565b6000828152600b602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916111b0575060408051808201909152600a546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906111cf906001600160601b031687613ddc565b6111d99190613e11565b91519350909150505b9250929050565b60006111f483611b05565b82106112565760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610c55565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600d546001600160a01b031633146112c75760405162461bcd60e51b81526020600482018190526024820152600080516020613f558339815191526044820152606401610c55565b600e80546001600160a01b03908116600160a01b6001600160601b03858116820283811795869055610c96959416909217920416612773565b600d546001600160a01b031633146113485760405162461bcd60e51b81526020600482018190526024820152600080516020613f558339815191526044820152606401610c55565b47806113965760405162461bcd60e51b815260206004820152601360248201527f4e4f5448494e475f544f5f5749544844524157000000000000000000000000006044820152606401610c55565b60405173646b9ed09b130899be4c4bec114a1aa94618be099082156108fc029083906000818181858888f19350505050610c9657600080fd5b600080600044426040516020016113f0929190918252602082015260400190565b60408051601f198184030181529190528051602090910120905061141560ff82613e25565b611420906001613e39565b90508043101561142e575060015b600061143a8243613e51565b9050611447858240613e25565b92508261145c578261145881613e68565b9350505b50909392505050565b610ed1838383604051806020016040528060008152506120a9565b6060600061148d83611b05565b905060008167ffffffffffffffff8111156114aa576114aa6139fa565b6040519080825280602002602001820160405280156114d3578160200160208202803683370190505b50905060005b8281101561151a576114eb85826111e9565b8282815181106114fd576114fd613e83565b60209081029190910101528061151281613e68565b9150506114d9565b509392505050565b600061152d60085490565b82106115905760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610c55565b600882815481106115a3576115a3613e83565b90600052602060002001549050919050565b600d546001600160a01b031633146115fd5760405162461bcd60e51b81526020600482018190526024820152600080516020613f558339815191526044820152606401610c55565b610ed160118383613788565b6002600c54141561165c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c55565b6002600c553332146116b05760405162461bcd60e51b815260206004820152601d60248201527f4d5553545f494e564f4b455f46554e4354494f4e5f4449524543544c590000006044820152606401610c55565b60225462010000900460ff166117085760405162461bcd60e51b815260206004820152601d60248201527f414c4c4f575f4c4953545f53414c455f49535f4e4f545f4143544956450000006044820152606401610c55565b6156cd60205411156117525760405162461bcd60e51b8152602060048201526013602482015272494e53554646494349454e545f535550504c5960681b6044820152606401610c55565b336000908152601e602052604090205460ff16156117be5760405162461bcd60e51b8152602060048201526024808201527f414444524553535f414c52454144595f4d494e5445445f494e5f414c4c4f575f604482015263131254d560e21b6064820152608401610c55565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050611838838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506019549150849050612950565b6118905760405162461bcd60e51b815260206004820152602360248201527f414444524553535f4e4f545f454c494749424c455f464f525f414c4c4f575f4c6044820152621254d560ea1b6064820152608401610c55565b60125434146118d15760405162461bcd60e51b815260206004820152600d60248201526c494e56414c49445f505249434560981b6044820152606401610c55565b336000818152601e60209081526040909120805460ff19166001179055546118f99190612c04565b6020805490600061190983613e68565b90915550506001600c55505050565b600d546001600160a01b031633146119605760405162461bcd60e51b81526020600482018190526024820152600080516020613f558339815191526044820152606401610c55565b811580159061196f5750600081115b6119bb5760405162461bcd60e51b815260206004820152601b60248201527f5a45524f5f53544550535f4f525f5a45524f5f4455524154494f4e00000000006044820152606401610c55565b6119c7601484846137fc565b5060138190556014546119da9082613e11565b601555505050565b6000818152600260205260408120546001600160a01b031680610c005760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c55565b600d546001600160a01b03163314611aa15760405162461bcd60e51b81526020600482018190526024820152600080516020613f558339815191526044820152606401610c55565b60008111611b005760405162461bcd60e51b815260206004820152602660248201527f43414e545f5345545f414c4c4f575f4c4953545f50524943455f4241434b5f546044820152654f5f5a45524f60d01b6064820152608401610c55565b601255565b60006001600160a01b038216611b705760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c55565b506001600160a01b031660009081526003602052604090205490565b600d546001600160a01b03163314611bd45760405162461bcd60e51b81526020600482018190526024820152600080516020613f558339815191526044820152606401610c55565b610f266000612c1e565b600d546001600160a01b03163314611c265760405162461bcd60e51b81526020600482018190526024820152600080516020613f558339815191526044820152606401610c55565b601955565b606060018054610ca890613d8b565b600d546001600160a01b03163314611c825760405162461bcd60e51b81526020600482018190526024820152600080516020613f558339815191526044820152606401610c55565b6022805461ff001981166101009182900460ff1615909102179055601754611caa5742601755565b6000601755565b611cbc338383612c70565b5050565b600d546001600160a01b03163314611d085760405162461bcd60e51b81526020600482018190526024820152600080516020613f558339815191526044820152606401610c55565b611d156156cd6001613e39565b602054611d23908390613e39565b1115611d805760405162461bcd60e51b815260206004820152602660248201527f4e4f545f454e4f5547485f414c4c4f575f4c4953545f544f4b454e535f52454d60448201526541494e494e4760d01b6064820152608401610c55565b60005b81811015611dda57611dc8838383818110611da057611da0613e83565b9050602002016020810190611db591906138ac565b82602054611dc39190613e39565b612c04565b80611dd281613e68565b915050611d83565b508181905060206000828254611df09190613e39565b90915550505050565b6002600c541415611e4c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c55565b6002600c55333214611ea05760405162461bcd60e51b815260206004820152601d60248201527f4d5553545f494e564f4b455f46554e4354494f4e5f4449524543544c590000006044820152606401610c55565b602254610100900460ff16611ef75760405162461bcd60e51b815260206004820152601960248201527f5055424c49435f53414c455f49535f4e4f545f414354495645000000000000006044820152606401610c55565b600081611f02612214565b611f0c9190613ddc565b90506014821115611f695760405162461bcd60e51b815260206004820152602160248201527f455843454544535f4d41585f4d494e54535f5045525f5452414e53414354494f6044820152602760f91b6064820152608401610c55565b80341015611fb95760405162461bcd60e51b815260206004820152601460248201527f494e53554646494349454e545f5041594d454e540000000000000000000000006044820152606401610c55565b611fc6614e1f6001613e39565b82602154611fd49190613e39565b11156120185760405162461bcd60e51b8152602060048201526013602482015272494e53554646494349454e545f535550504c5960681b6044820152606401610c55565b60005b82811015612047576120353382602154611dc39190613e39565b8061203f81613e68565b91505061201b565b50816021600082825461205a9190613e39565b9091555050602154614e1f1015612085576022805461ff0019169055601c5461208557612085612d3f565b803411156120a0576120a03361209b8334613e51565b612dff565b50506001600c55565b6120b33383612966565b6121195760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610c55565b61212584848484612f18565b50505050565b6000818152600260205260409020546060906001600160a01b03166121b85760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610c55565b60006121c2612f96565b905060008151116121e2576040518060200160405280600081525061220d565b806121ec84612fa5565b6040516020016121fd929190613e99565b6040516020818303038152906040525b9392505050565b600080603c601754426122279190613e51565b6122319190613e11565b9050601354811061226d576014805461224c90600190613e51565b8154811061225c5761225c613e83565b906000526020600020015491505090565b60146015548261224c9190613e11565b6011805461101e90613d8b565b600d546001600160a01b031633146122d25760405162461bcd60e51b81526020600482018190526024820152600080516020613f558339815191526044820152606401610c55565b6022805460ff19811660ff90911615179055601654610f265742601655565b600d546001600160a01b031633146123395760405162461bcd60e51b81526020600482018190526024820152600080516020613f558339815191526044820152606401610c55565b610f26612d3f565b6002600c5414156123945760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c55565b6002600c5560225460ff166123eb5760405162461bcd60e51b815260206004820152601860248201527f465245455f434c41494d5f49535f4e4f545f41435449564500000000000000006044820152606401610c55565b8060148111156124475760405162461bcd60e51b815260206004820152602160248201527f455843454544535f4d41585f4d494e54535f5045525f5452414e53414354494f6044820152602760f91b6064820152608401610c55565b73e785e82358879f061bc3dcac6f0444462d4b533060005b8281101561258f57336001600160a01b038316636352211e87878581811061248957612489613e83565b905060200201356040518263ffffffff1660e01b81526004016124ae91815260200190565b602060405180830381865afa1580156124cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ef9190613ec8565b6001600160a01b0316146125455760405162461bcd60e51b815260206004820152601960248201527f444f45535f4e4f545f4f574e5f574f575f544f4b454e5f4944000000000000006044820152606401610c55565b6125673386868481811061255b5761255b613e83565b90506020020135612c04565b601f805490600061257783613e68565b9190505550808061258790613e68565b91505061245f565b50612710601f5414156125a7576022805460ff191690555b601a546125b6576125b66128de565b50506001600c555050565b600d546001600160a01b031633146126095760405162461bcd60e51b81526020600482018190526024820152600080516020613f558339815191526044820152606401610c55565b6001600160a01b03811661266e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c55565b610c9681612c1e565b600d546001600160a01b031633146126bf5760405162461bcd60e51b81526020600482018190526024820152600080516020613f558339815191526044820152606401610c55565b60225462010000900460ff16806126d857506000601254115b6127245760405162461bcd60e51b815260206004820152601860248201527f414c4c4f575f4c4953545f50524943455f4e4f545f53455400000000000000006044820152606401610c55565b6022805462ff0000198116620100009182900460ff1615909102179055601854610f265742601855565b60006001600160e01b0319821663152a902d60e11b1480610c005750610c00826130bb565b6127106001600160601b03821611156127e15760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610c55565b6001600160a01b0382166128375760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610c55565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600a55565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906128a5826119e2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b601a541561293c5760405162461bcd60e51b815260206004820152602560248201527f5354415254494e475f494e4445585f465245455f434c41494d5f414c524541446044820152641657d4d15560da1b6064820152608401610c55565b6129476127106113cf565b601a5542601b55565b60008261295d85846130e0565b14949350505050565b6000818152600260205260408120546001600160a01b03166129df5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c55565b60006129ea836119e2565b9050806001600160a01b0316846001600160a01b03161480612a255750836001600160a01b0316612a1a84610d2b565b6001600160a01b0316145b80612a5557506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612a70826119e2565b6001600160a01b031614612ad45760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610c55565b6001600160a01b038216612b365760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c55565b612b4183838361314c565b612b4c600082612870565b6001600160a01b0383166000908152600360205260408120805460019290612b75908490613e51565b90915550506001600160a01b0382166000908152600360205260408120805460019290612ba3908490613e39565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611cbc828260405180602001604052806000815250613157565b600d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415612cd25760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c55565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b601c5415612db55760405162461bcd60e51b815260206004820152602f60248201527f5354415254494e475f494e4445585f5055424c49435f414e445f414c4c4f574c60448201527f4953545f414c52454144595f53455400000000000000000000000000000000006064820152608401610c55565b612df6612710614e1f612dcc614e206156cd613e51565b612dd7906001613e39565b612de19190613e39565b612deb9190613e51565b610724906001613e39565b601c5542601d55565b80471015612e4f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610c55565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612e9c576040519150601f19603f3d011682016040523d82523d6000602084013e612ea1565b606091505b5050905080610ed15760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610c55565b612f23848484612a5d565b612f2f848484846131d5565b6121255760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610c55565b606060118054610ca890613d8b565b606081612fc95750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612ff35780612fdd81613e68565b9150612fec9050600a83613e11565b9150612fcd565b60008167ffffffffffffffff81111561300e5761300e6139fa565b6040519080825280601f01601f191660200182016040528015613038576020820181803683370190505b5090505b8415612a555761304d600183613e51565b915061305a600a86613e25565b613065906030613e39565b60f81b81838151811061307a5761307a613e83565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506130b4600a86613e11565b945061303c565b60006001600160e01b0319821663780e9d6360e01b1480610c005750610c008261331e565b600081815b845181101561151a57600085828151811061310257613102613e83565b602002602001015190508083116131285760008381526020829052604090209250613139565b600081815260208490526040902092505b508061314481613e68565b9150506130e5565b610ed183838361336e565b6131618383613426565b61316e60008484846131d5565b610ed15760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610c55565b60006001600160a01b0384163b1561331357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613219903390899088908890600401613ee5565b6020604051808303816000875af1925050508015613254575060408051601f3d908101601f1916820190925261325191810190613f21565b60015b6132f9573d808015613282576040519150601f19603f3d011682016040523d82523d6000602084013e613287565b606091505b5080516132f15760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610c55565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612a55565b506001949350505050565b60006001600160e01b031982166380ac58cd60e01b148061334f57506001600160e01b03198216635b5e139f60e01b145b80610c0057506301ffc9a760e01b6001600160e01b0319831614610c00565b6001600160a01b0383166133c9576133c481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6133ec565b816001600160a01b0316836001600160a01b0316146133ec576133ec8382613574565b6001600160a01b03821661340357610ed181613611565b826001600160a01b0316826001600160a01b031614610ed157610ed182826136c0565b6001600160a01b03821661347c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c55565b6000818152600260205260409020546001600160a01b0316156134e15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c55565b6134ed6000838361314c565b6001600160a01b0382166000908152600360205260408120805460019290613516908490613e39565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000600161358184611b05565b61358b9190613e51565b6000838152600760205260409020549091508082146135de576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061362390600190613e51565b6000838152600960205260408120546008805493945090928490811061364b5761364b613e83565b90600052602060002001549050806008838154811061366c5761366c613e83565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806136a4576136a4613f3e565b6001900381819060005260206000200160009055905550505050565b60006136cb83611b05565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b82805461371090613d8b565b90600052602060002090601f0160209004810192826137325760008555613778565b82601f1061374b57805160ff1916838001178555613778565b82800160010185558215613778579182015b8281111561377857825182559160200191906001019061375d565b50613784929150613836565b5090565b82805461379490613d8b565b90600052602060002090601f0160209004810192826137b65760008555613778565b82601f106137cf5782800160ff19823516178555613778565b82800160010185558215613778579182015b828111156137785782358255916020019190600101906137e1565b82805482825590600052602060002090810192821561377857916020028201828111156137785782358255916020019190600101906137e1565b5b808211156137845760008155600101613837565b60006020828403121561385d57600080fd5b5035919050565b6001600160e01b031981168114610c9657600080fd5b60006020828403121561388c57600080fd5b813561220d81613864565b6001600160a01b0381168114610c9657600080fd5b6000602082840312156138be57600080fd5b813561220d81613897565b60005b838110156138e45781810151838201526020016138cc565b838111156121255750506000910152565b6000815180845261390d8160208601602086016138c9565b601f01601f19169290920160200192915050565b60208152600061220d60208301846138f5565b6000806040838503121561394757600080fd5b823561395281613897565b946020939093013593505050565b60008083601f84011261397257600080fd5b50813567ffffffffffffffff81111561398a57600080fd5b6020830191508360208260051b85010111156111e257600080fd5b6000806000604084860312156139ba57600080fd5b83356139c581613897565b9250602084013567ffffffffffffffff8111156139e157600080fd5b6139ed86828701613960565b9497909650939450505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115613a2b57613a2b6139fa565b604051601f8501601f19908116603f01168101908282118183101715613a5357613a536139fa565b81604052809350858152868686011115613a6c57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215613a9857600080fd5b813567ffffffffffffffff811115613aaf57600080fd5b8201601f81018413613ac057600080fd5b612a5584823560208401613a10565b600080600060608486031215613ae457600080fd5b8335613aef81613897565b92506020840135613aff81613897565b929592945050506040919091013590565b60008060408385031215613b2357600080fd5b50508035926020909101359150565b600060208284031215613b4457600080fd5b81356001600160601b038116811461220d57600080fd5b6020808252825182820181905260009190848201906040850190845b81811015613b9357835183529284019291840191600101613b77565b50909695505050505050565b60008060208385031215613bb257600080fd5b823567ffffffffffffffff80821115613bca57600080fd5b818501915085601f830112613bde57600080fd5b813581811115613bed57600080fd5b866020828501011115613bff57600080fd5b60209290920196919550909350505050565b60008060208385031215613c2457600080fd5b823567ffffffffffffffff811115613c3b57600080fd5b613c4785828601613960565b90969095509350505050565b600080600060408486031215613c6857600080fd5b833567ffffffffffffffff811115613c7f57600080fd5b613c8b86828701613960565b909790965060209590950135949350505050565b60008060408385031215613cb257600080fd5b8235613cbd81613897565b915060208301358015158114613cd257600080fd5b809150509250929050565b60008060008060808587031215613cf357600080fd5b8435613cfe81613897565b93506020850135613d0e81613897565b925060408501359150606085013567ffffffffffffffff811115613d3157600080fd5b8501601f81018713613d4257600080fd5b613d5187823560208401613a10565b91505092959194509250565b60008060408385031215613d7057600080fd5b8235613d7b81613897565b91506020830135613cd281613897565b600181811c90821680613d9f57607f821691505b60208210811415613dc057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613df657613df6613dc6565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613e2057613e20613dfb565b500490565b600082613e3457613e34613dfb565b500690565b60008219821115613e4c57613e4c613dc6565b500190565b600082821015613e6357613e63613dc6565b500390565b6000600019821415613e7c57613e7c613dc6565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60008351613eab8184602088016138c9565b835190830190613ebf8183602088016138c9565b01949350505050565b600060208284031215613eda57600080fd5b815161220d81613897565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613f1760808301846138f5565b9695505050505050565b600060208284031215613f3357600080fd5b815161220d81613864565b634e487b7160e01b600052603160045260246000fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220aa29993b21aeeaaa0bb37a9f5efd988b38f3aa79baccb3b6b03e9aa52d85a20164736f6c634300080b0033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000015576f726c64204f6620576f6d656e2047616c61787900000000000000000000000000000000000000000000000000000000000000000000000000000000000004574f5747000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106103dc5760003560e01c80636bb7b1d9116101fd578063b3ab66b011610118578063df7f0a63116100ab578063f2fde38b1161007a578063f2fde38b14610b50578063fa1431da14610b70578063fa53cd3814610ba0578063fad19d3714610bba578063feb309ad14610bd057600080fd5b8063df7f0a6314610abc578063e94d731314610ad1578063e985e9c514610ae7578063eb0b7b2f14610b3057600080fd5b8063c87b56dd116100e7578063c87b56dd14610a5d578063d17d252514610a7d578063d547cfb714610a92578063d7c7743b14610aa757600080fd5b8063b3ab66b0146109d5578063b88d4fde146109e8578063b8997a9714610a08578063ba6f841014610a4757600080fd5b80639d21a70311610190578063a5fd7bec1161015f578063a5fd7bec1461096a578063aaaec2a01461098a578063ad2f852a146109a0578063b2435de6146109c057600080fd5b80639d21a70314610909578063a10866ef1461091f578063a22cb46514610934578063a24e51531461095457600080fd5b80637cb64759116101cc5780637cb64759146108a05780637da9519a146108c05780638da5cb5b146108d657806395d89b41146108f457600080fd5b80636bb7b1d9146108355780636df9fa881461084b57806370a082311461086b578063715018a61461088b57600080fd5b806329fc6bae116102f857806342842e0e1161028b57806355f804b31161025a57806355f804b3146107ac5780635cfe6b84146107cc57806361129e99146107df5780636352211e146107ff578063690de4621461081f57600080fd5b806342842e0e14610729578063438b6300146107495780634f2b654c146107765780634f6ccce71461078c57600080fd5b806331faafb4116102c757806331faafb4146106be578063343d573e146106de5780633ccfd60b146106f4578063410524bc1461070957600080fd5b806329fc6bae146106295780632a55205a146106495780632eb4a7ab146106885780632f745c591461069e57600080fd5b80630d5296af116103705780631e84c4131161033f5780631e84c413146105b45780631fdf6a7d146105d3578063214616a1146105f357806323b872dd1461060957600080fd5b80630d5296af1461054a578063109695231461056a57806314d0bf2b1461058a57806318160ddd1461059f57600080fd5b806306fdde03116103ac57806306fdde03146104bb578063081812fc146104dd578063095ea7b3146105155780630d26a0641461053557600080fd5b8062923f9e1461042057806301ffc9a71461045557806304e29c441461047557806306d254da1461049957600080fd5b3661041b57604080513381523460208201527f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f88525874910160405180910390a1005b600080fd5b34801561042c57600080fd5b5061044061043b36600461384b565b610be5565b60405190151581526020015b60405180910390f35b34801561046157600080fd5b5061044061047036600461387a565b610c06565b34801561048157600080fd5b5061048b601d5481565b60405190815260200161044c565b3480156104a557600080fd5b506104b96104b43660046138ac565b610c11565b005b3480156104c757600080fd5b506104d0610c99565b60405161044c9190613921565b3480156104e957600080fd5b506104fd6104f836600461384b565b610d2b565b6040516001600160a01b03909116815260200161044c565b34801561052157600080fd5b506104b9610530366004613934565b610dc0565b34801561054157600080fd5b506104b9610ed6565b34801561055657600080fd5b506104406105653660046139a5565b610f28565b34801561057657600080fd5b506104b9610585366004613a86565b610fae565b34801561059657600080fd5b506104d0611011565b3480156105ab57600080fd5b5060085461048b565b3480156105c057600080fd5b5060225461044090610100900460ff1681565b3480156105df57600080fd5b5061048b6105ee36600461384b565b61109f565b3480156105ff57600080fd5b5061048b601b5481565b34801561061557600080fd5b506104b9610624366004613acf565b6110c0565b34801561063557600080fd5b506022546104409062010000900460ff1681565b34801561065557600080fd5b50610669610664366004613b10565b61113b565b604080516001600160a01b03909316835260208301919091520161044c565b34801561069457600080fd5b5061048b60195481565b3480156106aa57600080fd5b5061048b6106b9366004613934565b6111e9565b3480156106ca57600080fd5b506104b96106d9366004613b32565b61127f565b3480156106ea57600080fd5b5061048b60105481565b34801561070057600080fd5b506104b9611300565b34801561071557600080fd5b5061048b61072436600461384b565b6113cf565b34801561073557600080fd5b506104b9610744366004613acf565b611465565b34801561075557600080fd5b506107696107643660046138ac565b611480565b60405161044c9190613b5b565b34801561078257600080fd5b5061048b60185481565b34801561079857600080fd5b5061048b6107a736600461384b565b611522565b3480156107b857600080fd5b506104b96107c7366004613b9f565b6115b5565b6104b96107da366004613c11565b611609565b3480156107eb57600080fd5b506104b96107fa366004613c53565b611918565b34801561080b57600080fd5b506104fd61081a36600461384b565b6119e2565b34801561082b57600080fd5b5061048b60215481565b34801561084157600080fd5b5061048b60175481565b34801561085757600080fd5b506104b961086636600461384b565b611a59565b34801561087757600080fd5b5061048b6108863660046138ac565b611b05565b34801561089757600080fd5b506104b9611b8c565b3480156108ac57600080fd5b506104b96108bb36600461384b565b611bde565b3480156108cc57600080fd5b5061048b60135481565b3480156108e257600080fd5b50600d546001600160a01b03166104fd565b34801561090057600080fd5b506104d0611c2b565b34801561091557600080fd5b5061048b60165481565b34801561092b57600080fd5b506104b9611c3a565b34801561094057600080fd5b506104b961094f366004613c9f565b611cb1565b34801561096057600080fd5b5061048b60125481565b34801561097657600080fd5b506104b9610985366004613c11565b611cc0565b34801561099657600080fd5b5061048b601c5481565b3480156109ac57600080fd5b50600e546104fd906001600160a01b031681565b3480156109cc57600080fd5b5060145461048b565b6104b96109e336600461384b565b611df9565b3480156109f457600080fd5b506104b9610a03366004613cdd565b6120a9565b348015610a1457600080fd5b50600e54610a2f90600160a01b90046001600160601b031681565b6040516001600160601b03909116815260200161044c565b348015610a5357600080fd5b5061048b60205481565b348015610a6957600080fd5b506104d0610a7836600461384b565b61212b565b348015610a8957600080fd5b5061048b612214565b348015610a9e57600080fd5b506104d061227d565b348015610ab357600080fd5b506104b961228a565b348015610ac857600080fd5b506104b96122f1565b348015610add57600080fd5b5061048b601a5481565b348015610af357600080fd5b50610440610b02366004613d5d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610b3c57600080fd5b506104b9610b4b366004613c11565b612341565b348015610b5c57600080fd5b506104b9610b6b3660046138ac565b6125c1565b348015610b7c57600080fd5b50610440610b8b3660046138ac565b601e6020526000908152604090205460ff1681565b348015610bac57600080fd5b506022546104409060ff1681565b348015610bc657600080fd5b5061048b601f5481565b348015610bdc57600080fd5b506104b9612677565b6000818152600260205260408120546001600160a01b031615155b92915050565b6000610c008261274e565b600d546001600160a01b03163314610c5e5760405162461bcd60e51b81526020600482018190526024820152600080516020613f5583398151915260448201526064015b60405180910390fd5b600e80546001600160a01b0319166001600160a01b03831690811791829055610c9691600160a01b90046001600160601b0316612773565b50565b606060008054610ca890613d8b565b80601f0160208091040260200160405190810160405280929190818152602001828054610cd490613d8b565b8015610d215780601f10610cf657610100808354040283529160200191610d21565b820191906000526020600020905b815481529060010190602001808311610d0457829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610da45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c55565b506000908152600460205260409020546001600160a01b031690565b6000610dcb826119e2565b9050806001600160a01b0316836001600160a01b03161415610e395760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c55565b336001600160a01b0382161480610e555750610e558133610b02565b610ec75760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c55565b610ed18383612870565b505050565b600d546001600160a01b03163314610f1e5760405162461bcd60e51b81526020600482018190526024820152600080516020613f558339815191526044820152606401610c55565b610f266128de565b565b6040516bffffffffffffffffffffffff19606085901b1660208201526000908190603401604051602081830303815290604052805190602001209050610fa5848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506019549150849050612950565b95945050505050565b600d546001600160a01b03163314610ff65760405162461bcd60e51b81526020600482018190526024820152600080516020613f558339815191526044820152606401610c55565b805161100990600f906020840190613704565b505042601055565b600f805461101e90613d8b565b80601f016020809104026020016040519081016040528092919081815260200182805461104a90613d8b565b80156110975780601f1061106c57610100808354040283529160200191611097565b820191906000526020600020905b81548152906001019060200180831161107a57829003601f168201915b505050505081565b601481815481106110af57600080fd5b600091825260209091200154905081565b6110ca3382612966565b6111305760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610c55565b610ed1838383612a5d565b6000828152600b602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916111b0575060408051808201909152600a546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906111cf906001600160601b031687613ddc565b6111d99190613e11565b91519350909150505b9250929050565b60006111f483611b05565b82106112565760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610c55565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600d546001600160a01b031633146112c75760405162461bcd60e51b81526020600482018190526024820152600080516020613f558339815191526044820152606401610c55565b600e80546001600160a01b03908116600160a01b6001600160601b03858116820283811795869055610c96959416909217920416612773565b600d546001600160a01b031633146113485760405162461bcd60e51b81526020600482018190526024820152600080516020613f558339815191526044820152606401610c55565b47806113965760405162461bcd60e51b815260206004820152601360248201527f4e4f5448494e475f544f5f5749544844524157000000000000000000000000006044820152606401610c55565b60405173646b9ed09b130899be4c4bec114a1aa94618be099082156108fc029083906000818181858888f19350505050610c9657600080fd5b600080600044426040516020016113f0929190918252602082015260400190565b60408051601f198184030181529190528051602090910120905061141560ff82613e25565b611420906001613e39565b90508043101561142e575060015b600061143a8243613e51565b9050611447858240613e25565b92508261145c578261145881613e68565b9350505b50909392505050565b610ed1838383604051806020016040528060008152506120a9565b6060600061148d83611b05565b905060008167ffffffffffffffff8111156114aa576114aa6139fa565b6040519080825280602002602001820160405280156114d3578160200160208202803683370190505b50905060005b8281101561151a576114eb85826111e9565b8282815181106114fd576114fd613e83565b60209081029190910101528061151281613e68565b9150506114d9565b509392505050565b600061152d60085490565b82106115905760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610c55565b600882815481106115a3576115a3613e83565b90600052602060002001549050919050565b600d546001600160a01b031633146115fd5760405162461bcd60e51b81526020600482018190526024820152600080516020613f558339815191526044820152606401610c55565b610ed160118383613788565b6002600c54141561165c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c55565b6002600c553332146116b05760405162461bcd60e51b815260206004820152601d60248201527f4d5553545f494e564f4b455f46554e4354494f4e5f4449524543544c590000006044820152606401610c55565b60225462010000900460ff166117085760405162461bcd60e51b815260206004820152601d60248201527f414c4c4f575f4c4953545f53414c455f49535f4e4f545f4143544956450000006044820152606401610c55565b6156cd60205411156117525760405162461bcd60e51b8152602060048201526013602482015272494e53554646494349454e545f535550504c5960681b6044820152606401610c55565b336000908152601e602052604090205460ff16156117be5760405162461bcd60e51b8152602060048201526024808201527f414444524553535f414c52454144595f4d494e5445445f494e5f414c4c4f575f604482015263131254d560e21b6064820152608401610c55565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050611838838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506019549150849050612950565b6118905760405162461bcd60e51b815260206004820152602360248201527f414444524553535f4e4f545f454c494749424c455f464f525f414c4c4f575f4c6044820152621254d560ea1b6064820152608401610c55565b60125434146118d15760405162461bcd60e51b815260206004820152600d60248201526c494e56414c49445f505249434560981b6044820152606401610c55565b336000818152601e60209081526040909120805460ff19166001179055546118f99190612c04565b6020805490600061190983613e68565b90915550506001600c55505050565b600d546001600160a01b031633146119605760405162461bcd60e51b81526020600482018190526024820152600080516020613f558339815191526044820152606401610c55565b811580159061196f5750600081115b6119bb5760405162461bcd60e51b815260206004820152601b60248201527f5a45524f5f53544550535f4f525f5a45524f5f4455524154494f4e00000000006044820152606401610c55565b6119c7601484846137fc565b5060138190556014546119da9082613e11565b601555505050565b6000818152600260205260408120546001600160a01b031680610c005760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c55565b600d546001600160a01b03163314611aa15760405162461bcd60e51b81526020600482018190526024820152600080516020613f558339815191526044820152606401610c55565b60008111611b005760405162461bcd60e51b815260206004820152602660248201527f43414e545f5345545f414c4c4f575f4c4953545f50524943455f4241434b5f546044820152654f5f5a45524f60d01b6064820152608401610c55565b601255565b60006001600160a01b038216611b705760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c55565b506001600160a01b031660009081526003602052604090205490565b600d546001600160a01b03163314611bd45760405162461bcd60e51b81526020600482018190526024820152600080516020613f558339815191526044820152606401610c55565b610f266000612c1e565b600d546001600160a01b03163314611c265760405162461bcd60e51b81526020600482018190526024820152600080516020613f558339815191526044820152606401610c55565b601955565b606060018054610ca890613d8b565b600d546001600160a01b03163314611c825760405162461bcd60e51b81526020600482018190526024820152600080516020613f558339815191526044820152606401610c55565b6022805461ff001981166101009182900460ff1615909102179055601754611caa5742601755565b6000601755565b611cbc338383612c70565b5050565b600d546001600160a01b03163314611d085760405162461bcd60e51b81526020600482018190526024820152600080516020613f558339815191526044820152606401610c55565b611d156156cd6001613e39565b602054611d23908390613e39565b1115611d805760405162461bcd60e51b815260206004820152602660248201527f4e4f545f454e4f5547485f414c4c4f575f4c4953545f544f4b454e535f52454d60448201526541494e494e4760d01b6064820152608401610c55565b60005b81811015611dda57611dc8838383818110611da057611da0613e83565b9050602002016020810190611db591906138ac565b82602054611dc39190613e39565b612c04565b80611dd281613e68565b915050611d83565b508181905060206000828254611df09190613e39565b90915550505050565b6002600c541415611e4c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c55565b6002600c55333214611ea05760405162461bcd60e51b815260206004820152601d60248201527f4d5553545f494e564f4b455f46554e4354494f4e5f4449524543544c590000006044820152606401610c55565b602254610100900460ff16611ef75760405162461bcd60e51b815260206004820152601960248201527f5055424c49435f53414c455f49535f4e4f545f414354495645000000000000006044820152606401610c55565b600081611f02612214565b611f0c9190613ddc565b90506014821115611f695760405162461bcd60e51b815260206004820152602160248201527f455843454544535f4d41585f4d494e54535f5045525f5452414e53414354494f6044820152602760f91b6064820152608401610c55565b80341015611fb95760405162461bcd60e51b815260206004820152601460248201527f494e53554646494349454e545f5041594d454e540000000000000000000000006044820152606401610c55565b611fc6614e1f6001613e39565b82602154611fd49190613e39565b11156120185760405162461bcd60e51b8152602060048201526013602482015272494e53554646494349454e545f535550504c5960681b6044820152606401610c55565b60005b82811015612047576120353382602154611dc39190613e39565b8061203f81613e68565b91505061201b565b50816021600082825461205a9190613e39565b9091555050602154614e1f1015612085576022805461ff0019169055601c5461208557612085612d3f565b803411156120a0576120a03361209b8334613e51565b612dff565b50506001600c55565b6120b33383612966565b6121195760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610c55565b61212584848484612f18565b50505050565b6000818152600260205260409020546060906001600160a01b03166121b85760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610c55565b60006121c2612f96565b905060008151116121e2576040518060200160405280600081525061220d565b806121ec84612fa5565b6040516020016121fd929190613e99565b6040516020818303038152906040525b9392505050565b600080603c601754426122279190613e51565b6122319190613e11565b9050601354811061226d576014805461224c90600190613e51565b8154811061225c5761225c613e83565b906000526020600020015491505090565b60146015548261224c9190613e11565b6011805461101e90613d8b565b600d546001600160a01b031633146122d25760405162461bcd60e51b81526020600482018190526024820152600080516020613f558339815191526044820152606401610c55565b6022805460ff19811660ff90911615179055601654610f265742601655565b600d546001600160a01b031633146123395760405162461bcd60e51b81526020600482018190526024820152600080516020613f558339815191526044820152606401610c55565b610f26612d3f565b6002600c5414156123945760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c55565b6002600c5560225460ff166123eb5760405162461bcd60e51b815260206004820152601860248201527f465245455f434c41494d5f49535f4e4f545f41435449564500000000000000006044820152606401610c55565b8060148111156124475760405162461bcd60e51b815260206004820152602160248201527f455843454544535f4d41585f4d494e54535f5045525f5452414e53414354494f6044820152602760f91b6064820152608401610c55565b73e785e82358879f061bc3dcac6f0444462d4b533060005b8281101561258f57336001600160a01b038316636352211e87878581811061248957612489613e83565b905060200201356040518263ffffffff1660e01b81526004016124ae91815260200190565b602060405180830381865afa1580156124cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ef9190613ec8565b6001600160a01b0316146125455760405162461bcd60e51b815260206004820152601960248201527f444f45535f4e4f545f4f574e5f574f575f544f4b454e5f4944000000000000006044820152606401610c55565b6125673386868481811061255b5761255b613e83565b90506020020135612c04565b601f805490600061257783613e68565b9190505550808061258790613e68565b91505061245f565b50612710601f5414156125a7576022805460ff191690555b601a546125b6576125b66128de565b50506001600c555050565b600d546001600160a01b031633146126095760405162461bcd60e51b81526020600482018190526024820152600080516020613f558339815191526044820152606401610c55565b6001600160a01b03811661266e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c55565b610c9681612c1e565b600d546001600160a01b031633146126bf5760405162461bcd60e51b81526020600482018190526024820152600080516020613f558339815191526044820152606401610c55565b60225462010000900460ff16806126d857506000601254115b6127245760405162461bcd60e51b815260206004820152601860248201527f414c4c4f575f4c4953545f50524943455f4e4f545f53455400000000000000006044820152606401610c55565b6022805462ff0000198116620100009182900460ff1615909102179055601854610f265742601855565b60006001600160e01b0319821663152a902d60e11b1480610c005750610c00826130bb565b6127106001600160601b03821611156127e15760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610c55565b6001600160a01b0382166128375760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610c55565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600a55565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906128a5826119e2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b601a541561293c5760405162461bcd60e51b815260206004820152602560248201527f5354415254494e475f494e4445585f465245455f434c41494d5f414c524541446044820152641657d4d15560da1b6064820152608401610c55565b6129476127106113cf565b601a5542601b55565b60008261295d85846130e0565b14949350505050565b6000818152600260205260408120546001600160a01b03166129df5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c55565b60006129ea836119e2565b9050806001600160a01b0316846001600160a01b03161480612a255750836001600160a01b0316612a1a84610d2b565b6001600160a01b0316145b80612a5557506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612a70826119e2565b6001600160a01b031614612ad45760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610c55565b6001600160a01b038216612b365760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c55565b612b4183838361314c565b612b4c600082612870565b6001600160a01b0383166000908152600360205260408120805460019290612b75908490613e51565b90915550506001600160a01b0382166000908152600360205260408120805460019290612ba3908490613e39565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611cbc828260405180602001604052806000815250613157565b600d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415612cd25760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c55565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b601c5415612db55760405162461bcd60e51b815260206004820152602f60248201527f5354415254494e475f494e4445585f5055424c49435f414e445f414c4c4f574c60448201527f4953545f414c52454144595f53455400000000000000000000000000000000006064820152608401610c55565b612df6612710614e1f612dcc614e206156cd613e51565b612dd7906001613e39565b612de19190613e39565b612deb9190613e51565b610724906001613e39565b601c5542601d55565b80471015612e4f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610c55565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612e9c576040519150601f19603f3d011682016040523d82523d6000602084013e612ea1565b606091505b5050905080610ed15760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610c55565b612f23848484612a5d565b612f2f848484846131d5565b6121255760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610c55565b606060118054610ca890613d8b565b606081612fc95750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612ff35780612fdd81613e68565b9150612fec9050600a83613e11565b9150612fcd565b60008167ffffffffffffffff81111561300e5761300e6139fa565b6040519080825280601f01601f191660200182016040528015613038576020820181803683370190505b5090505b8415612a555761304d600183613e51565b915061305a600a86613e25565b613065906030613e39565b60f81b81838151811061307a5761307a613e83565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506130b4600a86613e11565b945061303c565b60006001600160e01b0319821663780e9d6360e01b1480610c005750610c008261331e565b600081815b845181101561151a57600085828151811061310257613102613e83565b602002602001015190508083116131285760008381526020829052604090209250613139565b600081815260208490526040902092505b508061314481613e68565b9150506130e5565b610ed183838361336e565b6131618383613426565b61316e60008484846131d5565b610ed15760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610c55565b60006001600160a01b0384163b1561331357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613219903390899088908890600401613ee5565b6020604051808303816000875af1925050508015613254575060408051601f3d908101601f1916820190925261325191810190613f21565b60015b6132f9573d808015613282576040519150601f19603f3d011682016040523d82523d6000602084013e613287565b606091505b5080516132f15760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610c55565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612a55565b506001949350505050565b60006001600160e01b031982166380ac58cd60e01b148061334f57506001600160e01b03198216635b5e139f60e01b145b80610c0057506301ffc9a760e01b6001600160e01b0319831614610c00565b6001600160a01b0383166133c9576133c481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6133ec565b816001600160a01b0316836001600160a01b0316146133ec576133ec8382613574565b6001600160a01b03821661340357610ed181613611565b826001600160a01b0316826001600160a01b031614610ed157610ed182826136c0565b6001600160a01b03821661347c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c55565b6000818152600260205260409020546001600160a01b0316156134e15760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c55565b6134ed6000838361314c565b6001600160a01b0382166000908152600360205260408120805460019290613516908490613e39565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000600161358184611b05565b61358b9190613e51565b6000838152600760205260409020549091508082146135de576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061362390600190613e51565b6000838152600960205260408120546008805493945090928490811061364b5761364b613e83565b90600052602060002001549050806008838154811061366c5761366c613e83565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806136a4576136a4613f3e565b6001900381819060005260206000200160009055905550505050565b60006136cb83611b05565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b82805461371090613d8b565b90600052602060002090601f0160209004810192826137325760008555613778565b82601f1061374b57805160ff1916838001178555613778565b82800160010185558215613778579182015b8281111561377857825182559160200191906001019061375d565b50613784929150613836565b5090565b82805461379490613d8b565b90600052602060002090601f0160209004810192826137b65760008555613778565b82601f106137cf5782800160ff19823516178555613778565b82800160010185558215613778579182015b828111156137785782358255916020019190600101906137e1565b82805482825590600052602060002090810192821561377857916020028201828111156137785782358255916020019190600101906137e1565b5b808211156137845760008155600101613837565b60006020828403121561385d57600080fd5b5035919050565b6001600160e01b031981168114610c9657600080fd5b60006020828403121561388c57600080fd5b813561220d81613864565b6001600160a01b0381168114610c9657600080fd5b6000602082840312156138be57600080fd5b813561220d81613897565b60005b838110156138e45781810151838201526020016138cc565b838111156121255750506000910152565b6000815180845261390d8160208601602086016138c9565b601f01601f19169290920160200192915050565b60208152600061220d60208301846138f5565b6000806040838503121561394757600080fd5b823561395281613897565b946020939093013593505050565b60008083601f84011261397257600080fd5b50813567ffffffffffffffff81111561398a57600080fd5b6020830191508360208260051b85010111156111e257600080fd5b6000806000604084860312156139ba57600080fd5b83356139c581613897565b9250602084013567ffffffffffffffff8111156139e157600080fd5b6139ed86828701613960565b9497909650939450505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115613a2b57613a2b6139fa565b604051601f8501601f19908116603f01168101908282118183101715613a5357613a536139fa565b81604052809350858152868686011115613a6c57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215613a9857600080fd5b813567ffffffffffffffff811115613aaf57600080fd5b8201601f81018413613ac057600080fd5b612a5584823560208401613a10565b600080600060608486031215613ae457600080fd5b8335613aef81613897565b92506020840135613aff81613897565b929592945050506040919091013590565b60008060408385031215613b2357600080fd5b50508035926020909101359150565b600060208284031215613b4457600080fd5b81356001600160601b038116811461220d57600080fd5b6020808252825182820181905260009190848201906040850190845b81811015613b9357835183529284019291840191600101613b77565b50909695505050505050565b60008060208385031215613bb257600080fd5b823567ffffffffffffffff80821115613bca57600080fd5b818501915085601f830112613bde57600080fd5b813581811115613bed57600080fd5b866020828501011115613bff57600080fd5b60209290920196919550909350505050565b60008060208385031215613c2457600080fd5b823567ffffffffffffffff811115613c3b57600080fd5b613c4785828601613960565b90969095509350505050565b600080600060408486031215613c6857600080fd5b833567ffffffffffffffff811115613c7f57600080fd5b613c8b86828701613960565b909790965060209590950135949350505050565b60008060408385031215613cb257600080fd5b8235613cbd81613897565b915060208301358015158114613cd257600080fd5b809150509250929050565b60008060008060808587031215613cf357600080fd5b8435613cfe81613897565b93506020850135613d0e81613897565b925060408501359150606085013567ffffffffffffffff811115613d3157600080fd5b8501601f81018713613d4257600080fd5b613d5187823560208401613a10565b91505092959194509250565b60008060408385031215613d7057600080fd5b8235613d7b81613897565b91506020830135613cd281613897565b600181811c90821680613d9f57607f821691505b60208210811415613dc057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613df657613df6613dc6565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613e2057613e20613dfb565b500490565b600082613e3457613e34613dfb565b500690565b60008219821115613e4c57613e4c613dc6565b500190565b600082821015613e6357613e63613dc6565b500390565b6000600019821415613e7c57613e7c613dc6565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60008351613eab8184602088016138c9565b835190830190613ebf8183602088016138c9565b01949350505050565b600060208284031215613eda57600080fd5b815161220d81613897565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613f1760808301846138f5565b9695505050505050565b600060208284031215613f3357600080fd5b815161220d81613864565b634e487b7160e01b600052603160045260246000fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220aa29993b21aeeaaa0bb37a9f5efd988b38f3aa79baccb3b6b03e9aa52d85a20164736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000015576f726c64204f6620576f6d656e2047616c61787900000000000000000000000000000000000000000000000000000000000000000000000000000000000004574f5747000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): World Of Women Galaxy
Arg [1] : _symbol (string): WOWG
Arg [2] : _baseTokenURI (string):
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000015
Arg [4] : 576f726c64204f6620576f6d656e2047616c6178790000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [6] : 574f574700000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000000
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.