Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
6,091 LMAC
Holders
579
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 LMACLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
LMACEXPERIMENT
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.4; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "erc721a/contracts/ERC721A.sol"; contract LMACEXPERIMENT is ERC721A, Ownable, ReentrancyGuard { using Address for address; uint256 public mintPrice = 0.05 ether; uint256 public LBACHoldersMintPrice = 0 ether; uint256 public maxSupply = 10000; uint256 public mintLimit = 20; string public baseTokenUri; bool public revealed = false; string public unRevealUri; Addresses public addresses; address[] private beneficiaries; SaleState public sale; mapping(address => claimingData) public claimingDetails; mapping(address => uint256) public LBACHoldersSupply; modifier rewardTime(address user) { require(block.timestamp >= claimingDetails[user].lastClaimed + 1 days, "Claim time hasn't passed yet."); _; } constructor( string memory name_, string memory symbol_, string memory unRevealUri_, string memory baseTokenUri_, address coinAddress, address coinOwnerAddress, address LBACCoinAddress, address lilBananaCoinAddress, address[] memory beneficiaries_ ) ERC721A ( name_, symbol_ ) { sale = SaleState.Initial; unRevealUri = unRevealUri_; baseTokenUri = baseTokenUri_; beneficiaries = beneficiaries_; addresses = Addresses(coinAddress, coinOwnerAddress, LBACCoinAddress, lilBananaCoinAddress); } struct claimingData { uint256 lastClaimed; uint256 claimed; } struct Addresses { address coinAddress; address coinOwnerAddress; address NFTAddress; address lilBCoinAddress; } enum SaleState { Initial, StartSale, EndSale } function startSale() external onlyOwner { sale = SaleState.StartSale; } function EndSale() external onlyOwner { sale = SaleState.EndSale; } function setBaseTokenUri(string memory baseTokenUri_) external onlyOwner { baseTokenUri = baseTokenUri_; } function setUnRevealUrl(string memory revealUri_) external onlyOwner { unRevealUri = revealUri_; } function changeBeneficiaries(address[] memory newBeneficiaries) external onlyOwner { beneficiaries = newBeneficiaries; } function revealCollection() external onlyOwner{ revealed = true; } function tokenURI(uint256 tokenId_) public view override(ERC721A) returns (string memory ) { if (!_exists(tokenId_)) revert URIQueryForNonexistentToken(); if (revealed == true) { return string(abi.encodePacked(baseTokenUri, Strings.toString(tokenId_), ".json")); } else { return unRevealUri; } } function withdrawAll() external onlyOwner { uint256 balance = address(this).balance; balance = balance / 3; for(uint256 i=0; i < beneficiaries.length;i++) { payable(beneficiaries[i]).transfer(balance); } } function changeMaxSupply(uint256 supply) external onlyOwner { maxSupply = supply; } function setMintLimit(uint256 limit) external onlyOwner { mintLimit = limit; } function setMintPrice(uint256 price) external onlyOwner { mintPrice = price; } function setLBACHoldersMintPrice(uint256 price) external onlyOwner { LBACHoldersMintPrice = price; } function mint( uint256 amount ) external payable nonReentrant { require( sale == SaleState.StartSale, "Sale hasn't Started Yet." ); require( !Address.isContract(msg.sender), "Contracts are not allowed to mint." ); require( _totalMinted() + amount <= maxSupply, "Amount should not exceed max supply." ); if (totalSupply() <= 5000) { require( amount <= mintLimit, "Mint limit exceeded." ); require( amount * mintPrice <= msg.value, "Insuficient ETH to mint." ); if(msg.value > amount * mintPrice) { payable(msg.sender).transfer(msg.value - (amount * mintPrice)); } } else { require( LBACHoldersSupply[msg.sender] + amount <= ERC721(addresses.NFTAddress).balanceOf(msg.sender), "Not enough LBAC'S in your account" ); require( amount * LBACHoldersMintPrice <= msg.value, "Insuficient ETH to mint." ); LBACHoldersSupply[msg.sender] += amount; if(msg.value > amount * LBACHoldersMintPrice) { payable(msg.sender).transfer(msg.value - (amount * LBACHoldersMintPrice)); } } _safeMint(msg.sender, amount); claimingDetails[msg.sender].lastClaimed = block.timestamp; ERC20(addresses.coinAddress).transferFrom(addresses.coinOwnerAddress, msg.sender, amount * 1e18); } function pendingRewards() public view returns(uint256) { uint256 userBalance = ERC20(addresses.lilBCoinAddress).balanceOf(msg.sender); if (claimingDetails[msg.sender].lastClaimed == 0) { if (userBalance >= 1e18) { return userBalance; } else return 0; } else { uint256 totalReward = block.timestamp - claimingDetails[msg.sender].lastClaimed / 1 days; totalReward = (totalReward * 1e18) * userBalance; if (totalReward >= 1e18) { return totalReward; } else return 0; } } function claim() external nonReentrant rewardTime(msg.sender) { uint256 userBalance = ERC20(addresses.lilBCoinAddress).balanceOf(msg.sender); if (claimingDetails[msg.sender].lastClaimed == 0) { require(userBalance * 1e18 >= 1e18, "Not enough rewards to claim"); claimingDetails[msg.sender].lastClaimed = block.timestamp; claimingDetails[msg.sender].claimed = userBalance * 1e18; ERC20(addresses.coinAddress).transferFrom(addresses.coinOwnerAddress, msg.sender, userBalance * 1e18); } else { uint256 totalReward = block.timestamp - claimingDetails[msg.sender].lastClaimed / 1 days; require((totalReward * 1e18) * userBalance >= 1e18, "Not enough rewards to claim"); claimingDetails[msg.sender].lastClaimed = block.timestamp; claimingDetails[msg.sender].claimed = (totalReward * 1e18) * userBalance; ERC20(addresses.coinAddress).transferFrom(addresses.coinOwnerAddress, msg.sender, (totalReward * 1e18) * userBalance); } } function airDrop(address[] memory recipients, uint256[] memory numberOfTokensPerWallet, uint256 numberOfTokensToAirdrop) public onlyOwner { require( recipients.length == numberOfTokensPerWallet.length, "Different array sizes" ); require( _totalMinted() + numberOfTokensToAirdrop <= maxSupply, "Exceeded max supply" ); for (uint256 i=0; i<recipients.length; i++) { address recipient = recipients[i]; _safeMint(recipient, numberOfTokensPerWallet[i]); } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.2 // 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 { // Reference type for token approval. 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 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 { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _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]`. 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 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 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 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. 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`. ) 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 0x80 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 0x20 + 3 * 0x20 = 0x80. str := add(mload(0x40), 0x80) // Update the free memory pointer to allocate. mstore(0x40, str) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.2 // 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(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // 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; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @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; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"unRevealUri_","type":"string"},{"internalType":"string","name":"baseTokenUri_","type":"string"},{"internalType":"address","name":"coinAddress","type":"address"},{"internalType":"address","name":"coinOwnerAddress","type":"address"},{"internalType":"address","name":"LBACCoinAddress","type":"address"},{"internalType":"address","name":"lilBananaCoinAddress","type":"address"},{"internalType":"address[]","name":"beneficiaries_","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"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":"EndSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"LBACHoldersMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"LBACHoldersSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"addresses","outputs":[{"internalType":"address","name":"coinAddress","type":"address"},{"internalType":"address","name":"coinOwnerAddress","type":"address"},{"internalType":"address","name":"NFTAddress","type":"address"},{"internalType":"address","name":"lilBCoinAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"numberOfTokensPerWallet","type":"uint256[]"},{"internalType":"uint256","name":"numberOfTokensToAirdrop","type":"uint256"}],"name":"airDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"newBeneficiaries","type":"address[]"}],"name":"changeBeneficiaries","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"supply","type":"uint256"}],"name":"changeMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimingDetails","outputs":[{"internalType":"uint256","name":"lastClaimed","type":"uint256"},{"internalType":"uint256","name":"claimed","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sale","outputs":[{"internalType":"enum LMACEXPERIMENT.SaleState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseTokenUri_","type":"string"}],"name":"setBaseTokenUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setLBACHoldersMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"setMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"revealUri_","type":"string"}],"name":"setUnRevealUrl","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unRevealUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405266b1a2bc2ec50000600a556000600b55612710600c556014600d556000600f60006101000a81548160ff0219169083151502179055503480156200004757600080fd5b50604051620052e2380380620052e283398181016040528101906200006d919062000658565b8888816002908051906020019062000087929190620003d6565b508060039080519060200190620000a0929190620003d6565b50620000b16200030360201b60201c565b6000819055505050620000d9620000cd6200030860201b60201c565b6200031060201b60201c565b60016009819055506000601660006101000a81548160ff021916908360028111156200010a576200010962000936565b5b0217905550866010908051906020019062000127929190620003d6565b5085600e908051906020019062000140929190620003d6565b5080601590805190602001906200015992919062000467565b5060405180608001604052808673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff16815250601160008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060608201518160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555090505050505050505050505062000a07565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620003e490620008ca565b90600052602060002090601f01602090048101928262000408576000855562000454565b82601f106200042357805160ff191683800117855562000454565b8280016001018555821562000454579182015b828111156200045357825182559160200191906001019062000436565b5b509050620004639190620004f6565b5090565b828054828255906000526020600020908101928215620004e3579160200282015b82811115620004e25782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509160200191906001019062000488565b5b509050620004f29190620004f6565b5090565b5b8082111562000511576000816000905550600101620004f7565b5090565b60006200052c6200052684620007fb565b620007d2565b90508083825260208201905082856020860282011115620005525762000551620009c8565b5b60005b858110156200058657816200056b8882620005db565b84526020840193506020830192505060018101905062000555565b5050509392505050565b6000620005a7620005a1846200082a565b620007d2565b905082815260208101848484011115620005c657620005c5620009cd565b5b620005d384828562000894565b509392505050565b600081519050620005ec81620009ed565b92915050565b600082601f8301126200060a5762000609620009c3565b5b81516200061c84826020860162000515565b91505092915050565b600082601f8301126200063d576200063c620009c3565b5b81516200064f84826020860162000590565b91505092915050565b60008060008060008060008060006101208a8c0312156200067e576200067d620009d7565b5b60008a015167ffffffffffffffff8111156200069f576200069e620009d2565b5b620006ad8c828d0162000625565b99505060208a015167ffffffffffffffff811115620006d157620006d0620009d2565b5b620006df8c828d0162000625565b98505060408a015167ffffffffffffffff811115620007035762000702620009d2565b5b620007118c828d0162000625565b97505060608a015167ffffffffffffffff811115620007355762000734620009d2565b5b620007438c828d0162000625565b9650506080620007568c828d01620005db565b95505060a0620007698c828d01620005db565b94505060c06200077c8c828d01620005db565b93505060e06200078f8c828d01620005db565b9250506101008a015167ffffffffffffffff811115620007b457620007b3620009d2565b5b620007c28c828d01620005f2565b9150509295985092959850929598565b6000620007de620007f1565b9050620007ec828262000900565b919050565b6000604051905090565b600067ffffffffffffffff82111562000819576200081862000994565b5b602082029050602081019050919050565b600067ffffffffffffffff82111562000848576200084762000994565b5b6200085382620009dc565b9050602081019050919050565b60006200086d8262000874565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60005b83811015620008b457808201518184015260208101905062000897565b83811115620008c4576000848401525b50505050565b60006002820490506001821680620008e357607f821691505b60208210811415620008fa57620008f962000965565b5b50919050565b6200090b82620009dc565b810181811067ffffffffffffffff821117156200092d576200092c62000994565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b620009f88162000860565b811462000a0457600080fd5b50565b6148cb8062000a176000396000f3fe60806040526004361061025c5760003560e01c80637a0101a211610144578063b66a0e5d116100b6578063da0321cd1161007a578063da0321cd1461087a578063e985e9c5146108a8578063ebfaa77e146108e5578063eded3fda1461090e578063f2fde38b14610939578063f4a0a528146109625761025c565b8063b66a0e5d146107a7578063b88d4fde146107be578063c55defa6146107e7578063c87b56dd14610812578063d5abeb011461084f5761025c565b806395652cfa1161010857806395652cfa146106ba57806395d89b41146106e3578063996517cf1461070e5780639e6a1d7d14610739578063a0712d6814610762578063a22cb4651461077e5761025c565b80637a0101a2146105f9578063853828b61461062457806386316bbb1461063b5780638d45ff63146106645780638da5cb5b1461068f5761025c565b806342842e0e116101dd5780636817c76c116101a15780636817c76c146104fa5780636ad1fe02146105255780636fe3750d1461055057806370a082311461058e578063715018a6146105cb57806376b1dda3146105e25761025c565b806342842e0e146104295780634e71d92d146104525780635167f3221461046957806351830227146104925780636352211e146104bd5761025c565b806318160ddd1161022457806318160ddd146103585780631de0444e1461038357806323b872dd146103c0578063404c7cdd146103e957806340d0b4a9146104125761025c565b806301ffc9a71461026157806306fdde031461029e578063081812fc146102c9578063095ea7b3146103065780630a3db14f1461032f575b600080fd5b34801561026d57600080fd5b5061028860048036038101906102839190613874565b61098b565b6040516102959190613dcb565b60405180910390f35b3480156102aa57600080fd5b506102b3610a1d565b6040516102c09190613e01565b60405180910390f35b3480156102d557600080fd5b506102f060048036038101906102eb9190613917565b610aaf565b6040516102fd9190613ce8565b60405180910390f35b34801561031257600080fd5b5061032d60048036038101906103289190613733565b610b2e565b005b34801561033b57600080fd5b50610356600480360381019061035191906137bc565b610c72565b005b34801561036457600080fd5b5061036d610d7e565b60405161037a9190613fc3565b60405180910390f35b34801561038f57600080fd5b506103aa60048036038101906103a591906135b0565b610d95565b6040516103b79190613fc3565b60405180910390f35b3480156103cc57600080fd5b506103e760048036038101906103e2919061361d565b610dad565b005b3480156103f557600080fd5b50610410600480360381019061040b9190613917565b6110d2565b005b34801561041e57600080fd5b506104276110e4565b005b34801561043557600080fd5b50610450600480360381019061044b919061361d565b611109565b005b34801561045e57600080fd5b50610467611129565b005b34801561047557600080fd5b50610490600480360381019061048b9190613917565b61176c565b005b34801561049e57600080fd5b506104a761177e565b6040516104b49190613dcb565b60405180910390f35b3480156104c957600080fd5b506104e460048036038101906104df9190613917565b611791565b6040516104f19190613ce8565b60405180910390f35b34801561050657600080fd5b5061050f6117a3565b60405161051c9190613fc3565b60405180910390f35b34801561053157600080fd5b5061053a6117a9565b6040516105479190613de6565b60405180910390f35b34801561055c57600080fd5b50610577600480360381019061057291906135b0565b6117bc565b604051610585929190613fde565b60405180910390f35b34801561059a57600080fd5b506105b560048036038101906105b091906135b0565b6117e0565b6040516105c29190613fc3565b60405180910390f35b3480156105d757600080fd5b506105e0611899565b005b3480156105ee57600080fd5b506105f76118ad565b005b34801561060557600080fd5b5061060e6118e2565b60405161061b9190613e01565b60405180910390f35b34801561063057600080fd5b50610639611970565b005b34801561064757600080fd5b50610662600480360381019061065d91906138ce565b611a38565b005b34801561067057600080fd5b50610679611a5a565b6040516106869190613fc3565b60405180910390f35b34801561069b57600080fd5b506106a4611a60565b6040516106b19190613ce8565b60405180910390f35b3480156106c657600080fd5b506106e160048036038101906106dc91906138ce565b611a8a565b005b3480156106ef57600080fd5b506106f8611aac565b6040516107059190613e01565b60405180910390f35b34801561071a57600080fd5b50610723611b3e565b6040516107309190613fc3565b60405180910390f35b34801561074557600080fd5b50610760600480360381019061075b9190613917565b611b44565b005b61077c60048036038101906107779190613917565b611b56565b005b34801561078a57600080fd5b506107a560048036038101906107a091906136f3565b612178565b005b3480156107b357600080fd5b506107bc6122f0565b005b3480156107ca57600080fd5b506107e560048036038101906107e09190613670565b612325565b005b3480156107f357600080fd5b506107fc612398565b6040516108099190613e01565b60405180910390f35b34801561081e57600080fd5b5061083960048036038101906108349190613917565b612426565b6040516108469190613e01565b60405180910390f35b34801561085b57600080fd5b50610864612548565b6040516108719190613fc3565b60405180910390f35b34801561088657600080fd5b5061088f61254e565b60405161089f9493929190613d03565b60405180910390f35b3480156108b457600080fd5b506108cf60048036038101906108ca91906135dd565b6125ec565b6040516108dc9190613dcb565b60405180910390f35b3480156108f157600080fd5b5061090c60048036038101906109079190613773565b612680565b005b34801561091a57600080fd5b506109236126a2565b6040516109309190613fc3565b60405180910390f35b34801561094557600080fd5b50610960600480360381019061095b91906135b0565b612866565b005b34801561096e57600080fd5b5061098960048036038101906109849190613917565b6128ea565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109e657506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a165750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610a2c9061432e565b80601f0160208091040260200160405190810160405280929190818152602001828054610a589061432e565b8015610aa55780601f10610a7a57610100808354040283529160200191610aa5565b820191906000526020600020905b815481529060010190602001808311610a8857829003601f168201915b5050505050905090565b6000610aba826128fc565b610af0576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b3982611791565b90508073ffffffffffffffffffffffffffffffffffffffff16610b5a61295b565b73ffffffffffffffffffffffffffffffffffffffff1614610bbd57610b8681610b8161295b565b6125ec565b610bbc576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610c7a612963565b8151835114610cbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb590613ea3565b60405180910390fd5b600c5481610cca6129e1565b610cd4919061413e565b1115610d15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0c90613f23565b60405180910390fd5b60005b8351811015610d78576000848281518110610d3657610d356144c7565b5b60200260200101519050610d6481858481518110610d5757610d566144c7565b5b60200260200101516129f4565b508080610d7090614391565b915050610d18565b50505050565b6000610d88612a12565b6001546000540303905090565b60186020528060005260406000206000915090505481565b6000610db882612a17565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610e1f576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610e2b84612ae5565b91509150610e418187610e3c61295b565b612b0c565b610e8d57610e5686610e5161295b565b6125ec565b610e8c576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610ef4576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f018686866001612b50565b8015610f0c57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610fda85610fb6888887612b56565b7c020000000000000000000000000000000000000000000000000000000017612b7e565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416141561106257600060018501905060006004600083815260200190815260200160002054141561106057600054811461105f578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46110ca8686866001612ba9565b505050505050565b6110da612963565b80600c8190555050565b6110ec612963565b6001600f60006101000a81548160ff021916908315150217905550565b61112483838360405180602001604052806000815250612325565b505050565b6002600954141561116f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116690613f83565b60405180910390fd5b60026009819055503362015180601760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001546111c9919061413e565b42101561120b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120290613f63565b60405180910390fd5b6000601160030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040161126b9190613ce8565b60206040518083038186803b15801561128357600080fd5b505afa158015611297573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112bb9190613944565b90506000601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015414156114f157670de0b6b3a7640000808261131d91906141c5565b101561135e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135590613f03565b60405180910390fd5b42601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000181905550670de0b6b3a7640000816113b991906141c5565b601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010181905550601160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd601160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1633670de0b6b3a76400008561147b91906141c5565b6040518463ffffffff1660e01b815260040161149993929190613d48565b602060405180830381600087803b1580156114b357600080fd5b505af11580156114c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114eb9190613847565b50611760565b600062015180601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001546115449190614194565b4261154f919061421f565b9050670de0b6b3a764000082670de0b6b3a76400008361156f91906141c5565b61157991906141c5565b10156115ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b190613f03565b60405180910390fd5b42601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018190555081670de0b6b3a76400008261161691906141c5565b61162091906141c5565b601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010181905550601160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd601160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff163385670de0b6b3a7640000866116e391906141c5565b6116ed91906141c5565b6040518463ffffffff1660e01b815260040161170b93929190613d48565b602060405180830381600087803b15801561172557600080fd5b505af1158015611739573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061175d9190613847565b50505b50506001600981905550565b611774612963565b80600b8190555050565b600f60009054906101000a900460ff1681565b600061179c82612a17565b9050919050565b600a5481565b601660009054906101000a900460ff1681565b60176020528060005260406000206000915090508060000154908060010154905082565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611848576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6118a1612963565b6118ab6000612baf565b565b6118b5612963565b6002601660006101000a81548160ff021916908360028111156118db576118da614469565b5b0217905550565b600e80546118ef9061432e565b80601f016020809104026020016040519081016040528092919081815260200182805461191b9061432e565b80156119685780601f1061193d57610100808354040283529160200191611968565b820191906000526020600020905b81548152906001019060200180831161194b57829003601f168201915b505050505081565b611978612963565b600047905060038161198a9190614194565b905060005b601580549050811015611a3457601581815481106119b0576119af6144c7565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015611a20573d6000803e3d6000fd5b508080611a2c90614391565b91505061198f565b5050565b611a40612963565b8060109080519060200190611a569291906131d4565b5050565b600b5481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611a92612963565b80600e9080519060200190611aa89291906131d4565b5050565b606060038054611abb9061432e565b80601f0160208091040260200160405190810160405280929190818152602001828054611ae79061432e565b8015611b345780601f10611b0957610100808354040283529160200191611b34565b820191906000526020600020905b815481529060010190602001808311611b1757829003601f168201915b5050505050905090565b600d5481565b611b4c612963565b80600d8190555050565b60026009541415611b9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9390613f83565b60405180910390fd5b600260098190555060016002811115611bb857611bb7614469565b5b601660009054906101000a900460ff166002811115611bda57611bd9614469565b5b14611c1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1190613e83565b60405180910390fd5b611c2333612c75565b15611c63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5a90613f43565b60405180910390fd5b600c5481611c6f6129e1565b611c79919061413e565b1115611cba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb190613e63565b60405180910390fd5b611388611cc5610d7e565b11611dd957600d54811115611d0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0690613e23565b60405180910390fd5b34600a5482611d1e91906141c5565b1115611d5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5690613ee3565b60405180910390fd5b600a5481611d6d91906141c5565b341115611dd4573373ffffffffffffffffffffffffffffffffffffffff166108fc600a5483611d9c91906141c5565b34611da7919061421f565b9081150290604051600060405180830381858888f19350505050158015611dd2573d6000803e3d6000fd5b505b61202f565b601160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401611e379190613ce8565b60206040518083038186803b158015611e4f57600080fd5b505afa158015611e63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e879190613944565b81601860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ed2919061413e565b1115611f13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0a90613fa3565b60405180910390fd5b34600b5482611f2291906141c5565b1115611f63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f5a90613ee3565b60405180910390fd5b80601860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611fb2919061413e565b92505081905550600b5481611fc791906141c5565b34111561202e573373ffffffffffffffffffffffffffffffffffffffff166108fc600b5483611ff691906141c5565b34612001919061421f565b9081150290604051600060405180830381858888f1935050505015801561202c573d6000803e3d6000fd5b505b5b61203933826129f4565b42601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000181905550601160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd601160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1633670de0b6b3a7640000856120fc91906141c5565b6040518463ffffffff1660e01b815260040161211a93929190613d48565b602060405180830381600087803b15801561213457600080fd5b505af1158015612148573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061216c9190613847565b50600160098190555050565b61218061295b565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156121e5576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006121f261295b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661229f61295b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516122e49190613dcb565b60405180910390a35050565b6122f8612963565b6001601660006101000a81548160ff0219169083600281111561231e5761231d614469565b5b0217905550565b612330848484610dad565b60008373ffffffffffffffffffffffffffffffffffffffff163b146123925761235b84848484612c98565b612391576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b601080546123a59061432e565b80601f01602080910402602001604051908101604052809291908181526020018280546123d19061432e565b801561241e5780601f106123f35761010080835404028352916020019161241e565b820191906000526020600020905b81548152906001019060200180831161240157829003601f168201915b505050505081565b6060612431826128fc565b612467576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60011515600f60009054906101000a900460ff16151514156124b557600e61248e83612df8565b60405160200161249f929190613cb9565b6040516020818303038152906040529050612543565b601080546124c29061432e565b80601f01602080910402602001604051908101604052809291908181526020018280546124ee9061432e565b801561253b5780601f106125105761010080835404028352916020019161253b565b820191906000526020600020905b81548152906001019060200180831161251e57829003601f168201915b505050505090505b919050565b600c5481565b60118060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905084565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612688612963565b806015908051906020019061269e92919061325a565b5050565b600080601160030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016127039190613ce8565b60206040518083038186803b15801561271b57600080fd5b505afa15801561272f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127539190613944565b90506000601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015414156127c257670de0b6b3a764000081106127b85780915050612863565b6000915050612863565b600062015180601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001546128159190614194565b42612820919061421f565b905081670de0b6b3a76400008261283791906141c5565b61284191906141c5565b9050670de0b6b3a7640000811061285c578092505050612863565b6000925050505b90565b61286e612963565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156128de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128d590613e43565b60405180910390fd5b6128e781612baf565b50565b6128f2612963565b80600a8190555050565b600081612907612a12565b11158015612916575060005482105b8015612954575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b61296b612f59565b73ffffffffffffffffffffffffffffffffffffffff16612989611a60565b73ffffffffffffffffffffffffffffffffffffffff16146129df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129d690613ec3565b60405180910390fd5b565b60006129eb612a12565b60005403905090565b612a0e828260405180602001604052806000815250612f61565b5050565b600090565b60008082905080612a26612a12565b11612aae57600054811015612aad5760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612aab575b6000811415612aa1576004600083600190039350838152602001908152602001600020549050612a76565b8092505050612ae0565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612b6d868684612ffe565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612cbe61295b565b8786866040518563ffffffff1660e01b8152600401612ce09493929190613d7f565b602060405180830381600087803b158015612cfa57600080fd5b505af1925050508015612d2b57506040513d601f19601f82011682018060405250810190612d2891906138a1565b60015b612da5573d8060008114612d5b576040519150601f19603f3d011682016040523d82523d6000602084013e612d60565b606091505b50600081511415612d9d576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60606000821415612e40576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612f54565b600082905060005b60008214612e72578080612e5b90614391565b915050600a82612e6b9190614194565b9150612e48565b60008167ffffffffffffffff811115612e8e57612e8d6144f6565b5b6040519080825280601f01601f191660200182016040528015612ec05781602001600182028036833780820191505090505b5090505b60008514612f4d57600182612ed9919061421f565b9150600a85612ee891906143da565b6030612ef4919061413e565b60f81b818381518110612f0a57612f096144c7565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612f469190614194565b9450612ec4565b8093505050505b919050565b600033905090565b612f6b8383613007565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612ff957600080549050600083820390505b612fab6000868380600101945086612c98565b612fe1576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612f98578160005414612ff657600080fd5b50505b505050565b60009392505050565b6000805490506000821415613048576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6130556000848385612b50565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506130cc836130bd6000866000612b56565b6130c6856131c4565b17612b7e565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461316d57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613132565b5060008214156131a9576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506131bf6000848385612ba9565b505050565b60006001821460e11b9050919050565b8280546131e09061432e565b90600052602060002090601f0160209004810192826132025760008555613249565b82601f1061321b57805160ff1916838001178555613249565b82800160010185558215613249579182015b8281111561324857825182559160200191906001019061322d565b5b50905061325691906132e4565b5090565b8280548282559060005260206000209081019282156132d3579160200282015b828111156132d25782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509160200191906001019061327a565b5b5090506132e091906132e4565b5090565b5b808211156132fd5760008160009055506001016132e5565b5090565b600061331461330f8461402c565b614007565b905080838252602082019050828560208602820111156133375761333661452a565b5b60005b85811015613367578161334d8882613465565b84526020840193506020830192505060018101905061333a565b5050509392505050565b600061338461337f84614058565b614007565b905080838252602082019050828560208602820111156133a7576133a661452a565b5b60005b858110156133d757816133bd8882613586565b8452602084019350602083019250506001810190506133aa565b5050509392505050565b60006133f46133ef84614084565b614007565b9050828152602081018484840111156134105761340f61452f565b5b61341b8482856142ec565b509392505050565b6000613436613431846140b5565b614007565b9050828152602081018484840111156134525761345161452f565b5b61345d8482856142ec565b509392505050565b60008135905061347481614839565b92915050565b600082601f83011261348f5761348e614525565b5b813561349f848260208601613301565b91505092915050565b600082601f8301126134bd576134bc614525565b5b81356134cd848260208601613371565b91505092915050565b6000813590506134e581614850565b92915050565b6000815190506134fa81614850565b92915050565b60008135905061350f81614867565b92915050565b60008151905061352481614867565b92915050565b600082601f83011261353f5761353e614525565b5b813561354f8482602086016133e1565b91505092915050565b600082601f83011261356d5761356c614525565b5b813561357d848260208601613423565b91505092915050565b6000813590506135958161487e565b92915050565b6000815190506135aa8161487e565b92915050565b6000602082840312156135c6576135c5614539565b5b60006135d484828501613465565b91505092915050565b600080604083850312156135f4576135f3614539565b5b600061360285828601613465565b925050602061361385828601613465565b9150509250929050565b60008060006060848603121561363657613635614539565b5b600061364486828701613465565b935050602061365586828701613465565b925050604061366686828701613586565b9150509250925092565b6000806000806080858703121561368a57613689614539565b5b600061369887828801613465565b94505060206136a987828801613465565b93505060406136ba87828801613586565b925050606085013567ffffffffffffffff8111156136db576136da614534565b5b6136e78782880161352a565b91505092959194509250565b6000806040838503121561370a57613709614539565b5b600061371885828601613465565b9250506020613729858286016134d6565b9150509250929050565b6000806040838503121561374a57613749614539565b5b600061375885828601613465565b925050602061376985828601613586565b9150509250929050565b60006020828403121561378957613788614539565b5b600082013567ffffffffffffffff8111156137a7576137a6614534565b5b6137b38482850161347a565b91505092915050565b6000806000606084860312156137d5576137d4614539565b5b600084013567ffffffffffffffff8111156137f3576137f2614534565b5b6137ff8682870161347a565b935050602084013567ffffffffffffffff8111156138205761381f614534565b5b61382c868287016134a8565b925050604061383d86828701613586565b9150509250925092565b60006020828403121561385d5761385c614539565b5b600061386b848285016134eb565b91505092915050565b60006020828403121561388a57613889614539565b5b600061389884828501613500565b91505092915050565b6000602082840312156138b7576138b6614539565b5b60006138c584828501613515565b91505092915050565b6000602082840312156138e4576138e3614539565b5b600082013567ffffffffffffffff81111561390257613901614534565b5b61390e84828501613558565b91505092915050565b60006020828403121561392d5761392c614539565b5b600061393b84828501613586565b91505092915050565b60006020828403121561395a57613959614539565b5b60006139688482850161359b565b91505092915050565b61397a81614253565b82525050565b61398981614265565b82525050565b600061399a826140fb565b6139a48185614111565b93506139b48185602086016142fb565b6139bd8161453e565b840191505092915050565b6139d1816142da565b82525050565b60006139e282614106565b6139ec8185614122565b93506139fc8185602086016142fb565b613a058161453e565b840191505092915050565b6000613a1b82614106565b613a258185614133565b9350613a358185602086016142fb565b80840191505092915050565b60008154613a4e8161432e565b613a588186614133565b94506001821660008114613a735760018114613a8457613ab7565b60ff19831686528186019350613ab7565b613a8d856140e6565b60005b83811015613aaf57815481890152600182019150602081019050613a90565b838801955050505b50505092915050565b6000613acd601483614122565b9150613ad88261454f565b602082019050919050565b6000613af0602683614122565b9150613afb82614578565b604082019050919050565b6000613b13602483614122565b9150613b1e826145c7565b604082019050919050565b6000613b36601883614122565b9150613b4182614616565b602082019050919050565b6000613b59601583614122565b9150613b648261463f565b602082019050919050565b6000613b7c600583614133565b9150613b8782614668565b600582019050919050565b6000613b9f602083614122565b9150613baa82614691565b602082019050919050565b6000613bc2601883614122565b9150613bcd826146ba565b602082019050919050565b6000613be5601b83614122565b9150613bf0826146e3565b602082019050919050565b6000613c08601383614122565b9150613c138261470c565b602082019050919050565b6000613c2b602283614122565b9150613c3682614735565b604082019050919050565b6000613c4e601d83614122565b9150613c5982614784565b602082019050919050565b6000613c71601f83614122565b9150613c7c826147ad565b602082019050919050565b6000613c94602183614122565b9150613c9f826147d6565b604082019050919050565b613cb3816142d0565b82525050565b6000613cc58285613a41565b9150613cd18284613a10565b9150613cdc82613b6f565b91508190509392505050565b6000602082019050613cfd6000830184613971565b92915050565b6000608082019050613d186000830187613971565b613d256020830186613971565b613d326040830185613971565b613d3f6060830184613971565b95945050505050565b6000606082019050613d5d6000830186613971565b613d6a6020830185613971565b613d776040830184613caa565b949350505050565b6000608082019050613d946000830187613971565b613da16020830186613971565b613dae6040830185613caa565b8181036060830152613dc0818461398f565b905095945050505050565b6000602082019050613de06000830184613980565b92915050565b6000602082019050613dfb60008301846139c8565b92915050565b60006020820190508181036000830152613e1b81846139d7565b905092915050565b60006020820190508181036000830152613e3c81613ac0565b9050919050565b60006020820190508181036000830152613e5c81613ae3565b9050919050565b60006020820190508181036000830152613e7c81613b06565b9050919050565b60006020820190508181036000830152613e9c81613b29565b9050919050565b60006020820190508181036000830152613ebc81613b4c565b9050919050565b60006020820190508181036000830152613edc81613b92565b9050919050565b60006020820190508181036000830152613efc81613bb5565b9050919050565b60006020820190508181036000830152613f1c81613bd8565b9050919050565b60006020820190508181036000830152613f3c81613bfb565b9050919050565b60006020820190508181036000830152613f5c81613c1e565b9050919050565b60006020820190508181036000830152613f7c81613c41565b9050919050565b60006020820190508181036000830152613f9c81613c64565b9050919050565b60006020820190508181036000830152613fbc81613c87565b9050919050565b6000602082019050613fd86000830184613caa565b92915050565b6000604082019050613ff36000830185613caa565b6140006020830184613caa565b9392505050565b6000614011614022565b905061401d8282614360565b919050565b6000604051905090565b600067ffffffffffffffff821115614047576140466144f6565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614073576140726144f6565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561409f5761409e6144f6565b5b6140a88261453e565b9050602081019050919050565b600067ffffffffffffffff8211156140d0576140cf6144f6565b5b6140d98261453e565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000614149826142d0565b9150614154836142d0565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156141895761418861440b565b5b828201905092915050565b600061419f826142d0565b91506141aa836142d0565b9250826141ba576141b961443a565b5b828204905092915050565b60006141d0826142d0565b91506141db836142d0565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156142145761421361440b565b5b828202905092915050565b600061422a826142d0565b9150614235836142d0565b9250828210156142485761424761440b565b5b828203905092915050565b600061425e826142b0565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b60008190506142ab82614825565b919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006142e58261429d565b9050919050565b82818337600083830152505050565b60005b838110156143195780820151818401526020810190506142fe565b83811115614328576000848401525b50505050565b6000600282049050600182168061434657607f821691505b6020821081141561435a57614359614498565b5b50919050565b6143698261453e565b810181811067ffffffffffffffff82111715614388576143876144f6565b5b80604052505050565b600061439c826142d0565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156143cf576143ce61440b565b5b600182019050919050565b60006143e5826142d0565b91506143f0836142d0565b925082614400576143ff61443a565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4d696e74206c696d69742065786365656465642e000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f416d6f756e742073686f756c64206e6f7420657863656564206d61782073757060008201527f706c792e00000000000000000000000000000000000000000000000000000000602082015250565b7f53616c65206861736e27742053746172746564205965742e0000000000000000600082015250565b7f446966666572656e742061727261792073697a65730000000000000000000000600082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f496e737566696369656e742045544820746f206d696e742e0000000000000000600082015250565b7f4e6f7420656e6f756768207265776172647320746f20636c61696d0000000000600082015250565b7f4578636565646564206d617820737570706c7900000000000000000000000000600082015250565b7f436f6e74726163747320617265206e6f7420616c6c6f77656420746f206d696e60008201527f742e000000000000000000000000000000000000000000000000000000000000602082015250565b7f436c61696d2074696d65206861736e277420706173736564207965742e000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f4e6f7420656e6f756768204c424143275320696e20796f7572206163636f756e60008201527f7400000000000000000000000000000000000000000000000000000000000000602082015250565b6003811061483657614835614469565b5b50565b61484281614253565b811461484d57600080fd5b50565b61485981614265565b811461486457600080fd5b50565b61487081614271565b811461487b57600080fd5b50565b614887816142d0565b811461489257600080fd5b5056fea2646970667358221220292a555c0dfad40ce09995fd7123fafef63720a748272e045c1a05b445a1fd0564736f6c634300080700330000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000220000000000000000000000000847fcadf5102fa9e79f3c1d398cf4275ba781524000000000000000000000000711782b84cddbb4bcbd97867b124f652ea7c739b000000000000000000000000918f677b3ab4b9290ca96a95430fd228b2d848170000000000000000000000000ddf1dac8537c90b0a96bdf05a8c9ed78ccd26ca0000000000000000000000000000000000000000000000000000000000000280000000000000000000000000000000000000000000000000000000000000000e4c4d41434558504552494d454e5400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044c4d414300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005368747470733a2f2f756e72657665616c2e6d7970696e6174612e636c6f75642f697066732f516d566b5469484a6452414235385770464345564a676f7531786132724654356a424d5550426f43487135754c55000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d5478455a75755767574566445267344e715973365053754a313547756174784569764d7564375472425845362f000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000711782b84cddbb4bcbd97867b124f652ea7c739b000000000000000000000000711782b84cddbb4bcbd97867b124f652ea7c739b000000000000000000000000711782b84cddbb4bcbd97867b124f652ea7c739b
Deployed Bytecode
0x60806040526004361061025c5760003560e01c80637a0101a211610144578063b66a0e5d116100b6578063da0321cd1161007a578063da0321cd1461087a578063e985e9c5146108a8578063ebfaa77e146108e5578063eded3fda1461090e578063f2fde38b14610939578063f4a0a528146109625761025c565b8063b66a0e5d146107a7578063b88d4fde146107be578063c55defa6146107e7578063c87b56dd14610812578063d5abeb011461084f5761025c565b806395652cfa1161010857806395652cfa146106ba57806395d89b41146106e3578063996517cf1461070e5780639e6a1d7d14610739578063a0712d6814610762578063a22cb4651461077e5761025c565b80637a0101a2146105f9578063853828b61461062457806386316bbb1461063b5780638d45ff63146106645780638da5cb5b1461068f5761025c565b806342842e0e116101dd5780636817c76c116101a15780636817c76c146104fa5780636ad1fe02146105255780636fe3750d1461055057806370a082311461058e578063715018a6146105cb57806376b1dda3146105e25761025c565b806342842e0e146104295780634e71d92d146104525780635167f3221461046957806351830227146104925780636352211e146104bd5761025c565b806318160ddd1161022457806318160ddd146103585780631de0444e1461038357806323b872dd146103c0578063404c7cdd146103e957806340d0b4a9146104125761025c565b806301ffc9a71461026157806306fdde031461029e578063081812fc146102c9578063095ea7b3146103065780630a3db14f1461032f575b600080fd5b34801561026d57600080fd5b5061028860048036038101906102839190613874565b61098b565b6040516102959190613dcb565b60405180910390f35b3480156102aa57600080fd5b506102b3610a1d565b6040516102c09190613e01565b60405180910390f35b3480156102d557600080fd5b506102f060048036038101906102eb9190613917565b610aaf565b6040516102fd9190613ce8565b60405180910390f35b34801561031257600080fd5b5061032d60048036038101906103289190613733565b610b2e565b005b34801561033b57600080fd5b50610356600480360381019061035191906137bc565b610c72565b005b34801561036457600080fd5b5061036d610d7e565b60405161037a9190613fc3565b60405180910390f35b34801561038f57600080fd5b506103aa60048036038101906103a591906135b0565b610d95565b6040516103b79190613fc3565b60405180910390f35b3480156103cc57600080fd5b506103e760048036038101906103e2919061361d565b610dad565b005b3480156103f557600080fd5b50610410600480360381019061040b9190613917565b6110d2565b005b34801561041e57600080fd5b506104276110e4565b005b34801561043557600080fd5b50610450600480360381019061044b919061361d565b611109565b005b34801561045e57600080fd5b50610467611129565b005b34801561047557600080fd5b50610490600480360381019061048b9190613917565b61176c565b005b34801561049e57600080fd5b506104a761177e565b6040516104b49190613dcb565b60405180910390f35b3480156104c957600080fd5b506104e460048036038101906104df9190613917565b611791565b6040516104f19190613ce8565b60405180910390f35b34801561050657600080fd5b5061050f6117a3565b60405161051c9190613fc3565b60405180910390f35b34801561053157600080fd5b5061053a6117a9565b6040516105479190613de6565b60405180910390f35b34801561055c57600080fd5b50610577600480360381019061057291906135b0565b6117bc565b604051610585929190613fde565b60405180910390f35b34801561059a57600080fd5b506105b560048036038101906105b091906135b0565b6117e0565b6040516105c29190613fc3565b60405180910390f35b3480156105d757600080fd5b506105e0611899565b005b3480156105ee57600080fd5b506105f76118ad565b005b34801561060557600080fd5b5061060e6118e2565b60405161061b9190613e01565b60405180910390f35b34801561063057600080fd5b50610639611970565b005b34801561064757600080fd5b50610662600480360381019061065d91906138ce565b611a38565b005b34801561067057600080fd5b50610679611a5a565b6040516106869190613fc3565b60405180910390f35b34801561069b57600080fd5b506106a4611a60565b6040516106b19190613ce8565b60405180910390f35b3480156106c657600080fd5b506106e160048036038101906106dc91906138ce565b611a8a565b005b3480156106ef57600080fd5b506106f8611aac565b6040516107059190613e01565b60405180910390f35b34801561071a57600080fd5b50610723611b3e565b6040516107309190613fc3565b60405180910390f35b34801561074557600080fd5b50610760600480360381019061075b9190613917565b611b44565b005b61077c60048036038101906107779190613917565b611b56565b005b34801561078a57600080fd5b506107a560048036038101906107a091906136f3565b612178565b005b3480156107b357600080fd5b506107bc6122f0565b005b3480156107ca57600080fd5b506107e560048036038101906107e09190613670565b612325565b005b3480156107f357600080fd5b506107fc612398565b6040516108099190613e01565b60405180910390f35b34801561081e57600080fd5b5061083960048036038101906108349190613917565b612426565b6040516108469190613e01565b60405180910390f35b34801561085b57600080fd5b50610864612548565b6040516108719190613fc3565b60405180910390f35b34801561088657600080fd5b5061088f61254e565b60405161089f9493929190613d03565b60405180910390f35b3480156108b457600080fd5b506108cf60048036038101906108ca91906135dd565b6125ec565b6040516108dc9190613dcb565b60405180910390f35b3480156108f157600080fd5b5061090c60048036038101906109079190613773565b612680565b005b34801561091a57600080fd5b506109236126a2565b6040516109309190613fc3565b60405180910390f35b34801561094557600080fd5b50610960600480360381019061095b91906135b0565b612866565b005b34801561096e57600080fd5b5061098960048036038101906109849190613917565b6128ea565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109e657506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a165750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610a2c9061432e565b80601f0160208091040260200160405190810160405280929190818152602001828054610a589061432e565b8015610aa55780601f10610a7a57610100808354040283529160200191610aa5565b820191906000526020600020905b815481529060010190602001808311610a8857829003601f168201915b5050505050905090565b6000610aba826128fc565b610af0576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b3982611791565b90508073ffffffffffffffffffffffffffffffffffffffff16610b5a61295b565b73ffffffffffffffffffffffffffffffffffffffff1614610bbd57610b8681610b8161295b565b6125ec565b610bbc576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610c7a612963565b8151835114610cbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb590613ea3565b60405180910390fd5b600c5481610cca6129e1565b610cd4919061413e565b1115610d15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0c90613f23565b60405180910390fd5b60005b8351811015610d78576000848281518110610d3657610d356144c7565b5b60200260200101519050610d6481858481518110610d5757610d566144c7565b5b60200260200101516129f4565b508080610d7090614391565b915050610d18565b50505050565b6000610d88612a12565b6001546000540303905090565b60186020528060005260406000206000915090505481565b6000610db882612a17565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610e1f576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610e2b84612ae5565b91509150610e418187610e3c61295b565b612b0c565b610e8d57610e5686610e5161295b565b6125ec565b610e8c576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610ef4576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f018686866001612b50565b8015610f0c57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610fda85610fb6888887612b56565b7c020000000000000000000000000000000000000000000000000000000017612b7e565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416141561106257600060018501905060006004600083815260200190815260200160002054141561106057600054811461105f578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46110ca8686866001612ba9565b505050505050565b6110da612963565b80600c8190555050565b6110ec612963565b6001600f60006101000a81548160ff021916908315150217905550565b61112483838360405180602001604052806000815250612325565b505050565b6002600954141561116f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116690613f83565b60405180910390fd5b60026009819055503362015180601760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001546111c9919061413e565b42101561120b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120290613f63565b60405180910390fd5b6000601160030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040161126b9190613ce8565b60206040518083038186803b15801561128357600080fd5b505afa158015611297573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112bb9190613944565b90506000601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015414156114f157670de0b6b3a7640000808261131d91906141c5565b101561135e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135590613f03565b60405180910390fd5b42601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000181905550670de0b6b3a7640000816113b991906141c5565b601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010181905550601160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd601160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1633670de0b6b3a76400008561147b91906141c5565b6040518463ffffffff1660e01b815260040161149993929190613d48565b602060405180830381600087803b1580156114b357600080fd5b505af11580156114c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114eb9190613847565b50611760565b600062015180601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001546115449190614194565b4261154f919061421f565b9050670de0b6b3a764000082670de0b6b3a76400008361156f91906141c5565b61157991906141c5565b10156115ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b190613f03565b60405180910390fd5b42601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018190555081670de0b6b3a76400008261161691906141c5565b61162091906141c5565b601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010181905550601160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd601160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff163385670de0b6b3a7640000866116e391906141c5565b6116ed91906141c5565b6040518463ffffffff1660e01b815260040161170b93929190613d48565b602060405180830381600087803b15801561172557600080fd5b505af1158015611739573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061175d9190613847565b50505b50506001600981905550565b611774612963565b80600b8190555050565b600f60009054906101000a900460ff1681565b600061179c82612a17565b9050919050565b600a5481565b601660009054906101000a900460ff1681565b60176020528060005260406000206000915090508060000154908060010154905082565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611848576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6118a1612963565b6118ab6000612baf565b565b6118b5612963565b6002601660006101000a81548160ff021916908360028111156118db576118da614469565b5b0217905550565b600e80546118ef9061432e565b80601f016020809104026020016040519081016040528092919081815260200182805461191b9061432e565b80156119685780601f1061193d57610100808354040283529160200191611968565b820191906000526020600020905b81548152906001019060200180831161194b57829003601f168201915b505050505081565b611978612963565b600047905060038161198a9190614194565b905060005b601580549050811015611a3457601581815481106119b0576119af6144c7565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015611a20573d6000803e3d6000fd5b508080611a2c90614391565b91505061198f565b5050565b611a40612963565b8060109080519060200190611a569291906131d4565b5050565b600b5481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611a92612963565b80600e9080519060200190611aa89291906131d4565b5050565b606060038054611abb9061432e565b80601f0160208091040260200160405190810160405280929190818152602001828054611ae79061432e565b8015611b345780601f10611b0957610100808354040283529160200191611b34565b820191906000526020600020905b815481529060010190602001808311611b1757829003601f168201915b5050505050905090565b600d5481565b611b4c612963565b80600d8190555050565b60026009541415611b9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9390613f83565b60405180910390fd5b600260098190555060016002811115611bb857611bb7614469565b5b601660009054906101000a900460ff166002811115611bda57611bd9614469565b5b14611c1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1190613e83565b60405180910390fd5b611c2333612c75565b15611c63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5a90613f43565b60405180910390fd5b600c5481611c6f6129e1565b611c79919061413e565b1115611cba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb190613e63565b60405180910390fd5b611388611cc5610d7e565b11611dd957600d54811115611d0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0690613e23565b60405180910390fd5b34600a5482611d1e91906141c5565b1115611d5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5690613ee3565b60405180910390fd5b600a5481611d6d91906141c5565b341115611dd4573373ffffffffffffffffffffffffffffffffffffffff166108fc600a5483611d9c91906141c5565b34611da7919061421f565b9081150290604051600060405180830381858888f19350505050158015611dd2573d6000803e3d6000fd5b505b61202f565b601160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401611e379190613ce8565b60206040518083038186803b158015611e4f57600080fd5b505afa158015611e63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e879190613944565b81601860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ed2919061413e565b1115611f13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0a90613fa3565b60405180910390fd5b34600b5482611f2291906141c5565b1115611f63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f5a90613ee3565b60405180910390fd5b80601860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611fb2919061413e565b92505081905550600b5481611fc791906141c5565b34111561202e573373ffffffffffffffffffffffffffffffffffffffff166108fc600b5483611ff691906141c5565b34612001919061421f565b9081150290604051600060405180830381858888f1935050505015801561202c573d6000803e3d6000fd5b505b5b61203933826129f4565b42601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000181905550601160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd601160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1633670de0b6b3a7640000856120fc91906141c5565b6040518463ffffffff1660e01b815260040161211a93929190613d48565b602060405180830381600087803b15801561213457600080fd5b505af1158015612148573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061216c9190613847565b50600160098190555050565b61218061295b565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156121e5576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006121f261295b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661229f61295b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516122e49190613dcb565b60405180910390a35050565b6122f8612963565b6001601660006101000a81548160ff0219169083600281111561231e5761231d614469565b5b0217905550565b612330848484610dad565b60008373ffffffffffffffffffffffffffffffffffffffff163b146123925761235b84848484612c98565b612391576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b601080546123a59061432e565b80601f01602080910402602001604051908101604052809291908181526020018280546123d19061432e565b801561241e5780601f106123f35761010080835404028352916020019161241e565b820191906000526020600020905b81548152906001019060200180831161240157829003601f168201915b505050505081565b6060612431826128fc565b612467576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60011515600f60009054906101000a900460ff16151514156124b557600e61248e83612df8565b60405160200161249f929190613cb9565b6040516020818303038152906040529050612543565b601080546124c29061432e565b80601f01602080910402602001604051908101604052809291908181526020018280546124ee9061432e565b801561253b5780601f106125105761010080835404028352916020019161253b565b820191906000526020600020905b81548152906001019060200180831161251e57829003601f168201915b505050505090505b919050565b600c5481565b60118060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905084565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612688612963565b806015908051906020019061269e92919061325a565b5050565b600080601160030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016127039190613ce8565b60206040518083038186803b15801561271b57600080fd5b505afa15801561272f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127539190613944565b90506000601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015414156127c257670de0b6b3a764000081106127b85780915050612863565b6000915050612863565b600062015180601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001546128159190614194565b42612820919061421f565b905081670de0b6b3a76400008261283791906141c5565b61284191906141c5565b9050670de0b6b3a7640000811061285c578092505050612863565b6000925050505b90565b61286e612963565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156128de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128d590613e43565b60405180910390fd5b6128e781612baf565b50565b6128f2612963565b80600a8190555050565b600081612907612a12565b11158015612916575060005482105b8015612954575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b61296b612f59565b73ffffffffffffffffffffffffffffffffffffffff16612989611a60565b73ffffffffffffffffffffffffffffffffffffffff16146129df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129d690613ec3565b60405180910390fd5b565b60006129eb612a12565b60005403905090565b612a0e828260405180602001604052806000815250612f61565b5050565b600090565b60008082905080612a26612a12565b11612aae57600054811015612aad5760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612aab575b6000811415612aa1576004600083600190039350838152602001908152602001600020549050612a76565b8092505050612ae0565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612b6d868684612ffe565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612cbe61295b565b8786866040518563ffffffff1660e01b8152600401612ce09493929190613d7f565b602060405180830381600087803b158015612cfa57600080fd5b505af1925050508015612d2b57506040513d601f19601f82011682018060405250810190612d2891906138a1565b60015b612da5573d8060008114612d5b576040519150601f19603f3d011682016040523d82523d6000602084013e612d60565b606091505b50600081511415612d9d576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60606000821415612e40576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612f54565b600082905060005b60008214612e72578080612e5b90614391565b915050600a82612e6b9190614194565b9150612e48565b60008167ffffffffffffffff811115612e8e57612e8d6144f6565b5b6040519080825280601f01601f191660200182016040528015612ec05781602001600182028036833780820191505090505b5090505b60008514612f4d57600182612ed9919061421f565b9150600a85612ee891906143da565b6030612ef4919061413e565b60f81b818381518110612f0a57612f096144c7565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612f469190614194565b9450612ec4565b8093505050505b919050565b600033905090565b612f6b8383613007565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612ff957600080549050600083820390505b612fab6000868380600101945086612c98565b612fe1576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612f98578160005414612ff657600080fd5b50505b505050565b60009392505050565b6000805490506000821415613048576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6130556000848385612b50565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506130cc836130bd6000866000612b56565b6130c6856131c4565b17612b7e565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461316d57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613132565b5060008214156131a9576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506131bf6000848385612ba9565b505050565b60006001821460e11b9050919050565b8280546131e09061432e565b90600052602060002090601f0160209004810192826132025760008555613249565b82601f1061321b57805160ff1916838001178555613249565b82800160010185558215613249579182015b8281111561324857825182559160200191906001019061322d565b5b50905061325691906132e4565b5090565b8280548282559060005260206000209081019282156132d3579160200282015b828111156132d25782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509160200191906001019061327a565b5b5090506132e091906132e4565b5090565b5b808211156132fd5760008160009055506001016132e5565b5090565b600061331461330f8461402c565b614007565b905080838252602082019050828560208602820111156133375761333661452a565b5b60005b85811015613367578161334d8882613465565b84526020840193506020830192505060018101905061333a565b5050509392505050565b600061338461337f84614058565b614007565b905080838252602082019050828560208602820111156133a7576133a661452a565b5b60005b858110156133d757816133bd8882613586565b8452602084019350602083019250506001810190506133aa565b5050509392505050565b60006133f46133ef84614084565b614007565b9050828152602081018484840111156134105761340f61452f565b5b61341b8482856142ec565b509392505050565b6000613436613431846140b5565b614007565b9050828152602081018484840111156134525761345161452f565b5b61345d8482856142ec565b509392505050565b60008135905061347481614839565b92915050565b600082601f83011261348f5761348e614525565b5b813561349f848260208601613301565b91505092915050565b600082601f8301126134bd576134bc614525565b5b81356134cd848260208601613371565b91505092915050565b6000813590506134e581614850565b92915050565b6000815190506134fa81614850565b92915050565b60008135905061350f81614867565b92915050565b60008151905061352481614867565b92915050565b600082601f83011261353f5761353e614525565b5b813561354f8482602086016133e1565b91505092915050565b600082601f83011261356d5761356c614525565b5b813561357d848260208601613423565b91505092915050565b6000813590506135958161487e565b92915050565b6000815190506135aa8161487e565b92915050565b6000602082840312156135c6576135c5614539565b5b60006135d484828501613465565b91505092915050565b600080604083850312156135f4576135f3614539565b5b600061360285828601613465565b925050602061361385828601613465565b9150509250929050565b60008060006060848603121561363657613635614539565b5b600061364486828701613465565b935050602061365586828701613465565b925050604061366686828701613586565b9150509250925092565b6000806000806080858703121561368a57613689614539565b5b600061369887828801613465565b94505060206136a987828801613465565b93505060406136ba87828801613586565b925050606085013567ffffffffffffffff8111156136db576136da614534565b5b6136e78782880161352a565b91505092959194509250565b6000806040838503121561370a57613709614539565b5b600061371885828601613465565b9250506020613729858286016134d6565b9150509250929050565b6000806040838503121561374a57613749614539565b5b600061375885828601613465565b925050602061376985828601613586565b9150509250929050565b60006020828403121561378957613788614539565b5b600082013567ffffffffffffffff8111156137a7576137a6614534565b5b6137b38482850161347a565b91505092915050565b6000806000606084860312156137d5576137d4614539565b5b600084013567ffffffffffffffff8111156137f3576137f2614534565b5b6137ff8682870161347a565b935050602084013567ffffffffffffffff8111156138205761381f614534565b5b61382c868287016134a8565b925050604061383d86828701613586565b9150509250925092565b60006020828403121561385d5761385c614539565b5b600061386b848285016134eb565b91505092915050565b60006020828403121561388a57613889614539565b5b600061389884828501613500565b91505092915050565b6000602082840312156138b7576138b6614539565b5b60006138c584828501613515565b91505092915050565b6000602082840312156138e4576138e3614539565b5b600082013567ffffffffffffffff81111561390257613901614534565b5b61390e84828501613558565b91505092915050565b60006020828403121561392d5761392c614539565b5b600061393b84828501613586565b91505092915050565b60006020828403121561395a57613959614539565b5b60006139688482850161359b565b91505092915050565b61397a81614253565b82525050565b61398981614265565b82525050565b600061399a826140fb565b6139a48185614111565b93506139b48185602086016142fb565b6139bd8161453e565b840191505092915050565b6139d1816142da565b82525050565b60006139e282614106565b6139ec8185614122565b93506139fc8185602086016142fb565b613a058161453e565b840191505092915050565b6000613a1b82614106565b613a258185614133565b9350613a358185602086016142fb565b80840191505092915050565b60008154613a4e8161432e565b613a588186614133565b94506001821660008114613a735760018114613a8457613ab7565b60ff19831686528186019350613ab7565b613a8d856140e6565b60005b83811015613aaf57815481890152600182019150602081019050613a90565b838801955050505b50505092915050565b6000613acd601483614122565b9150613ad88261454f565b602082019050919050565b6000613af0602683614122565b9150613afb82614578565b604082019050919050565b6000613b13602483614122565b9150613b1e826145c7565b604082019050919050565b6000613b36601883614122565b9150613b4182614616565b602082019050919050565b6000613b59601583614122565b9150613b648261463f565b602082019050919050565b6000613b7c600583614133565b9150613b8782614668565b600582019050919050565b6000613b9f602083614122565b9150613baa82614691565b602082019050919050565b6000613bc2601883614122565b9150613bcd826146ba565b602082019050919050565b6000613be5601b83614122565b9150613bf0826146e3565b602082019050919050565b6000613c08601383614122565b9150613c138261470c565b602082019050919050565b6000613c2b602283614122565b9150613c3682614735565b604082019050919050565b6000613c4e601d83614122565b9150613c5982614784565b602082019050919050565b6000613c71601f83614122565b9150613c7c826147ad565b602082019050919050565b6000613c94602183614122565b9150613c9f826147d6565b604082019050919050565b613cb3816142d0565b82525050565b6000613cc58285613a41565b9150613cd18284613a10565b9150613cdc82613b6f565b91508190509392505050565b6000602082019050613cfd6000830184613971565b92915050565b6000608082019050613d186000830187613971565b613d256020830186613971565b613d326040830185613971565b613d3f6060830184613971565b95945050505050565b6000606082019050613d5d6000830186613971565b613d6a6020830185613971565b613d776040830184613caa565b949350505050565b6000608082019050613d946000830187613971565b613da16020830186613971565b613dae6040830185613caa565b8181036060830152613dc0818461398f565b905095945050505050565b6000602082019050613de06000830184613980565b92915050565b6000602082019050613dfb60008301846139c8565b92915050565b60006020820190508181036000830152613e1b81846139d7565b905092915050565b60006020820190508181036000830152613e3c81613ac0565b9050919050565b60006020820190508181036000830152613e5c81613ae3565b9050919050565b60006020820190508181036000830152613e7c81613b06565b9050919050565b60006020820190508181036000830152613e9c81613b29565b9050919050565b60006020820190508181036000830152613ebc81613b4c565b9050919050565b60006020820190508181036000830152613edc81613b92565b9050919050565b60006020820190508181036000830152613efc81613bb5565b9050919050565b60006020820190508181036000830152613f1c81613bd8565b9050919050565b60006020820190508181036000830152613f3c81613bfb565b9050919050565b60006020820190508181036000830152613f5c81613c1e565b9050919050565b60006020820190508181036000830152613f7c81613c41565b9050919050565b60006020820190508181036000830152613f9c81613c64565b9050919050565b60006020820190508181036000830152613fbc81613c87565b9050919050565b6000602082019050613fd86000830184613caa565b92915050565b6000604082019050613ff36000830185613caa565b6140006020830184613caa565b9392505050565b6000614011614022565b905061401d8282614360565b919050565b6000604051905090565b600067ffffffffffffffff821115614047576140466144f6565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614073576140726144f6565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561409f5761409e6144f6565b5b6140a88261453e565b9050602081019050919050565b600067ffffffffffffffff8211156140d0576140cf6144f6565b5b6140d98261453e565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000614149826142d0565b9150614154836142d0565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156141895761418861440b565b5b828201905092915050565b600061419f826142d0565b91506141aa836142d0565b9250826141ba576141b961443a565b5b828204905092915050565b60006141d0826142d0565b91506141db836142d0565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156142145761421361440b565b5b828202905092915050565b600061422a826142d0565b9150614235836142d0565b9250828210156142485761424761440b565b5b828203905092915050565b600061425e826142b0565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b60008190506142ab82614825565b919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006142e58261429d565b9050919050565b82818337600083830152505050565b60005b838110156143195780820151818401526020810190506142fe565b83811115614328576000848401525b50505050565b6000600282049050600182168061434657607f821691505b6020821081141561435a57614359614498565b5b50919050565b6143698261453e565b810181811067ffffffffffffffff82111715614388576143876144f6565b5b80604052505050565b600061439c826142d0565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156143cf576143ce61440b565b5b600182019050919050565b60006143e5826142d0565b91506143f0836142d0565b925082614400576143ff61443a565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4d696e74206c696d69742065786365656465642e000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f416d6f756e742073686f756c64206e6f7420657863656564206d61782073757060008201527f706c792e00000000000000000000000000000000000000000000000000000000602082015250565b7f53616c65206861736e27742053746172746564205965742e0000000000000000600082015250565b7f446966666572656e742061727261792073697a65730000000000000000000000600082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f496e737566696369656e742045544820746f206d696e742e0000000000000000600082015250565b7f4e6f7420656e6f756768207265776172647320746f20636c61696d0000000000600082015250565b7f4578636565646564206d617820737570706c7900000000000000000000000000600082015250565b7f436f6e74726163747320617265206e6f7420616c6c6f77656420746f206d696e60008201527f742e000000000000000000000000000000000000000000000000000000000000602082015250565b7f436c61696d2074696d65206861736e277420706173736564207965742e000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f4e6f7420656e6f756768204c424143275320696e20796f7572206163636f756e60008201527f7400000000000000000000000000000000000000000000000000000000000000602082015250565b6003811061483657614835614469565b5b50565b61484281614253565b811461484d57600080fd5b50565b61485981614265565b811461486457600080fd5b50565b61487081614271565b811461487b57600080fd5b50565b614887816142d0565b811461489257600080fd5b5056fea2646970667358221220292a555c0dfad40ce09995fd7123fafef63720a748272e045c1a05b445a1fd0564736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000220000000000000000000000000847fcadf5102fa9e79f3c1d398cf4275ba781524000000000000000000000000711782b84cddbb4bcbd97867b124f652ea7c739b000000000000000000000000918f677b3ab4b9290ca96a95430fd228b2d848170000000000000000000000000ddf1dac8537c90b0a96bdf05a8c9ed78ccd26ca0000000000000000000000000000000000000000000000000000000000000280000000000000000000000000000000000000000000000000000000000000000e4c4d41434558504552494d454e5400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044c4d414300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005368747470733a2f2f756e72657665616c2e6d7970696e6174612e636c6f75642f697066732f516d566b5469484a6452414235385770464345564a676f7531786132724654356a424d5550426f43487135754c55000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d5478455a75755767574566445267344e715973365053754a313547756174784569764d7564375472425845362f000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000711782b84cddbb4bcbd97867b124f652ea7c739b000000000000000000000000711782b84cddbb4bcbd97867b124f652ea7c739b000000000000000000000000711782b84cddbb4bcbd97867b124f652ea7c739b
-----Decoded View---------------
Arg [0] : name_ (string): LMACEXPERIMENT
Arg [1] : symbol_ (string): LMAC
Arg [2] : unRevealUri_ (string): https://unreveal.mypinata.cloud/ipfs/QmVkTiHJdRAB58WpFCEVJgou1xa2rFT5jBMUPBoCHq5uLU
Arg [3] : baseTokenUri_ (string): ipfs://QmTxEZuuWgWEfDRg4NqYs6PSuJ15GuatxEivMud7TrBXE6/
Arg [4] : coinAddress (address): 0x847fCadf5102Fa9E79F3c1D398Cf4275Ba781524
Arg [5] : coinOwnerAddress (address): 0x711782b84cddbb4bcbd97867b124F652Ea7C739b
Arg [6] : LBACCoinAddress (address): 0x918F677b3aB4B9290Ca96A95430FD228b2d84817
Arg [7] : lilBananaCoinAddress (address): 0x0DdF1dAc8537C90b0a96Bdf05A8c9eD78ccD26cA
Arg [8] : beneficiaries_ (address[]): 0x711782b84cddbb4bcbd97867b124F652Ea7C739b,0x711782b84cddbb4bcbd97867b124F652Ea7C739b,0x711782b84cddbb4bcbd97867b124F652Ea7C739b
-----Encoded View---------------
24 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [4] : 000000000000000000000000847fcadf5102fa9e79f3c1d398cf4275ba781524
Arg [5] : 000000000000000000000000711782b84cddbb4bcbd97867b124f652ea7c739b
Arg [6] : 000000000000000000000000918f677b3ab4b9290ca96a95430fd228b2d84817
Arg [7] : 0000000000000000000000000ddf1dac8537c90b0a96bdf05a8c9ed78ccd26ca
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000280
Arg [9] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [10] : 4c4d41434558504552494d454e54000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [12] : 4c4d414300000000000000000000000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000053
Arg [14] : 68747470733a2f2f756e72657665616c2e6d7970696e6174612e636c6f75642f
Arg [15] : 697066732f516d566b5469484a6452414235385770464345564a676f75317861
Arg [16] : 32724654356a424d5550426f43487135754c5500000000000000000000000000
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [18] : 697066733a2f2f516d5478455a75755767574566445267344e71597336505375
Arg [19] : 4a313547756174784569764d7564375472425845362f00000000000000000000
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [21] : 000000000000000000000000711782b84cddbb4bcbd97867b124f652ea7c739b
Arg [22] : 000000000000000000000000711782b84cddbb4bcbd97867b124f652ea7c739b
Arg [23] : 000000000000000000000000711782b84cddbb4bcbd97867b124f652ea7c739b
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.