Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
8,888 GOA
Holders
3,130
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 GOALoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GodOFAttention
Compiler Version
v0.8.11+commit.d7f03943
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.11; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "erc721a/contracts/ERC721A.sol"; contract GodOFAttention is Ownable, ERC721A, ReentrancyGuard { using Strings for uint256; using SafeMath for uint256; // elder = OG, BAPTIZED = WL , BELIEVER = public enum SaleStatus { PAUSED, ELDER, BAPTIZED, BELIEVER } // set default Pause SaleStatus public saleStatus = SaleStatus.PAUSED; bool public revealed = false; string private baseTokenURI; string public notRevealedURI; bytes32[3] public merkleRoot; address private teamWallet; address public royaltyAddress; // Only in unsupported marketplaces, we need to go directly to setup uint96 public royaltyFeesInBips; //1 ether == 1000000000000000000 uint256 public allowListPrice = 0 ether; //elder and baptized uint256 public believerPrice = 0.0088 ether; //believer uint256 private constant _TotalCollectionSize = 8888; uint256 public MAX_PER_Transaction = 2; uint256 public MAX_PER_Address_FOR_ALLOW_LIST = 2; // set each spots uint256 private teamNFTsTaked; uint16 private teamLimit = 700; uint256 private soldElder; uint256 private elderSpots = 1600; uint256 private soldBaptized; uint256 private BaptizedSpots = 4500; constructor( string memory _hiddenURI, uint96 _royaltyFeesInBips, address _teamWallet) ERC721A("God Of Attenton Coco","GOA") { //setBaseURI(_uri); //We just run it when we reveal it. setNotRevealedURI(_hiddenURI); royaltyFeesInBips = _royaltyFeesInBips; //setMerkleRoot(0,Elder,Whitelist);//Register when the list is finalized. teamWallet = _teamWallet; setRoyaltyInfo(teamWallet,_royaltyFeesInBips); reserveNFT(5); } modifier checkMintCount(uint256 _quantity,uint256 _price){ require(totalSupply().add(_quantity) <= _TotalCollectionSize, "reached max supply"); require(_quantity <= MAX_PER_Transaction, "Max per transaction exceeded"); require(msg.value >= _price.mul(_quantity), "Need to send more ETH."); _; } // sale function function reserveNFT(uint256 quantity) public onlyOwner { require(totalSupply().add(quantity) <= _TotalCollectionSize, "reached max supply"); require(teamNFTsTaked.add(quantity) <= teamLimit, "Reserve limit exceeded."); teamNFTsTaked = teamNFTsTaked.add(quantity); _safeMint(teamWallet, quantity); } // wl and og sale function whoMetCocoMint(uint256 quantity, bytes32[] calldata merkleproof) public payable checkMintCount(quantity,allowListPrice){ require(saleStatus == SaleStatus.ELDER || saleStatus == SaleStatus.BAPTIZED, "not start ELDER or BAPTIZED mint"); require(isValid(merkleproof, keccak256(abi.encodePacked(msg.sender))), "No permission(Not BAPTIZED or ELDER)"); require((_numberMinted(msg.sender).add(quantity) <= MAX_PER_Address_FOR_ALLOW_LIST),"Quantity exceeds allowed Mints"); // 수정하는 포인트 if(saleStatus == SaleStatus.BAPTIZED) { require(soldBaptized.add(quantity) <= BaptizedSpots,"Baptized sold out"); soldBaptized = soldBaptized.add(quantity); } else { require(soldElder.add(quantity) <= elderSpots,"ELDER sold out"); soldElder = soldElder.add(quantity); } _safeMint(msg.sender, quantity); } // public sale function whoWillMeetCocoMint(uint256 quantity) public payable checkMintCount(quantity,believerPrice) { require(saleStatus == SaleStatus.BELIEVER, "BELIEVER minting not start"); _safeMint(msg.sender, quantity); } function supportsInterface(bytes4 interfaceId) public view override(ERC721A) returns (bool){ return interfaceId == 0x2a55205a || super.supportsInterface(interfaceId); } function isValid(bytes32[] memory merkleproof,bytes32 leaf) public view returns (bool) { return MerkleProof.verify(merkleproof, merkleRoot[uint(saleStatus)], leaf); } //get function function getSaleStatus() public view returns (SaleStatus){ return saleStatus; } function getPrice(uint256 _count) public view returns(uint256){ if(saleStatus == SaleStatus.BELIEVER) return believerPrice.mul(_count); else return allowListPrice.mul(_count); } function getOwnershipData(uint256 tokenId) external view returns (TokenOwnership memory){ return _ownershipOf(tokenId); } function _baseURI() internal view virtual override returns (string memory) { return baseTokenURI; } function getNumberMinted(address _address) public view returns (uint256) { return _numberMinted(_address); } function getSoldNum() public view returns (uint256) { if(saleStatus == SaleStatus.ELDER) return soldElder; else if(saleStatus == SaleStatus.BAPTIZED) return soldBaptized; else return 0; } function getSpots() public view returns (uint256) { if(saleStatus == SaleStatus.ELDER) return elderSpots; else if(saleStatus == SaleStatus.BAPTIZED) return BaptizedSpots; else if(saleStatus == SaleStatus.BELIEVER) return _TotalCollectionSize; else return 0; } function royaltyInfo(uint256 _salePrice) external view virtual returns (address, uint256){ return (royaltyAddress, calculateRoyalty(_salePrice)); } function calculateRoyalty(uint256 _salePrice) view public returns (uint256) { return (_salePrice.div(10000)).mul(royaltyFeesInBips); } //set function function setBaseURI(string memory baseURI) public onlyOwner { baseTokenURI = baseURI; } function setNotRevealedURI(string memory URI) public onlyOwner { notRevealedURI = URI; } function setPublicPrice(uint256 _newPrice) public onlyOwner { believerPrice = _newPrice; } function setAccessListPrice(uint256 _newPrice) public onlyOwner { allowListPrice = _newPrice; } function setMerkleRoot(bytes32 _ElderRoot,bytes32 _baptizedRoot) public onlyOwner { merkleRoot[0] = 0; merkleRoot[1] = _ElderRoot; merkleRoot[2] = _baptizedRoot; } function setElderLimit(uint256 _newLimit) public onlyOwner { elderSpots = _newLimit; } function setBaptizedLimit(uint256 _newLimit) public onlyOwner { BaptizedSpots = _newLimit; } function setMAX_PER_Transaction(uint256 _newLimit) public onlyOwner { MAX_PER_Transaction = _newLimit; } function setMAX_PER_Address_FOR_ALLOW_LIST(uint256 _newLimit) public onlyOwner { MAX_PER_Address_FOR_ALLOW_LIST = _newLimit; } function setTeamWallet(address _newTeamWallet) public onlyOwner { teamWallet = _newTeamWallet; } function setRoyaltyInfo(address _receiver, uint96 _royaltyFeesInBips) public onlyOwner { royaltyAddress = _receiver; royaltyFeesInBips = _royaltyFeesInBips; } function setSaleStatus(SaleStatus _status) public onlyOwner { saleStatus = _status; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory){ require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); if (revealed) { string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string( abi.encodePacked(baseURI, tokenId.toString()) ) : ""; } else { return notRevealedURI; } } function reveal(string memory _uri) public onlyOwner { if(!revealed){ setBaseURI(_uri); } revealed = !revealed; } function withdraw() public onlyOwner nonReentrant { (bool os, ) = payable(owner()).call{value: address(this).balance}(""); require(os); } function airdrop(address beneficiary, uint256 amount) public onlyOwner { require(beneficiary != address(0), "Cannot airdrop to zero address"); require(totalSupply().add(amount) <= _TotalCollectionSize, "reached max supply"); _safeMint(beneficiary, amount); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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 // OpenZeppelin Contracts (last updated v4.8.0) (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() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // 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.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * 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. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ 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 simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _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} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _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 sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _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}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _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 (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _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) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_hiddenURI","type":"string"},{"internalType":"uint96","name":"_royaltyFeesInBips","type":"uint96"},{"internalType":"address","name":"_teamWallet","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_PER_Address_FOR_ALLOW_LIST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PER_Transaction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"allowListPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"believerPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"calculateRoyalty","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":"_address","type":"address"}],"name":"getNumberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getOwnershipData","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSaleStatus","outputs":[{"internalType":"enum GodOFAttention.SaleStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSoldNum","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSpots","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"bytes32[]","name":"merkleproof","type":"bytes32[]"},{"internalType":"bytes32","name":"leaf","type":"bytes32"}],"name":"isValid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notRevealedURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"reserveNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyFeesInBips","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"saleStatus","outputs":[{"internalType":"enum GodOFAttention.SaleStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setAccessListPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newLimit","type":"uint256"}],"name":"setBaptizedLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newLimit","type":"uint256"}],"name":"setElderLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newLimit","type":"uint256"}],"name":"setMAX_PER_Address_FOR_ALLOW_LIST","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newLimit","type":"uint256"}],"name":"setMAX_PER_Transaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_ElderRoot","type":"bytes32"},{"internalType":"bytes32","name":"_baptizedRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"URI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPublicPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_royaltyFeesInBips","type":"uint96"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum GodOFAttention.SaleStatus","name":"_status","type":"uint8"}],"name":"setSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newTeamWallet","type":"address"}],"name":"setTeamWallet","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"merkleproof","type":"bytes32[]"}],"name":"whoMetCocoMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"whoWillMeetCocoMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000600a60006101000a81548160ff021916908360038111156200002d576200002c62000b93565b5b02179055506000600a60016101000a81548160ff0219169083151502179055506000601255661f438daa060000601355600260145560026015556102bc601760006101000a81548161ffff021916908361ffff160217905550610640601955611194601b553480156200009f57600080fd5b5060405162005da338038062005da38339818101604052810190620000c5919062000e0d565b6040518060400160405280601481526020017f476f64204f6620417474656e746f6e20436f636f0000000000000000000000008152506040518060400160405280600381526020017f474f41000000000000000000000000000000000000000000000000000000000081525062000151620001456200027560201b60201c565b6200027d60201b60201c565b81600390805190602001906200016992919062000ae3565b5080600490805190602001906200018292919062000ae3565b50620001936200034160201b60201c565b60018190555050506001600981905550620001b4836200034660201b60201c565b81601160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555080601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506200025a601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836200037260201b60201c565b6200026c6005620003f860201b60201c565b5050506200124c565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600090565b620003566200054660201b60201c565b80600c90805190602001906200036e92919062000ae3565b5050565b620003826200054660201b60201c565b81601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055505050565b620004086200054660201b60201c565b6122b8620004348262000420620005d760201b60201c565b620005f660201b620026a61790919060201c565b111562000478576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200046f9062000ee9565b60405180910390fd5b601760009054906101000a900461ffff1661ffff16620004a982601654620005f660201b620026a61790919060201c565b1115620004ed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004e49062000f5b565b60405180910390fd5b6200050981601654620005f660201b620026a61790919060201c565b60168190555062000543601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826200060e60201b60201c565b50565b620005566200027560201b60201c565b73ffffffffffffffffffffffffffffffffffffffff166200057c6200063460201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1614620005d5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620005cc9062000fcd565b60405180910390fd5b565b6000620005e96200034160201b60201c565b6002546001540303905090565b6000818362000606919062001028565b905092915050565b620006308282604051806020016040528060008152506200065d60201b60201c565b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6200066f83836200070f60201b60201c565b60008373ffffffffffffffffffffffffffffffffffffffff163b146200070a5760006001549050600083820390505b620006b96000868380600101945086620008f960201b60201c565b620006f0576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106200069e5781600154146200070757600080fd5b50505b505050565b60006001549050600082141562000752576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b62000767600084838562000a5b60201b60201c565b600160406001901b178202600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550620007f683620007d8600086600062000a6160201b60201c565b620007e98562000a9160201b60201c565b1762000aa160201b60201c565b6005600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146200089957808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506200085c565b506000821415620008d6576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806001819055505050620008f4600084838562000acc60201b60201c565b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026200092762000ad260201b60201c565b8786866040518563ffffffff1660e01b81526004016200094b949392919062001104565b6020604051808303816000875af19250505080156200098a57506040513d601f19601f82011682018060405250810190620009879190620011b5565b60015b62000a08573d8060008114620009bd576040519150601f19603f3d011682016040523d82523d6000602084013e620009c2565b606091505b5060008151141562000a00576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b50505050565b60008060e883901c905060e862000a8086868462000ada60201b60201c565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b60009392505050565b82805462000af19062001216565b90600052602060002090601f01602090048101928262000b15576000855562000b61565b82601f1062000b3057805160ff191683800117855562000b61565b8280016001018555821562000b61579182015b8281111562000b6057825182559160200191906001019062000b43565b5b50905062000b70919062000b74565b5090565b5b8082111562000b8f57600081600090555060010162000b75565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b62000c2b8262000be0565b810181811067ffffffffffffffff8211171562000c4d5762000c4c62000bf1565b5b80604052505050565b600062000c6262000bc2565b905062000c70828262000c20565b919050565b600067ffffffffffffffff82111562000c935762000c9262000bf1565b5b62000c9e8262000be0565b9050602081019050919050565b60005b8381101562000ccb57808201518184015260208101905062000cae565b8381111562000cdb576000848401525b50505050565b600062000cf862000cf28462000c75565b62000c56565b90508281526020810184848401111562000d175762000d1662000bdb565b5b62000d2484828562000cab565b509392505050565b600082601f83011262000d445762000d4362000bd6565b5b815162000d5684826020860162000ce1565b91505092915050565b60006bffffffffffffffffffffffff82169050919050565b62000d828162000d5f565b811462000d8e57600080fd5b50565b60008151905062000da28162000d77565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000dd58262000da8565b9050919050565b62000de78162000dc8565b811462000df357600080fd5b50565b60008151905062000e078162000ddc565b92915050565b60008060006060848603121562000e295762000e2862000bcc565b5b600084015167ffffffffffffffff81111562000e4a5762000e4962000bd1565b5b62000e588682870162000d2c565b935050602062000e6b8682870162000d91565b925050604062000e7e8682870162000df6565b9150509250925092565b600082825260208201905092915050565b7f72656163686564206d617820737570706c790000000000000000000000000000600082015250565b600062000ed160128362000e88565b915062000ede8262000e99565b602082019050919050565b6000602082019050818103600083015262000f048162000ec2565b9050919050565b7f52657365727665206c696d69742065786365656465642e000000000000000000600082015250565b600062000f4360178362000e88565b915062000f508262000f0b565b602082019050919050565b6000602082019050818103600083015262000f768162000f34565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600062000fb560208362000e88565b915062000fc28262000f7d565b602082019050919050565b6000602082019050818103600083015262000fe88162000fa6565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000620010358262000fef565b9150620010428362000fef565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156200107a576200107962000ff9565b5b828201905092915050565b620010908162000dc8565b82525050565b620010a18162000fef565b82525050565b600081519050919050565b600082825260208201905092915050565b6000620010d082620010a7565b620010dc8185620010b2565b9350620010ee81856020860162000cab565b620010f98162000be0565b840191505092915050565b60006080820190506200111b600083018762001085565b6200112a602083018662001085565b62001139604083018562001096565b81810360608301526200114d8184620010c3565b905095945050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6200118f8162001158565b81146200119b57600080fd5b50565b600081519050620011af8162001184565b92915050565b600060208284031215620011ce57620011cd62000bcc565b5b6000620011de848285016200119e565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200122f57607f821691505b60208210811415620012465762001245620011e7565b5b50919050565b614b47806200125c6000396000f3fe6080604052600436106103355760003560e01c80638a59a7fd116101ab578063c6275255116100f7578063e985e9c511610095578063f2c4ce1e1161006f578063f2c4ce1e14610beb578063f2fde38b14610c14578063f9020e3314610c3d578063fa93757114610c6857610335565b8063e985e9c514610b5a578063e99c4b7214610b97578063eb5c782314610bc057610335565b8063dc18334e116100d1578063dc18334e14610aa0578063de6ecf4814610acb578063e5b997f514610af4578063e757223014610b1d57610335565b8063c6275255146109fc578063c87b56dd14610a25578063cef6d36814610a6257610335565b80639bfee72711610164578063a2e696131161013e578063a2e696131461093b578063ad2f852a14610978578063b88d4fde146109a3578063b8a20ed0146109bf57610335565b80639bfee727146108be578063a22cb465146108e7578063a24e51531461091057610335565b80638a59a7fd1461079a5780638ba4cc3c146107d75780638c3c4b34146108005780638da5cb5b1461082b5780639231ab2a1461085657806395d89b411461089357610335565b806342842e0e116102855780636352211e1161022357806372250380116101fd57806372250380146106ff57806373c7400e1461072a57806375edcbe014610755578063876517661461077e57610335565b80636352211e1461066e57806370a08231146106ab578063715018a6146106e857610335565b80634d9ac6811161025f5780634d9ac681146105c457806351830227146105ef57806351d7ff931461061a57806355f804b31461064557610335565b806342842e0e146105565780634891ad88146105725780634c2612471461059b57610335565b806318160ddd116102f257806330027cd5116102cc57806330027cd5146104bd578063397be3fd146104d95780633c70b357146105025780633ccfd60b1461053f57610335565b806318160ddd1461044d57806323b872dd1461047857806325dc45ce1461049457610335565b806301ffc9a71461033a57806302fa7c471461037757806306fdde03146103a0578063081812fc146103cb578063095ea7b3146104085780631525ff7d14610424575b600080fd5b34801561034657600080fd5b50610361600480360381019061035c91906134fd565b610c93565b60405161036e9190613545565b60405180910390f35b34801561038357600080fd5b5061039e60048036038101906103999190613602565b610cd5565b005b3480156103ac57600080fd5b506103b5610d53565b6040516103c291906136db565b60405180910390f35b3480156103d757600080fd5b506103f260048036038101906103ed9190613733565b610de5565b6040516103ff919061376f565b60405180910390f35b610422600480360381019061041d919061378a565b610e64565b005b34801561043057600080fd5b5061044b600480360381019061044691906137ca565b610fa8565b005b34801561045957600080fd5b50610462610ff4565b60405161046f9190613806565b60405180910390f35b610492600480360381019061048d9190613821565b61100b565b005b3480156104a057600080fd5b506104bb60048036038101906104b69190613733565b611330565b005b6104d760048036038101906104d29190613733565b611342565b005b3480156104e557600080fd5b5061050060048036038101906104fb9190613733565b6114c2565b005b34801561050e57600080fd5b5061052960048036038101906105249190613733565b6115dd565b604051610536919061388d565b60405180910390f35b34801561054b57600080fd5b506105546115f8565b005b610570600480360381019061056b9190613821565b611690565b005b34801561057e57600080fd5b50610599600480360381019061059491906138cd565b6116b0565b005b3480156105a757600080fd5b506105c260048036038101906105bd9190613a2f565b6116e5565b005b3480156105d057600080fd5b506105d9611738565b6040516105e69190613806565b60405180910390f35b3480156105fb57600080fd5b506106046117ce565b6040516106119190613545565b60405180910390f35b34801561062657600080fd5b5061062f6117e1565b60405161063c9190613806565b60405180910390f35b34801561065157600080fd5b5061066c60048036038101906106679190613a2f565b6117e7565b005b34801561067a57600080fd5b5061069560048036038101906106909190613733565b611809565b6040516106a2919061376f565b60405180910390f35b3480156106b757600080fd5b506106d260048036038101906106cd91906137ca565b61181b565b6040516106df9190613806565b60405180910390f35b3480156106f457600080fd5b506106fd6118d4565b005b34801561070b57600080fd5b506107146118e8565b60405161072191906136db565b60405180910390f35b34801561073657600080fd5b5061073f611976565b60405161074c9190613a87565b60405180910390f35b34801561076157600080fd5b5061077c60048036038101906107779190613ace565b611994565b005b61079860048036038101906107939190613b6e565b6119f4565b005b3480156107a657600080fd5b506107c160048036038101906107bc91906137ca565b611dee565b6040516107ce9190613806565b60405180910390f35b3480156107e357600080fd5b506107fe60048036038101906107f9919061378a565b611e00565b005b34801561080c57600080fd5b50610815611ee4565b6040516108229190613c45565b60405180910390f35b34801561083757600080fd5b50610840611efb565b60405161084d919061376f565b60405180910390f35b34801561086257600080fd5b5061087d60048036038101906108789190613733565b611f24565b60405161088a9190613d14565b60405180910390f35b34801561089f57600080fd5b506108a8611f3c565b6040516108b591906136db565b60405180910390f35b3480156108ca57600080fd5b506108e560048036038101906108e09190613733565b611fce565b005b3480156108f357600080fd5b5061090e60048036038101906109099190613d5b565b611fe0565b005b34801561091c57600080fd5b506109256120eb565b6040516109329190613806565b60405180910390f35b34801561094757600080fd5b50610962600480360381019061095d9190613733565b6120f1565b60405161096f9190613806565b60405180910390f35b34801561098457600080fd5b5061098d612149565b60405161099a919061376f565b60405180910390f35b6109bd60048036038101906109b89190613e3c565b61216f565b005b3480156109cb57600080fd5b506109e660048036038101906109e19190613f82565b6121e2565b6040516109f39190613545565b60405180910390f35b348015610a0857600080fd5b50610a236004803603810190610a1e9190613733565b61222d565b005b348015610a3157600080fd5b50610a4c6004803603810190610a479190613733565b61223f565b604051610a5991906136db565b60405180910390f35b348015610a6e57600080fd5b50610a896004803603810190610a849190613733565b61238e565b604051610a97929190613fde565b60405180910390f35b348015610aac57600080fd5b50610ab56123c6565b604051610ac29190613806565b60405180910390f35b348015610ad757600080fd5b50610af26004803603810190610aed9190613733565b6123cc565b005b348015610b0057600080fd5b50610b1b6004803603810190610b169190613733565b6123de565b005b348015610b2957600080fd5b50610b446004803603810190610b3f9190613733565b6123f0565b604051610b519190613806565b60405180910390f35b348015610b6657600080fd5b50610b816004803603810190610b7c9190614007565b612466565b604051610b8e9190613545565b60405180910390f35b348015610ba357600080fd5b50610bbe6004803603810190610bb99190613733565b6124fa565b005b348015610bcc57600080fd5b50610bd561250c565b604051610be29190613806565b60405180910390f35b348015610bf757600080fd5b50610c126004803603810190610c0d9190613a2f565b612512565b005b348015610c2057600080fd5b50610c3b6004803603810190610c3691906137ca565b612534565b005b348015610c4957600080fd5b50610c526125b8565b604051610c5f9190613c45565b60405180910390f35b348015610c7457600080fd5b50610c7d6125cb565b604051610c8a9190613806565b60405180910390f35b6000632a55205a60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610cce5750610ccd826126bc565b5b9050919050565b610cdd61274e565b81601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055505050565b606060038054610d6290614076565b80601f0160208091040260200160405190810160405280929190818152602001828054610d8e90614076565b8015610ddb5780601f10610db057610100808354040283529160200191610ddb565b820191906000526020600020905b815481529060010190602001808311610dbe57829003601f168201915b5050505050905090565b6000610df0826127cc565b610e26576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610e6f82611809565b90508073ffffffffffffffffffffffffffffffffffffffff16610e9061282b565b73ffffffffffffffffffffffffffffffffffffffff1614610ef357610ebc81610eb761282b565b612466565b610ef2576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826007600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610fb061274e565b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000610ffe612833565b6002546001540303905090565b600061101682612838565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461107d576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061108984612906565b9150915061109f818761109a61282b565b61292d565b6110eb576110b4866110af61282b565b612466565b6110ea576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611152576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61115f8686866001612971565b801561116a57600082555b600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061123885611214888887612977565b7c02000000000000000000000000000000000000000000000000000000001761299f565b600560008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841614156112c05760006001850190506000600560008381526020019081526020016000205414156112be5760015481146112bd578360056000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461132886868660016129ca565b505050505050565b61133861274e565b8060148190555050565b806013546122b861136383611355610ff4565b6126a690919063ffffffff16565b11156113a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139b906140f4565b60405180910390fd5b6014548211156113e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e090614160565b60405180910390fd5b6113fc82826129d090919063ffffffff16565b34101561143e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611435906141cc565b60405180910390fd5b60038081111561145157611450613bce565b5b600a60009054906101000a900460ff16600381111561147357611472613bce565b5b146114b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114aa90614238565b60405180910390fd5b6114bd33846129e6565b505050565b6114ca61274e565b6122b86114e7826114d9610ff4565b6126a690919063ffffffff16565b1115611528576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151f906140f4565b60405180910390fd5b601760009054906101000a900461ffff1661ffff16611552826016546126a690919063ffffffff16565b1115611593576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158a906142a4565b60405180910390fd5b6115a8816016546126a690919063ffffffff16565b6016819055506115da601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826129e6565b50565b600d81600381106115ed57600080fd5b016000915090505481565b61160061274e565b611608612a04565b6000611612611efb565b73ffffffffffffffffffffffffffffffffffffffff1647604051611635906142f5565b60006040518083038185875af1925050503d8060008114611672576040519150601f19603f3d011682016040523d82523d6000602084013e611677565b606091505b505090508061168557600080fd5b5061168e612a54565b565b6116ab8383836040518060200160405280600081525061216f565b505050565b6116b861274e565b80600a60006101000a81548160ff021916908360038111156116dd576116dc613bce565b5b021790555050565b6116ed61274e565b600a60019054906101000a900460ff1661170b5761170a816117e7565b5b600a60019054906101000a900460ff1615600a60016101000a81548160ff02191690831515021790555050565b60006001600381111561174e5761174d613bce565b5b600a60009054906101000a900460ff1660038111156117705761176f613bce565b5b14156117805760185490506117cb565b6002600381111561179457611793613bce565b5b600a60009054906101000a900460ff1660038111156117b6576117b5613bce565b5b14156117c657601a5490506117cb565b600090505b90565b600a60019054906101000a900460ff1681565b60145481565b6117ef61274e565b80600b908051906020019061180592919061339f565b5050565b600061181482612838565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611883576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6118dc61274e565b6118e66000612a5e565b565b600c80546118f590614076565b80601f016020809104026020016040519081016040528092919081815260200182805461192190614076565b801561196e5780601f106119435761010080835404028352916020019161196e565b820191906000526020600020905b81548152906001019060200180831161195157829003601f168201915b505050505081565b601160149054906101000a90046bffffffffffffffffffffffff1681565b61199c61274e565b6000801b600d6000600381106119b5576119b461430a565b5b018190555081600d6001600381106119d0576119cf61430a565b5b018190555080600d6002600381106119eb576119ea61430a565b5b01819055505050565b826012546122b8611a1583611a07610ff4565b6126a690919063ffffffff16565b1115611a56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4d906140f4565b60405180910390fd5b601454821115611a9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9290614160565b60405180910390fd5b611aae82826129d090919063ffffffff16565b341015611af0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae7906141cc565b60405180910390fd5b60016003811115611b0457611b03613bce565b5b600a60009054906101000a900460ff166003811115611b2657611b25613bce565b5b1480611b65575060026003811115611b4157611b40613bce565b5b600a60009054906101000a900460ff166003811115611b6357611b62613bce565b5b145b611ba4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9b90614385565b60405180910390fd5b611c15848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505033604051602001611bfa91906143ed565b604051602081830303815290604052805190602001206121e2565b611c54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4b9061447a565b60405180910390fd5b601554611c7286611c6433612b22565b6126a690919063ffffffff16565b1115611cb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611caa906144e6565b60405180910390fd5b60026003811115611cc757611cc6613bce565b5b600a60009054906101000a900460ff166003811115611ce957611ce8613bce565b5b1415611d6857601b54611d0786601a546126a690919063ffffffff16565b1115611d48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3f90614552565b60405180910390fd5b611d5d85601a546126a690919063ffffffff16565b601a81905550611ddd565b601954611d80866018546126a690919063ffffffff16565b1115611dc1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db8906145be565b60405180910390fd5b611dd6856018546126a690919063ffffffff16565b6018819055505b611de733866129e6565b5050505050565b6000611df982612b22565b9050919050565b611e0861274e565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e6f9061462a565b60405180910390fd5b6122b8611e9582611e87610ff4565b6126a690919063ffffffff16565b1115611ed6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ecd906140f4565b60405180910390fd5b611ee082826129e6565b5050565b6000600a60009054906101000a900460ff16905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611f2c613425565b611f3582612b79565b9050919050565b606060048054611f4b90614076565b80601f0160208091040260200160405190810160405280929190818152602001828054611f7790614076565b8015611fc45780601f10611f9957610100808354040283529160200191611fc4565b820191906000526020600020905b815481529060010190602001808311611fa757829003601f168201915b5050505050905090565b611fd661274e565b8060198190555050565b8060086000611fed61282b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661209a61282b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516120df9190613545565b60405180910390a35050565b60125481565b6000612142601160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff1661213461271085612b9990919063ffffffff16565b6129d090919063ffffffff16565b9050919050565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61217a84848461100b565b60008373ffffffffffffffffffffffffffffffffffffffff163b146121dc576121a584848484612baf565b6121db576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600061222583600d600a60009054906101000a900460ff16600381111561220c5761220b613bce565b5b6003811061221d5761221c61430a565b5b015484612d00565b905092915050565b61223561274e565b8060138190555050565b606061224a826127cc565b612289576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612280906146bc565b60405180910390fd5b600a60019054906101000a900460ff16156122fb5760006122a8612d17565b905060008151116122c857604051806020016040528060008152506122f3565b806122d284612da9565b6040516020016122e3929190614718565b6040516020818303038152906040525b915050612389565b600c805461230890614076565b80601f016020809104026020016040519081016040528092919081815260200182805461233490614076565b80156123815780601f1061235657610100808354040283529160200191612381565b820191906000526020600020905b81548152906001019060200180831161236457829003601f168201915b505050505090505b919050565b600080601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166123bd846120f1565b91509150915091565b60155481565b6123d461274e565b80601b8190555050565b6123e661274e565b8060128190555050565b600060038081111561240557612404613bce565b5b600a60009054906101000a900460ff16600381111561242757612426613bce565b5b141561244957612442826013546129d090919063ffffffff16565b9050612461565b61245e826012546129d090919063ffffffff16565b90505b919050565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61250261274e565b8060158190555050565b60135481565b61251a61274e565b80600c908051906020019061253092919061339f565b5050565b61253c61274e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156125ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125a3906147ae565b60405180910390fd5b6125b581612a5e565b50565b600a60009054906101000a900460ff1681565b6000600160038111156125e1576125e0613bce565b5b600a60009054906101000a900460ff16600381111561260357612602613bce565b5b14156126135760195490506126a3565b6002600381111561262757612626613bce565b5b600a60009054906101000a900460ff16600381111561264957612648613bce565b5b141561265957601b5490506126a3565b60038081111561266c5761266b613bce565b5b600a60009054906101000a900460ff16600381111561268e5761268d613bce565b5b141561269e576122b890506126a3565b600090505b90565b600081836126b491906147fd565b905092915050565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061271757506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806127475750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b612756612e81565b73ffffffffffffffffffffffffffffffffffffffff16612774611efb565b73ffffffffffffffffffffffffffffffffffffffff16146127ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127c19061489f565b60405180910390fd5b565b6000816127d7612833565b111580156127e6575060015482105b8015612824575060007c0100000000000000000000000000000000000000000000000000000000600560008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b60008082905080612847612833565b116128cf576001548110156128ce5760006005600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821614156128cc575b60008114156128c2576005600083600190039350838152602001908152602001600020549050612897565b8092505050612901565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006007600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861298e868684612e89565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600081836129de91906148bf565b905092915050565b612a00828260405180602001604052806000815250612e92565b5050565b60026009541415612a4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4190614965565b60405180910390fd5b6002600981905550565b6001600981905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600067ffffffffffffffff6040600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b612b81613425565b612b92612b8d83612838565b612f30565b9050919050565b60008183612ba791906149b4565b905092915050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612bd561282b565b8786866040518563ffffffff1660e01b8152600401612bf79493929190614a3a565b6020604051808303816000875af1925050508015612c3357506040513d601f19601f82011682018060405250810190612c309190614a9b565b60015b612cad573d8060008114612c63576040519150601f19603f3d011682016040523d82523d6000602084013e612c68565b606091505b50600081511415612ca5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b600082612d0d8584612fe6565b1490509392505050565b6060600b8054612d2690614076565b80601f0160208091040260200160405190810160405280929190818152602001828054612d5290614076565b8015612d9f5780601f10612d7457610100808354040283529160200191612d9f565b820191906000526020600020905b815481529060010190602001808311612d8257829003601f168201915b5050505050905090565b606060006001612db88461303c565b01905060008167ffffffffffffffff811115612dd757612dd6613904565b5b6040519080825280601f01601f191660200182016040528015612e095781602001600182028036833780820191505090505b509050600082602001820190505b600115612e76578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612e6057612e5f614985565b5b0494506000851415612e7157612e76565b612e17565b819350505050919050565b600033905090565b60009392505050565b612e9c838361318f565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612f2b5760006001549050600083820390505b612edd6000868380600101945086612baf565b612f13576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612eca578160015414612f2857600080fd5b50505b505050565b612f38613425565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b60008082905060005b84518110156130315761301c8286838151811061300f5761300e61430a565b5b602002602001015161334d565b9150808061302990614ac8565b915050612fef565b508091505092915050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061309a577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816130905761308f614985565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106130d7576d04ee2d6d415b85acef810000000083816130cd576130cc614985565b5b0492506020810190505b662386f26fc10000831061310657662386f26fc1000083816130fc576130fb614985565b5b0492506010810190505b6305f5e100831061312f576305f5e100838161312557613124614985565b5b0492506008810190505b612710831061315457612710838161314a57613149614985565b5b0492506004810190505b60648310613177576064838161316d5761316c614985565b5b0492506002810190505b600a8310613186576001810190505b80915050919050565b6000600154905060008214156131d1576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6131de6000848385612971565b600160406001901b178202600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613255836132466000866000612977565b61324f85613378565b1761299f565b6005600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146132f657808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506132bb565b506000821415613332576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600181905550505061334860008483856129ca565b505050565b6000818310613365576133608284613388565b613370565b61336f8383613388565b5b905092915050565b60006001821460e11b9050919050565b600082600052816020526040600020905092915050565b8280546133ab90614076565b90600052602060002090601f0160209004810192826133cd5760008555613414565b82601f106133e657805160ff1916838001178555613414565b82800160010185558215613414579182015b828111156134135782518255916020019190600101906133f8565b5b5090506134219190613474565b5090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b5b8082111561348d576000816000905550600101613475565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6134da816134a5565b81146134e557600080fd5b50565b6000813590506134f7816134d1565b92915050565b6000602082840312156135135761351261349b565b5b6000613521848285016134e8565b91505092915050565b60008115159050919050565b61353f8161352a565b82525050565b600060208201905061355a6000830184613536565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061358b82613560565b9050919050565b61359b81613580565b81146135a657600080fd5b50565b6000813590506135b881613592565b92915050565b60006bffffffffffffffffffffffff82169050919050565b6135df816135be565b81146135ea57600080fd5b50565b6000813590506135fc816135d6565b92915050565b600080604083850312156136195761361861349b565b5b6000613627858286016135a9565b9250506020613638858286016135ed565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561367c578082015181840152602081019050613661565b8381111561368b576000848401525b50505050565b6000601f19601f8301169050919050565b60006136ad82613642565b6136b7818561364d565b93506136c781856020860161365e565b6136d081613691565b840191505092915050565b600060208201905081810360008301526136f581846136a2565b905092915050565b6000819050919050565b613710816136fd565b811461371b57600080fd5b50565b60008135905061372d81613707565b92915050565b6000602082840312156137495761374861349b565b5b60006137578482850161371e565b91505092915050565b61376981613580565b82525050565b60006020820190506137846000830184613760565b92915050565b600080604083850312156137a1576137a061349b565b5b60006137af858286016135a9565b92505060206137c08582860161371e565b9150509250929050565b6000602082840312156137e0576137df61349b565b5b60006137ee848285016135a9565b91505092915050565b613800816136fd565b82525050565b600060208201905061381b60008301846137f7565b92915050565b60008060006060848603121561383a5761383961349b565b5b6000613848868287016135a9565b9350506020613859868287016135a9565b925050604061386a8682870161371e565b9150509250925092565b6000819050919050565b61388781613874565b82525050565b60006020820190506138a2600083018461387e565b92915050565b600481106138b557600080fd5b50565b6000813590506138c7816138a8565b92915050565b6000602082840312156138e3576138e261349b565b5b60006138f1848285016138b8565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61393c82613691565b810181811067ffffffffffffffff8211171561395b5761395a613904565b5b80604052505050565b600061396e613491565b905061397a8282613933565b919050565b600067ffffffffffffffff82111561399a57613999613904565b5b6139a382613691565b9050602081019050919050565b82818337600083830152505050565b60006139d26139cd8461397f565b613964565b9050828152602081018484840111156139ee576139ed6138ff565b5b6139f98482856139b0565b509392505050565b600082601f830112613a1657613a156138fa565b5b8135613a268482602086016139bf565b91505092915050565b600060208284031215613a4557613a4461349b565b5b600082013567ffffffffffffffff811115613a6357613a626134a0565b5b613a6f84828501613a01565b91505092915050565b613a81816135be565b82525050565b6000602082019050613a9c6000830184613a78565b92915050565b613aab81613874565b8114613ab657600080fd5b50565b600081359050613ac881613aa2565b92915050565b60008060408385031215613ae557613ae461349b565b5b6000613af385828601613ab9565b9250506020613b0485828601613ab9565b9150509250929050565b600080fd5b600080fd5b60008083601f840112613b2e57613b2d6138fa565b5b8235905067ffffffffffffffff811115613b4b57613b4a613b0e565b5b602083019150836020820283011115613b6757613b66613b13565b5b9250929050565b600080600060408486031215613b8757613b8661349b565b5b6000613b958682870161371e565b935050602084013567ffffffffffffffff811115613bb657613bb56134a0565b5b613bc286828701613b18565b92509250509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60048110613c0e57613c0d613bce565b5b50565b6000819050613c1f82613bfd565b919050565b6000613c2f82613c11565b9050919050565b613c3f81613c24565b82525050565b6000602082019050613c5a6000830184613c36565b92915050565b613c6981613580565b82525050565b600067ffffffffffffffff82169050919050565b613c8c81613c6f565b82525050565b613c9b8161352a565b82525050565b600062ffffff82169050919050565b613cb981613ca1565b82525050565b608082016000820151613cd56000850182613c60565b506020820151613ce86020850182613c83565b506040820151613cfb6040850182613c92565b506060820151613d0e6060850182613cb0565b50505050565b6000608082019050613d296000830184613cbf565b92915050565b613d388161352a565b8114613d4357600080fd5b50565b600081359050613d5581613d2f565b92915050565b60008060408385031215613d7257613d7161349b565b5b6000613d80858286016135a9565b9250506020613d9185828601613d46565b9150509250929050565b600067ffffffffffffffff821115613db657613db5613904565b5b613dbf82613691565b9050602081019050919050565b6000613ddf613dda84613d9b565b613964565b905082815260208101848484011115613dfb57613dfa6138ff565b5b613e068482856139b0565b509392505050565b600082601f830112613e2357613e226138fa565b5b8135613e33848260208601613dcc565b91505092915050565b60008060008060808587031215613e5657613e5561349b565b5b6000613e64878288016135a9565b9450506020613e75878288016135a9565b9350506040613e868782880161371e565b925050606085013567ffffffffffffffff811115613ea757613ea66134a0565b5b613eb387828801613e0e565b91505092959194509250565b600067ffffffffffffffff821115613eda57613ed9613904565b5b602082029050602081019050919050565b6000613efe613ef984613ebf565b613964565b90508083825260208201905060208402830185811115613f2157613f20613b13565b5b835b81811015613f4a5780613f368882613ab9565b845260208401935050602081019050613f23565b5050509392505050565b600082601f830112613f6957613f686138fa565b5b8135613f79848260208601613eeb565b91505092915050565b60008060408385031215613f9957613f9861349b565b5b600083013567ffffffffffffffff811115613fb757613fb66134a0565b5b613fc385828601613f54565b9250506020613fd485828601613ab9565b9150509250929050565b6000604082019050613ff36000830185613760565b61400060208301846137f7565b9392505050565b6000806040838503121561401e5761401d61349b565b5b600061402c858286016135a9565b925050602061403d858286016135a9565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061408e57607f821691505b602082108114156140a2576140a1614047565b5b50919050565b7f72656163686564206d617820737570706c790000000000000000000000000000600082015250565b60006140de60128361364d565b91506140e9826140a8565b602082019050919050565b6000602082019050818103600083015261410d816140d1565b9050919050565b7f4d617820706572207472616e73616374696f6e20657863656564656400000000600082015250565b600061414a601c8361364d565b915061415582614114565b602082019050919050565b600060208201905081810360008301526141798161413d565b9050919050565b7f4e65656420746f2073656e64206d6f7265204554482e00000000000000000000600082015250565b60006141b660168361364d565b91506141c182614180565b602082019050919050565b600060208201905081810360008301526141e5816141a9565b9050919050565b7f42454c4945564552206d696e74696e67206e6f74207374617274000000000000600082015250565b6000614222601a8361364d565b915061422d826141ec565b602082019050919050565b6000602082019050818103600083015261425181614215565b9050919050565b7f52657365727665206c696d69742065786365656465642e000000000000000000600082015250565b600061428e60178361364d565b915061429982614258565b602082019050919050565b600060208201905081810360008301526142bd81614281565b9050919050565b600081905092915050565b50565b60006142df6000836142c4565b91506142ea826142cf565b600082019050919050565b6000614300826142d2565b9150819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f6e6f7420737461727420454c444552206f722042415054495a4544206d696e74600082015250565b600061436f60208361364d565b915061437a82614339565b602082019050919050565b6000602082019050818103600083015261439e81614362565b9050919050565b60008160601b9050919050565b60006143bd826143a5565b9050919050565b60006143cf826143b2565b9050919050565b6143e76143e282613580565b6143c4565b82525050565b60006143f982846143d6565b60148201915081905092915050565b7f4e6f207065726d697373696f6e284e6f742042415054495a4544206f7220454c60008201527f4445522900000000000000000000000000000000000000000000000000000000602082015250565b600061446460248361364d565b915061446f82614408565b604082019050919050565b6000602082019050818103600083015261449381614457565b9050919050565b7f5175616e74697479206578636565647320616c6c6f776564204d696e74730000600082015250565b60006144d0601e8361364d565b91506144db8261449a565b602082019050919050565b600060208201905081810360008301526144ff816144c3565b9050919050565b7f42617074697a656420736f6c64206f7574000000000000000000000000000000600082015250565b600061453c60118361364d565b915061454782614506565b602082019050919050565b6000602082019050818103600083015261456b8161452f565b9050919050565b7f454c44455220736f6c64206f7574000000000000000000000000000000000000600082015250565b60006145a8600e8361364d565b91506145b382614572565b602082019050919050565b600060208201905081810360008301526145d78161459b565b9050919050565b7f43616e6e6f742061697264726f7020746f207a65726f20616464726573730000600082015250565b6000614614601e8361364d565b915061461f826145de565b602082019050919050565b6000602082019050818103600083015261464381614607565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006146a6602f8361364d565b91506146b18261464a565b604082019050919050565b600060208201905081810360008301526146d581614699565b9050919050565b600081905092915050565b60006146f282613642565b6146fc81856146dc565b935061470c81856020860161365e565b80840191505092915050565b600061472482856146e7565b915061473082846146e7565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061479860268361364d565b91506147a38261473c565b604082019050919050565b600060208201905081810360008301526147c78161478b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614808826136fd565b9150614813836136fd565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614848576148476147ce565b5b828201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061488960208361364d565b915061489482614853565b602082019050919050565b600060208201905081810360008301526148b88161487c565b9050919050565b60006148ca826136fd565b91506148d5836136fd565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561490e5761490d6147ce565b5b828202905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061494f601f8361364d565b915061495a82614919565b602082019050919050565b6000602082019050818103600083015261497e81614942565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006149bf826136fd565b91506149ca836136fd565b9250826149da576149d9614985565b5b828204905092915050565b600081519050919050565b600082825260208201905092915050565b6000614a0c826149e5565b614a1681856149f0565b9350614a2681856020860161365e565b614a2f81613691565b840191505092915050565b6000608082019050614a4f6000830187613760565b614a5c6020830186613760565b614a6960408301856137f7565b8181036060830152614a7b8184614a01565b905095945050505050565b600081519050614a95816134d1565b92915050565b600060208284031215614ab157614ab061349b565b5b6000614abf84828501614a86565b91505092915050565b6000614ad3826136fd565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614b0657614b056147ce565b5b60018201905091905056fea26469706673582212202c202ab0502bd5e5048309d05c77d4765bd72dd342aa64f103bdf60b5fbfa5f064736f6c634300080b0033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000002bc000000000000000000000000d9463d96dcec70c48493960a7607aeba18c4b9170000000000000000000000000000000000000000000000000000000000000043697066733a2f2f516d644c394441754754574276333636317a454552673651783376626d385351685a6e6a6d365a67773763657a792f6d656574436f636f2e6a736f6e0000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106103355760003560e01c80638a59a7fd116101ab578063c6275255116100f7578063e985e9c511610095578063f2c4ce1e1161006f578063f2c4ce1e14610beb578063f2fde38b14610c14578063f9020e3314610c3d578063fa93757114610c6857610335565b8063e985e9c514610b5a578063e99c4b7214610b97578063eb5c782314610bc057610335565b8063dc18334e116100d1578063dc18334e14610aa0578063de6ecf4814610acb578063e5b997f514610af4578063e757223014610b1d57610335565b8063c6275255146109fc578063c87b56dd14610a25578063cef6d36814610a6257610335565b80639bfee72711610164578063a2e696131161013e578063a2e696131461093b578063ad2f852a14610978578063b88d4fde146109a3578063b8a20ed0146109bf57610335565b80639bfee727146108be578063a22cb465146108e7578063a24e51531461091057610335565b80638a59a7fd1461079a5780638ba4cc3c146107d75780638c3c4b34146108005780638da5cb5b1461082b5780639231ab2a1461085657806395d89b411461089357610335565b806342842e0e116102855780636352211e1161022357806372250380116101fd57806372250380146106ff57806373c7400e1461072a57806375edcbe014610755578063876517661461077e57610335565b80636352211e1461066e57806370a08231146106ab578063715018a6146106e857610335565b80634d9ac6811161025f5780634d9ac681146105c457806351830227146105ef57806351d7ff931461061a57806355f804b31461064557610335565b806342842e0e146105565780634891ad88146105725780634c2612471461059b57610335565b806318160ddd116102f257806330027cd5116102cc57806330027cd5146104bd578063397be3fd146104d95780633c70b357146105025780633ccfd60b1461053f57610335565b806318160ddd1461044d57806323b872dd1461047857806325dc45ce1461049457610335565b806301ffc9a71461033a57806302fa7c471461037757806306fdde03146103a0578063081812fc146103cb578063095ea7b3146104085780631525ff7d14610424575b600080fd5b34801561034657600080fd5b50610361600480360381019061035c91906134fd565b610c93565b60405161036e9190613545565b60405180910390f35b34801561038357600080fd5b5061039e60048036038101906103999190613602565b610cd5565b005b3480156103ac57600080fd5b506103b5610d53565b6040516103c291906136db565b60405180910390f35b3480156103d757600080fd5b506103f260048036038101906103ed9190613733565b610de5565b6040516103ff919061376f565b60405180910390f35b610422600480360381019061041d919061378a565b610e64565b005b34801561043057600080fd5b5061044b600480360381019061044691906137ca565b610fa8565b005b34801561045957600080fd5b50610462610ff4565b60405161046f9190613806565b60405180910390f35b610492600480360381019061048d9190613821565b61100b565b005b3480156104a057600080fd5b506104bb60048036038101906104b69190613733565b611330565b005b6104d760048036038101906104d29190613733565b611342565b005b3480156104e557600080fd5b5061050060048036038101906104fb9190613733565b6114c2565b005b34801561050e57600080fd5b5061052960048036038101906105249190613733565b6115dd565b604051610536919061388d565b60405180910390f35b34801561054b57600080fd5b506105546115f8565b005b610570600480360381019061056b9190613821565b611690565b005b34801561057e57600080fd5b50610599600480360381019061059491906138cd565b6116b0565b005b3480156105a757600080fd5b506105c260048036038101906105bd9190613a2f565b6116e5565b005b3480156105d057600080fd5b506105d9611738565b6040516105e69190613806565b60405180910390f35b3480156105fb57600080fd5b506106046117ce565b6040516106119190613545565b60405180910390f35b34801561062657600080fd5b5061062f6117e1565b60405161063c9190613806565b60405180910390f35b34801561065157600080fd5b5061066c60048036038101906106679190613a2f565b6117e7565b005b34801561067a57600080fd5b5061069560048036038101906106909190613733565b611809565b6040516106a2919061376f565b60405180910390f35b3480156106b757600080fd5b506106d260048036038101906106cd91906137ca565b61181b565b6040516106df9190613806565b60405180910390f35b3480156106f457600080fd5b506106fd6118d4565b005b34801561070b57600080fd5b506107146118e8565b60405161072191906136db565b60405180910390f35b34801561073657600080fd5b5061073f611976565b60405161074c9190613a87565b60405180910390f35b34801561076157600080fd5b5061077c60048036038101906107779190613ace565b611994565b005b61079860048036038101906107939190613b6e565b6119f4565b005b3480156107a657600080fd5b506107c160048036038101906107bc91906137ca565b611dee565b6040516107ce9190613806565b60405180910390f35b3480156107e357600080fd5b506107fe60048036038101906107f9919061378a565b611e00565b005b34801561080c57600080fd5b50610815611ee4565b6040516108229190613c45565b60405180910390f35b34801561083757600080fd5b50610840611efb565b60405161084d919061376f565b60405180910390f35b34801561086257600080fd5b5061087d60048036038101906108789190613733565b611f24565b60405161088a9190613d14565b60405180910390f35b34801561089f57600080fd5b506108a8611f3c565b6040516108b591906136db565b60405180910390f35b3480156108ca57600080fd5b506108e560048036038101906108e09190613733565b611fce565b005b3480156108f357600080fd5b5061090e60048036038101906109099190613d5b565b611fe0565b005b34801561091c57600080fd5b506109256120eb565b6040516109329190613806565b60405180910390f35b34801561094757600080fd5b50610962600480360381019061095d9190613733565b6120f1565b60405161096f9190613806565b60405180910390f35b34801561098457600080fd5b5061098d612149565b60405161099a919061376f565b60405180910390f35b6109bd60048036038101906109b89190613e3c565b61216f565b005b3480156109cb57600080fd5b506109e660048036038101906109e19190613f82565b6121e2565b6040516109f39190613545565b60405180910390f35b348015610a0857600080fd5b50610a236004803603810190610a1e9190613733565b61222d565b005b348015610a3157600080fd5b50610a4c6004803603810190610a479190613733565b61223f565b604051610a5991906136db565b60405180910390f35b348015610a6e57600080fd5b50610a896004803603810190610a849190613733565b61238e565b604051610a97929190613fde565b60405180910390f35b348015610aac57600080fd5b50610ab56123c6565b604051610ac29190613806565b60405180910390f35b348015610ad757600080fd5b50610af26004803603810190610aed9190613733565b6123cc565b005b348015610b0057600080fd5b50610b1b6004803603810190610b169190613733565b6123de565b005b348015610b2957600080fd5b50610b446004803603810190610b3f9190613733565b6123f0565b604051610b519190613806565b60405180910390f35b348015610b6657600080fd5b50610b816004803603810190610b7c9190614007565b612466565b604051610b8e9190613545565b60405180910390f35b348015610ba357600080fd5b50610bbe6004803603810190610bb99190613733565b6124fa565b005b348015610bcc57600080fd5b50610bd561250c565b604051610be29190613806565b60405180910390f35b348015610bf757600080fd5b50610c126004803603810190610c0d9190613a2f565b612512565b005b348015610c2057600080fd5b50610c3b6004803603810190610c3691906137ca565b612534565b005b348015610c4957600080fd5b50610c526125b8565b604051610c5f9190613c45565b60405180910390f35b348015610c7457600080fd5b50610c7d6125cb565b604051610c8a9190613806565b60405180910390f35b6000632a55205a60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610cce5750610ccd826126bc565b5b9050919050565b610cdd61274e565b81601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055505050565b606060038054610d6290614076565b80601f0160208091040260200160405190810160405280929190818152602001828054610d8e90614076565b8015610ddb5780601f10610db057610100808354040283529160200191610ddb565b820191906000526020600020905b815481529060010190602001808311610dbe57829003601f168201915b5050505050905090565b6000610df0826127cc565b610e26576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610e6f82611809565b90508073ffffffffffffffffffffffffffffffffffffffff16610e9061282b565b73ffffffffffffffffffffffffffffffffffffffff1614610ef357610ebc81610eb761282b565b612466565b610ef2576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826007600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610fb061274e565b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000610ffe612833565b6002546001540303905090565b600061101682612838565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461107d576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061108984612906565b9150915061109f818761109a61282b565b61292d565b6110eb576110b4866110af61282b565b612466565b6110ea576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611152576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61115f8686866001612971565b801561116a57600082555b600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061123885611214888887612977565b7c02000000000000000000000000000000000000000000000000000000001761299f565b600560008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841614156112c05760006001850190506000600560008381526020019081526020016000205414156112be5760015481146112bd578360056000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461132886868660016129ca565b505050505050565b61133861274e565b8060148190555050565b806013546122b861136383611355610ff4565b6126a690919063ffffffff16565b11156113a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139b906140f4565b60405180910390fd5b6014548211156113e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e090614160565b60405180910390fd5b6113fc82826129d090919063ffffffff16565b34101561143e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611435906141cc565b60405180910390fd5b60038081111561145157611450613bce565b5b600a60009054906101000a900460ff16600381111561147357611472613bce565b5b146114b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114aa90614238565b60405180910390fd5b6114bd33846129e6565b505050565b6114ca61274e565b6122b86114e7826114d9610ff4565b6126a690919063ffffffff16565b1115611528576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151f906140f4565b60405180910390fd5b601760009054906101000a900461ffff1661ffff16611552826016546126a690919063ffffffff16565b1115611593576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158a906142a4565b60405180910390fd5b6115a8816016546126a690919063ffffffff16565b6016819055506115da601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826129e6565b50565b600d81600381106115ed57600080fd5b016000915090505481565b61160061274e565b611608612a04565b6000611612611efb565b73ffffffffffffffffffffffffffffffffffffffff1647604051611635906142f5565b60006040518083038185875af1925050503d8060008114611672576040519150601f19603f3d011682016040523d82523d6000602084013e611677565b606091505b505090508061168557600080fd5b5061168e612a54565b565b6116ab8383836040518060200160405280600081525061216f565b505050565b6116b861274e565b80600a60006101000a81548160ff021916908360038111156116dd576116dc613bce565b5b021790555050565b6116ed61274e565b600a60019054906101000a900460ff1661170b5761170a816117e7565b5b600a60019054906101000a900460ff1615600a60016101000a81548160ff02191690831515021790555050565b60006001600381111561174e5761174d613bce565b5b600a60009054906101000a900460ff1660038111156117705761176f613bce565b5b14156117805760185490506117cb565b6002600381111561179457611793613bce565b5b600a60009054906101000a900460ff1660038111156117b6576117b5613bce565b5b14156117c657601a5490506117cb565b600090505b90565b600a60019054906101000a900460ff1681565b60145481565b6117ef61274e565b80600b908051906020019061180592919061339f565b5050565b600061181482612838565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611883576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6118dc61274e565b6118e66000612a5e565b565b600c80546118f590614076565b80601f016020809104026020016040519081016040528092919081815260200182805461192190614076565b801561196e5780601f106119435761010080835404028352916020019161196e565b820191906000526020600020905b81548152906001019060200180831161195157829003601f168201915b505050505081565b601160149054906101000a90046bffffffffffffffffffffffff1681565b61199c61274e565b6000801b600d6000600381106119b5576119b461430a565b5b018190555081600d6001600381106119d0576119cf61430a565b5b018190555080600d6002600381106119eb576119ea61430a565b5b01819055505050565b826012546122b8611a1583611a07610ff4565b6126a690919063ffffffff16565b1115611a56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4d906140f4565b60405180910390fd5b601454821115611a9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9290614160565b60405180910390fd5b611aae82826129d090919063ffffffff16565b341015611af0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae7906141cc565b60405180910390fd5b60016003811115611b0457611b03613bce565b5b600a60009054906101000a900460ff166003811115611b2657611b25613bce565b5b1480611b65575060026003811115611b4157611b40613bce565b5b600a60009054906101000a900460ff166003811115611b6357611b62613bce565b5b145b611ba4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9b90614385565b60405180910390fd5b611c15848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505033604051602001611bfa91906143ed565b604051602081830303815290604052805190602001206121e2565b611c54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4b9061447a565b60405180910390fd5b601554611c7286611c6433612b22565b6126a690919063ffffffff16565b1115611cb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611caa906144e6565b60405180910390fd5b60026003811115611cc757611cc6613bce565b5b600a60009054906101000a900460ff166003811115611ce957611ce8613bce565b5b1415611d6857601b54611d0786601a546126a690919063ffffffff16565b1115611d48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3f90614552565b60405180910390fd5b611d5d85601a546126a690919063ffffffff16565b601a81905550611ddd565b601954611d80866018546126a690919063ffffffff16565b1115611dc1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db8906145be565b60405180910390fd5b611dd6856018546126a690919063ffffffff16565b6018819055505b611de733866129e6565b5050505050565b6000611df982612b22565b9050919050565b611e0861274e565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e6f9061462a565b60405180910390fd5b6122b8611e9582611e87610ff4565b6126a690919063ffffffff16565b1115611ed6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ecd906140f4565b60405180910390fd5b611ee082826129e6565b5050565b6000600a60009054906101000a900460ff16905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611f2c613425565b611f3582612b79565b9050919050565b606060048054611f4b90614076565b80601f0160208091040260200160405190810160405280929190818152602001828054611f7790614076565b8015611fc45780601f10611f9957610100808354040283529160200191611fc4565b820191906000526020600020905b815481529060010190602001808311611fa757829003601f168201915b5050505050905090565b611fd661274e565b8060198190555050565b8060086000611fed61282b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661209a61282b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516120df9190613545565b60405180910390a35050565b60125481565b6000612142601160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff1661213461271085612b9990919063ffffffff16565b6129d090919063ffffffff16565b9050919050565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61217a84848461100b565b60008373ffffffffffffffffffffffffffffffffffffffff163b146121dc576121a584848484612baf565b6121db576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600061222583600d600a60009054906101000a900460ff16600381111561220c5761220b613bce565b5b6003811061221d5761221c61430a565b5b015484612d00565b905092915050565b61223561274e565b8060138190555050565b606061224a826127cc565b612289576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612280906146bc565b60405180910390fd5b600a60019054906101000a900460ff16156122fb5760006122a8612d17565b905060008151116122c857604051806020016040528060008152506122f3565b806122d284612da9565b6040516020016122e3929190614718565b6040516020818303038152906040525b915050612389565b600c805461230890614076565b80601f016020809104026020016040519081016040528092919081815260200182805461233490614076565b80156123815780601f1061235657610100808354040283529160200191612381565b820191906000526020600020905b81548152906001019060200180831161236457829003601f168201915b505050505090505b919050565b600080601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166123bd846120f1565b91509150915091565b60155481565b6123d461274e565b80601b8190555050565b6123e661274e565b8060128190555050565b600060038081111561240557612404613bce565b5b600a60009054906101000a900460ff16600381111561242757612426613bce565b5b141561244957612442826013546129d090919063ffffffff16565b9050612461565b61245e826012546129d090919063ffffffff16565b90505b919050565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61250261274e565b8060158190555050565b60135481565b61251a61274e565b80600c908051906020019061253092919061339f565b5050565b61253c61274e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156125ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125a3906147ae565b60405180910390fd5b6125b581612a5e565b50565b600a60009054906101000a900460ff1681565b6000600160038111156125e1576125e0613bce565b5b600a60009054906101000a900460ff16600381111561260357612602613bce565b5b14156126135760195490506126a3565b6002600381111561262757612626613bce565b5b600a60009054906101000a900460ff16600381111561264957612648613bce565b5b141561265957601b5490506126a3565b60038081111561266c5761266b613bce565b5b600a60009054906101000a900460ff16600381111561268e5761268d613bce565b5b141561269e576122b890506126a3565b600090505b90565b600081836126b491906147fd565b905092915050565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061271757506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806127475750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b612756612e81565b73ffffffffffffffffffffffffffffffffffffffff16612774611efb565b73ffffffffffffffffffffffffffffffffffffffff16146127ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127c19061489f565b60405180910390fd5b565b6000816127d7612833565b111580156127e6575060015482105b8015612824575060007c0100000000000000000000000000000000000000000000000000000000600560008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b60008082905080612847612833565b116128cf576001548110156128ce5760006005600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821614156128cc575b60008114156128c2576005600083600190039350838152602001908152602001600020549050612897565b8092505050612901565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006007600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861298e868684612e89565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600081836129de91906148bf565b905092915050565b612a00828260405180602001604052806000815250612e92565b5050565b60026009541415612a4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4190614965565b60405180910390fd5b6002600981905550565b6001600981905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600067ffffffffffffffff6040600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b612b81613425565b612b92612b8d83612838565b612f30565b9050919050565b60008183612ba791906149b4565b905092915050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612bd561282b565b8786866040518563ffffffff1660e01b8152600401612bf79493929190614a3a565b6020604051808303816000875af1925050508015612c3357506040513d601f19601f82011682018060405250810190612c309190614a9b565b60015b612cad573d8060008114612c63576040519150601f19603f3d011682016040523d82523d6000602084013e612c68565b606091505b50600081511415612ca5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b600082612d0d8584612fe6565b1490509392505050565b6060600b8054612d2690614076565b80601f0160208091040260200160405190810160405280929190818152602001828054612d5290614076565b8015612d9f5780601f10612d7457610100808354040283529160200191612d9f565b820191906000526020600020905b815481529060010190602001808311612d8257829003601f168201915b5050505050905090565b606060006001612db88461303c565b01905060008167ffffffffffffffff811115612dd757612dd6613904565b5b6040519080825280601f01601f191660200182016040528015612e095781602001600182028036833780820191505090505b509050600082602001820190505b600115612e76578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612e6057612e5f614985565b5b0494506000851415612e7157612e76565b612e17565b819350505050919050565b600033905090565b60009392505050565b612e9c838361318f565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612f2b5760006001549050600083820390505b612edd6000868380600101945086612baf565b612f13576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612eca578160015414612f2857600080fd5b50505b505050565b612f38613425565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b60008082905060005b84518110156130315761301c8286838151811061300f5761300e61430a565b5b602002602001015161334d565b9150808061302990614ac8565b915050612fef565b508091505092915050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061309a577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816130905761308f614985565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106130d7576d04ee2d6d415b85acef810000000083816130cd576130cc614985565b5b0492506020810190505b662386f26fc10000831061310657662386f26fc1000083816130fc576130fb614985565b5b0492506010810190505b6305f5e100831061312f576305f5e100838161312557613124614985565b5b0492506008810190505b612710831061315457612710838161314a57613149614985565b5b0492506004810190505b60648310613177576064838161316d5761316c614985565b5b0492506002810190505b600a8310613186576001810190505b80915050919050565b6000600154905060008214156131d1576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6131de6000848385612971565b600160406001901b178202600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613255836132466000866000612977565b61324f85613378565b1761299f565b6005600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146132f657808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506132bb565b506000821415613332576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600181905550505061334860008483856129ca565b505050565b6000818310613365576133608284613388565b613370565b61336f8383613388565b5b905092915050565b60006001821460e11b9050919050565b600082600052816020526040600020905092915050565b8280546133ab90614076565b90600052602060002090601f0160209004810192826133cd5760008555613414565b82601f106133e657805160ff1916838001178555613414565b82800160010185558215613414579182015b828111156134135782518255916020019190600101906133f8565b5b5090506134219190613474565b5090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b5b8082111561348d576000816000905550600101613475565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6134da816134a5565b81146134e557600080fd5b50565b6000813590506134f7816134d1565b92915050565b6000602082840312156135135761351261349b565b5b6000613521848285016134e8565b91505092915050565b60008115159050919050565b61353f8161352a565b82525050565b600060208201905061355a6000830184613536565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061358b82613560565b9050919050565b61359b81613580565b81146135a657600080fd5b50565b6000813590506135b881613592565b92915050565b60006bffffffffffffffffffffffff82169050919050565b6135df816135be565b81146135ea57600080fd5b50565b6000813590506135fc816135d6565b92915050565b600080604083850312156136195761361861349b565b5b6000613627858286016135a9565b9250506020613638858286016135ed565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561367c578082015181840152602081019050613661565b8381111561368b576000848401525b50505050565b6000601f19601f8301169050919050565b60006136ad82613642565b6136b7818561364d565b93506136c781856020860161365e565b6136d081613691565b840191505092915050565b600060208201905081810360008301526136f581846136a2565b905092915050565b6000819050919050565b613710816136fd565b811461371b57600080fd5b50565b60008135905061372d81613707565b92915050565b6000602082840312156137495761374861349b565b5b60006137578482850161371e565b91505092915050565b61376981613580565b82525050565b60006020820190506137846000830184613760565b92915050565b600080604083850312156137a1576137a061349b565b5b60006137af858286016135a9565b92505060206137c08582860161371e565b9150509250929050565b6000602082840312156137e0576137df61349b565b5b60006137ee848285016135a9565b91505092915050565b613800816136fd565b82525050565b600060208201905061381b60008301846137f7565b92915050565b60008060006060848603121561383a5761383961349b565b5b6000613848868287016135a9565b9350506020613859868287016135a9565b925050604061386a8682870161371e565b9150509250925092565b6000819050919050565b61388781613874565b82525050565b60006020820190506138a2600083018461387e565b92915050565b600481106138b557600080fd5b50565b6000813590506138c7816138a8565b92915050565b6000602082840312156138e3576138e261349b565b5b60006138f1848285016138b8565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61393c82613691565b810181811067ffffffffffffffff8211171561395b5761395a613904565b5b80604052505050565b600061396e613491565b905061397a8282613933565b919050565b600067ffffffffffffffff82111561399a57613999613904565b5b6139a382613691565b9050602081019050919050565b82818337600083830152505050565b60006139d26139cd8461397f565b613964565b9050828152602081018484840111156139ee576139ed6138ff565b5b6139f98482856139b0565b509392505050565b600082601f830112613a1657613a156138fa565b5b8135613a268482602086016139bf565b91505092915050565b600060208284031215613a4557613a4461349b565b5b600082013567ffffffffffffffff811115613a6357613a626134a0565b5b613a6f84828501613a01565b91505092915050565b613a81816135be565b82525050565b6000602082019050613a9c6000830184613a78565b92915050565b613aab81613874565b8114613ab657600080fd5b50565b600081359050613ac881613aa2565b92915050565b60008060408385031215613ae557613ae461349b565b5b6000613af385828601613ab9565b9250506020613b0485828601613ab9565b9150509250929050565b600080fd5b600080fd5b60008083601f840112613b2e57613b2d6138fa565b5b8235905067ffffffffffffffff811115613b4b57613b4a613b0e565b5b602083019150836020820283011115613b6757613b66613b13565b5b9250929050565b600080600060408486031215613b8757613b8661349b565b5b6000613b958682870161371e565b935050602084013567ffffffffffffffff811115613bb657613bb56134a0565b5b613bc286828701613b18565b92509250509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60048110613c0e57613c0d613bce565b5b50565b6000819050613c1f82613bfd565b919050565b6000613c2f82613c11565b9050919050565b613c3f81613c24565b82525050565b6000602082019050613c5a6000830184613c36565b92915050565b613c6981613580565b82525050565b600067ffffffffffffffff82169050919050565b613c8c81613c6f565b82525050565b613c9b8161352a565b82525050565b600062ffffff82169050919050565b613cb981613ca1565b82525050565b608082016000820151613cd56000850182613c60565b506020820151613ce86020850182613c83565b506040820151613cfb6040850182613c92565b506060820151613d0e6060850182613cb0565b50505050565b6000608082019050613d296000830184613cbf565b92915050565b613d388161352a565b8114613d4357600080fd5b50565b600081359050613d5581613d2f565b92915050565b60008060408385031215613d7257613d7161349b565b5b6000613d80858286016135a9565b9250506020613d9185828601613d46565b9150509250929050565b600067ffffffffffffffff821115613db657613db5613904565b5b613dbf82613691565b9050602081019050919050565b6000613ddf613dda84613d9b565b613964565b905082815260208101848484011115613dfb57613dfa6138ff565b5b613e068482856139b0565b509392505050565b600082601f830112613e2357613e226138fa565b5b8135613e33848260208601613dcc565b91505092915050565b60008060008060808587031215613e5657613e5561349b565b5b6000613e64878288016135a9565b9450506020613e75878288016135a9565b9350506040613e868782880161371e565b925050606085013567ffffffffffffffff811115613ea757613ea66134a0565b5b613eb387828801613e0e565b91505092959194509250565b600067ffffffffffffffff821115613eda57613ed9613904565b5b602082029050602081019050919050565b6000613efe613ef984613ebf565b613964565b90508083825260208201905060208402830185811115613f2157613f20613b13565b5b835b81811015613f4a5780613f368882613ab9565b845260208401935050602081019050613f23565b5050509392505050565b600082601f830112613f6957613f686138fa565b5b8135613f79848260208601613eeb565b91505092915050565b60008060408385031215613f9957613f9861349b565b5b600083013567ffffffffffffffff811115613fb757613fb66134a0565b5b613fc385828601613f54565b9250506020613fd485828601613ab9565b9150509250929050565b6000604082019050613ff36000830185613760565b61400060208301846137f7565b9392505050565b6000806040838503121561401e5761401d61349b565b5b600061402c858286016135a9565b925050602061403d858286016135a9565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061408e57607f821691505b602082108114156140a2576140a1614047565b5b50919050565b7f72656163686564206d617820737570706c790000000000000000000000000000600082015250565b60006140de60128361364d565b91506140e9826140a8565b602082019050919050565b6000602082019050818103600083015261410d816140d1565b9050919050565b7f4d617820706572207472616e73616374696f6e20657863656564656400000000600082015250565b600061414a601c8361364d565b915061415582614114565b602082019050919050565b600060208201905081810360008301526141798161413d565b9050919050565b7f4e65656420746f2073656e64206d6f7265204554482e00000000000000000000600082015250565b60006141b660168361364d565b91506141c182614180565b602082019050919050565b600060208201905081810360008301526141e5816141a9565b9050919050565b7f42454c4945564552206d696e74696e67206e6f74207374617274000000000000600082015250565b6000614222601a8361364d565b915061422d826141ec565b602082019050919050565b6000602082019050818103600083015261425181614215565b9050919050565b7f52657365727665206c696d69742065786365656465642e000000000000000000600082015250565b600061428e60178361364d565b915061429982614258565b602082019050919050565b600060208201905081810360008301526142bd81614281565b9050919050565b600081905092915050565b50565b60006142df6000836142c4565b91506142ea826142cf565b600082019050919050565b6000614300826142d2565b9150819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f6e6f7420737461727420454c444552206f722042415054495a4544206d696e74600082015250565b600061436f60208361364d565b915061437a82614339565b602082019050919050565b6000602082019050818103600083015261439e81614362565b9050919050565b60008160601b9050919050565b60006143bd826143a5565b9050919050565b60006143cf826143b2565b9050919050565b6143e76143e282613580565b6143c4565b82525050565b60006143f982846143d6565b60148201915081905092915050565b7f4e6f207065726d697373696f6e284e6f742042415054495a4544206f7220454c60008201527f4445522900000000000000000000000000000000000000000000000000000000602082015250565b600061446460248361364d565b915061446f82614408565b604082019050919050565b6000602082019050818103600083015261449381614457565b9050919050565b7f5175616e74697479206578636565647320616c6c6f776564204d696e74730000600082015250565b60006144d0601e8361364d565b91506144db8261449a565b602082019050919050565b600060208201905081810360008301526144ff816144c3565b9050919050565b7f42617074697a656420736f6c64206f7574000000000000000000000000000000600082015250565b600061453c60118361364d565b915061454782614506565b602082019050919050565b6000602082019050818103600083015261456b8161452f565b9050919050565b7f454c44455220736f6c64206f7574000000000000000000000000000000000000600082015250565b60006145a8600e8361364d565b91506145b382614572565b602082019050919050565b600060208201905081810360008301526145d78161459b565b9050919050565b7f43616e6e6f742061697264726f7020746f207a65726f20616464726573730000600082015250565b6000614614601e8361364d565b915061461f826145de565b602082019050919050565b6000602082019050818103600083015261464381614607565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006146a6602f8361364d565b91506146b18261464a565b604082019050919050565b600060208201905081810360008301526146d581614699565b9050919050565b600081905092915050565b60006146f282613642565b6146fc81856146dc565b935061470c81856020860161365e565b80840191505092915050565b600061472482856146e7565b915061473082846146e7565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061479860268361364d565b91506147a38261473c565b604082019050919050565b600060208201905081810360008301526147c78161478b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614808826136fd565b9150614813836136fd565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614848576148476147ce565b5b828201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061488960208361364d565b915061489482614853565b602082019050919050565b600060208201905081810360008301526148b88161487c565b9050919050565b60006148ca826136fd565b91506148d5836136fd565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561490e5761490d6147ce565b5b828202905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061494f601f8361364d565b915061495a82614919565b602082019050919050565b6000602082019050818103600083015261497e81614942565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006149bf826136fd565b91506149ca836136fd565b9250826149da576149d9614985565b5b828204905092915050565b600081519050919050565b600082825260208201905092915050565b6000614a0c826149e5565b614a1681856149f0565b9350614a2681856020860161365e565b614a2f81613691565b840191505092915050565b6000608082019050614a4f6000830187613760565b614a5c6020830186613760565b614a6960408301856137f7565b8181036060830152614a7b8184614a01565b905095945050505050565b600081519050614a95816134d1565b92915050565b600060208284031215614ab157614ab061349b565b5b6000614abf84828501614a86565b91505092915050565b6000614ad3826136fd565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614b0657614b056147ce565b5b60018201905091905056fea26469706673582212202c202ab0502bd5e5048309d05c77d4765bd72dd342aa64f103bdf60b5fbfa5f064736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000002bc000000000000000000000000d9463d96dcec70c48493960a7607aeba18c4b9170000000000000000000000000000000000000000000000000000000000000043697066733a2f2f516d644c394441754754574276333636317a454552673651783376626d385351685a6e6a6d365a67773763657a792f6d656574436f636f2e6a736f6e0000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _hiddenURI (string): ipfs://QmdL9DAuGTWBv3661zEERg6Qx3vbm8SQhZnjm6Zgw7cezy/meetCoco.json
Arg [1] : _royaltyFeesInBips (uint96): 700
Arg [2] : _teamWallet (address): 0xd9463d96dCeC70c48493960A7607AeBa18C4B917
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000002bc
Arg [2] : 000000000000000000000000d9463d96dcec70c48493960a7607aeba18c4b917
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [4] : 697066733a2f2f516d644c394441754754574276333636317a45455267365178
Arg [5] : 3376626d385351685a6e6a6d365a67773763657a792f6d656574436f636f2e6a
Arg [6] : 736f6e0000000000000000000000000000000000000000000000000000000000
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.