ERC-721
Overview
Max Total Supply
6,000 GenZero
Holders
509
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 GenZeroLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GenZero
Compiler Version
v0.8.7+commit.e28d00a7
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.4; import "./ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./MerkleDistributor.sol"; contract GenZero is ERC721A, MerkleDistributor, Ownable, ReentrancyGuard { using Strings for string; uint256 public constant maxGenZero = 6000; uint256 public maxPerMint = 100; bool public mintingIsActive = false; bool public bioUpgradingIsActive = false; bool public publicIsActive = false; string public currentSeasonalCollectionURI; uint256 public mintPrice; // Mapping between tokenId => seasonal collectiong baseURI mapping(uint256 => string) private _gensRegistry; event GenUpdated(uint256 tokenId, string newBaseURI); constructor() ERC721A("Eternity Complex", "GenZero") {} modifier ableToMint(uint256 numberOfGens) { require(totalSupply() + numberOfGens <= maxGenZero, 'Max Token Supply'); _; } /* * Withdraw funds */ function withdraw() public onlyOwner { require(address(this).balance > 0, "Zero balance"); uint256 balance = address(this).balance; Address.sendValue(payable(msg.sender), balance); } /* * Set Mint Price */ function setMintPrice(uint256 newPrice) public onlyOwner { mintPrice = newPrice; } function setMintMax(uint256 newMax) public onlyOwner { maxPerMint = newMax; } //--------------------------------------------------------------------------------- /** * Current on-going collection that is avaiable to BioUpgrade or use as base for minting */ function setCurrentCollectionBaseURI(string memory newuri) public onlyOwner { currentSeasonalCollectionURI = newuri; } /* * Pause bioupgrading if active, make active if paused */ function flipBioUpgradingState() public onlyOwner { bioUpgradingIsActive = !bioUpgradingIsActive; } /* * Pause minting if active, make active if paused */ function flipMintingState() public onlyOwner { mintingIsActive = !mintingIsActive; } /* * Pause minting if active, make active if paused */ function flipPublicState() public onlyOwner { publicIsActive = !publicIsActive; } /** * allow list */ function setAllowList(bytes32 merkleRoot) external onlyOwner { _setAllowList(merkleRoot); } /** * arcClaim */ function arcListMint(uint256 numberOfGens, bytes32[] memory merkleProof) external ableToClaim(msg.sender, merkleProof) ableToMint(numberOfGens) nonReentrant { require(mintingIsActive, "claim not active"); require(numberOfGens > 0, "cannot mint zero"); for(uint i = 0; i < numberOfGens; i++) { _gensRegistry[((_currentIndex) + i)] = currentSeasonalCollectionURI; } _setAllowListMinted(msg.sender, numberOfGens); _safeMint(msg.sender, numberOfGens); } /** * public */ function publicMint(uint256 numberOfGens) external payable ableToMint(numberOfGens) nonReentrant { require(publicIsActive, "public not active"); require(numberOfGens <= maxPerMint, 'over max mint'); require(numberOfGens * mintPrice == msg.value, 'Ether value not correct'); for(uint i = 0; i < numberOfGens; i++) { _gensRegistry[((_currentIndex) + i)] = currentSeasonalCollectionURI; } _safeMint(msg.sender, numberOfGens); } /** * BioUpgrading existing Gens. * Changing current baseURI of a token to a new one, that is current Season topic. */ function bioUpgrade(uint256[] memory tokenIds) public payable { require(bioUpgradingIsActive, "BioUpgrading not active"); require(tokenIds.length * mintPrice == msg.value, 'Ether value not correct'); for(uint i = 0; i < tokenIds.length; i++) { // Allow bioupgrading for owner only if (ownerOf(tokenIds[i]) != msg.sender || !_exists(tokenIds[i])) { require(false, "Gen not owned"); } } for(uint i = 0; i < tokenIds.length; i++) { require(tokenIds[i] < maxGenZero, "Token exceed max supply"); _gensRegistry[tokenIds[i]] = currentSeasonalCollectionURI; emit GenUpdated(tokenIds[i], currentSeasonalCollectionURI); } } /// ERC721 related /** * @dev See {ERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "nonexistent token"); string memory baseURI = _gensRegistry[tokenId]; return string(abi.encodePacked(baseURI, Strings.toString(tokenId), '.json')); } function _baseURI() internal view override returns (string memory) { return currentSeasonalCollectionURI; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol'; contract MerkleDistributor { bytes32 public merkleRoot; mapping(address => uint256) private _allowListNumMinted; /** * @dev emitted when an account has claimed some tokens */ event Claimed(address indexed account, uint256 amount); /** * @dev emitted when the merkle root has changed */ event MerkleRootChanged(bytes32 merkleRoot); /** * @dev throws when number of tokens exceeds total token amount */ modifier tokensAvailable( address to, uint256 numberOfTokens, uint256 totalTokenAmount ) { uint256 claimed = getAllowListMinted(to); require(claimed + numberOfTokens <= totalTokenAmount, 'Purchase would exceed number of tokens allotted'); _; } /** * @dev throws when parameters sent by claimer is incorrect */ modifier ableToClaim(address claimer, bytes32[] memory proof) { require(onAllowList(claimer, proof), 'Not on allow list'); _; } /** * @dev sets the merkle root */ function _setAllowList(bytes32 merkleRoot_) internal virtual { merkleRoot = merkleRoot_; emit MerkleRootChanged(merkleRoot); } /** * @dev adds the number of tokens to the incoming address */ function _setAllowListMinted(address to, uint256 numberOfTokens) internal virtual { _allowListNumMinted[to] += numberOfTokens; emit Claimed(to, numberOfTokens); } /** * @dev gets the number of tokens from the address */ function getAllowListMinted(address from) public view virtual returns (uint256) { return _allowListNumMinted[from]; } /** * @dev checks if the claimer has a valid proof */ function onAllowList(address claimer, bytes32[] memory proof) public view returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(claimer)); return MerkleProof.verify(proof, merkleRoot, leaf); } }
// 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 (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 v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; /** * @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 Context, ERC165, IERC721A { using Address for address; using Strings for uint256; // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _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 _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // 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(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ 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(); } } /** * 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 See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * 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) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // 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. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @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, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner) if(!isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @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 == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.isContract()) 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 && !_ownerships[tokenId].burned; } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // 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 { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } 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 { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // 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 { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } 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 Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @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 IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A is IERC721, IERC721Metadata { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); // Compiler will pack this into a single 256bit word. 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; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"newBaseURI","type":"string"}],"name":"GenUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"MerkleRootChanged","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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfGens","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"arcListMint","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":"tokenIds","type":"uint256[]"}],"name":"bioUpgrade","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"bioUpgradingIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentSeasonalCollectionURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipBioUpgradingState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipMintingState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipPublicState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"}],"name":"getAllowListMinted","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":"maxGenZero","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintingIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"claimer","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"onAllowList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfGens","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","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":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setCurrentCollectionBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMax","type":"uint256"}],"name":"setMintMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setMintPrice","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
60806040526064600c556000600d60006101000a81548160ff0219169083151502179055506000600d60016101000a81548160ff0219169083151502179055506000600d60026101000a81548160ff0219169083151502179055503480156200006757600080fd5b506040518060400160405280601081526020017f457465726e69747920436f6d706c6578000000000000000000000000000000008152506040518060400160405280600781526020017f47656e5a65726f000000000000000000000000000000000000000000000000008152508160029080519060200190620000ec9291906200021f565b508060039080519060200190620001059291906200021f565b50620001166200014c60201b60201c565b60008190555050506200013e620001326200015160201b60201c565b6200015960201b60201c565b6001600b8190555062000334565b600090565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200022d90620002cf565b90600052602060002090601f0160209004810192826200025157600085556200029d565b82601f106200026c57805160ff19168380011785556200029d565b828001600101855582156200029d579182015b828111156200029c5782518255916020019190600101906200027f565b5b509050620002ac9190620002b0565b5090565b5b80821115620002cb576000816000905550600101620002b1565b5090565b60006002820490506001821680620002e857607f821691505b60208210811415620002ff57620002fe62000305565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6146c180620003446000396000f3fe6080604052600436106102255760003560e01c80636352211e11610123578063a216a49d116100ab578063c87b56dd1161006f578063c87b56dd146107a1578063e985e9c5146107de578063f2fde38b1461081b578063f4a0a52814610844578063f655ff221461086d57610225565b8063a216a49d146106be578063a22cb465146106e9578063afc3cb4914610712578063b32c56801461073b578063b88d4fde1461077857610225565b80637efd1a68116100f25780637efd1a681461061157806384584d0714610628578063882b1808146106515780638da5cb5b1461066857806395d89b411461069357610225565b80636352211e146105555780636817c76c1461059257806370a08231146105bd578063715018a6146105fa57610225565b80632bad62e5116101b157806342842e0e1161017557806342842e0e146104705780634728b9f414610499578063507e094f146104c45780635a504e74146104ef5780635ea1ef521461051857610225565b80632bad62e5146103bc5780632db11544146103e75780632eb4a7ab1461040357806333cc4c291461042e5780633ccfd60b1461045957610225565b8063095ea7b3116101f8578063095ea7b3146102fa57806318160ddd14610323578063184c4a3f1461034e5780631e2a23c01461037757806323b872dd1461039357610225565b806301ffc9a71461022a578063033a02d61461026757806306fdde0314610292578063081812fc146102bd575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c91906134e9565b610884565b60405161025e9190613aea565b60405180910390f35b34801561027357600080fd5b5061027c610966565b6040516102899190613aea565b60405180910390f35b34801561029e57600080fd5b506102a7610979565b6040516102b49190613b20565b60405180910390f35b3480156102c957600080fd5b506102e460048036038101906102df919061358c565b610a0b565b6040516102f19190613a83565b60405180910390f35b34801561030657600080fd5b50610321600480360381019061031c9190613433565b610a87565b005b34801561032f57600080fd5b50610338610b8c565b6040516103459190613d62565b60405180910390f35b34801561035a57600080fd5b50610375600480360381019061037091906135b9565b610ba3565b005b610391600480360381019061038c9190613473565b610da2565b005b34801561039f57600080fd5b506103ba60048036038101906103b591906132c1565b611041565b005b3480156103c857600080fd5b506103d1611051565b6040516103de9190613d62565b60405180910390f35b61040160048036038101906103fc919061358c565b611057565b005b34801561040f57600080fd5b5061041861124f565b6040516104259190613b05565b60405180910390f35b34801561043a57600080fd5b50610443611255565b6040516104509190613b20565b60405180910390f35b34801561046557600080fd5b5061046e6112e3565b005b34801561047c57600080fd5b50610497600480360381019061049291906132c1565b611340565b005b3480156104a557600080fd5b506104ae611360565b6040516104bb9190613aea565b60405180910390f35b3480156104d057600080fd5b506104d9611373565b6040516104e69190613d62565b60405180910390f35b3480156104fb57600080fd5b5061051660048036038101906105119190613543565b611379565b005b34801561052457600080fd5b5061053f600480360381019061053a9190613254565b61139b565b60405161054c9190613d62565b60405180910390f35b34801561056157600080fd5b5061057c6004803603810190610577919061358c565b6113e4565b6040516105899190613a83565b60405180910390f35b34801561059e57600080fd5b506105a76113fa565b6040516105b49190613d62565b60405180910390f35b3480156105c957600080fd5b506105e460048036038101906105df9190613254565b611400565b6040516105f19190613d62565b60405180910390f35b34801561060657600080fd5b5061060f6114d0565b005b34801561061d57600080fd5b506106266114e4565b005b34801561063457600080fd5b5061064f600480360381019061064a91906134bc565b611518565b005b34801561065d57600080fd5b5061066661152c565b005b34801561067457600080fd5b5061067d611560565b60405161068a9190613a83565b60405180910390f35b34801561069f57600080fd5b506106a861158a565b6040516106b59190613b20565b60405180910390f35b3480156106ca57600080fd5b506106d361161c565b6040516106e09190613aea565b60405180910390f35b3480156106f557600080fd5b50610710600480360381019061070b91906133f3565b61162f565b005b34801561071e57600080fd5b506107396004803603810190610734919061358c565b6117a7565b005b34801561074757600080fd5b50610762600480360381019061075d9190613397565b6117b9565b60405161076f9190613aea565b60405180910390f35b34801561078457600080fd5b5061079f600480360381019061079a9190613314565b6117fb565b005b3480156107ad57600080fd5b506107c860048036038101906107c3919061358c565b611873565b6040516107d59190613b20565b60405180910390f35b3480156107ea57600080fd5b5061080560048036038101906108009190613281565b61198f565b6040516108129190613aea565b60405180910390f35b34801561082757600080fd5b50610842600480360381019061083d9190613254565b611a23565b005b34801561085057600080fd5b5061086b6004803603810190610866919061358c565b611aa7565b005b34801561087957600080fd5b50610882611ab9565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061094f57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061095f575061095e82611aed565b5b9050919050565b600d60029054906101000a900460ff1681565b606060028054610988906140c4565b80601f01602080910402602001604051908101604052809291908181526020018280546109b4906140c4565b8015610a015780601f106109d657610100808354040283529160200191610a01565b820191906000526020600020905b8154815290600101906020018083116109e457829003601f168201915b5050505050905090565b6000610a1682611b57565b610a4c576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a92826113e4565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610afa576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b19611ba5565b73ffffffffffffffffffffffffffffffffffffffff1614610b7c57610b4581610b40611ba5565b61198f565b610b7b576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b610b87838383611bad565b505050565b6000610b96611c5f565b6001546000540303905090565b3381610baf82826117b9565b610bee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be590613b42565b60405180910390fd5b8361177081610bfb610b8c565b610c059190613eef565b1115610c46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3d90613c62565b60405180910390fd5b6002600b541415610c8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8390613d02565b60405180910390fd5b6002600b81905550600d60009054906101000a900460ff16610ce3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cda90613d42565b60405180910390fd5b60008511610d26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1d90613c82565b60405180910390fd5b60005b85811015610d7e57600e6010600083600054610d459190613eef565b8152602001908152602001600020908054610d5f906140c4565b610d6a929190612e47565b508080610d7690614127565b915050610d29565b50610d893386611c64565b610d933386611d0c565b6001600b819055505050505050565b600d60019054906101000a900460ff16610df1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de890613cc2565b60405180910390fd5b34600f548251610e019190613f76565b14610e41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3890613ca2565b60405180910390fd5b60005b8151811015610f24573373ffffffffffffffffffffffffffffffffffffffff16610e87838381518110610e7a57610e79614252565b5b60200260200101516113e4565b73ffffffffffffffffffffffffffffffffffffffff16141580610eca5750610ec8828281518110610ebb57610eba614252565b5b6020026020010151611b57565b155b15610f11576000610f10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0790613d22565b60405180910390fd5b5b8080610f1c90614127565b915050610e44565b5060005b815181101561103d57611770828281518110610f4757610f46614252565b5b602002602001015110610f8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8690613ba2565b60405180910390fd5b600e60106000848481518110610fa857610fa7614252565b5b60200260200101518152602001908152602001600020908054610fca906140c4565b610fd5929190612e47565b507f266bc8906175770d5acdb15c764e656bc33c059f4339d709a51e95be76c6bc7682828151811061100a57611009614252565b5b6020026020010151600e604051611022929190613d7d565b60405180910390a1808061103590614127565b915050610f28565b5050565b61104c838383611d2a565b505050565b61177081565b8061177081611064610b8c565b61106e9190613eef565b11156110af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110a690613c62565b60405180910390fd5b6002600b5414156110f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ec90613d02565b60405180910390fd5b6002600b81905550600d60029054906101000a900460ff1661114c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114390613c02565b60405180910390fd5b600c54821115611191576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118890613be2565b60405180910390fd5b34600f54836111a09190613f76565b146111e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d790613ca2565b60405180910390fd5b60005b8281101561123857600e60106000836000546111ff9190613eef565b8152602001908152602001600020908054611219906140c4565b611224929190612e47565b50808061123090614127565b9150506111e3565b506112433383611d0c565b6001600b819055505050565b60085481565b600e8054611262906140c4565b80601f016020809104026020016040519081016040528092919081815260200182805461128e906140c4565b80156112db5780601f106112b0576101008083540402835291602001916112db565b820191906000526020600020905b8154815290600101906020018083116112be57829003601f168201915b505050505081565b6112eb6121e0565b6000471161132e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132590613ce2565b60405180910390fd5b600047905061133d338261225e565b50565b61135b838383604051806020016040528060008152506117fb565b505050565b600d60009054906101000a900460ff1681565b600c5481565b6113816121e0565b80600e9080519060200190611397929190612ed4565b5050565b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60006113ef82612352565b600001519050919050565b600f5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611468576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6114d86121e0565b6114e260006125dd565b565b6114ec6121e0565b600d60019054906101000a900460ff1615600d60016101000a81548160ff021916908315150217905550565b6115206121e0565b611529816126a3565b50565b6115346121e0565b600d60029054906101000a900460ff1615600d60026101000a81548160ff021916908315150217905550565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611599906140c4565b80601f01602080910402602001604051908101604052809291908181526020018280546115c5906140c4565b80156116125780601f106115e757610100808354040283529160200191611612565b820191906000526020600020905b8154815290600101906020018083116115f557829003601f168201915b5050505050905090565b600d60019054906101000a900460ff1681565b611637611ba5565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561169c576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006116a9611ba5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611756611ba5565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161179b9190613aea565b60405180910390a35050565b6117af6121e0565b80600c8190555050565b600080836040516020016117cd9190613a24565b6040516020818303038152906040528051906020012090506117f283600854836126e6565b91505092915050565b611806848484611d2a565b6118258373ffffffffffffffffffffffffffffffffffffffff166126fd565b1561186d5761183684848484612720565b61186c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b606061187e82611b57565b6118bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b490613c22565b60405180910390fd5b60006010600084815260200190815260200160002080546118dd906140c4565b80601f0160208091040260200160405190810160405280929190818152602001828054611909906140c4565b80156119565780601f1061192b57610100808354040283529160200191611956565b820191906000526020600020905b81548152906001019060200180831161193957829003601f168201915b505050505090508061196784612880565b604051602001611978929190613a3f565b604051602081830303815290604052915050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611a2b6121e0565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611a9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9290613b62565b60405180910390fd5b611aa4816125dd565b50565b611aaf6121e0565b80600f8190555050565b611ac16121e0565b600d60009054906101000a900460ff1615600d60006101000a81548160ff021916908315150217905550565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081611b62611c5f565b11158015611b71575060005482105b8015611b9e575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600090565b80600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611cb39190613eef565b925050819055508173ffffffffffffffffffffffffffffffffffffffff167fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a82604051611d009190613d62565b60405180910390a25050565b611d268282604051806020016040528060008152506129e1565b5050565b6000611d3582612352565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614611da0576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff16611dc1611ba5565b73ffffffffffffffffffffffffffffffffffffffff161480611df05750611def85611dea611ba5565b61198f565b5b80611e355750611dfe611ba5565b73ffffffffffffffffffffffffffffffffffffffff16611e1d84610a0b565b73ffffffffffffffffffffffffffffffffffffffff16145b905080611e6e576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611ed5576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611ee28585856001612da3565b611eee60008487611bad565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561216e57600054821461216d57878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46121d98585856001612da9565b5050505050565b6121e8611ba5565b73ffffffffffffffffffffffffffffffffffffffff16612206611560565b73ffffffffffffffffffffffffffffffffffffffff161461225c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161225390613c42565b60405180910390fd5b565b804710156122a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229890613bc2565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516122c790613a6e565b60006040518083038185875af1925050503d8060008114612304576040519150601f19603f3d011682016040523d82523d6000602084013e612309565b606091505b505090508061234d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161234490613b82565b60405180910390fd5b505050565b61235a612f5a565b600082905080612368611c5f565b116125a6576000548110156125a5576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581525050905080604001516125a357600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146124875780925050506125d8565b5b6001156125a257818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461259d5780925050506125d8565b612488565b5b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b806008819055507f1b930366dfeaa7eb3b325021e4ae81e36527063452ee55b86c95f85b36f4c31c6008546040516126db9190613b05565b60405180910390a150565b6000826126f38584612daf565b1490509392505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612746611ba5565b8786866040518563ffffffff1660e01b81526004016127689493929190613a9e565b602060405180830381600087803b15801561278257600080fd5b505af19250505080156127b357506040513d601f19601f820116820180604052508101906127b09190613516565b60015b61282d573d80600081146127e3576040519150601f19603f3d011682016040523d82523d6000602084013e6127e8565b606091505b50600081511415612825576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060008214156128c8576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506129dc565b600082905060005b600082146128fa5780806128e390614127565b915050600a826128f39190613f45565b91506128d0565b60008167ffffffffffffffff81111561291657612915614281565b5b6040519080825280601f01601f1916602001820160405280156129485781602001600182028036833780820191505090505b5090505b600085146129d5576001826129619190613fd0565b9150600a856129709190614194565b603061297c9190613eef565b60f81b81838151811061299257612991614252565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856129ce9190613f45565b945061294c565b8093505050505b919050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612a4e576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000831415612a89576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612a966000858386612da3565b82600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555082600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550836004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060008482019050612c578673ffffffffffffffffffffffffffffffffffffffff166126fd565b15612d1c575b818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612ccc6000878480600101955087612720565b612d02576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808210612c5d578260005414612d1757600080fd5b612d87565b5b818060010192508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210612d1d575b816000819055505050612d9d6000858386612da9565b50505050565b50505050565b50505050565b60008082905060005b8451811015612dfa57612de582868381518110612dd857612dd7614252565b5b6020026020010151612e05565b91508080612df290614127565b915050612db8565b508091505092915050565b6000818310612e1d57612e188284612e30565b612e28565b612e278383612e30565b5b905092915050565b600082600052816020526040600020905092915050565b828054612e53906140c4565b90600052602060002090601f016020900481019282612e755760008555612ec3565b82601f10612e865780548555612ec3565b82800160010185558215612ec357600052602060002091601f016020900482015b82811115612ec2578254825591600101919060010190612ea7565b5b509050612ed09190612f9d565b5090565b828054612ee0906140c4565b90600052602060002090601f016020900481019282612f025760008555612f49565b82601f10612f1b57805160ff1916838001178555612f49565b82800160010185558215612f49579182015b82811115612f48578251825591602001919060010190612f2d565b5b509050612f569190612f9d565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b80821115612fb6576000816000905550600101612f9e565b5090565b6000612fcd612fc884613dd2565b613dad565b90508083825260208201905082856020860282011115612ff057612fef6142b5565b5b60005b85811015613020578161300688826131a4565b845260208401935060208301925050600181019050612ff3565b5050509392505050565b600061303d61303884613dfe565b613dad565b905080838252602082019050828560208602820111156130605761305f6142b5565b5b60005b858110156130905781613076888261323f565b845260208401935060208301925050600181019050613063565b5050509392505050565b60006130ad6130a884613e2a565b613dad565b9050828152602081018484840111156130c9576130c86142ba565b5b6130d4848285614082565b509392505050565b60006130ef6130ea84613e5b565b613dad565b90508281526020810184848401111561310b5761310a6142ba565b5b613116848285614082565b509392505050565b60008135905061312d81614618565b92915050565b600082601f830112613148576131476142b0565b5b8135613158848260208601612fba565b91505092915050565b600082601f830112613176576131756142b0565b5b813561318684826020860161302a565b91505092915050565b60008135905061319e8161462f565b92915050565b6000813590506131b381614646565b92915050565b6000813590506131c88161465d565b92915050565b6000815190506131dd8161465d565b92915050565b600082601f8301126131f8576131f76142b0565b5b813561320884826020860161309a565b91505092915050565b600082601f830112613226576132256142b0565b5b81356132368482602086016130dc565b91505092915050565b60008135905061324e81614674565b92915050565b60006020828403121561326a576132696142c4565b5b60006132788482850161311e565b91505092915050565b60008060408385031215613298576132976142c4565b5b60006132a68582860161311e565b92505060206132b78582860161311e565b9150509250929050565b6000806000606084860312156132da576132d96142c4565b5b60006132e88682870161311e565b93505060206132f98682870161311e565b925050604061330a8682870161323f565b9150509250925092565b6000806000806080858703121561332e5761332d6142c4565b5b600061333c8782880161311e565b945050602061334d8782880161311e565b935050604061335e8782880161323f565b925050606085013567ffffffffffffffff81111561337f5761337e6142bf565b5b61338b878288016131e3565b91505092959194509250565b600080604083850312156133ae576133ad6142c4565b5b60006133bc8582860161311e565b925050602083013567ffffffffffffffff8111156133dd576133dc6142bf565b5b6133e985828601613133565b9150509250929050565b6000806040838503121561340a576134096142c4565b5b60006134188582860161311e565b92505060206134298582860161318f565b9150509250929050565b6000806040838503121561344a576134496142c4565b5b60006134588582860161311e565b92505060206134698582860161323f565b9150509250929050565b600060208284031215613489576134886142c4565b5b600082013567ffffffffffffffff8111156134a7576134a66142bf565b5b6134b384828501613161565b91505092915050565b6000602082840312156134d2576134d16142c4565b5b60006134e0848285016131a4565b91505092915050565b6000602082840312156134ff576134fe6142c4565b5b600061350d848285016131b9565b91505092915050565b60006020828403121561352c5761352b6142c4565b5b600061353a848285016131ce565b91505092915050565b600060208284031215613559576135586142c4565b5b600082013567ffffffffffffffff811115613577576135766142bf565b5b61358384828501613211565b91505092915050565b6000602082840312156135a2576135a16142c4565b5b60006135b08482850161323f565b91505092915050565b600080604083850312156135d0576135cf6142c4565b5b60006135de8582860161323f565b925050602083013567ffffffffffffffff8111156135ff576135fe6142bf565b5b61360b85828601613133565b9150509250929050565b61361e81614004565b82525050565b61363561363082614004565b614170565b82525050565b61364481614016565b82525050565b61365381614022565b82525050565b600061366482613ea1565b61366e8185613eb7565b935061367e818560208601614091565b613687816142c9565b840191505092915050565b600061369d82613eac565b6136a78185613ed3565b93506136b7818560208601614091565b6136c0816142c9565b840191505092915050565b60006136d682613eac565b6136e08185613ee4565b93506136f0818560208601614091565b80840191505092915050565b60008154613709816140c4565b6137138186613ed3565b9450600182166000811461372e576001811461374057613773565b60ff1983168652602086019350613773565b61374985613e8c565b60005b8381101561376b5781548189015260018201915060208101905061374c565b808801955050505b50505092915050565b6000613789601183613ed3565b9150613794826142e7565b602082019050919050565b60006137ac602683613ed3565b91506137b782614310565b604082019050919050565b60006137cf603a83613ed3565b91506137da8261435f565b604082019050919050565b60006137f2601783613ed3565b91506137fd826143ae565b602082019050919050565b6000613815601d83613ed3565b9150613820826143d7565b602082019050919050565b6000613838600d83613ed3565b915061384382614400565b602082019050919050565b600061385b601283613ed3565b915061386682614429565b602082019050919050565b600061387e601183613ed3565b915061388982614452565b602082019050919050565b60006138a1600583613ee4565b91506138ac8261447b565b600582019050919050565b60006138c4602083613ed3565b91506138cf826144a4565b602082019050919050565b60006138e7601083613ed3565b91506138f2826144cd565b602082019050919050565b600061390a601083613ed3565b9150613915826144f6565b602082019050919050565b600061392d601783613ed3565b91506139388261451f565b602082019050919050565b6000613950601783613ed3565b915061395b82614548565b602082019050919050565b6000613973600083613ec8565b915061397e82614571565b600082019050919050565b6000613996600c83613ed3565b91506139a182614574565b602082019050919050565b60006139b9601f83613ed3565b91506139c48261459d565b602082019050919050565b60006139dc600d83613ed3565b91506139e7826145c6565b602082019050919050565b60006139ff601083613ed3565b9150613a0a826145ef565b602082019050919050565b613a1e81614078565b82525050565b6000613a308284613624565b60148201915081905092915050565b6000613a4b82856136cb565b9150613a5782846136cb565b9150613a6282613894565b91508190509392505050565b6000613a7982613966565b9150819050919050565b6000602082019050613a986000830184613615565b92915050565b6000608082019050613ab36000830187613615565b613ac06020830186613615565b613acd6040830185613a15565b8181036060830152613adf8184613659565b905095945050505050565b6000602082019050613aff600083018461363b565b92915050565b6000602082019050613b1a600083018461364a565b92915050565b60006020820190508181036000830152613b3a8184613692565b905092915050565b60006020820190508181036000830152613b5b8161377c565b9050919050565b60006020820190508181036000830152613b7b8161379f565b9050919050565b60006020820190508181036000830152613b9b816137c2565b9050919050565b60006020820190508181036000830152613bbb816137e5565b9050919050565b60006020820190508181036000830152613bdb81613808565b9050919050565b60006020820190508181036000830152613bfb8161382b565b9050919050565b60006020820190508181036000830152613c1b8161384e565b9050919050565b60006020820190508181036000830152613c3b81613871565b9050919050565b60006020820190508181036000830152613c5b816138b7565b9050919050565b60006020820190508181036000830152613c7b816138da565b9050919050565b60006020820190508181036000830152613c9b816138fd565b9050919050565b60006020820190508181036000830152613cbb81613920565b9050919050565b60006020820190508181036000830152613cdb81613943565b9050919050565b60006020820190508181036000830152613cfb81613989565b9050919050565b60006020820190508181036000830152613d1b816139ac565b9050919050565b60006020820190508181036000830152613d3b816139cf565b9050919050565b60006020820190508181036000830152613d5b816139f2565b9050919050565b6000602082019050613d776000830184613a15565b92915050565b6000604082019050613d926000830185613a15565b8181036020830152613da481846136fc565b90509392505050565b6000613db7613dc8565b9050613dc382826140f6565b919050565b6000604051905090565b600067ffffffffffffffff821115613ded57613dec614281565b5b602082029050602081019050919050565b600067ffffffffffffffff821115613e1957613e18614281565b5b602082029050602081019050919050565b600067ffffffffffffffff821115613e4557613e44614281565b5b613e4e826142c9565b9050602081019050919050565b600067ffffffffffffffff821115613e7657613e75614281565b5b613e7f826142c9565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000613efa82614078565b9150613f0583614078565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613f3a57613f396141c5565b5b828201905092915050565b6000613f5082614078565b9150613f5b83614078565b925082613f6b57613f6a6141f4565b5b828204905092915050565b6000613f8182614078565b9150613f8c83614078565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613fc557613fc46141c5565b5b828202905092915050565b6000613fdb82614078565b9150613fe683614078565b925082821015613ff957613ff86141c5565b5b828203905092915050565b600061400f82614058565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156140af578082015181840152602081019050614094565b838111156140be576000848401525b50505050565b600060028204905060018216806140dc57607f821691505b602082108114156140f0576140ef614223565b5b50919050565b6140ff826142c9565b810181811067ffffffffffffffff8211171561411e5761411d614281565b5b80604052505050565b600061413282614078565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614165576141646141c5565b5b600182019050919050565b600061417b82614182565b9050919050565b600061418d826142da565b9050919050565b600061419f82614078565b91506141aa83614078565b9250826141ba576141b96141f4565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4e6f74206f6e20616c6c6f77206c697374000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b7f546f6b656e20657863656564206d617820737570706c79000000000000000000600082015250565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b7f6f766572206d6178206d696e7400000000000000000000000000000000000000600082015250565b7f7075626c696320206e6f74206163746976650000000000000000000000000000600082015250565b7f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000600082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4d617820546f6b656e20537570706c7900000000000000000000000000000000600082015250565b7f63616e6e6f74206d696e74207a65726f00000000000000000000000000000000600082015250565b7f45746865722076616c7565206e6f7420636f7272656374000000000000000000600082015250565b7f42696f557067726164696e67206e6f7420616374697665000000000000000000600082015250565b50565b7f5a65726f2062616c616e63650000000000000000000000000000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f47656e206e6f74206f776e656400000000000000000000000000000000000000600082015250565b7f636c61696d206e6f742061637469766500000000000000000000000000000000600082015250565b61462181614004565b811461462c57600080fd5b50565b61463881614016565b811461464357600080fd5b50565b61464f81614022565b811461465a57600080fd5b50565b6146668161402c565b811461467157600080fd5b50565b61467d81614078565b811461468857600080fd5b5056fea2646970667358221220c9abeaf28a69c1bb937b682080c519f4676cc9b1b1ff4545f5ff26b724dce79f64736f6c63430008070033
Deployed Bytecode
0x6080604052600436106102255760003560e01c80636352211e11610123578063a216a49d116100ab578063c87b56dd1161006f578063c87b56dd146107a1578063e985e9c5146107de578063f2fde38b1461081b578063f4a0a52814610844578063f655ff221461086d57610225565b8063a216a49d146106be578063a22cb465146106e9578063afc3cb4914610712578063b32c56801461073b578063b88d4fde1461077857610225565b80637efd1a68116100f25780637efd1a681461061157806384584d0714610628578063882b1808146106515780638da5cb5b1461066857806395d89b411461069357610225565b80636352211e146105555780636817c76c1461059257806370a08231146105bd578063715018a6146105fa57610225565b80632bad62e5116101b157806342842e0e1161017557806342842e0e146104705780634728b9f414610499578063507e094f146104c45780635a504e74146104ef5780635ea1ef521461051857610225565b80632bad62e5146103bc5780632db11544146103e75780632eb4a7ab1461040357806333cc4c291461042e5780633ccfd60b1461045957610225565b8063095ea7b3116101f8578063095ea7b3146102fa57806318160ddd14610323578063184c4a3f1461034e5780631e2a23c01461037757806323b872dd1461039357610225565b806301ffc9a71461022a578063033a02d61461026757806306fdde0314610292578063081812fc146102bd575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c91906134e9565b610884565b60405161025e9190613aea565b60405180910390f35b34801561027357600080fd5b5061027c610966565b6040516102899190613aea565b60405180910390f35b34801561029e57600080fd5b506102a7610979565b6040516102b49190613b20565b60405180910390f35b3480156102c957600080fd5b506102e460048036038101906102df919061358c565b610a0b565b6040516102f19190613a83565b60405180910390f35b34801561030657600080fd5b50610321600480360381019061031c9190613433565b610a87565b005b34801561032f57600080fd5b50610338610b8c565b6040516103459190613d62565b60405180910390f35b34801561035a57600080fd5b50610375600480360381019061037091906135b9565b610ba3565b005b610391600480360381019061038c9190613473565b610da2565b005b34801561039f57600080fd5b506103ba60048036038101906103b591906132c1565b611041565b005b3480156103c857600080fd5b506103d1611051565b6040516103de9190613d62565b60405180910390f35b61040160048036038101906103fc919061358c565b611057565b005b34801561040f57600080fd5b5061041861124f565b6040516104259190613b05565b60405180910390f35b34801561043a57600080fd5b50610443611255565b6040516104509190613b20565b60405180910390f35b34801561046557600080fd5b5061046e6112e3565b005b34801561047c57600080fd5b50610497600480360381019061049291906132c1565b611340565b005b3480156104a557600080fd5b506104ae611360565b6040516104bb9190613aea565b60405180910390f35b3480156104d057600080fd5b506104d9611373565b6040516104e69190613d62565b60405180910390f35b3480156104fb57600080fd5b5061051660048036038101906105119190613543565b611379565b005b34801561052457600080fd5b5061053f600480360381019061053a9190613254565b61139b565b60405161054c9190613d62565b60405180910390f35b34801561056157600080fd5b5061057c6004803603810190610577919061358c565b6113e4565b6040516105899190613a83565b60405180910390f35b34801561059e57600080fd5b506105a76113fa565b6040516105b49190613d62565b60405180910390f35b3480156105c957600080fd5b506105e460048036038101906105df9190613254565b611400565b6040516105f19190613d62565b60405180910390f35b34801561060657600080fd5b5061060f6114d0565b005b34801561061d57600080fd5b506106266114e4565b005b34801561063457600080fd5b5061064f600480360381019061064a91906134bc565b611518565b005b34801561065d57600080fd5b5061066661152c565b005b34801561067457600080fd5b5061067d611560565b60405161068a9190613a83565b60405180910390f35b34801561069f57600080fd5b506106a861158a565b6040516106b59190613b20565b60405180910390f35b3480156106ca57600080fd5b506106d361161c565b6040516106e09190613aea565b60405180910390f35b3480156106f557600080fd5b50610710600480360381019061070b91906133f3565b61162f565b005b34801561071e57600080fd5b506107396004803603810190610734919061358c565b6117a7565b005b34801561074757600080fd5b50610762600480360381019061075d9190613397565b6117b9565b60405161076f9190613aea565b60405180910390f35b34801561078457600080fd5b5061079f600480360381019061079a9190613314565b6117fb565b005b3480156107ad57600080fd5b506107c860048036038101906107c3919061358c565b611873565b6040516107d59190613b20565b60405180910390f35b3480156107ea57600080fd5b5061080560048036038101906108009190613281565b61198f565b6040516108129190613aea565b60405180910390f35b34801561082757600080fd5b50610842600480360381019061083d9190613254565b611a23565b005b34801561085057600080fd5b5061086b6004803603810190610866919061358c565b611aa7565b005b34801561087957600080fd5b50610882611ab9565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061094f57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061095f575061095e82611aed565b5b9050919050565b600d60029054906101000a900460ff1681565b606060028054610988906140c4565b80601f01602080910402602001604051908101604052809291908181526020018280546109b4906140c4565b8015610a015780601f106109d657610100808354040283529160200191610a01565b820191906000526020600020905b8154815290600101906020018083116109e457829003601f168201915b5050505050905090565b6000610a1682611b57565b610a4c576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a92826113e4565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610afa576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b19611ba5565b73ffffffffffffffffffffffffffffffffffffffff1614610b7c57610b4581610b40611ba5565b61198f565b610b7b576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b610b87838383611bad565b505050565b6000610b96611c5f565b6001546000540303905090565b3381610baf82826117b9565b610bee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be590613b42565b60405180910390fd5b8361177081610bfb610b8c565b610c059190613eef565b1115610c46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3d90613c62565b60405180910390fd5b6002600b541415610c8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8390613d02565b60405180910390fd5b6002600b81905550600d60009054906101000a900460ff16610ce3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cda90613d42565b60405180910390fd5b60008511610d26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1d90613c82565b60405180910390fd5b60005b85811015610d7e57600e6010600083600054610d459190613eef565b8152602001908152602001600020908054610d5f906140c4565b610d6a929190612e47565b508080610d7690614127565b915050610d29565b50610d893386611c64565b610d933386611d0c565b6001600b819055505050505050565b600d60019054906101000a900460ff16610df1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de890613cc2565b60405180910390fd5b34600f548251610e019190613f76565b14610e41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3890613ca2565b60405180910390fd5b60005b8151811015610f24573373ffffffffffffffffffffffffffffffffffffffff16610e87838381518110610e7a57610e79614252565b5b60200260200101516113e4565b73ffffffffffffffffffffffffffffffffffffffff16141580610eca5750610ec8828281518110610ebb57610eba614252565b5b6020026020010151611b57565b155b15610f11576000610f10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0790613d22565b60405180910390fd5b5b8080610f1c90614127565b915050610e44565b5060005b815181101561103d57611770828281518110610f4757610f46614252565b5b602002602001015110610f8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8690613ba2565b60405180910390fd5b600e60106000848481518110610fa857610fa7614252565b5b60200260200101518152602001908152602001600020908054610fca906140c4565b610fd5929190612e47565b507f266bc8906175770d5acdb15c764e656bc33c059f4339d709a51e95be76c6bc7682828151811061100a57611009614252565b5b6020026020010151600e604051611022929190613d7d565b60405180910390a1808061103590614127565b915050610f28565b5050565b61104c838383611d2a565b505050565b61177081565b8061177081611064610b8c565b61106e9190613eef565b11156110af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110a690613c62565b60405180910390fd5b6002600b5414156110f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ec90613d02565b60405180910390fd5b6002600b81905550600d60029054906101000a900460ff1661114c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114390613c02565b60405180910390fd5b600c54821115611191576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118890613be2565b60405180910390fd5b34600f54836111a09190613f76565b146111e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d790613ca2565b60405180910390fd5b60005b8281101561123857600e60106000836000546111ff9190613eef565b8152602001908152602001600020908054611219906140c4565b611224929190612e47565b50808061123090614127565b9150506111e3565b506112433383611d0c565b6001600b819055505050565b60085481565b600e8054611262906140c4565b80601f016020809104026020016040519081016040528092919081815260200182805461128e906140c4565b80156112db5780601f106112b0576101008083540402835291602001916112db565b820191906000526020600020905b8154815290600101906020018083116112be57829003601f168201915b505050505081565b6112eb6121e0565b6000471161132e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132590613ce2565b60405180910390fd5b600047905061133d338261225e565b50565b61135b838383604051806020016040528060008152506117fb565b505050565b600d60009054906101000a900460ff1681565b600c5481565b6113816121e0565b80600e9080519060200190611397929190612ed4565b5050565b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60006113ef82612352565b600001519050919050565b600f5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611468576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6114d86121e0565b6114e260006125dd565b565b6114ec6121e0565b600d60019054906101000a900460ff1615600d60016101000a81548160ff021916908315150217905550565b6115206121e0565b611529816126a3565b50565b6115346121e0565b600d60029054906101000a900460ff1615600d60026101000a81548160ff021916908315150217905550565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611599906140c4565b80601f01602080910402602001604051908101604052809291908181526020018280546115c5906140c4565b80156116125780601f106115e757610100808354040283529160200191611612565b820191906000526020600020905b8154815290600101906020018083116115f557829003601f168201915b5050505050905090565b600d60019054906101000a900460ff1681565b611637611ba5565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561169c576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006116a9611ba5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611756611ba5565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161179b9190613aea565b60405180910390a35050565b6117af6121e0565b80600c8190555050565b600080836040516020016117cd9190613a24565b6040516020818303038152906040528051906020012090506117f283600854836126e6565b91505092915050565b611806848484611d2a565b6118258373ffffffffffffffffffffffffffffffffffffffff166126fd565b1561186d5761183684848484612720565b61186c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b606061187e82611b57565b6118bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b490613c22565b60405180910390fd5b60006010600084815260200190815260200160002080546118dd906140c4565b80601f0160208091040260200160405190810160405280929190818152602001828054611909906140c4565b80156119565780601f1061192b57610100808354040283529160200191611956565b820191906000526020600020905b81548152906001019060200180831161193957829003601f168201915b505050505090508061196784612880565b604051602001611978929190613a3f565b604051602081830303815290604052915050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611a2b6121e0565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611a9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9290613b62565b60405180910390fd5b611aa4816125dd565b50565b611aaf6121e0565b80600f8190555050565b611ac16121e0565b600d60009054906101000a900460ff1615600d60006101000a81548160ff021916908315150217905550565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081611b62611c5f565b11158015611b71575060005482105b8015611b9e575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600090565b80600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611cb39190613eef565b925050819055508173ffffffffffffffffffffffffffffffffffffffff167fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a82604051611d009190613d62565b60405180910390a25050565b611d268282604051806020016040528060008152506129e1565b5050565b6000611d3582612352565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614611da0576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff16611dc1611ba5565b73ffffffffffffffffffffffffffffffffffffffff161480611df05750611def85611dea611ba5565b61198f565b5b80611e355750611dfe611ba5565b73ffffffffffffffffffffffffffffffffffffffff16611e1d84610a0b565b73ffffffffffffffffffffffffffffffffffffffff16145b905080611e6e576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611ed5576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611ee28585856001612da3565b611eee60008487611bad565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561216e57600054821461216d57878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46121d98585856001612da9565b5050505050565b6121e8611ba5565b73ffffffffffffffffffffffffffffffffffffffff16612206611560565b73ffffffffffffffffffffffffffffffffffffffff161461225c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161225390613c42565b60405180910390fd5b565b804710156122a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229890613bc2565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516122c790613a6e565b60006040518083038185875af1925050503d8060008114612304576040519150601f19603f3d011682016040523d82523d6000602084013e612309565b606091505b505090508061234d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161234490613b82565b60405180910390fd5b505050565b61235a612f5a565b600082905080612368611c5f565b116125a6576000548110156125a5576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581525050905080604001516125a357600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146124875780925050506125d8565b5b6001156125a257818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461259d5780925050506125d8565b612488565b5b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b806008819055507f1b930366dfeaa7eb3b325021e4ae81e36527063452ee55b86c95f85b36f4c31c6008546040516126db9190613b05565b60405180910390a150565b6000826126f38584612daf565b1490509392505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612746611ba5565b8786866040518563ffffffff1660e01b81526004016127689493929190613a9e565b602060405180830381600087803b15801561278257600080fd5b505af19250505080156127b357506040513d601f19601f820116820180604052508101906127b09190613516565b60015b61282d573d80600081146127e3576040519150601f19603f3d011682016040523d82523d6000602084013e6127e8565b606091505b50600081511415612825576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060008214156128c8576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506129dc565b600082905060005b600082146128fa5780806128e390614127565b915050600a826128f39190613f45565b91506128d0565b60008167ffffffffffffffff81111561291657612915614281565b5b6040519080825280601f01601f1916602001820160405280156129485781602001600182028036833780820191505090505b5090505b600085146129d5576001826129619190613fd0565b9150600a856129709190614194565b603061297c9190613eef565b60f81b81838151811061299257612991614252565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856129ce9190613f45565b945061294c565b8093505050505b919050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612a4e576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000831415612a89576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612a966000858386612da3565b82600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555082600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550836004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060008482019050612c578673ffffffffffffffffffffffffffffffffffffffff166126fd565b15612d1c575b818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612ccc6000878480600101955087612720565b612d02576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808210612c5d578260005414612d1757600080fd5b612d87565b5b818060010192508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210612d1d575b816000819055505050612d9d6000858386612da9565b50505050565b50505050565b50505050565b60008082905060005b8451811015612dfa57612de582868381518110612dd857612dd7614252565b5b6020026020010151612e05565b91508080612df290614127565b915050612db8565b508091505092915050565b6000818310612e1d57612e188284612e30565b612e28565b612e278383612e30565b5b905092915050565b600082600052816020526040600020905092915050565b828054612e53906140c4565b90600052602060002090601f016020900481019282612e755760008555612ec3565b82601f10612e865780548555612ec3565b82800160010185558215612ec357600052602060002091601f016020900482015b82811115612ec2578254825591600101919060010190612ea7565b5b509050612ed09190612f9d565b5090565b828054612ee0906140c4565b90600052602060002090601f016020900481019282612f025760008555612f49565b82601f10612f1b57805160ff1916838001178555612f49565b82800160010185558215612f49579182015b82811115612f48578251825591602001919060010190612f2d565b5b509050612f569190612f9d565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b80821115612fb6576000816000905550600101612f9e565b5090565b6000612fcd612fc884613dd2565b613dad565b90508083825260208201905082856020860282011115612ff057612fef6142b5565b5b60005b85811015613020578161300688826131a4565b845260208401935060208301925050600181019050612ff3565b5050509392505050565b600061303d61303884613dfe565b613dad565b905080838252602082019050828560208602820111156130605761305f6142b5565b5b60005b858110156130905781613076888261323f565b845260208401935060208301925050600181019050613063565b5050509392505050565b60006130ad6130a884613e2a565b613dad565b9050828152602081018484840111156130c9576130c86142ba565b5b6130d4848285614082565b509392505050565b60006130ef6130ea84613e5b565b613dad565b90508281526020810184848401111561310b5761310a6142ba565b5b613116848285614082565b509392505050565b60008135905061312d81614618565b92915050565b600082601f830112613148576131476142b0565b5b8135613158848260208601612fba565b91505092915050565b600082601f830112613176576131756142b0565b5b813561318684826020860161302a565b91505092915050565b60008135905061319e8161462f565b92915050565b6000813590506131b381614646565b92915050565b6000813590506131c88161465d565b92915050565b6000815190506131dd8161465d565b92915050565b600082601f8301126131f8576131f76142b0565b5b813561320884826020860161309a565b91505092915050565b600082601f830112613226576132256142b0565b5b81356132368482602086016130dc565b91505092915050565b60008135905061324e81614674565b92915050565b60006020828403121561326a576132696142c4565b5b60006132788482850161311e565b91505092915050565b60008060408385031215613298576132976142c4565b5b60006132a68582860161311e565b92505060206132b78582860161311e565b9150509250929050565b6000806000606084860312156132da576132d96142c4565b5b60006132e88682870161311e565b93505060206132f98682870161311e565b925050604061330a8682870161323f565b9150509250925092565b6000806000806080858703121561332e5761332d6142c4565b5b600061333c8782880161311e565b945050602061334d8782880161311e565b935050604061335e8782880161323f565b925050606085013567ffffffffffffffff81111561337f5761337e6142bf565b5b61338b878288016131e3565b91505092959194509250565b600080604083850312156133ae576133ad6142c4565b5b60006133bc8582860161311e565b925050602083013567ffffffffffffffff8111156133dd576133dc6142bf565b5b6133e985828601613133565b9150509250929050565b6000806040838503121561340a576134096142c4565b5b60006134188582860161311e565b92505060206134298582860161318f565b9150509250929050565b6000806040838503121561344a576134496142c4565b5b60006134588582860161311e565b92505060206134698582860161323f565b9150509250929050565b600060208284031215613489576134886142c4565b5b600082013567ffffffffffffffff8111156134a7576134a66142bf565b5b6134b384828501613161565b91505092915050565b6000602082840312156134d2576134d16142c4565b5b60006134e0848285016131a4565b91505092915050565b6000602082840312156134ff576134fe6142c4565b5b600061350d848285016131b9565b91505092915050565b60006020828403121561352c5761352b6142c4565b5b600061353a848285016131ce565b91505092915050565b600060208284031215613559576135586142c4565b5b600082013567ffffffffffffffff811115613577576135766142bf565b5b61358384828501613211565b91505092915050565b6000602082840312156135a2576135a16142c4565b5b60006135b08482850161323f565b91505092915050565b600080604083850312156135d0576135cf6142c4565b5b60006135de8582860161323f565b925050602083013567ffffffffffffffff8111156135ff576135fe6142bf565b5b61360b85828601613133565b9150509250929050565b61361e81614004565b82525050565b61363561363082614004565b614170565b82525050565b61364481614016565b82525050565b61365381614022565b82525050565b600061366482613ea1565b61366e8185613eb7565b935061367e818560208601614091565b613687816142c9565b840191505092915050565b600061369d82613eac565b6136a78185613ed3565b93506136b7818560208601614091565b6136c0816142c9565b840191505092915050565b60006136d682613eac565b6136e08185613ee4565b93506136f0818560208601614091565b80840191505092915050565b60008154613709816140c4565b6137138186613ed3565b9450600182166000811461372e576001811461374057613773565b60ff1983168652602086019350613773565b61374985613e8c565b60005b8381101561376b5781548189015260018201915060208101905061374c565b808801955050505b50505092915050565b6000613789601183613ed3565b9150613794826142e7565b602082019050919050565b60006137ac602683613ed3565b91506137b782614310565b604082019050919050565b60006137cf603a83613ed3565b91506137da8261435f565b604082019050919050565b60006137f2601783613ed3565b91506137fd826143ae565b602082019050919050565b6000613815601d83613ed3565b9150613820826143d7565b602082019050919050565b6000613838600d83613ed3565b915061384382614400565b602082019050919050565b600061385b601283613ed3565b915061386682614429565b602082019050919050565b600061387e601183613ed3565b915061388982614452565b602082019050919050565b60006138a1600583613ee4565b91506138ac8261447b565b600582019050919050565b60006138c4602083613ed3565b91506138cf826144a4565b602082019050919050565b60006138e7601083613ed3565b91506138f2826144cd565b602082019050919050565b600061390a601083613ed3565b9150613915826144f6565b602082019050919050565b600061392d601783613ed3565b91506139388261451f565b602082019050919050565b6000613950601783613ed3565b915061395b82614548565b602082019050919050565b6000613973600083613ec8565b915061397e82614571565b600082019050919050565b6000613996600c83613ed3565b91506139a182614574565b602082019050919050565b60006139b9601f83613ed3565b91506139c48261459d565b602082019050919050565b60006139dc600d83613ed3565b91506139e7826145c6565b602082019050919050565b60006139ff601083613ed3565b9150613a0a826145ef565b602082019050919050565b613a1e81614078565b82525050565b6000613a308284613624565b60148201915081905092915050565b6000613a4b82856136cb565b9150613a5782846136cb565b9150613a6282613894565b91508190509392505050565b6000613a7982613966565b9150819050919050565b6000602082019050613a986000830184613615565b92915050565b6000608082019050613ab36000830187613615565b613ac06020830186613615565b613acd6040830185613a15565b8181036060830152613adf8184613659565b905095945050505050565b6000602082019050613aff600083018461363b565b92915050565b6000602082019050613b1a600083018461364a565b92915050565b60006020820190508181036000830152613b3a8184613692565b905092915050565b60006020820190508181036000830152613b5b8161377c565b9050919050565b60006020820190508181036000830152613b7b8161379f565b9050919050565b60006020820190508181036000830152613b9b816137c2565b9050919050565b60006020820190508181036000830152613bbb816137e5565b9050919050565b60006020820190508181036000830152613bdb81613808565b9050919050565b60006020820190508181036000830152613bfb8161382b565b9050919050565b60006020820190508181036000830152613c1b8161384e565b9050919050565b60006020820190508181036000830152613c3b81613871565b9050919050565b60006020820190508181036000830152613c5b816138b7565b9050919050565b60006020820190508181036000830152613c7b816138da565b9050919050565b60006020820190508181036000830152613c9b816138fd565b9050919050565b60006020820190508181036000830152613cbb81613920565b9050919050565b60006020820190508181036000830152613cdb81613943565b9050919050565b60006020820190508181036000830152613cfb81613989565b9050919050565b60006020820190508181036000830152613d1b816139ac565b9050919050565b60006020820190508181036000830152613d3b816139cf565b9050919050565b60006020820190508181036000830152613d5b816139f2565b9050919050565b6000602082019050613d776000830184613a15565b92915050565b6000604082019050613d926000830185613a15565b8181036020830152613da481846136fc565b90509392505050565b6000613db7613dc8565b9050613dc382826140f6565b919050565b6000604051905090565b600067ffffffffffffffff821115613ded57613dec614281565b5b602082029050602081019050919050565b600067ffffffffffffffff821115613e1957613e18614281565b5b602082029050602081019050919050565b600067ffffffffffffffff821115613e4557613e44614281565b5b613e4e826142c9565b9050602081019050919050565b600067ffffffffffffffff821115613e7657613e75614281565b5b613e7f826142c9565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000613efa82614078565b9150613f0583614078565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613f3a57613f396141c5565b5b828201905092915050565b6000613f5082614078565b9150613f5b83614078565b925082613f6b57613f6a6141f4565b5b828204905092915050565b6000613f8182614078565b9150613f8c83614078565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613fc557613fc46141c5565b5b828202905092915050565b6000613fdb82614078565b9150613fe683614078565b925082821015613ff957613ff86141c5565b5b828203905092915050565b600061400f82614058565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156140af578082015181840152602081019050614094565b838111156140be576000848401525b50505050565b600060028204905060018216806140dc57607f821691505b602082108114156140f0576140ef614223565b5b50919050565b6140ff826142c9565b810181811067ffffffffffffffff8211171561411e5761411d614281565b5b80604052505050565b600061413282614078565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614165576141646141c5565b5b600182019050919050565b600061417b82614182565b9050919050565b600061418d826142da565b9050919050565b600061419f82614078565b91506141aa83614078565b9250826141ba576141b96141f4565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4e6f74206f6e20616c6c6f77206c697374000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b7f546f6b656e20657863656564206d617820737570706c79000000000000000000600082015250565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b7f6f766572206d6178206d696e7400000000000000000000000000000000000000600082015250565b7f7075626c696320206e6f74206163746976650000000000000000000000000000600082015250565b7f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000600082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4d617820546f6b656e20537570706c7900000000000000000000000000000000600082015250565b7f63616e6e6f74206d696e74207a65726f00000000000000000000000000000000600082015250565b7f45746865722076616c7565206e6f7420636f7272656374000000000000000000600082015250565b7f42696f557067726164696e67206e6f7420616374697665000000000000000000600082015250565b50565b7f5a65726f2062616c616e63650000000000000000000000000000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f47656e206e6f74206f776e656400000000000000000000000000000000000000600082015250565b7f636c61696d206e6f742061637469766500000000000000000000000000000000600082015250565b61462181614004565b811461462c57600080fd5b50565b61463881614016565b811461464357600080fd5b50565b61464f81614022565b811461465a57600080fd5b50565b6146668161402c565b811461467157600080fd5b50565b61467d81614078565b811461468857600080fd5b5056fea2646970667358221220c9abeaf28a69c1bb937b682080c519f4676cc9b1b1ff4545f5ff26b724dce79f64736f6c63430008070033
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.