Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
999 ERC20 ***
Holders
822
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 ERC20 ***Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
DigiDaiOddparents
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // __ ______ __ __ __ __ ______ __ __ __ ______ __ // /\ \ /\ __ \ /\ \/\ \ /\ "-.\ \ /\ ___\ /\ \_\ \ /\ \ /\ ___\ /\ \ // \ \ \____ \ \ __ \ \ \ \_\ \ \ \ \-. \ \ \ \____ \ \ __ \ \ \ \ \ \ __\ \ \ \ // \ \_____\ \ \_\ \_\ \ \_____\ \ \_\\"\_\ \ \_____\ \ \_\ \_\ \ \_\ \ \_\ \ \_\ // \/_____/ \/_/\/_/ \/_____/ \/_/ \/_/ \/_____/ \/_/\/_/ \/_/ \/_/ \/_/ pragma solidity ^0.8.10; import "@openzeppelin/contracts/access/Ownable.sol"; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; contract DigiDaiOddparents is ERC721A, Ownable, ReentrancyGuard { using Strings for uint256; uint256 public _maxSupply = 999; uint256 public maxMintAmountPerWallet = 20; uint256 public maxMintAmountPerTx = 20; string baseURL = ""; string ExtensionURL = ".json"; uint256 _initalPrice = 0 ether; uint256 public costOfNFT = 2000000000000000 ether; uint256 public numberOfFreeNFTs = 0; uint256 currentFreeSupply = 0; uint256 freeSupplyLimit = 700; string HiddenURL; bool revealed = false; bool paused = true; error ContractPaused(); error MaxMintWalletExceeded(); error MaxSupply(); error InvalidMintAmount(); error InsufficientFund(); error NoSmartContract(); error TokenNotExisting(); constructor(string memory _initBaseURI) ERC721A("Digi Dai Oddparents", "DDOP") { baseURL = _initBaseURI; } // ================== Mint Function ======================= modifier mintCompliance(uint256 _mintAmount) { if (msg.sender != tx.origin) revert NoSmartContract(); if (totalSupply() + _mintAmount > _maxSupply) revert MaxSupply(); if (_mintAmount > maxMintAmountPerTx) revert InvalidMintAmount(); if(paused) revert ContractPaused(); _; } modifier mintPriceCompliance(uint256 _mintAmount) { if(balanceOf(msg.sender) + _mintAmount > maxMintAmountPerWallet) revert MaxMintWalletExceeded(); if (_mintAmount < 0 || _mintAmount > maxMintAmountPerWallet) revert InvalidMintAmount(); if (msg.value < checkCost(_mintAmount)) revert InsufficientFund(); _; } /// @notice compliance of minting /// @dev user (msg.sender) mint /// @param _mintAmount the amount of tokens to mint function mint(uint256 _mintAmount) public payable mintCompliance(_mintAmount) mintPriceCompliance(_mintAmount){ _safeMint(msg.sender, _mintAmount); currentFreeSupply = currentFreeSupply + checkFreemint(_mintAmount); } /// @dev user (msg.sender) mint /// @param _mintAmount the amount of tokens to mint /// @return value from number to mint function checkCost(uint256 _mintAmount) public view returns (uint256) { uint256 totalMints = _mintAmount + balanceOf(msg.sender); if ((totalMints <= numberOfFreeNFTs) && (currentFreeSupply < freeSupplyLimit)) { return _initalPrice; } else if ((balanceOf(msg.sender) == 0) && (totalMints > numberOfFreeNFTs) && (currentFreeSupply < freeSupplyLimit)) { uint256 total = costOfNFT * (_mintAmount - numberOfFreeNFTs); return total; } else { uint256 total2 = costOfNFT * _mintAmount; return total2; } } function checkFreemint(uint256 _mintAmount) public view returns (uint256) { uint256 totalMints = _mintAmount + balanceOf(msg.sender); if ((totalMints <= numberOfFreeNFTs) && (currentFreeSupply < freeSupplyLimit)) { return totalMints; } else if ((balanceOf(msg.sender) == 0) && (totalMints > numberOfFreeNFTs) && (currentFreeSupply < freeSupplyLimit)) { return numberOfFreeNFTs; } else { return 0; } } function changeFreeSupplyLimit(uint256 _newSupply)public onlyOwner { freeSupplyLimit = _newSupply; } /// @notice airdrop function to airdrop same amount of tokens to addresses /// @dev only owner function /// @param accounts array of addresses /// @param amount the amount of tokens to airdrop users function airdrop(address[] memory accounts, uint256 amount)public onlyOwner mintCompliance(amount) { for(uint256 i = 0; i < accounts.length; i++){ _safeMint(accounts[i], amount); } } // =================== Orange Functions (Owner Only) =============== /// @dev pause/unpause minting function pause() public onlyOwner { paused = !paused; } /// @dev set URI /// @param uri new URI function setbaseURL(string memory uri) public onlyOwner{ baseURL = uri; } /// @dev extension URI like 'json' function setExtensionURL(string memory uri) public onlyOwner{ ExtensionURL = uri; } /// @dev set new cost of tokenId in WEI /// @param _cost new price in wei function setCostPrice(uint256 _cost) public onlyOwner{ costOfNFT = _cost; } /// @dev only owner /// @param supply new max supply function setSupply(uint256 supply) public onlyOwner{ _maxSupply = supply; } /// @dev only owner /// @param perTx new max mint per transaction function setMaxMintAmountPerTx(uint256 perTx) public onlyOwner{ maxMintAmountPerTx = perTx; } /// @dev only owner /// @param perWallet new max mint per wallet function setMaxMintAmountPerWallet(uint256 perWallet) public onlyOwner{ maxMintAmountPerWallet = perWallet; } /// @dev only owner /// @param perWallet set free number of nft per wallet function setnumberOfFreeNFTs(uint256 perWallet) public onlyOwner{ numberOfFreeNFTs = perWallet; } // ================================ Withdraw Function ==================== /// @notice withdraw ether from contract. /// @dev only owner function function withdraw() public onlyOwner nonReentrant{ (bool owner, ) = payable(owner()).call{value: address(this).balance}(''); require(owner); } // =================== Blue Functions (View Only) ==================== /// @dev return uri of token ID /// @param tokenId token ID to find uri for ///@return value for 'tokenId uri' function tokenURI(uint256 tokenId) public view override(ERC721A) returns (string memory) { if (!_exists(tokenId)) revert TokenNotExisting(); string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenId.toString(), ExtensionURL)) : ''; } /// @dev tokenId to start (1) function _startTokenId() internal view virtual override returns (uint256) { return 1; } ///@dev maxSupply of token /// @return max supply function _baseURI() internal view virtual override returns (string memory) { return baseURL; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, * including the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at `_startTokenId()` * (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Mask of an entry in packed address data. uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with `_mintERC2309`. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to `_mintERC2309` // is required to cause an overflow, which is unrealistic. uint256 private constant MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The tokenId of the next token to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See `_packedOwnershipOf` implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see `_totalMinted`. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to `_startTokenId()` unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes of the XOR of // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165 // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)` return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX); _packedAddressData[owner] = packed; } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & BITMASK_BURNED == 0) { // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP); ownership.burned = packed & BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> BITPOS_EXTRA_DATA); } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, BITMASK_ADDRESS) // `owner | (block.timestamp << BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << BITPOS_NEXT_INITIALIZED`. result := shl(BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-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 { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 tokenId = startTokenId; uint256 end = startTokenId + quantity; do { emit Transfer(address(0), to, tokenId++); } while (tokenId < end); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { // Compute the slot. mstore(0x00, tokenId) mstore(0x20, tokenApprovalsPtr.slot) approvedAddressSlot := keccak256(0x00, 0x40) // Load the slot's value from storage. approvedAddress := sload(approvedAddressSlot) } } /** * @dev Returns whether the `approvedAddress` is equals to `from` or `msgSender`. */ function _isOwnerOrApproved( address approvedAddress, address from, address msgSender ) private pure returns (bool result) { assembly { // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from := and(from, BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, BITMASK_ADDRESS) // `msgSender == from || msgSender == approvedAddress`. result := or(eq(msgSender, from), eq(msgSender, approvedAddress)) } } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (BITMASK_BURNED | BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << BITPOS_EXTRA_DATA; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. * This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. * This includes minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function _toString(uint256 value) internal pure returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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 (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 // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set through `_extraData`. uint24 extraData; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // IERC165 // ============================== /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================== // IERC721 // ============================== /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================== // IERC721Metadata // ============================== /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================== // IERC2309 // ============================== /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`, * as defined in the ERC2309 standard. See `_mintERC2309` for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_initBaseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"ContractPaused","type":"error"},{"inputs":[],"name":"InsufficientFund","type":"error"},{"inputs":[],"name":"InvalidMintAmount","type":"error"},{"inputs":[],"name":"MaxMintWalletExceeded","type":"error"},{"inputs":[],"name":"MaxSupply","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NoSmartContract","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TokenNotExisting","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"_maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newSupply","type":"uint256"}],"name":"changeFreeSupplyLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"checkCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"checkFreemint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"costOfNFT","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":[{"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":"maxMintAmountPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberOfFreeNFTs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setCostPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setExtensionURL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"perTx","type":"uint256"}],"name":"setMaxMintAmountPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"perWallet","type":"uint256"}],"name":"setMaxMintAmountPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"supply","type":"uint256"}],"name":"setSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setbaseURL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"perWallet","type":"uint256"}],"name":"setnumberOfFreeNFTs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526103e7600a556014600b556014600c5560405180602001604052806000815250600d90805190602001906200003b929190620002ef565b506040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600e908051906020019062000089929190620002ef565b506000600f556d629b8c891b267182b61400000000601055600060115560006012556102bc6013556000601560006101000a81548160ff0219169083151502179055506001601560016101000a81548160ff021916908315150217905550348015620000f457600080fd5b506040516200387e3803806200387e83398181016040528101906200011a91906200053c565b6040518060400160405280601381526020017f4469676920446169204f6464706172656e7473000000000000000000000000008152506040518060400160405280600481526020017f44444f500000000000000000000000000000000000000000000000000000000081525081600290805190602001906200019e929190620002ef565b508060039080519060200190620001b7929190620002ef565b50620001c86200021860201b60201c565b6000819055505050620001f0620001e46200022160201b60201c565b6200022960201b60201c565b600160098190555080600d908051906020019062000210929190620002ef565b5050620005f1565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002fd90620005bc565b90600052602060002090601f0160209004810192826200032157600085556200036d565b82601f106200033c57805160ff19168380011785556200036d565b828001600101855582156200036d579182015b828111156200036c5782518255916020019190600101906200034f565b5b5090506200037c919062000380565b5090565b5b808211156200039b57600081600090555060010162000381565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200040882620003bd565b810181811067ffffffffffffffff821117156200042a5762000429620003ce565b5b80604052505050565b60006200043f6200039f565b90506200044d8282620003fd565b919050565b600067ffffffffffffffff82111562000470576200046f620003ce565b5b6200047b82620003bd565b9050602081019050919050565b60005b83811015620004a85780820151818401526020810190506200048b565b83811115620004b8576000848401525b50505050565b6000620004d5620004cf8462000452565b62000433565b905082815260208101848484011115620004f457620004f3620003b8565b5b6200050184828562000488565b509392505050565b600082601f830112620005215762000520620003b3565b5b815162000533848260208601620004be565b91505092915050565b600060208284031215620005555762000554620003a9565b5b600082015167ffffffffffffffff811115620005765762000575620003ae565b5b620005848482850162000509565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620005d557607f821691505b602082108103620005eb57620005ea6200058d565b5b50919050565b61327d80620006016000396000f3fe60806040526004361061020f5760003560e01c80638456cb5911610118578063b245ddf9116100a0578063c87b56dd1161006f578063c87b56dd1461073c578063e098ff7314610779578063e2edb001146107a4578063e985e9c5146107e1578063f2fde38b1461081e5761020f565b8063b245ddf914610696578063b88d4fde146106bf578063bc951b91146106e8578063c204642c146107135761020f565b806395d89b41116100e757806395d89b41146105d2578063a0712d68146105fd578063a22cb46514610619578063b071401b14610642578063b0fe64141461066b5761020f565b80638456cb591461053c5780638da5cb5b1461055357806393e90b231461057e57806394354fd0146105a75761020f565b80633ccfd60b1161019b5780636352211e1161016a5780636352211e14610459578063676f26021461049657806370a08231146104bf578063715018a6146104fc578063766b7d09146105135761020f565b80633ccfd60b146103c757806342842e0e146103de5780634d534a7d14610407578063626ab3b8146104305761020f565b806311b4a832116101e257806311b4a832146102e257806318160ddd1461031f57806322f4596f1461034a57806323b872dd146103755780633b4c4b251461039e5761020f565b806301ffc9a71461021457806306fdde0314610251578063081812fc1461027c578063095ea7b3146102b9575b600080fd5b34801561022057600080fd5b5061023b600480360381019061023691906124d3565b610847565b604051610248919061251b565b60405180910390f35b34801561025d57600080fd5b506102666108d9565b60405161027391906125cf565b60405180910390f35b34801561028857600080fd5b506102a3600480360381019061029e9190612627565b61096b565b6040516102b09190612695565b60405180910390f35b3480156102c557600080fd5b506102e060048036038101906102db91906126dc565b6109e7565b005b3480156102ee57600080fd5b5061030960048036038101906103049190612627565b610b28565b604051610316919061272b565b60405180910390f35b34801561032b57600080fd5b50610334610bd9565b604051610341919061272b565b60405180910390f35b34801561035657600080fd5b5061035f610bf0565b60405161036c919061272b565b60405180910390f35b34801561038157600080fd5b5061039c60048036038101906103979190612746565b610bf6565b005b3480156103aa57600080fd5b506103c560048036038101906103c09190612627565b610f18565b005b3480156103d357600080fd5b506103dc610f2a565b005b3480156103ea57600080fd5b5061040560048036038101906104009190612746565b611007565b005b34801561041357600080fd5b5061042e600480360381019061042991906128ce565b611027565b005b34801561043c57600080fd5b50610457600480360381019061045291906128ce565b611049565b005b34801561046557600080fd5b50610480600480360381019061047b9190612627565b61106b565b60405161048d9190612695565b60405180910390f35b3480156104a257600080fd5b506104bd60048036038101906104b89190612627565b61107d565b005b3480156104cb57600080fd5b506104e660048036038101906104e19190612917565b61108f565b6040516104f3919061272b565b60405180910390f35b34801561050857600080fd5b50610511611147565b005b34801561051f57600080fd5b5061053a60048036038101906105359190612627565b61115b565b005b34801561054857600080fd5b5061055161116d565b005b34801561055f57600080fd5b506105686111a1565b6040516105759190612695565b60405180910390f35b34801561058a57600080fd5b506105a560048036038101906105a09190612627565b6111cb565b005b3480156105b357600080fd5b506105bc6111dd565b6040516105c9919061272b565b60405180910390f35b3480156105de57600080fd5b506105e76111e3565b6040516105f491906125cf565b60405180910390f35b61061760048036038101906106129190612627565b611275565b005b34801561062557600080fd5b50610640600480360381019061063b9190612970565b6114b0565b005b34801561064e57600080fd5b5061066960048036038101906106649190612627565b611627565b005b34801561067757600080fd5b50610680611639565b60405161068d919061272b565b60405180910390f35b3480156106a257600080fd5b506106bd60048036038101906106b89190612627565b61163f565b005b3480156106cb57600080fd5b506106e660048036038101906106e19190612a51565b611651565b005b3480156106f457600080fd5b506106fd6116c4565b60405161070a919061272b565b60405180910390f35b34801561071f57600080fd5b5061073a60048036038101906107359190612b9c565b6116ca565b005b34801561074857600080fd5b50610763600480360381019061075e9190612627565b611852565b60405161077091906125cf565b60405180910390f35b34801561078557600080fd5b5061078e6118f3565b60405161079b919061272b565b60405180910390f35b3480156107b057600080fd5b506107cb60048036038101906107c69190612627565b6118f9565b6040516107d8919061272b565b60405180910390f35b3480156107ed57600080fd5b5061080860048036038101906108039190612bf8565b611978565b604051610815919061251b565b60405180910390f35b34801561082a57600080fd5b5061084560048036038101906108409190612917565b611a0c565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108a257506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108d25750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546108e890612c67565b80601f016020809104026020016040519081016040528092919081815260200182805461091490612c67565b80156109615780601f1061093657610100808354040283529160200191610961565b820191906000526020600020905b81548152906001019060200180831161094457829003601f168201915b5050505050905090565b600061097682611a8f565b6109ac576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109f28261106b565b90508073ffffffffffffffffffffffffffffffffffffffff16610a13611aee565b73ffffffffffffffffffffffffffffffffffffffff1614610a7657610a3f81610a3a611aee565b611978565b610a75576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600080610b343361108f565b83610b3f9190612cc7565b90506011548111158015610b565750601354601254105b15610b6657600f54915050610bd4565b6000610b713361108f565b148015610b7f575060115481115b8015610b8e5750601354601254105b15610bbc57600060115484610ba39190612d1d565b601054610bb09190612d51565b90508092505050610bd4565b600083601054610bcc9190612d51565b905080925050505b919050565b6000610be3611af6565b6001546000540303905090565b600a5481565b6000610c0182611aff565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c68576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610c7484611bcb565b91509150610c8a8187610c85611aee565b611bed565b610cd657610c9f86610c9a611aee565b611978565b610cd5576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610d3c576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d498686866001611c31565b8015610d5457600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610e2285610dfe888887611c37565b7c020000000000000000000000000000000000000000000000000000000017611c5f565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610ea85760006001850190506000600460008381526020019081526020016000205403610ea6576000548114610ea5578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610f108686866001611c8a565b505050505050565b610f20611c90565b80600a8190555050565b610f32611c90565b600260095403610f77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6e90612df7565b60405180910390fd5b60026009819055506000610f896111a1565b73ffffffffffffffffffffffffffffffffffffffff1647604051610fac90612e48565b60006040518083038185875af1925050503d8060008114610fe9576040519150601f19603f3d011682016040523d82523d6000602084013e610fee565b606091505b5050905080610ffc57600080fd5b506001600981905550565b61102283838360405180602001604052806000815250611651565b505050565b61102f611c90565b80600e90805190602001906110459291906123c4565b5050565b611051611c90565b80600d90805190602001906110679291906123c4565b5050565b600061107682611aff565b9050919050565b611085611c90565b8060108190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036110f6576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61114f611c90565b6111596000611d0e565b565b611163611c90565b80600b8190555050565b611175611c90565b601560019054906101000a900460ff1615601560016101000a81548160ff021916908315150217905550565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6111d3611c90565b8060118190555050565b600c5481565b6060600380546111f290612c67565b80601f016020809104026020016040519081016040528092919081815260200182805461121e90612c67565b801561126b5780601f106112405761010080835404028352916020019161126b565b820191906000526020600020905b81548152906001019060200180831161124e57829003601f168201915b5050505050905090565b803273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146112db576040517f4af0169e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a54816112e7610bd9565b6112f19190612cc7565b1115611329576040517fb36c128400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c54811115611365576040517fccfad01800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601560019054906101000a900460ff16156113ac576040517fab35696f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600b54816113ba3361108f565b6113c49190612cc7565b11156113fc576040517f6a3eaa7b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600081108061140c5750600b5481115b15611443576040517fccfad01800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61144c81610b28565b341015611485576040517fd44b3c6200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61148f3384611dd4565b611498836118f9565b6012546114a59190612cc7565b601281905550505050565b6114b8611aee565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361151c576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611529611aee565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166115d6611aee565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161161b919061251b565b60405180910390a35050565b61162f611c90565b80600c8190555050565b60115481565b611647611c90565b8060138190555050565b61165c848484610bf6565b60008373ffffffffffffffffffffffffffffffffffffffff163b146116be5761168784848484611df2565b6116bd576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600b5481565b6116d2611c90565b803273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611738576040517f4af0169e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a5481611744610bd9565b61174e9190612cc7565b1115611786576040517fb36c128400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c548111156117c2576040517fccfad01800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601560019054906101000a900460ff1615611809576040517fab35696f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b835181101561184c5761183984828151811061182b5761182a612e5d565b5b602002602001015184611dd4565b808061184490612e8c565b91505061180c565b50505050565b606061185d82611a8f565b611893576040517f2f9aab5800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061189d611f42565b905060008151116118bd57604051806020016040528060008152506118eb565b806118c784611fd4565b600e6040516020016118db93929190612fa4565b6040516020818303038152906040525b915050919050565b60105481565b6000806119053361108f565b836119109190612cc7565b905060115481111580156119275750601354601254105b156119355780915050611973565b60006119403361108f565b14801561194e575060115481115b801561195d5750601354601254105b1561196d57601154915050611973565b60009150505b919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611a14611c90565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611a83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7a90613047565b60405180910390fd5b611a8c81611d0e565b50565b600081611a9a611af6565b11158015611aa9575060005482105b8015611ae7575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b60008082905080611b0e611af6565b11611b9457600054811015611b935760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611b91575b60008103611b87576004600083600190039350838152602001908152602001600020549050611b5d565b8092505050611bc6565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611c4e868684612134565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b611c9861213d565b73ffffffffffffffffffffffffffffffffffffffff16611cb66111a1565b73ffffffffffffffffffffffffffffffffffffffff1614611d0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d03906130b3565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611dee828260405180602001604052806000815250612145565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611e18611aee565b8786866040518563ffffffff1660e01b8152600401611e3a9493929190613128565b6020604051808303816000875af1925050508015611e7657506040513d601f19601f82011682018060405250810190611e739190613189565b60015b611eef573d8060008114611ea6576040519150601f19603f3d011682016040523d82523d6000602084013e611eab565b606091505b506000815103611ee7576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600d8054611f5190612c67565b80601f0160208091040260200160405190810160405280929190818152602001828054611f7d90612c67565b8015611fca5780601f10611f9f57610100808354040283529160200191611fca565b820191906000526020600020905b815481529060010190602001808311611fad57829003601f168201915b5050505050905090565b60606000820361201b576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061212f565b600082905060005b6000821461204d57808061203690612e8c565b915050600a8261204691906131e5565b9150612023565b60008167ffffffffffffffff811115612069576120686127a3565b5b6040519080825280601f01601f19166020018201604052801561209b5781602001600182028036833780820191505090505b5090505b60008514612128576001826120b49190612d1d565b9150600a856120c39190613216565b60306120cf9190612cc7565b60f81b8183815181106120e5576120e4612e5d565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561212191906131e5565b945061209f565b8093505050505b919050565b60009392505050565b600033905090565b61214f83836121e2565b60008373ffffffffffffffffffffffffffffffffffffffff163b146121dd57600080549050600083820390505b61218f6000868380600101945086611df2565b6121c5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061217c5781600054146121da57600080fd5b50505b505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361224e576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008203612288576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6122956000848385611c31565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061230c836122fd6000866000611c37565b612306856123b4565b17611c5f565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210612330578060008190555050506123af6000848385611c8a565b505050565b60006001821460e11b9050919050565b8280546123d090612c67565b90600052602060002090601f0160209004810192826123f25760008555612439565b82601f1061240b57805160ff1916838001178555612439565b82800160010185558215612439579182015b8281111561243857825182559160200191906001019061241d565b5b509050612446919061244a565b5090565b5b8082111561246357600081600090555060010161244b565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6124b08161247b565b81146124bb57600080fd5b50565b6000813590506124cd816124a7565b92915050565b6000602082840312156124e9576124e8612471565b5b60006124f7848285016124be565b91505092915050565b60008115159050919050565b61251581612500565b82525050565b6000602082019050612530600083018461250c565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612570578082015181840152602081019050612555565b8381111561257f576000848401525b50505050565b6000601f19601f8301169050919050565b60006125a182612536565b6125ab8185612541565b93506125bb818560208601612552565b6125c481612585565b840191505092915050565b600060208201905081810360008301526125e98184612596565b905092915050565b6000819050919050565b612604816125f1565b811461260f57600080fd5b50565b600081359050612621816125fb565b92915050565b60006020828403121561263d5761263c612471565b5b600061264b84828501612612565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061267f82612654565b9050919050565b61268f81612674565b82525050565b60006020820190506126aa6000830184612686565b92915050565b6126b981612674565b81146126c457600080fd5b50565b6000813590506126d6816126b0565b92915050565b600080604083850312156126f3576126f2612471565b5b6000612701858286016126c7565b925050602061271285828601612612565b9150509250929050565b612725816125f1565b82525050565b6000602082019050612740600083018461271c565b92915050565b60008060006060848603121561275f5761275e612471565b5b600061276d868287016126c7565b935050602061277e868287016126c7565b925050604061278f86828701612612565b9150509250925092565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6127db82612585565b810181811067ffffffffffffffff821117156127fa576127f96127a3565b5b80604052505050565b600061280d612467565b905061281982826127d2565b919050565b600067ffffffffffffffff821115612839576128386127a3565b5b61284282612585565b9050602081019050919050565b82818337600083830152505050565b600061287161286c8461281e565b612803565b90508281526020810184848401111561288d5761288c61279e565b5b61289884828561284f565b509392505050565b600082601f8301126128b5576128b4612799565b5b81356128c584826020860161285e565b91505092915050565b6000602082840312156128e4576128e3612471565b5b600082013567ffffffffffffffff81111561290257612901612476565b5b61290e848285016128a0565b91505092915050565b60006020828403121561292d5761292c612471565b5b600061293b848285016126c7565b91505092915050565b61294d81612500565b811461295857600080fd5b50565b60008135905061296a81612944565b92915050565b6000806040838503121561298757612986612471565b5b6000612995858286016126c7565b92505060206129a68582860161295b565b9150509250929050565b600067ffffffffffffffff8211156129cb576129ca6127a3565b5b6129d482612585565b9050602081019050919050565b60006129f46129ef846129b0565b612803565b905082815260208101848484011115612a1057612a0f61279e565b5b612a1b84828561284f565b509392505050565b600082601f830112612a3857612a37612799565b5b8135612a488482602086016129e1565b91505092915050565b60008060008060808587031215612a6b57612a6a612471565b5b6000612a79878288016126c7565b9450506020612a8a878288016126c7565b9350506040612a9b87828801612612565b925050606085013567ffffffffffffffff811115612abc57612abb612476565b5b612ac887828801612a23565b91505092959194509250565b600067ffffffffffffffff821115612aef57612aee6127a3565b5b602082029050602081019050919050565b600080fd5b6000612b18612b1384612ad4565b612803565b90508083825260208201905060208402830185811115612b3b57612b3a612b00565b5b835b81811015612b645780612b5088826126c7565b845260208401935050602081019050612b3d565b5050509392505050565b600082601f830112612b8357612b82612799565b5b8135612b93848260208601612b05565b91505092915050565b60008060408385031215612bb357612bb2612471565b5b600083013567ffffffffffffffff811115612bd157612bd0612476565b5b612bdd85828601612b6e565b9250506020612bee85828601612612565b9150509250929050565b60008060408385031215612c0f57612c0e612471565b5b6000612c1d858286016126c7565b9250506020612c2e858286016126c7565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612c7f57607f821691505b602082108103612c9257612c91612c38565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612cd2826125f1565b9150612cdd836125f1565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612d1257612d11612c98565b5b828201905092915050565b6000612d28826125f1565b9150612d33836125f1565b925082821015612d4657612d45612c98565b5b828203905092915050565b6000612d5c826125f1565b9150612d67836125f1565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612da057612d9f612c98565b5b828202905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000612de1601f83612541565b9150612dec82612dab565b602082019050919050565b60006020820190508181036000830152612e1081612dd4565b9050919050565b600081905092915050565b50565b6000612e32600083612e17565b9150612e3d82612e22565b600082019050919050565b6000612e5382612e25565b9150819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000612e97826125f1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612ec957612ec8612c98565b5b600182019050919050565b600081905092915050565b6000612eea82612536565b612ef48185612ed4565b9350612f04818560208601612552565b80840191505092915050565b60008190508160005260206000209050919050565b60008154612f3281612c67565b612f3c8186612ed4565b94506001821660008114612f575760018114612f6857612f9b565b60ff19831686528186019350612f9b565b612f7185612f10565b60005b83811015612f9357815481890152600182019150602081019050612f74565b838801955050505b50505092915050565b6000612fb08286612edf565b9150612fbc8285612edf565b9150612fc88284612f25565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613031602683612541565b915061303c82612fd5565b604082019050919050565b6000602082019050818103600083015261306081613024565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061309d602083612541565b91506130a882613067565b602082019050919050565b600060208201905081810360008301526130cc81613090565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006130fa826130d3565b61310481856130de565b9350613114818560208601612552565b61311d81612585565b840191505092915050565b600060808201905061313d6000830187612686565b61314a6020830186612686565b613157604083018561271c565b818103606083015261316981846130ef565b905095945050505050565b600081519050613183816124a7565b92915050565b60006020828403121561319f5761319e612471565b5b60006131ad84828501613174565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006131f0826125f1565b91506131fb836125f1565b92508261320b5761320a6131b6565b5b828204905092915050565b6000613221826125f1565b915061322c836125f1565b92508261323c5761323b6131b6565b5b82820690509291505056fea2646970667358221220cd3e1c2ce97f934669edb1e3e4363cb33d3d6b5124ddbb5fbe08c5d20cefa2ff64736f6c634300080d003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d6238467066456a66744d776e57774e6a6951533546706856696e623333566b587673395972533657547156742f00000000000000000000
Deployed Bytecode
0x60806040526004361061020f5760003560e01c80638456cb5911610118578063b245ddf9116100a0578063c87b56dd1161006f578063c87b56dd1461073c578063e098ff7314610779578063e2edb001146107a4578063e985e9c5146107e1578063f2fde38b1461081e5761020f565b8063b245ddf914610696578063b88d4fde146106bf578063bc951b91146106e8578063c204642c146107135761020f565b806395d89b41116100e757806395d89b41146105d2578063a0712d68146105fd578063a22cb46514610619578063b071401b14610642578063b0fe64141461066b5761020f565b80638456cb591461053c5780638da5cb5b1461055357806393e90b231461057e57806394354fd0146105a75761020f565b80633ccfd60b1161019b5780636352211e1161016a5780636352211e14610459578063676f26021461049657806370a08231146104bf578063715018a6146104fc578063766b7d09146105135761020f565b80633ccfd60b146103c757806342842e0e146103de5780634d534a7d14610407578063626ab3b8146104305761020f565b806311b4a832116101e257806311b4a832146102e257806318160ddd1461031f57806322f4596f1461034a57806323b872dd146103755780633b4c4b251461039e5761020f565b806301ffc9a71461021457806306fdde0314610251578063081812fc1461027c578063095ea7b3146102b9575b600080fd5b34801561022057600080fd5b5061023b600480360381019061023691906124d3565b610847565b604051610248919061251b565b60405180910390f35b34801561025d57600080fd5b506102666108d9565b60405161027391906125cf565b60405180910390f35b34801561028857600080fd5b506102a3600480360381019061029e9190612627565b61096b565b6040516102b09190612695565b60405180910390f35b3480156102c557600080fd5b506102e060048036038101906102db91906126dc565b6109e7565b005b3480156102ee57600080fd5b5061030960048036038101906103049190612627565b610b28565b604051610316919061272b565b60405180910390f35b34801561032b57600080fd5b50610334610bd9565b604051610341919061272b565b60405180910390f35b34801561035657600080fd5b5061035f610bf0565b60405161036c919061272b565b60405180910390f35b34801561038157600080fd5b5061039c60048036038101906103979190612746565b610bf6565b005b3480156103aa57600080fd5b506103c560048036038101906103c09190612627565b610f18565b005b3480156103d357600080fd5b506103dc610f2a565b005b3480156103ea57600080fd5b5061040560048036038101906104009190612746565b611007565b005b34801561041357600080fd5b5061042e600480360381019061042991906128ce565b611027565b005b34801561043c57600080fd5b50610457600480360381019061045291906128ce565b611049565b005b34801561046557600080fd5b50610480600480360381019061047b9190612627565b61106b565b60405161048d9190612695565b60405180910390f35b3480156104a257600080fd5b506104bd60048036038101906104b89190612627565b61107d565b005b3480156104cb57600080fd5b506104e660048036038101906104e19190612917565b61108f565b6040516104f3919061272b565b60405180910390f35b34801561050857600080fd5b50610511611147565b005b34801561051f57600080fd5b5061053a60048036038101906105359190612627565b61115b565b005b34801561054857600080fd5b5061055161116d565b005b34801561055f57600080fd5b506105686111a1565b6040516105759190612695565b60405180910390f35b34801561058a57600080fd5b506105a560048036038101906105a09190612627565b6111cb565b005b3480156105b357600080fd5b506105bc6111dd565b6040516105c9919061272b565b60405180910390f35b3480156105de57600080fd5b506105e76111e3565b6040516105f491906125cf565b60405180910390f35b61061760048036038101906106129190612627565b611275565b005b34801561062557600080fd5b50610640600480360381019061063b9190612970565b6114b0565b005b34801561064e57600080fd5b5061066960048036038101906106649190612627565b611627565b005b34801561067757600080fd5b50610680611639565b60405161068d919061272b565b60405180910390f35b3480156106a257600080fd5b506106bd60048036038101906106b89190612627565b61163f565b005b3480156106cb57600080fd5b506106e660048036038101906106e19190612a51565b611651565b005b3480156106f457600080fd5b506106fd6116c4565b60405161070a919061272b565b60405180910390f35b34801561071f57600080fd5b5061073a60048036038101906107359190612b9c565b6116ca565b005b34801561074857600080fd5b50610763600480360381019061075e9190612627565b611852565b60405161077091906125cf565b60405180910390f35b34801561078557600080fd5b5061078e6118f3565b60405161079b919061272b565b60405180910390f35b3480156107b057600080fd5b506107cb60048036038101906107c69190612627565b6118f9565b6040516107d8919061272b565b60405180910390f35b3480156107ed57600080fd5b5061080860048036038101906108039190612bf8565b611978565b604051610815919061251b565b60405180910390f35b34801561082a57600080fd5b5061084560048036038101906108409190612917565b611a0c565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108a257506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108d25750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546108e890612c67565b80601f016020809104026020016040519081016040528092919081815260200182805461091490612c67565b80156109615780601f1061093657610100808354040283529160200191610961565b820191906000526020600020905b81548152906001019060200180831161094457829003601f168201915b5050505050905090565b600061097682611a8f565b6109ac576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109f28261106b565b90508073ffffffffffffffffffffffffffffffffffffffff16610a13611aee565b73ffffffffffffffffffffffffffffffffffffffff1614610a7657610a3f81610a3a611aee565b611978565b610a75576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600080610b343361108f565b83610b3f9190612cc7565b90506011548111158015610b565750601354601254105b15610b6657600f54915050610bd4565b6000610b713361108f565b148015610b7f575060115481115b8015610b8e5750601354601254105b15610bbc57600060115484610ba39190612d1d565b601054610bb09190612d51565b90508092505050610bd4565b600083601054610bcc9190612d51565b905080925050505b919050565b6000610be3611af6565b6001546000540303905090565b600a5481565b6000610c0182611aff565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c68576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610c7484611bcb565b91509150610c8a8187610c85611aee565b611bed565b610cd657610c9f86610c9a611aee565b611978565b610cd5576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610d3c576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d498686866001611c31565b8015610d5457600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610e2285610dfe888887611c37565b7c020000000000000000000000000000000000000000000000000000000017611c5f565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610ea85760006001850190506000600460008381526020019081526020016000205403610ea6576000548114610ea5578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610f108686866001611c8a565b505050505050565b610f20611c90565b80600a8190555050565b610f32611c90565b600260095403610f77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6e90612df7565b60405180910390fd5b60026009819055506000610f896111a1565b73ffffffffffffffffffffffffffffffffffffffff1647604051610fac90612e48565b60006040518083038185875af1925050503d8060008114610fe9576040519150601f19603f3d011682016040523d82523d6000602084013e610fee565b606091505b5050905080610ffc57600080fd5b506001600981905550565b61102283838360405180602001604052806000815250611651565b505050565b61102f611c90565b80600e90805190602001906110459291906123c4565b5050565b611051611c90565b80600d90805190602001906110679291906123c4565b5050565b600061107682611aff565b9050919050565b611085611c90565b8060108190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036110f6576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61114f611c90565b6111596000611d0e565b565b611163611c90565b80600b8190555050565b611175611c90565b601560019054906101000a900460ff1615601560016101000a81548160ff021916908315150217905550565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6111d3611c90565b8060118190555050565b600c5481565b6060600380546111f290612c67565b80601f016020809104026020016040519081016040528092919081815260200182805461121e90612c67565b801561126b5780601f106112405761010080835404028352916020019161126b565b820191906000526020600020905b81548152906001019060200180831161124e57829003601f168201915b5050505050905090565b803273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146112db576040517f4af0169e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a54816112e7610bd9565b6112f19190612cc7565b1115611329576040517fb36c128400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c54811115611365576040517fccfad01800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601560019054906101000a900460ff16156113ac576040517fab35696f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600b54816113ba3361108f565b6113c49190612cc7565b11156113fc576040517f6a3eaa7b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600081108061140c5750600b5481115b15611443576040517fccfad01800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61144c81610b28565b341015611485576040517fd44b3c6200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61148f3384611dd4565b611498836118f9565b6012546114a59190612cc7565b601281905550505050565b6114b8611aee565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361151c576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611529611aee565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166115d6611aee565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161161b919061251b565b60405180910390a35050565b61162f611c90565b80600c8190555050565b60115481565b611647611c90565b8060138190555050565b61165c848484610bf6565b60008373ffffffffffffffffffffffffffffffffffffffff163b146116be5761168784848484611df2565b6116bd576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600b5481565b6116d2611c90565b803273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611738576040517f4af0169e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a5481611744610bd9565b61174e9190612cc7565b1115611786576040517fb36c128400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c548111156117c2576040517fccfad01800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601560019054906101000a900460ff1615611809576040517fab35696f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b835181101561184c5761183984828151811061182b5761182a612e5d565b5b602002602001015184611dd4565b808061184490612e8c565b91505061180c565b50505050565b606061185d82611a8f565b611893576040517f2f9aab5800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061189d611f42565b905060008151116118bd57604051806020016040528060008152506118eb565b806118c784611fd4565b600e6040516020016118db93929190612fa4565b6040516020818303038152906040525b915050919050565b60105481565b6000806119053361108f565b836119109190612cc7565b905060115481111580156119275750601354601254105b156119355780915050611973565b60006119403361108f565b14801561194e575060115481115b801561195d5750601354601254105b1561196d57601154915050611973565b60009150505b919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611a14611c90565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611a83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7a90613047565b60405180910390fd5b611a8c81611d0e565b50565b600081611a9a611af6565b11158015611aa9575060005482105b8015611ae7575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b60008082905080611b0e611af6565b11611b9457600054811015611b935760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611b91575b60008103611b87576004600083600190039350838152602001908152602001600020549050611b5d565b8092505050611bc6565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611c4e868684612134565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b611c9861213d565b73ffffffffffffffffffffffffffffffffffffffff16611cb66111a1565b73ffffffffffffffffffffffffffffffffffffffff1614611d0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d03906130b3565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611dee828260405180602001604052806000815250612145565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611e18611aee565b8786866040518563ffffffff1660e01b8152600401611e3a9493929190613128565b6020604051808303816000875af1925050508015611e7657506040513d601f19601f82011682018060405250810190611e739190613189565b60015b611eef573d8060008114611ea6576040519150601f19603f3d011682016040523d82523d6000602084013e611eab565b606091505b506000815103611ee7576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600d8054611f5190612c67565b80601f0160208091040260200160405190810160405280929190818152602001828054611f7d90612c67565b8015611fca5780601f10611f9f57610100808354040283529160200191611fca565b820191906000526020600020905b815481529060010190602001808311611fad57829003601f168201915b5050505050905090565b60606000820361201b576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061212f565b600082905060005b6000821461204d57808061203690612e8c565b915050600a8261204691906131e5565b9150612023565b60008167ffffffffffffffff811115612069576120686127a3565b5b6040519080825280601f01601f19166020018201604052801561209b5781602001600182028036833780820191505090505b5090505b60008514612128576001826120b49190612d1d565b9150600a856120c39190613216565b60306120cf9190612cc7565b60f81b8183815181106120e5576120e4612e5d565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561212191906131e5565b945061209f565b8093505050505b919050565b60009392505050565b600033905090565b61214f83836121e2565b60008373ffffffffffffffffffffffffffffffffffffffff163b146121dd57600080549050600083820390505b61218f6000868380600101945086611df2565b6121c5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061217c5781600054146121da57600080fd5b50505b505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361224e576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008203612288576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6122956000848385611c31565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061230c836122fd6000866000611c37565b612306856123b4565b17611c5f565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210612330578060008190555050506123af6000848385611c8a565b505050565b60006001821460e11b9050919050565b8280546123d090612c67565b90600052602060002090601f0160209004810192826123f25760008555612439565b82601f1061240b57805160ff1916838001178555612439565b82800160010185558215612439579182015b8281111561243857825182559160200191906001019061241d565b5b509050612446919061244a565b5090565b5b8082111561246357600081600090555060010161244b565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6124b08161247b565b81146124bb57600080fd5b50565b6000813590506124cd816124a7565b92915050565b6000602082840312156124e9576124e8612471565b5b60006124f7848285016124be565b91505092915050565b60008115159050919050565b61251581612500565b82525050565b6000602082019050612530600083018461250c565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612570578082015181840152602081019050612555565b8381111561257f576000848401525b50505050565b6000601f19601f8301169050919050565b60006125a182612536565b6125ab8185612541565b93506125bb818560208601612552565b6125c481612585565b840191505092915050565b600060208201905081810360008301526125e98184612596565b905092915050565b6000819050919050565b612604816125f1565b811461260f57600080fd5b50565b600081359050612621816125fb565b92915050565b60006020828403121561263d5761263c612471565b5b600061264b84828501612612565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061267f82612654565b9050919050565b61268f81612674565b82525050565b60006020820190506126aa6000830184612686565b92915050565b6126b981612674565b81146126c457600080fd5b50565b6000813590506126d6816126b0565b92915050565b600080604083850312156126f3576126f2612471565b5b6000612701858286016126c7565b925050602061271285828601612612565b9150509250929050565b612725816125f1565b82525050565b6000602082019050612740600083018461271c565b92915050565b60008060006060848603121561275f5761275e612471565b5b600061276d868287016126c7565b935050602061277e868287016126c7565b925050604061278f86828701612612565b9150509250925092565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6127db82612585565b810181811067ffffffffffffffff821117156127fa576127f96127a3565b5b80604052505050565b600061280d612467565b905061281982826127d2565b919050565b600067ffffffffffffffff821115612839576128386127a3565b5b61284282612585565b9050602081019050919050565b82818337600083830152505050565b600061287161286c8461281e565b612803565b90508281526020810184848401111561288d5761288c61279e565b5b61289884828561284f565b509392505050565b600082601f8301126128b5576128b4612799565b5b81356128c584826020860161285e565b91505092915050565b6000602082840312156128e4576128e3612471565b5b600082013567ffffffffffffffff81111561290257612901612476565b5b61290e848285016128a0565b91505092915050565b60006020828403121561292d5761292c612471565b5b600061293b848285016126c7565b91505092915050565b61294d81612500565b811461295857600080fd5b50565b60008135905061296a81612944565b92915050565b6000806040838503121561298757612986612471565b5b6000612995858286016126c7565b92505060206129a68582860161295b565b9150509250929050565b600067ffffffffffffffff8211156129cb576129ca6127a3565b5b6129d482612585565b9050602081019050919050565b60006129f46129ef846129b0565b612803565b905082815260208101848484011115612a1057612a0f61279e565b5b612a1b84828561284f565b509392505050565b600082601f830112612a3857612a37612799565b5b8135612a488482602086016129e1565b91505092915050565b60008060008060808587031215612a6b57612a6a612471565b5b6000612a79878288016126c7565b9450506020612a8a878288016126c7565b9350506040612a9b87828801612612565b925050606085013567ffffffffffffffff811115612abc57612abb612476565b5b612ac887828801612a23565b91505092959194509250565b600067ffffffffffffffff821115612aef57612aee6127a3565b5b602082029050602081019050919050565b600080fd5b6000612b18612b1384612ad4565b612803565b90508083825260208201905060208402830185811115612b3b57612b3a612b00565b5b835b81811015612b645780612b5088826126c7565b845260208401935050602081019050612b3d565b5050509392505050565b600082601f830112612b8357612b82612799565b5b8135612b93848260208601612b05565b91505092915050565b60008060408385031215612bb357612bb2612471565b5b600083013567ffffffffffffffff811115612bd157612bd0612476565b5b612bdd85828601612b6e565b9250506020612bee85828601612612565b9150509250929050565b60008060408385031215612c0f57612c0e612471565b5b6000612c1d858286016126c7565b9250506020612c2e858286016126c7565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612c7f57607f821691505b602082108103612c9257612c91612c38565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612cd2826125f1565b9150612cdd836125f1565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612d1257612d11612c98565b5b828201905092915050565b6000612d28826125f1565b9150612d33836125f1565b925082821015612d4657612d45612c98565b5b828203905092915050565b6000612d5c826125f1565b9150612d67836125f1565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612da057612d9f612c98565b5b828202905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000612de1601f83612541565b9150612dec82612dab565b602082019050919050565b60006020820190508181036000830152612e1081612dd4565b9050919050565b600081905092915050565b50565b6000612e32600083612e17565b9150612e3d82612e22565b600082019050919050565b6000612e5382612e25565b9150819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000612e97826125f1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612ec957612ec8612c98565b5b600182019050919050565b600081905092915050565b6000612eea82612536565b612ef48185612ed4565b9350612f04818560208601612552565b80840191505092915050565b60008190508160005260206000209050919050565b60008154612f3281612c67565b612f3c8186612ed4565b94506001821660008114612f575760018114612f6857612f9b565b60ff19831686528186019350612f9b565b612f7185612f10565b60005b83811015612f9357815481890152600182019150602081019050612f74565b838801955050505b50505092915050565b6000612fb08286612edf565b9150612fbc8285612edf565b9150612fc88284612f25565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613031602683612541565b915061303c82612fd5565b604082019050919050565b6000602082019050818103600083015261306081613024565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061309d602083612541565b91506130a882613067565b602082019050919050565b600060208201905081810360008301526130cc81613090565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006130fa826130d3565b61310481856130de565b9350613114818560208601612552565b61311d81612585565b840191505092915050565b600060808201905061313d6000830187612686565b61314a6020830186612686565b613157604083018561271c565b818103606083015261316981846130ef565b905095945050505050565b600081519050613183816124a7565b92915050565b60006020828403121561319f5761319e612471565b5b60006131ad84828501613174565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006131f0826125f1565b91506131fb836125f1565b92508261320b5761320a6131b6565b5b828204905092915050565b6000613221826125f1565b915061322c836125f1565b92508261323c5761323b6131b6565b5b82820690509291505056fea2646970667358221220cd3e1c2ce97f934669edb1e3e4363cb33d3d6b5124ddbb5fbe08c5d20cefa2ff64736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d6238467066456a66744d776e57774e6a6951533546706856696e623333566b587673395972533657547156742f00000000000000000000
-----Decoded View---------------
Arg [0] : _initBaseURI (string): ipfs://Qmb8FpfEjftMwnWwNjiQS5FphVinb33VkXvs9YrS6WTqVt/
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [2] : 697066733a2f2f516d6238467066456a66744d776e57774e6a69515335467068
Arg [3] : 56696e623333566b587673395972533657547156742f00000000000000000000
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.