ERC-721
Overview
Max Total Supply
3,094 MBYC
Holders
1,068
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 MBYCLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MutantBitsYachtClub
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.8.6; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./BBYC.sol"; import "./BoredBitsChemistryClub.sol"; //Based on Yuga Labs' Smart Contract. //@yugalabs contract MutantBitsYachtClub is ERC721Enumerable, Ownable, ReentrancyGuard { uint8 private constant NUM_MUTANT_TYPES = 2; uint256 private constant MEGA_MUTATION_TYPE = 69; uint256 public constant NUM_MEGA_MUTANTS = 8; uint16 private constant MAX_MEGA_MUTATION_ID = 30007; uint256 public constant SERUM_MUTATION_OFFSET = 10000; uint256 public constant PS_MAX_MUTANT_PURCHASE = 20; uint256 public constant PS_MAX_MUTANTS = 10000; uint256 public mutantPrice = 10000000000000000; uint256 public numMutantsMinted; bool public publicSaleActive; bool public serumMutationActive; uint16 private currentMegaMutationId = 30000; mapping(uint256 => uint256) private megaMutationIdsByApe; string private baseURI; BBYC private immutable bbyc; BoredBitsChemistryClub private immutable bbcc; modifier whenPublicSaleActive() { require(publicSaleActive, "Public sale is not active"); _; } constructor( string memory name, string memory symbol, address bbycAddress, address bbccAddress ) ERC721(name, symbol) { bbyc = BBYC(bbycAddress); bbcc = BoredBitsChemistryClub(bbccAddress); } function withdraw() external onlyOwner { uint256 balance = address(this).balance; Address.sendValue(payable(owner()), balance); } function mintMutants(uint256 numMutants) external payable whenPublicSaleActive nonReentrant { require( numMutantsMinted + numMutants <= PS_MAX_MUTANTS, "Minting would exceed max supply" ); require(numMutants > 0, "Must mint at least one mutant"); require( numMutants <= PS_MAX_MUTANT_PURCHASE, "Requested number exceeds maximum" ); uint256 costToMint = mutantPrice * numMutants; require(costToMint <= msg.value, "Ether value sent is not correct"); for (uint256 i = 0; i < numMutants; i++) { uint256 mintIndex = numMutantsMinted; if (numMutantsMinted < PS_MAX_MUTANTS) { numMutantsMinted++; _safeMint(msg.sender, mintIndex); } } } function mintMutantsByTeam(uint256 numMutants) external onlyOwner { require( numMutantsMinted + numMutants <= PS_MAX_MUTANTS, "Minting would exceed max supply" ); require(numMutants > 0, "Must mint at least one mutant"); for (uint256 i = 0; i < numMutants; i++) { uint256 mintIndex = numMutantsMinted; if (numMutantsMinted < PS_MAX_MUTANTS) { numMutantsMinted++; _safeMint(msg.sender, mintIndex); } } } function mutateMultipleWithSerum(uint256 serumTypeId, uint256[] calldata apeIds) external nonReentrant { require(serumMutationActive, "Serum Mutation is not active"); require( bbcc.balanceOf(msg.sender, serumTypeId) >= apeIds.length, "Must own at least one of this serum type to mutate" ); for(uint i = 0; i < apeIds.length;i++) { _mutateApeWithSerum(serumTypeId, apeIds[i]); } } function mutateApeWithSerum(uint256 serumTypeId, uint256 apeId) external nonReentrant { require(serumMutationActive, "Serum Mutation is not active"); _mutateApeWithSerum(serumTypeId, apeId); } function _mutateApeWithSerum(uint256 serumTypeId, uint256 apeId) internal { require( bbcc.balanceOf(msg.sender, serumTypeId) > 0, "Must own at least one of this serum type to mutate" ); require( bbyc.ownerOf(apeId) == msg.sender, "Must own the ape you're attempting to mutate" ); uint256 mutantId; if (serumTypeId == MEGA_MUTATION_TYPE) { require( currentMegaMutationId <= MAX_MEGA_MUTATION_ID, "Would exceed supply of serum-mutatable MEGA MUTANTS" ); require( megaMutationIdsByApe[apeId] == 0, "Ape already mutated with MEGA MUTATION SERUM" ); mutantId = currentMegaMutationId; megaMutationIdsByApe[apeId] = mutantId; currentMegaMutationId++; } else { mutantId = getMutantId(serumTypeId, apeId); require( !_exists(mutantId), "Ape already mutated with this type of serum" ); } bbcc.burnSerumForAddress(serumTypeId, msg.sender); _safeMint(msg.sender, mutantId); } function getMutantIdForApeAndSerumCombination( uint256 apeId, uint8 serumTypeId ) external view returns (uint256) { uint256 mutantId; if (serumTypeId == MEGA_MUTATION_TYPE) { mutantId = megaMutationIdsByApe[apeId]; require(mutantId > 0, "Invalid MEGA Mutant Id"); } else { mutantId = getMutantId(serumTypeId, apeId); } require(_exists(mutantId), "Query for nonexistent mutant"); return mutantId; } function hasApeBeenMutatedWithType(uint8 serumType, uint256 apeId) external view returns (bool) { if (serumType == MEGA_MUTATION_TYPE) { return megaMutationIdsByApe[apeId] > 0; } uint256 mutantId = getMutantId(serumType, apeId); return _exists(mutantId); } function getMutantId(uint256 serumType, uint256 apeId) internal pure returns (uint256) { require( serumType != MEGA_MUTATION_TYPE, "Mega mutant ID can't be calculated" ); return (apeId * NUM_MUTANT_TYPES) + serumType + SERUM_MUTATION_OFFSET; } function isMinted(uint256 tokenId) external view returns (bool) { require( tokenId < MAX_MEGA_MUTATION_ID, "tokenId outside collection bounds" ); return _exists(tokenId); } function totalApesMutated() external view returns (uint256) { return totalSupply() - numMutantsMinted; } function _baseURI() internal view override returns (string memory) { return baseURI; } function setBaseURI(string memory uri) external onlyOwner { baseURI = uri; } function togglePublicSaleActive() external onlyOwner { publicSaleActive = !publicSaleActive; } function toggleSerumMutationActive() external onlyOwner { serumMutationActive = !serumMutationActive; } function setMutantPrice(uint256 newPrice) external onlyOwner { mutantPrice = newPrice; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A is IERC721, IERC721Metadata { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721A { using Address for address; using Strings for uint256; // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner) if(!isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.isContract()) if(!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity >=0.8.6; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; contract BoredBitsChemistryClub is ERC1155, Ownable { using Strings for uint256; bool public mintOpen = false; address private mutationContract; string private baseURI; bytes32 public m1MerkleRoot; bytes32 public m2MerkleRoot; bytes32 public megaMerkleRoot; mapping(uint256 => bool) public validSerumTypes; mapping(uint256 => uint256) public maxSerums; mapping(address => mapping(uint => bool)) private claimed; mapping(uint => uint) public assetNonce; string public name = "Bored Bits Chemistry Club"; string public symbol = "BBCC"; modifier notClaimed(uint idx){ require(!claimed[msg.sender][idx],"You cannot claim this again"); _; } modifier opened(){ require(mintOpen, "mint is closed"); _; } constructor(string memory _baseURI) ERC1155(_baseURI) { baseURI = _baseURI; validSerumTypes[0] = true; validSerumTypes[1] = true; validSerumTypes[69] = true; maxSerums[0] = 7500; maxSerums[1] = 2492; maxSerums[69] = 8; } function setM1MerkleRoot(bytes32 root) external onlyOwner { m1MerkleRoot = root; } function setM2MerkleRoot(bytes32 root) external onlyOwner { m2MerkleRoot = root; } function setMegaMerkleRoot(bytes32 root) external onlyOwner { megaMerkleRoot = root; } function toggleMint() external onlyOwner { mintOpen = !mintOpen; } function claimM1(uint qty, bytes32[] memory proof) external opened notClaimed(0) { require(MerkleProof.verify(proof, m1MerkleRoot, keccak256(abi.encodePacked(msg.sender, qty))), "Invalid proof"); require(assetNonce[0] + qty <= maxSerums[0], "Total exceeded"); claimed[msg.sender][0] = true; assetNonce[0] += qty; _mint(msg.sender, 0, qty, ""); } function claimM2(uint qty, bytes32[] memory proof) external opened notClaimed(1) { require(MerkleProof.verify(proof, m2MerkleRoot, keccak256(abi.encodePacked(msg.sender, qty))), "Invalid proof"); require(assetNonce[1] + qty <= maxSerums[1], "Total exceeded"); claimed[msg.sender][1] = true; assetNonce[1] += qty; _mint(msg.sender, 1, qty, ""); } function claimMega(uint qty, bytes32[] memory proof) external opened notClaimed(69) { require(MerkleProof.verify(proof, megaMerkleRoot, keccak256(abi.encodePacked(msg.sender, qty))), "Invalid proof"); require(assetNonce[69] + qty <= maxSerums[69], "Total exceeded"); claimed[msg.sender][69] = true; assetNonce[69] += qty; _mint(msg.sender, 69, qty, ""); } function mintBatch(uint256[] memory ids, uint256[] memory amounts) external onlyOwner { _mintBatch(owner(), ids, amounts, ""); } function setMutationContractAddress(address mutationContractAddress) external onlyOwner { mutationContract = mutationContractAddress; } function burnSerumForAddress(uint256 typeId, address burnTokenAddress) external { require(msg.sender == mutationContract, "Invalid burner address"); _burn(burnTokenAddress, typeId, 1); } function updateBaseUri(string memory _baseURI) external onlyOwner { baseURI = _baseURI; } function uri(uint256 typeId) public view override returns (string memory) { require( validSerumTypes[typeId], "URI requested for invalid serum type" ); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, typeId.toString())) : baseURI; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.8.6; import "@openzeppelin/contracts/access/Ownable.sol"; import "./erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; contract BBYC is ERC721A, Ownable { uint public price = 0.03 ether; uint public maxSupply = 10000; uint public maxTx = 20; bytes32 public merkleRoot; bool private mintOpen = false; bool private presaleOpen = false; string internal baseTokenURI = ''; constructor() ERC721A("Bored Bits Yacht Club", "BBYC") {} function toggleMint() external onlyOwner { mintOpen = !mintOpen; } function togglePresale() external onlyOwner { presaleOpen = !presaleOpen; } function setPrice(uint newPrice) external onlyOwner { price = newPrice; } function setBaseTokenURI(string calldata _uri) external onlyOwner { baseTokenURI = _uri; } function setMerkleRoot(bytes32 root) external onlyOwner { merkleRoot = root; } function setMaxSupply(uint newSupply) external onlyOwner { maxSupply = newSupply; } function setMaxTx(uint newMax) external onlyOwner { maxTx = newMax; } function _baseURI() internal override view returns (string memory) { return baseTokenURI; } function buyTo(address to, uint qty) external onlyOwner { _mintTo(to, qty); } function buy(uint qty, bytes32[] memory proof) external payable { require(presaleOpen, "store closed"); require(verify(proof), "address not in whitelist"); _buy(qty); } function buy(uint qty) external payable { require(mintOpen, "store closed"); _buy(qty); } function _buy(uint qty) internal { require(qty <= maxTx && qty > 0, "TRANSACTION: qty of mints not alowed"); uint free = balanceOf(_msgSender()) == 0 ? 1 : 0; require(msg.value >= price * (qty - free), "PAYMENT: invalid value"); _mintTo(_msgSender(), qty); } function mint(uint qty) external payable { require(qty <= maxTx && qty > 0, "TRANSACTION: qty of mints not alowed"); require(msg.value >= price * qty, "PAYMENT: invalid value"); _mintTo(_msgSender(), qty); } function _mintTo(address to, uint qty) internal { require(qty + totalSupply() <= maxSupply, "SUPPLY: Value exceeds totalSupply"); _mint(to, qty); } function withdraw() external onlyOwner { payable(_msgSender()).transfer(address(this).balance); } function verify(bytes32[] memory proof) internal view returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); return MerkleProof.verify(proof, merkleRoot, leaf); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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 (last updated v4.6.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (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.6.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 be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be 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 owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || 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 a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, to, ids, amounts, data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "london", "libraries": {}, "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":"address","name":"bbycAddress","type":"address"},{"internalType":"address","name":"bbccAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"NUM_MEGA_MUTANTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PS_MAX_MUTANTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PS_MAX_MUTANT_PURCHASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SERUM_MUTATION_OFFSET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"apeId","type":"uint256"},{"internalType":"uint8","name":"serumTypeId","type":"uint8"}],"name":"getMutantIdForApeAndSerumCombination","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"serumType","type":"uint8"},{"internalType":"uint256","name":"apeId","type":"uint256"}],"name":"hasApeBeenMutatedWithType","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numMutants","type":"uint256"}],"name":"mintMutants","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numMutants","type":"uint256"}],"name":"mintMutantsByTeam","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mutantPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"serumTypeId","type":"uint256"},{"internalType":"uint256","name":"apeId","type":"uint256"}],"name":"mutateApeWithSerum","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"serumTypeId","type":"uint256"},{"internalType":"uint256[]","name":"apeIds","type":"uint256[]"}],"name":"mutateMultipleWithSerum","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numMutantsMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"serumMutationActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setMutantPrice","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":[],"name":"togglePublicSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleSerumMutationActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalApesMutated","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c0604052662386f26fc10000600c55617530600e60026101000a81548161ffff021916908361ffff1602179055503480156200003b57600080fd5b5060405162005ced38038062005ced83398181016040528101906200006191906200034a565b838381600090805190602001906200007b92919062000205565b5080600190805190602001906200009492919062000205565b505050620000b7620000ab6200013760201b60201c565b6200013f60201b60201c565b6001600b819055508173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250508073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b8152505050505050620005cc565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200021390620004c3565b90600052602060002090601f01602090048101928262000237576000855562000283565b82601f106200025257805160ff191683800117855562000283565b8280016001018555821562000283579182015b828111156200028257825182559160200191906001019062000265565b5b50905062000292919062000296565b5090565b5b80821115620002b157600081600090555060010162000297565b5090565b6000620002cc620002c68462000423565b620003fa565b905082815260208101848484011115620002eb57620002ea62000592565b5b620002f88482856200048d565b509392505050565b6000815190506200031181620005b2565b92915050565b600082601f8301126200032f576200032e6200058d565b5b815162000341848260208601620002b5565b91505092915050565b600080600080608085870312156200036757620003666200059c565b5b600085015167ffffffffffffffff81111562000388576200038762000597565b5b620003968782880162000317565b945050602085015167ffffffffffffffff811115620003ba57620003b962000597565b5b620003c88782880162000317565b9350506040620003db8782880162000300565b9250506060620003ee8782880162000300565b91505092959194509250565b60006200040662000419565b9050620004148282620004f9565b919050565b6000604051905090565b600067ffffffffffffffff8211156200044157620004406200055e565b5b6200044c82620005a1565b9050602081019050919050565b600062000466826200046d565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60005b83811015620004ad57808201518184015260208101905062000490565b83811115620004bd576000848401525b50505050565b60006002820490506001821680620004dc57607f821691505b60208210811415620004f357620004f26200052f565b5b50919050565b6200050482620005a1565b810181811067ffffffffffffffff821117156200052657620005256200055e565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b620005bd8162000459565b8114620005c957600080fd5b50565b60805160601c60a05160601c6156e762000606600039600081816115300152818161252401526128a70152600061262501526156e76000f3fe60806040526004361061023b5760003560e01c8063715018a61161012e578063c15e24bc116100ab578063e6f0df8c1161006f578063e6f0df8c14610852578063e73a9a251461087d578063e985e9c5146108a6578063ee211233146108e3578063f2fde38b146109205761023b565b8063c15e24bc1461078c578063c87b56dd146107a8578063d0b77feb146107e5578063e1c3ad0c146107fc578063e43437c8146108275761023b565b8063a22cb465116100f2578063a22cb465146106a7578063b88d4fde146106d0578063bc8893b4146106f9578063bd5e5e0c14610724578063c0bb92ea146107615761023b565b8063715018a6146105e85780638da5cb5b146105ff5780638df98c851461062a57806395d89b41146106535780639c4fa6cc1461067e5761023b565b806333c41a90116101bc5780634f6ccce7116101805780634f6ccce7146104dd57806355f804b31461051a57806361169ea8146105435780636352211e1461056e57806370a08231146105ab5761023b565b806333c41a901461040c5780633aee1772146104495780633ccfd60b1461047257806342842e0e1461048957806348cd4f08146104b25761023b565b80630c894cfe116102035780630c894cfe1461033957806318160ddd1461035057806323b872dd1461037b5780632cc44080146103a45780632f745c59146103cf5761023b565b806301ffc9a71461024057806306fdde031461027d578063081812fc146102a8578063095ea7b3146102e55780630af7f2b81461030e575b600080fd5b34801561024c57600080fd5b5061026760048036038101906102629190613a61565b610949565b6040516102749190614326565b60405180910390f35b34801561028957600080fd5b506102926109c3565b60405161029f9190614341565b60405180910390f35b3480156102b457600080fd5b506102cf60048036038101906102ca9190613b04565b610a55565b6040516102dc9190614296565b60405180910390f35b3480156102f157600080fd5b5061030c60048036038101906103079190613a21565b610ada565b005b34801561031a57600080fd5b50610323610bf2565b60405161033091906147e3565b60405180910390f35b34801561034557600080fd5b5061034e610bf7565b005b34801561035c57600080fd5b50610365610c9f565b60405161037291906147e3565b60405180910390f35b34801561038757600080fd5b506103a2600480360381019061039d919061390b565b610cac565b005b3480156103b057600080fd5b506103b9610d0c565b6040516103c691906147e3565b60405180910390f35b3480156103db57600080fd5b506103f660048036038101906103f19190613a21565b610d12565b60405161040391906147e3565b60405180910390f35b34801561041857600080fd5b50610433600480360381019061042e9190613b04565b610db7565b6040516104409190614326565b60405180910390f35b34801561045557600080fd5b50610470600480360381019061046b9190613b04565b610e11565b005b34801561047e57600080fd5b50610487610e97565b005b34801561049557600080fd5b506104b060048036038101906104ab919061390b565b610f2c565b005b3480156104be57600080fd5b506104c7610f4c565b6040516104d491906147e3565b60405180910390f35b3480156104e957600080fd5b5061050460048036038101906104ff9190613b04565b610f68565b60405161051191906147e3565b60405180910390f35b34801561052657600080fd5b50610541600480360381019061053c9190613abb565b610fd9565b005b34801561054f57600080fd5b5061055861106f565b60405161056591906147e3565b60405180910390f35b34801561057a57600080fd5b5061059560048036038101906105909190613b04565b611075565b6040516105a29190614296565b60405180910390f35b3480156105b757600080fd5b506105d260048036038101906105cd9190613871565b611127565b6040516105df91906147e3565b60405180910390f35b3480156105f457600080fd5b506105fd6111df565b005b34801561060b57600080fd5b50610614611267565b6040516106219190614296565b60405180910390f35b34801561063657600080fd5b50610651600480360381019061064c9190613b04565b611291565b005b34801561065f57600080fd5b506106686113fb565b6040516106759190614341565b60405180910390f35b34801561068a57600080fd5b506106a560048036038101906106a09190613b5e565b61148d565b005b3480156106b357600080fd5b506106ce60048036038101906106c991906139e1565b61166b565b005b3480156106dc57600080fd5b506106f760048036038101906106f2919061395e565b611681565b005b34801561070557600080fd5b5061070e6116e3565b60405161071b9190614326565b60405180910390f35b34801561073057600080fd5b5061074b60048036038101906107469190613bfe565b6116f6565b60405161075891906147e3565b60405180910390f35b34801561076d57600080fd5b506107766117c5565b60405161078391906147e3565b60405180910390f35b6107a660048036038101906107a19190613b04565b6117ca565b005b3480156107b457600080fd5b506107cf60048036038101906107ca9190613b04565b6119f7565b6040516107dc9190614341565b60405180910390f35b3480156107f157600080fd5b506107fa611a9e565b005b34801561080857600080fd5b50610811611b46565b60405161081e9190614326565b60405180910390f35b34801561083357600080fd5b5061083c611b59565b60405161084991906147e3565b60405180910390f35b34801561085e57600080fd5b50610867611b5f565b60405161087491906147e3565b60405180910390f35b34801561088957600080fd5b506108a4600480360381019061089f9190613bbe565b611b65565b005b3480156108b257600080fd5b506108cd60048036038101906108c891906138cb565b611c18565b6040516108da9190614326565b60405180910390f35b3480156108ef57600080fd5b5061090a60048036038101906109059190613c3e565b611cac565b6040516109179190614326565b60405180910390f35b34801561092c57600080fd5b5061094760048036038101906109429190613871565b611cfc565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109bc57506109bb82611df4565b5b9050919050565b6060600080546109d290614ae2565b80601f01602080910402602001604051908101604052809291908181526020018280546109fe90614ae2565b8015610a4b5780601f10610a2057610100808354040283529160200191610a4b565b820191906000526020600020905b815481529060010190602001808311610a2e57829003601f168201915b5050505050905090565b6000610a6082611ed6565b610a9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9690614683565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ae582611075565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4d90614723565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b75611f42565b73ffffffffffffffffffffffffffffffffffffffff161480610ba45750610ba381610b9e611f42565b611c18565b5b610be3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bda90614583565b60405180910390fd5b610bed8383611f4a565b505050565b601481565b610bff611f42565b73ffffffffffffffffffffffffffffffffffffffff16610c1d611267565b73ffffffffffffffffffffffffffffffffffffffff1614610c73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6a906146a3565b60405180910390fd5b600e60009054906101000a900460ff1615600e60006101000a81548160ff021916908315150217905550565b6000600880549050905090565b610cbd610cb7611f42565b82612003565b610cfc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf390614743565b60405180910390fd5b610d078383836120e1565b505050565b600c5481565b6000610d1d83611127565b8210610d5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d55906143c3565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600061753761ffff168210610e01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df890614703565b60405180910390fd5b610e0a82611ed6565b9050919050565b610e19611f42565b73ffffffffffffffffffffffffffffffffffffffff16610e37611267565b73ffffffffffffffffffffffffffffffffffffffff1614610e8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e84906146a3565b60405180910390fd5b80600c8190555050565b610e9f611f42565b73ffffffffffffffffffffffffffffffffffffffff16610ebd611267565b73ffffffffffffffffffffffffffffffffffffffff1614610f13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0a906146a3565b60405180910390fd5b6000479050610f29610f23611267565b82612348565b50565b610f4783838360405180602001604052806000815250611681565b505050565b6000600d54610f59610c9f565b610f6391906149dd565b905090565b6000610f72610c9f565b8210610fb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610faa90614763565b60405180910390fd5b60088281548110610fc757610fc6614ca6565b5b90600052602060002001549050919050565b610fe1611f42565b73ffffffffffffffffffffffffffffffffffffffff16610fff611267565b73ffffffffffffffffffffffffffffffffffffffff1614611055576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104c906146a3565b60405180910390fd5b806010908051906020019061106b9291906135f0565b5050565b61271081565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561111e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611115906145c3565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611198576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118f906145a3565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6111e7611f42565b73ffffffffffffffffffffffffffffffffffffffff16611205611267565b73ffffffffffffffffffffffffffffffffffffffff161461125b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611252906146a3565b60405180910390fd5b611265600061243c565b565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611299611f42565b73ffffffffffffffffffffffffffffffffffffffff166112b7611267565b73ffffffffffffffffffffffffffffffffffffffff161461130d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611304906146a3565b60405180910390fd5b61271081600d5461131e91906148fc565b111561135f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135690614603565b60405180910390fd5b600081116113a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139990614383565b60405180910390fd5b60005b818110156113f7576000600d549050612710600d5410156113e357600d60008154809291906113d390614b70565b91905055506113e23382612502565b5b5080806113ef90614b70565b9150506113a5565b5050565b60606001805461140a90614ae2565b80601f016020809104026020016040519081016040528092919081815260200182805461143690614ae2565b80156114835780601f1061145857610100808354040283529160200191611483565b820191906000526020600020905b81548152906001019060200180831161146657829003601f168201915b5050505050905090565b6002600b5414156114d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ca906147a3565b60405180910390fd5b6002600b81905550600e60019054906101000a900460ff1661152a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152190614523565b60405180910390fd5b818190507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1662fdd58e33866040518363ffffffff1660e01b81526004016115889291906142fd565b60206040518083038186803b1580156115a057600080fd5b505afa1580156115b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d89190613b31565b1015611619576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161090614363565b60405180910390fd5b60005b8282905081101561165d5761164a8484848481811061163e5761163d614ca6565b5b90506020020135612520565b808061165590614b70565b91505061161c565b506001600b81905550505050565b61167d611676611f42565b8383612941565b5050565b61169261168c611f42565b83612003565b6116d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c890614743565b60405180910390fd5b6116dd84848484612aae565b50505050565b600e60009054906101000a900460ff1681565b60008060458360ff16141561176357600f60008581526020019081526020016000205490506000811161175e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175590614463565b60405180910390fd5b611773565b6117708360ff1685612b0a565b90505b61177c81611ed6565b6117bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b2906146c3565b60405180910390fd5b8091505092915050565b600881565b600e60009054906101000a900460ff16611819576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611810906145e3565b60405180910390fd5b6002600b54141561185f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611856906147a3565b60405180910390fd5b6002600b8190555061271081600d5461187891906148fc565b11156118b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b090614603565b60405180910390fd5b600081116118fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118f390614383565b60405180910390fd5b6014811115611940576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193790614623565b60405180910390fd5b600081600c546119509190614983565b905034811115611995576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198c906144c3565b60405180910390fd5b60005b828110156119ea576000600d549050612710600d5410156119d657600d60008154809291906119c690614b70565b91905055506119d53382612502565b5b5080806119e290614b70565b915050611998565b50506001600b8190555050565b6060611a0282611ed6565b611a41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a38906146e3565b60405180910390fd5b6000611a4b612b80565b90506000815111611a6b5760405180602001604052806000815250611a96565b80611a7584612c12565b604051602001611a8692919061425d565b6040516020818303038152906040525b915050919050565b611aa6611f42565b73ffffffffffffffffffffffffffffffffffffffff16611ac4611267565b73ffffffffffffffffffffffffffffffffffffffff1614611b1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b11906146a3565b60405180910390fd5b600e60019054906101000a900460ff1615600e60016101000a81548160ff021916908315150217905550565b600e60019054906101000a900460ff1681565b600d5481565b61271081565b6002600b541415611bab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba2906147a3565b60405180910390fd5b6002600b81905550600e60019054906101000a900460ff16611c02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf990614523565b60405180910390fd5b611c0c8282612520565b6001600b819055505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600060458360ff161415611cd8576000600f600084815260200190815260200160002054119050611cf6565b6000611ce78460ff1684612b0a565b9050611cf281611ed6565b9150505b92915050565b611d04611f42565b73ffffffffffffffffffffffffffffffffffffffff16611d22611267565b73ffffffffffffffffffffffffffffffffffffffff1614611d78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d6f906146a3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611de8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ddf90614403565b60405180910390fd5b611df18161243c565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611ebf57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611ecf5750611ece82612d73565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611fbd83611075565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061200e82611ed6565b61204d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204490614543565b60405180910390fd5b600061205883611075565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061209a57506120998185611c18565b5b806120d857508373ffffffffffffffffffffffffffffffffffffffff166120c084610a55565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661210182611075565b73ffffffffffffffffffffffffffffffffffffffff1614612157576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161214e90614423565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156121c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121be90614483565b60405180910390fd5b6121d2838383612ddd565b6121dd600082611f4a565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461222d91906149dd565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461228491906148fc565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612343838383612ef1565b505050565b8047101561238b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238290614503565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516123b190614281565b60006040518083038185875af1925050503d80600081146123ee576040519150601f19603f3d011682016040523d82523d6000602084013e6123f3565b606091505b5050905080612437576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242e906144e3565b60405180910390fd5b505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61251c828260405180602001604052806000815250612ef6565b5050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1662fdd58e33856040518363ffffffff1660e01b815260040161257c9291906142fd565b60206040518083038186803b15801561259457600080fd5b505afa1580156125a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125cc9190613b31565b1161260c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260390614363565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b815260040161267c91906147e3565b60206040518083038186803b15801561269457600080fd5b505afa1580156126a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126cc919061389e565b73ffffffffffffffffffffffffffffffffffffffff1614612722576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612719906143a3565b60405180910390fd5b6000604583141561284f5761753761ffff16600e60029054906101000a900461ffff1661ffff16111561278a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278190614563565b60405180910390fd5b6000600f600084815260200190815260200160002054146127e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127d7906147c3565b60405180910390fd5b600e60029054906101000a900461ffff1661ffff16905080600f600084815260200190815260200160002081905550600e600281819054906101000a900461ffff168092919061282f90614b45565b91906101000a81548161ffff021916908361ffff160217905550506128a5565b6128598383612b0a565b905061286481611ed6565b156128a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289b90614643565b60405180910390fd5b5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370ff9ea384336040518363ffffffff1660e01b81526004016129009291906147fe565b600060405180830381600087803b15801561291a57600080fd5b505af115801561292e573d6000803e3d6000fd5b5050505061293c3382612502565b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156129b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129a7906144a3565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612aa19190614326565b60405180910390a3505050565b612ab98484846120e1565b612ac584848484612f51565b612b04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612afb906143e3565b60405180910390fd5b50505050565b60006045831415612b50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b4790614783565b60405180910390fd5b61271083600260ff1684612b649190614983565b612b6e91906148fc565b612b7891906148fc565b905092915050565b606060108054612b8f90614ae2565b80601f0160208091040260200160405190810160405280929190818152602001828054612bbb90614ae2565b8015612c085780601f10612bdd57610100808354040283529160200191612c08565b820191906000526020600020905b815481529060010190602001808311612beb57829003601f168201915b5050505050905090565b60606000821415612c5a576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612d6e565b600082905060005b60008214612c8c578080612c7590614b70565b915050600a82612c859190614952565b9150612c62565b60008167ffffffffffffffff811115612ca857612ca7614cd5565b5b6040519080825280601f01601f191660200182016040528015612cda5781602001600182028036833780820191505090505b5090505b60008514612d6757600182612cf391906149dd565b9150600a85612d029190614bb9565b6030612d0e91906148fc565b60f81b818381518110612d2457612d23614ca6565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612d609190614952565b9450612cde565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612de88383836130e8565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612e2b57612e26816130ed565b612e6a565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612e6957612e688382613136565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612ead57612ea8816132a3565b612eec565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612eeb57612eea8282613374565b5b5b505050565b505050565b612f0083836133f3565b612f0d6000848484612f51565b612f4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f43906143e3565b60405180910390fd5b505050565b6000612f728473ffffffffffffffffffffffffffffffffffffffff166135cd565b156130db578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612f9b611f42565b8786866040518563ffffffff1660e01b8152600401612fbd94939291906142b1565b602060405180830381600087803b158015612fd757600080fd5b505af192505050801561300857506040513d601f19601f820116820180604052508101906130059190613a8e565b60015b61308b573d8060008114613038576040519150601f19603f3d011682016040523d82523d6000602084013e61303d565b606091505b50600081511415613083576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161307a906143e3565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506130e0565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161314384611127565b61314d91906149dd565b9050600060076000848152602001908152602001600020549050818114613232576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506132b791906149dd565b90506000600960008481526020019081526020016000205490506000600883815481106132e7576132e6614ca6565b5b90600052602060002001549050806008838154811061330957613308614ca6565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061335857613357614c77565b5b6001900381819060005260206000200160009055905550505050565b600061337f83611127565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613463576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161345a90614663565b60405180910390fd5b61346c81611ed6565b156134ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134a390614443565b60405180910390fd5b6134b860008383612ddd565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461350891906148fc565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46135c960008383612ef1565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b8280546135fc90614ae2565b90600052602060002090601f01602090048101928261361e5760008555613665565b82601f1061363757805160ff1916838001178555613665565b82800160010185558215613665579182015b82811115613664578251825591602001919060010190613649565b5b5090506136729190613676565b5090565b5b8082111561368f576000816000905550600101613677565b5090565b60006136a66136a18461484c565b614827565b9050828152602081018484840111156136c2576136c1614d13565b5b6136cd848285614aa0565b509392505050565b60006136e86136e38461487d565b614827565b90508281526020810184848401111561370457613703614d13565b5b61370f848285614aa0565b509392505050565b6000813590506137268161563e565b92915050565b60008151905061373b8161563e565b92915050565b60008083601f84011261375757613756614d09565b5b8235905067ffffffffffffffff81111561377457613773614d04565b5b6020830191508360208202830111156137905761378f614d0e565b5b9250929050565b6000813590506137a681615655565b92915050565b6000813590506137bb8161566c565b92915050565b6000815190506137d08161566c565b92915050565b600082601f8301126137eb576137ea614d09565b5b81356137fb848260208601613693565b91505092915050565b600082601f83011261381957613818614d09565b5b81356138298482602086016136d5565b91505092915050565b60008135905061384181615683565b92915050565b60008151905061385681615683565b92915050565b60008135905061386b8161569a565b92915050565b60006020828403121561388757613886614d1d565b5b600061389584828501613717565b91505092915050565b6000602082840312156138b4576138b3614d1d565b5b60006138c28482850161372c565b91505092915050565b600080604083850312156138e2576138e1614d1d565b5b60006138f085828601613717565b925050602061390185828601613717565b9150509250929050565b60008060006060848603121561392457613923614d1d565b5b600061393286828701613717565b935050602061394386828701613717565b925050604061395486828701613832565b9150509250925092565b6000806000806080858703121561397857613977614d1d565b5b600061398687828801613717565b945050602061399787828801613717565b93505060406139a887828801613832565b925050606085013567ffffffffffffffff8111156139c9576139c8614d18565b5b6139d5878288016137d6565b91505092959194509250565b600080604083850312156139f8576139f7614d1d565b5b6000613a0685828601613717565b9250506020613a1785828601613797565b9150509250929050565b60008060408385031215613a3857613a37614d1d565b5b6000613a4685828601613717565b9250506020613a5785828601613832565b9150509250929050565b600060208284031215613a7757613a76614d1d565b5b6000613a85848285016137ac565b91505092915050565b600060208284031215613aa457613aa3614d1d565b5b6000613ab2848285016137c1565b91505092915050565b600060208284031215613ad157613ad0614d1d565b5b600082013567ffffffffffffffff811115613aef57613aee614d18565b5b613afb84828501613804565b91505092915050565b600060208284031215613b1a57613b19614d1d565b5b6000613b2884828501613832565b91505092915050565b600060208284031215613b4757613b46614d1d565b5b6000613b5584828501613847565b91505092915050565b600080600060408486031215613b7757613b76614d1d565b5b6000613b8586828701613832565b935050602084013567ffffffffffffffff811115613ba657613ba5614d18565b5b613bb286828701613741565b92509250509250925092565b60008060408385031215613bd557613bd4614d1d565b5b6000613be385828601613832565b9250506020613bf485828601613832565b9150509250929050565b60008060408385031215613c1557613c14614d1d565b5b6000613c2385828601613832565b9250506020613c348582860161385c565b9150509250929050565b60008060408385031215613c5557613c54614d1d565b5b6000613c638582860161385c565b9250506020613c7485828601613832565b9150509250929050565b613c8781614a11565b82525050565b613c9681614a23565b82525050565b6000613ca7826148ae565b613cb181856148c4565b9350613cc1818560208601614aaf565b613cca81614d22565b840191505092915050565b6000613ce0826148b9565b613cea81856148e0565b9350613cfa818560208601614aaf565b613d0381614d22565b840191505092915050565b6000613d19826148b9565b613d2381856148f1565b9350613d33818560208601614aaf565b80840191505092915050565b6000613d4c6032836148e0565b9150613d5782614d33565b604082019050919050565b6000613d6f601d836148e0565b9150613d7a82614d82565b602082019050919050565b6000613d92602c836148e0565b9150613d9d82614dab565b604082019050919050565b6000613db5602b836148e0565b9150613dc082614dfa565b604082019050919050565b6000613dd86032836148e0565b9150613de382614e49565b604082019050919050565b6000613dfb6026836148e0565b9150613e0682614e98565b604082019050919050565b6000613e1e6025836148e0565b9150613e2982614ee7565b604082019050919050565b6000613e41601c836148e0565b9150613e4c82614f36565b602082019050919050565b6000613e646016836148e0565b9150613e6f82614f5f565b602082019050919050565b6000613e876024836148e0565b9150613e9282614f88565b604082019050919050565b6000613eaa6019836148e0565b9150613eb582614fd7565b602082019050919050565b6000613ecd601f836148e0565b9150613ed882615000565b602082019050919050565b6000613ef0603a836148e0565b9150613efb82615029565b604082019050919050565b6000613f13601d836148e0565b9150613f1e82615078565b602082019050919050565b6000613f36601c836148e0565b9150613f41826150a1565b602082019050919050565b6000613f59602c836148e0565b9150613f64826150ca565b604082019050919050565b6000613f7c6033836148e0565b9150613f8782615119565b604082019050919050565b6000613f9f6038836148e0565b9150613faa82615168565b604082019050919050565b6000613fc2602a836148e0565b9150613fcd826151b7565b604082019050919050565b6000613fe56029836148e0565b9150613ff082615206565b604082019050919050565b60006140086019836148e0565b915061401382615255565b602082019050919050565b600061402b601f836148e0565b91506140368261527e565b602082019050919050565b600061404e6020836148e0565b9150614059826152a7565b602082019050919050565b6000614071602b836148e0565b915061407c826152d0565b604082019050919050565b60006140946020836148e0565b915061409f8261531f565b602082019050919050565b60006140b7602c836148e0565b91506140c282615348565b604082019050919050565b60006140da6020836148e0565b91506140e582615397565b602082019050919050565b60006140fd601c836148e0565b9150614108826153c0565b602082019050919050565b6000614120602f836148e0565b915061412b826153e9565b604082019050919050565b60006141436021836148e0565b915061414e82615438565b604082019050919050565b60006141666021836148e0565b915061417182615487565b604082019050919050565b60006141896000836148d5565b9150614194826154d6565b600082019050919050565b60006141ac6031836148e0565b91506141b7826154d9565b604082019050919050565b60006141cf602c836148e0565b91506141da82615528565b604082019050919050565b60006141f26022836148e0565b91506141fd82615577565b604082019050919050565b6000614215601f836148e0565b9150614220826155c6565b602082019050919050565b6000614238602c836148e0565b9150614243826155ef565b604082019050919050565b61425781614a89565b82525050565b60006142698285613d0e565b91506142758284613d0e565b91508190509392505050565b600061428c8261417c565b9150819050919050565b60006020820190506142ab6000830184613c7e565b92915050565b60006080820190506142c66000830187613c7e565b6142d36020830186613c7e565b6142e0604083018561424e565b81810360608301526142f28184613c9c565b905095945050505050565b60006040820190506143126000830185613c7e565b61431f602083018461424e565b9392505050565b600060208201905061433b6000830184613c8d565b92915050565b6000602082019050818103600083015261435b8184613cd5565b905092915050565b6000602082019050818103600083015261437c81613d3f565b9050919050565b6000602082019050818103600083015261439c81613d62565b9050919050565b600060208201905081810360008301526143bc81613d85565b9050919050565b600060208201905081810360008301526143dc81613da8565b9050919050565b600060208201905081810360008301526143fc81613dcb565b9050919050565b6000602082019050818103600083015261441c81613dee565b9050919050565b6000602082019050818103600083015261443c81613e11565b9050919050565b6000602082019050818103600083015261445c81613e34565b9050919050565b6000602082019050818103600083015261447c81613e57565b9050919050565b6000602082019050818103600083015261449c81613e7a565b9050919050565b600060208201905081810360008301526144bc81613e9d565b9050919050565b600060208201905081810360008301526144dc81613ec0565b9050919050565b600060208201905081810360008301526144fc81613ee3565b9050919050565b6000602082019050818103600083015261451c81613f06565b9050919050565b6000602082019050818103600083015261453c81613f29565b9050919050565b6000602082019050818103600083015261455c81613f4c565b9050919050565b6000602082019050818103600083015261457c81613f6f565b9050919050565b6000602082019050818103600083015261459c81613f92565b9050919050565b600060208201905081810360008301526145bc81613fb5565b9050919050565b600060208201905081810360008301526145dc81613fd8565b9050919050565b600060208201905081810360008301526145fc81613ffb565b9050919050565b6000602082019050818103600083015261461c8161401e565b9050919050565b6000602082019050818103600083015261463c81614041565b9050919050565b6000602082019050818103600083015261465c81614064565b9050919050565b6000602082019050818103600083015261467c81614087565b9050919050565b6000602082019050818103600083015261469c816140aa565b9050919050565b600060208201905081810360008301526146bc816140cd565b9050919050565b600060208201905081810360008301526146dc816140f0565b9050919050565b600060208201905081810360008301526146fc81614113565b9050919050565b6000602082019050818103600083015261471c81614136565b9050919050565b6000602082019050818103600083015261473c81614159565b9050919050565b6000602082019050818103600083015261475c8161419f565b9050919050565b6000602082019050818103600083015261477c816141c2565b9050919050565b6000602082019050818103600083015261479c816141e5565b9050919050565b600060208201905081810360008301526147bc81614208565b9050919050565b600060208201905081810360008301526147dc8161422b565b9050919050565b60006020820190506147f8600083018461424e565b92915050565b6000604082019050614813600083018561424e565b6148206020830184613c7e565b9392505050565b6000614831614842565b905061483d8282614b14565b919050565b6000604051905090565b600067ffffffffffffffff82111561486757614866614cd5565b5b61487082614d22565b9050602081019050919050565b600067ffffffffffffffff82111561489857614897614cd5565b5b6148a182614d22565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061490782614a89565b915061491283614a89565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561494757614946614bea565b5b828201905092915050565b600061495d82614a89565b915061496883614a89565b92508261497857614977614c19565b5b828204905092915050565b600061498e82614a89565b915061499983614a89565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156149d2576149d1614bea565b5b828202905092915050565b60006149e882614a89565b91506149f383614a89565b925082821015614a0657614a05614bea565b5b828203905092915050565b6000614a1c82614a69565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015614acd578082015181840152602081019050614ab2565b83811115614adc576000848401525b50505050565b60006002820490506001821680614afa57607f821691505b60208210811415614b0e57614b0d614c48565b5b50919050565b614b1d82614d22565b810181811067ffffffffffffffff82111715614b3c57614b3b614cd5565b5b80604052505050565b6000614b5082614a5b565b915061ffff821415614b6557614b64614bea565b5b600182019050919050565b6000614b7b82614a89565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614bae57614bad614bea565b5b600182019050919050565b6000614bc482614a89565b9150614bcf83614a89565b925082614bdf57614bde614c19565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4d757374206f776e206174206c65617374206f6e65206f66207468697320736560008201527f72756d207479706520746f206d75746174650000000000000000000000000000602082015250565b7f4d757374206d696e74206174206c65617374206f6e65206d7574616e74000000600082015250565b7f4d757374206f776e207468652061706520796f7527726520617474656d70746960008201527f6e6720746f206d75746174650000000000000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f496e76616c6964204d454741204d7574616e7420496400000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f45746865722076616c75652073656e74206973206e6f7420636f727265637400600082015250565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b7f536572756d204d75746174696f6e206973206e6f742061637469766500000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f576f756c642065786365656420737570706c79206f6620736572756d2d6d757460008201527f617461626c65204d454741204d5554414e545300000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f5075626c69632073616c65206973206e6f742061637469766500000000000000600082015250565b7f4d696e74696e6720776f756c6420657863656564206d617820737570706c7900600082015250565b7f526571756573746564206e756d6265722065786365656473206d6178696d756d600082015250565b7f41706520616c7265616479206d7574617465642077697468207468697320747960008201527f7065206f6620736572756d000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f517565727920666f72206e6f6e6578697374656e74206d7574616e7400000000600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f746f6b656e4964206f75747369646520636f6c6c656374696f6e20626f756e6460008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f4d656761206d7574616e742049442063616e27742062652063616c63756c617460008201527f6564000000000000000000000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f41706520616c7265616479206d7574617465642077697468204d454741204d5560008201527f544154494f4e20534552554d0000000000000000000000000000000000000000602082015250565b61564781614a11565b811461565257600080fd5b50565b61565e81614a23565b811461566957600080fd5b50565b61567581614a2f565b811461568057600080fd5b50565b61568c81614a89565b811461569757600080fd5b50565b6156a381614a93565b81146156ae57600080fd5b5056fea2646970667358221220621ba6f5cc0cb25009d6455d42b176eeb278cc2d67c788e47a9c6bda85d8f61064736f6c63430008070033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000005f1cbe84d44e292fe3eae51b87f34bbdc8f04fc8000000000000000000000000d2a97b7c23bbfa726cb95204ddddafe231a09b5900000000000000000000000000000000000000000000000000000000000000164d7574616e74204269747320596163687420436c75620000000000000000000000000000000000000000000000000000000000000000000000000000000000044d42594300000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061023b5760003560e01c8063715018a61161012e578063c15e24bc116100ab578063e6f0df8c1161006f578063e6f0df8c14610852578063e73a9a251461087d578063e985e9c5146108a6578063ee211233146108e3578063f2fde38b146109205761023b565b8063c15e24bc1461078c578063c87b56dd146107a8578063d0b77feb146107e5578063e1c3ad0c146107fc578063e43437c8146108275761023b565b8063a22cb465116100f2578063a22cb465146106a7578063b88d4fde146106d0578063bc8893b4146106f9578063bd5e5e0c14610724578063c0bb92ea146107615761023b565b8063715018a6146105e85780638da5cb5b146105ff5780638df98c851461062a57806395d89b41146106535780639c4fa6cc1461067e5761023b565b806333c41a90116101bc5780634f6ccce7116101805780634f6ccce7146104dd57806355f804b31461051a57806361169ea8146105435780636352211e1461056e57806370a08231146105ab5761023b565b806333c41a901461040c5780633aee1772146104495780633ccfd60b1461047257806342842e0e1461048957806348cd4f08146104b25761023b565b80630c894cfe116102035780630c894cfe1461033957806318160ddd1461035057806323b872dd1461037b5780632cc44080146103a45780632f745c59146103cf5761023b565b806301ffc9a71461024057806306fdde031461027d578063081812fc146102a8578063095ea7b3146102e55780630af7f2b81461030e575b600080fd5b34801561024c57600080fd5b5061026760048036038101906102629190613a61565b610949565b6040516102749190614326565b60405180910390f35b34801561028957600080fd5b506102926109c3565b60405161029f9190614341565b60405180910390f35b3480156102b457600080fd5b506102cf60048036038101906102ca9190613b04565b610a55565b6040516102dc9190614296565b60405180910390f35b3480156102f157600080fd5b5061030c60048036038101906103079190613a21565b610ada565b005b34801561031a57600080fd5b50610323610bf2565b60405161033091906147e3565b60405180910390f35b34801561034557600080fd5b5061034e610bf7565b005b34801561035c57600080fd5b50610365610c9f565b60405161037291906147e3565b60405180910390f35b34801561038757600080fd5b506103a2600480360381019061039d919061390b565b610cac565b005b3480156103b057600080fd5b506103b9610d0c565b6040516103c691906147e3565b60405180910390f35b3480156103db57600080fd5b506103f660048036038101906103f19190613a21565b610d12565b60405161040391906147e3565b60405180910390f35b34801561041857600080fd5b50610433600480360381019061042e9190613b04565b610db7565b6040516104409190614326565b60405180910390f35b34801561045557600080fd5b50610470600480360381019061046b9190613b04565b610e11565b005b34801561047e57600080fd5b50610487610e97565b005b34801561049557600080fd5b506104b060048036038101906104ab919061390b565b610f2c565b005b3480156104be57600080fd5b506104c7610f4c565b6040516104d491906147e3565b60405180910390f35b3480156104e957600080fd5b5061050460048036038101906104ff9190613b04565b610f68565b60405161051191906147e3565b60405180910390f35b34801561052657600080fd5b50610541600480360381019061053c9190613abb565b610fd9565b005b34801561054f57600080fd5b5061055861106f565b60405161056591906147e3565b60405180910390f35b34801561057a57600080fd5b5061059560048036038101906105909190613b04565b611075565b6040516105a29190614296565b60405180910390f35b3480156105b757600080fd5b506105d260048036038101906105cd9190613871565b611127565b6040516105df91906147e3565b60405180910390f35b3480156105f457600080fd5b506105fd6111df565b005b34801561060b57600080fd5b50610614611267565b6040516106219190614296565b60405180910390f35b34801561063657600080fd5b50610651600480360381019061064c9190613b04565b611291565b005b34801561065f57600080fd5b506106686113fb565b6040516106759190614341565b60405180910390f35b34801561068a57600080fd5b506106a560048036038101906106a09190613b5e565b61148d565b005b3480156106b357600080fd5b506106ce60048036038101906106c991906139e1565b61166b565b005b3480156106dc57600080fd5b506106f760048036038101906106f2919061395e565b611681565b005b34801561070557600080fd5b5061070e6116e3565b60405161071b9190614326565b60405180910390f35b34801561073057600080fd5b5061074b60048036038101906107469190613bfe565b6116f6565b60405161075891906147e3565b60405180910390f35b34801561076d57600080fd5b506107766117c5565b60405161078391906147e3565b60405180910390f35b6107a660048036038101906107a19190613b04565b6117ca565b005b3480156107b457600080fd5b506107cf60048036038101906107ca9190613b04565b6119f7565b6040516107dc9190614341565b60405180910390f35b3480156107f157600080fd5b506107fa611a9e565b005b34801561080857600080fd5b50610811611b46565b60405161081e9190614326565b60405180910390f35b34801561083357600080fd5b5061083c611b59565b60405161084991906147e3565b60405180910390f35b34801561085e57600080fd5b50610867611b5f565b60405161087491906147e3565b60405180910390f35b34801561088957600080fd5b506108a4600480360381019061089f9190613bbe565b611b65565b005b3480156108b257600080fd5b506108cd60048036038101906108c891906138cb565b611c18565b6040516108da9190614326565b60405180910390f35b3480156108ef57600080fd5b5061090a60048036038101906109059190613c3e565b611cac565b6040516109179190614326565b60405180910390f35b34801561092c57600080fd5b5061094760048036038101906109429190613871565b611cfc565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109bc57506109bb82611df4565b5b9050919050565b6060600080546109d290614ae2565b80601f01602080910402602001604051908101604052809291908181526020018280546109fe90614ae2565b8015610a4b5780601f10610a2057610100808354040283529160200191610a4b565b820191906000526020600020905b815481529060010190602001808311610a2e57829003601f168201915b5050505050905090565b6000610a6082611ed6565b610a9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9690614683565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ae582611075565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4d90614723565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b75611f42565b73ffffffffffffffffffffffffffffffffffffffff161480610ba45750610ba381610b9e611f42565b611c18565b5b610be3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bda90614583565b60405180910390fd5b610bed8383611f4a565b505050565b601481565b610bff611f42565b73ffffffffffffffffffffffffffffffffffffffff16610c1d611267565b73ffffffffffffffffffffffffffffffffffffffff1614610c73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6a906146a3565b60405180910390fd5b600e60009054906101000a900460ff1615600e60006101000a81548160ff021916908315150217905550565b6000600880549050905090565b610cbd610cb7611f42565b82612003565b610cfc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf390614743565b60405180910390fd5b610d078383836120e1565b505050565b600c5481565b6000610d1d83611127565b8210610d5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d55906143c3565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600061753761ffff168210610e01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df890614703565b60405180910390fd5b610e0a82611ed6565b9050919050565b610e19611f42565b73ffffffffffffffffffffffffffffffffffffffff16610e37611267565b73ffffffffffffffffffffffffffffffffffffffff1614610e8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e84906146a3565b60405180910390fd5b80600c8190555050565b610e9f611f42565b73ffffffffffffffffffffffffffffffffffffffff16610ebd611267565b73ffffffffffffffffffffffffffffffffffffffff1614610f13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0a906146a3565b60405180910390fd5b6000479050610f29610f23611267565b82612348565b50565b610f4783838360405180602001604052806000815250611681565b505050565b6000600d54610f59610c9f565b610f6391906149dd565b905090565b6000610f72610c9f565b8210610fb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610faa90614763565b60405180910390fd5b60088281548110610fc757610fc6614ca6565b5b90600052602060002001549050919050565b610fe1611f42565b73ffffffffffffffffffffffffffffffffffffffff16610fff611267565b73ffffffffffffffffffffffffffffffffffffffff1614611055576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104c906146a3565b60405180910390fd5b806010908051906020019061106b9291906135f0565b5050565b61271081565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561111e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611115906145c3565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611198576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118f906145a3565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6111e7611f42565b73ffffffffffffffffffffffffffffffffffffffff16611205611267565b73ffffffffffffffffffffffffffffffffffffffff161461125b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611252906146a3565b60405180910390fd5b611265600061243c565b565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611299611f42565b73ffffffffffffffffffffffffffffffffffffffff166112b7611267565b73ffffffffffffffffffffffffffffffffffffffff161461130d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611304906146a3565b60405180910390fd5b61271081600d5461131e91906148fc565b111561135f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135690614603565b60405180910390fd5b600081116113a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139990614383565b60405180910390fd5b60005b818110156113f7576000600d549050612710600d5410156113e357600d60008154809291906113d390614b70565b91905055506113e23382612502565b5b5080806113ef90614b70565b9150506113a5565b5050565b60606001805461140a90614ae2565b80601f016020809104026020016040519081016040528092919081815260200182805461143690614ae2565b80156114835780601f1061145857610100808354040283529160200191611483565b820191906000526020600020905b81548152906001019060200180831161146657829003601f168201915b5050505050905090565b6002600b5414156114d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ca906147a3565b60405180910390fd5b6002600b81905550600e60019054906101000a900460ff1661152a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152190614523565b60405180910390fd5b818190507f000000000000000000000000d2a97b7c23bbfa726cb95204ddddafe231a09b5973ffffffffffffffffffffffffffffffffffffffff1662fdd58e33866040518363ffffffff1660e01b81526004016115889291906142fd565b60206040518083038186803b1580156115a057600080fd5b505afa1580156115b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d89190613b31565b1015611619576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161090614363565b60405180910390fd5b60005b8282905081101561165d5761164a8484848481811061163e5761163d614ca6565b5b90506020020135612520565b808061165590614b70565b91505061161c565b506001600b81905550505050565b61167d611676611f42565b8383612941565b5050565b61169261168c611f42565b83612003565b6116d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c890614743565b60405180910390fd5b6116dd84848484612aae565b50505050565b600e60009054906101000a900460ff1681565b60008060458360ff16141561176357600f60008581526020019081526020016000205490506000811161175e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175590614463565b60405180910390fd5b611773565b6117708360ff1685612b0a565b90505b61177c81611ed6565b6117bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b2906146c3565b60405180910390fd5b8091505092915050565b600881565b600e60009054906101000a900460ff16611819576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611810906145e3565b60405180910390fd5b6002600b54141561185f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611856906147a3565b60405180910390fd5b6002600b8190555061271081600d5461187891906148fc565b11156118b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b090614603565b60405180910390fd5b600081116118fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118f390614383565b60405180910390fd5b6014811115611940576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193790614623565b60405180910390fd5b600081600c546119509190614983565b905034811115611995576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198c906144c3565b60405180910390fd5b60005b828110156119ea576000600d549050612710600d5410156119d657600d60008154809291906119c690614b70565b91905055506119d53382612502565b5b5080806119e290614b70565b915050611998565b50506001600b8190555050565b6060611a0282611ed6565b611a41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a38906146e3565b60405180910390fd5b6000611a4b612b80565b90506000815111611a6b5760405180602001604052806000815250611a96565b80611a7584612c12565b604051602001611a8692919061425d565b6040516020818303038152906040525b915050919050565b611aa6611f42565b73ffffffffffffffffffffffffffffffffffffffff16611ac4611267565b73ffffffffffffffffffffffffffffffffffffffff1614611b1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b11906146a3565b60405180910390fd5b600e60019054906101000a900460ff1615600e60016101000a81548160ff021916908315150217905550565b600e60019054906101000a900460ff1681565b600d5481565b61271081565b6002600b541415611bab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba2906147a3565b60405180910390fd5b6002600b81905550600e60019054906101000a900460ff16611c02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf990614523565b60405180910390fd5b611c0c8282612520565b6001600b819055505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600060458360ff161415611cd8576000600f600084815260200190815260200160002054119050611cf6565b6000611ce78460ff1684612b0a565b9050611cf281611ed6565b9150505b92915050565b611d04611f42565b73ffffffffffffffffffffffffffffffffffffffff16611d22611267565b73ffffffffffffffffffffffffffffffffffffffff1614611d78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d6f906146a3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611de8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ddf90614403565b60405180910390fd5b611df18161243c565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611ebf57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611ecf5750611ece82612d73565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611fbd83611075565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061200e82611ed6565b61204d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204490614543565b60405180910390fd5b600061205883611075565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061209a57506120998185611c18565b5b806120d857508373ffffffffffffffffffffffffffffffffffffffff166120c084610a55565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661210182611075565b73ffffffffffffffffffffffffffffffffffffffff1614612157576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161214e90614423565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156121c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121be90614483565b60405180910390fd5b6121d2838383612ddd565b6121dd600082611f4a565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461222d91906149dd565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461228491906148fc565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612343838383612ef1565b505050565b8047101561238b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238290614503565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516123b190614281565b60006040518083038185875af1925050503d80600081146123ee576040519150601f19603f3d011682016040523d82523d6000602084013e6123f3565b606091505b5050905080612437576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242e906144e3565b60405180910390fd5b505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61251c828260405180602001604052806000815250612ef6565b5050565b60007f000000000000000000000000d2a97b7c23bbfa726cb95204ddddafe231a09b5973ffffffffffffffffffffffffffffffffffffffff1662fdd58e33856040518363ffffffff1660e01b815260040161257c9291906142fd565b60206040518083038186803b15801561259457600080fd5b505afa1580156125a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125cc9190613b31565b1161260c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260390614363565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167f0000000000000000000000005f1cbe84d44e292fe3eae51b87f34bbdc8f04fc873ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b815260040161267c91906147e3565b60206040518083038186803b15801561269457600080fd5b505afa1580156126a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126cc919061389e565b73ffffffffffffffffffffffffffffffffffffffff1614612722576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612719906143a3565b60405180910390fd5b6000604583141561284f5761753761ffff16600e60029054906101000a900461ffff1661ffff16111561278a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278190614563565b60405180910390fd5b6000600f600084815260200190815260200160002054146127e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127d7906147c3565b60405180910390fd5b600e60029054906101000a900461ffff1661ffff16905080600f600084815260200190815260200160002081905550600e600281819054906101000a900461ffff168092919061282f90614b45565b91906101000a81548161ffff021916908361ffff160217905550506128a5565b6128598383612b0a565b905061286481611ed6565b156128a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289b90614643565b60405180910390fd5b5b7f000000000000000000000000d2a97b7c23bbfa726cb95204ddddafe231a09b5973ffffffffffffffffffffffffffffffffffffffff166370ff9ea384336040518363ffffffff1660e01b81526004016129009291906147fe565b600060405180830381600087803b15801561291a57600080fd5b505af115801561292e573d6000803e3d6000fd5b5050505061293c3382612502565b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156129b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129a7906144a3565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612aa19190614326565b60405180910390a3505050565b612ab98484846120e1565b612ac584848484612f51565b612b04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612afb906143e3565b60405180910390fd5b50505050565b60006045831415612b50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b4790614783565b60405180910390fd5b61271083600260ff1684612b649190614983565b612b6e91906148fc565b612b7891906148fc565b905092915050565b606060108054612b8f90614ae2565b80601f0160208091040260200160405190810160405280929190818152602001828054612bbb90614ae2565b8015612c085780601f10612bdd57610100808354040283529160200191612c08565b820191906000526020600020905b815481529060010190602001808311612beb57829003601f168201915b5050505050905090565b60606000821415612c5a576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612d6e565b600082905060005b60008214612c8c578080612c7590614b70565b915050600a82612c859190614952565b9150612c62565b60008167ffffffffffffffff811115612ca857612ca7614cd5565b5b6040519080825280601f01601f191660200182016040528015612cda5781602001600182028036833780820191505090505b5090505b60008514612d6757600182612cf391906149dd565b9150600a85612d029190614bb9565b6030612d0e91906148fc565b60f81b818381518110612d2457612d23614ca6565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612d609190614952565b9450612cde565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612de88383836130e8565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612e2b57612e26816130ed565b612e6a565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612e6957612e688382613136565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612ead57612ea8816132a3565b612eec565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612eeb57612eea8282613374565b5b5b505050565b505050565b612f0083836133f3565b612f0d6000848484612f51565b612f4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f43906143e3565b60405180910390fd5b505050565b6000612f728473ffffffffffffffffffffffffffffffffffffffff166135cd565b156130db578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612f9b611f42565b8786866040518563ffffffff1660e01b8152600401612fbd94939291906142b1565b602060405180830381600087803b158015612fd757600080fd5b505af192505050801561300857506040513d601f19601f820116820180604052508101906130059190613a8e565b60015b61308b573d8060008114613038576040519150601f19603f3d011682016040523d82523d6000602084013e61303d565b606091505b50600081511415613083576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161307a906143e3565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506130e0565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161314384611127565b61314d91906149dd565b9050600060076000848152602001908152602001600020549050818114613232576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506132b791906149dd565b90506000600960008481526020019081526020016000205490506000600883815481106132e7576132e6614ca6565b5b90600052602060002001549050806008838154811061330957613308614ca6565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061335857613357614c77565b5b6001900381819060005260206000200160009055905550505050565b600061337f83611127565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613463576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161345a90614663565b60405180910390fd5b61346c81611ed6565b156134ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134a390614443565b60405180910390fd5b6134b860008383612ddd565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461350891906148fc565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46135c960008383612ef1565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b8280546135fc90614ae2565b90600052602060002090601f01602090048101928261361e5760008555613665565b82601f1061363757805160ff1916838001178555613665565b82800160010185558215613665579182015b82811115613664578251825591602001919060010190613649565b5b5090506136729190613676565b5090565b5b8082111561368f576000816000905550600101613677565b5090565b60006136a66136a18461484c565b614827565b9050828152602081018484840111156136c2576136c1614d13565b5b6136cd848285614aa0565b509392505050565b60006136e86136e38461487d565b614827565b90508281526020810184848401111561370457613703614d13565b5b61370f848285614aa0565b509392505050565b6000813590506137268161563e565b92915050565b60008151905061373b8161563e565b92915050565b60008083601f84011261375757613756614d09565b5b8235905067ffffffffffffffff81111561377457613773614d04565b5b6020830191508360208202830111156137905761378f614d0e565b5b9250929050565b6000813590506137a681615655565b92915050565b6000813590506137bb8161566c565b92915050565b6000815190506137d08161566c565b92915050565b600082601f8301126137eb576137ea614d09565b5b81356137fb848260208601613693565b91505092915050565b600082601f83011261381957613818614d09565b5b81356138298482602086016136d5565b91505092915050565b60008135905061384181615683565b92915050565b60008151905061385681615683565b92915050565b60008135905061386b8161569a565b92915050565b60006020828403121561388757613886614d1d565b5b600061389584828501613717565b91505092915050565b6000602082840312156138b4576138b3614d1d565b5b60006138c28482850161372c565b91505092915050565b600080604083850312156138e2576138e1614d1d565b5b60006138f085828601613717565b925050602061390185828601613717565b9150509250929050565b60008060006060848603121561392457613923614d1d565b5b600061393286828701613717565b935050602061394386828701613717565b925050604061395486828701613832565b9150509250925092565b6000806000806080858703121561397857613977614d1d565b5b600061398687828801613717565b945050602061399787828801613717565b93505060406139a887828801613832565b925050606085013567ffffffffffffffff8111156139c9576139c8614d18565b5b6139d5878288016137d6565b91505092959194509250565b600080604083850312156139f8576139f7614d1d565b5b6000613a0685828601613717565b9250506020613a1785828601613797565b9150509250929050565b60008060408385031215613a3857613a37614d1d565b5b6000613a4685828601613717565b9250506020613a5785828601613832565b9150509250929050565b600060208284031215613a7757613a76614d1d565b5b6000613a85848285016137ac565b91505092915050565b600060208284031215613aa457613aa3614d1d565b5b6000613ab2848285016137c1565b91505092915050565b600060208284031215613ad157613ad0614d1d565b5b600082013567ffffffffffffffff811115613aef57613aee614d18565b5b613afb84828501613804565b91505092915050565b600060208284031215613b1a57613b19614d1d565b5b6000613b2884828501613832565b91505092915050565b600060208284031215613b4757613b46614d1d565b5b6000613b5584828501613847565b91505092915050565b600080600060408486031215613b7757613b76614d1d565b5b6000613b8586828701613832565b935050602084013567ffffffffffffffff811115613ba657613ba5614d18565b5b613bb286828701613741565b92509250509250925092565b60008060408385031215613bd557613bd4614d1d565b5b6000613be385828601613832565b9250506020613bf485828601613832565b9150509250929050565b60008060408385031215613c1557613c14614d1d565b5b6000613c2385828601613832565b9250506020613c348582860161385c565b9150509250929050565b60008060408385031215613c5557613c54614d1d565b5b6000613c638582860161385c565b9250506020613c7485828601613832565b9150509250929050565b613c8781614a11565b82525050565b613c9681614a23565b82525050565b6000613ca7826148ae565b613cb181856148c4565b9350613cc1818560208601614aaf565b613cca81614d22565b840191505092915050565b6000613ce0826148b9565b613cea81856148e0565b9350613cfa818560208601614aaf565b613d0381614d22565b840191505092915050565b6000613d19826148b9565b613d2381856148f1565b9350613d33818560208601614aaf565b80840191505092915050565b6000613d4c6032836148e0565b9150613d5782614d33565b604082019050919050565b6000613d6f601d836148e0565b9150613d7a82614d82565b602082019050919050565b6000613d92602c836148e0565b9150613d9d82614dab565b604082019050919050565b6000613db5602b836148e0565b9150613dc082614dfa565b604082019050919050565b6000613dd86032836148e0565b9150613de382614e49565b604082019050919050565b6000613dfb6026836148e0565b9150613e0682614e98565b604082019050919050565b6000613e1e6025836148e0565b9150613e2982614ee7565b604082019050919050565b6000613e41601c836148e0565b9150613e4c82614f36565b602082019050919050565b6000613e646016836148e0565b9150613e6f82614f5f565b602082019050919050565b6000613e876024836148e0565b9150613e9282614f88565b604082019050919050565b6000613eaa6019836148e0565b9150613eb582614fd7565b602082019050919050565b6000613ecd601f836148e0565b9150613ed882615000565b602082019050919050565b6000613ef0603a836148e0565b9150613efb82615029565b604082019050919050565b6000613f13601d836148e0565b9150613f1e82615078565b602082019050919050565b6000613f36601c836148e0565b9150613f41826150a1565b602082019050919050565b6000613f59602c836148e0565b9150613f64826150ca565b604082019050919050565b6000613f7c6033836148e0565b9150613f8782615119565b604082019050919050565b6000613f9f6038836148e0565b9150613faa82615168565b604082019050919050565b6000613fc2602a836148e0565b9150613fcd826151b7565b604082019050919050565b6000613fe56029836148e0565b9150613ff082615206565b604082019050919050565b60006140086019836148e0565b915061401382615255565b602082019050919050565b600061402b601f836148e0565b91506140368261527e565b602082019050919050565b600061404e6020836148e0565b9150614059826152a7565b602082019050919050565b6000614071602b836148e0565b915061407c826152d0565b604082019050919050565b60006140946020836148e0565b915061409f8261531f565b602082019050919050565b60006140b7602c836148e0565b91506140c282615348565b604082019050919050565b60006140da6020836148e0565b91506140e582615397565b602082019050919050565b60006140fd601c836148e0565b9150614108826153c0565b602082019050919050565b6000614120602f836148e0565b915061412b826153e9565b604082019050919050565b60006141436021836148e0565b915061414e82615438565b604082019050919050565b60006141666021836148e0565b915061417182615487565b604082019050919050565b60006141896000836148d5565b9150614194826154d6565b600082019050919050565b60006141ac6031836148e0565b91506141b7826154d9565b604082019050919050565b60006141cf602c836148e0565b91506141da82615528565b604082019050919050565b60006141f26022836148e0565b91506141fd82615577565b604082019050919050565b6000614215601f836148e0565b9150614220826155c6565b602082019050919050565b6000614238602c836148e0565b9150614243826155ef565b604082019050919050565b61425781614a89565b82525050565b60006142698285613d0e565b91506142758284613d0e565b91508190509392505050565b600061428c8261417c565b9150819050919050565b60006020820190506142ab6000830184613c7e565b92915050565b60006080820190506142c66000830187613c7e565b6142d36020830186613c7e565b6142e0604083018561424e565b81810360608301526142f28184613c9c565b905095945050505050565b60006040820190506143126000830185613c7e565b61431f602083018461424e565b9392505050565b600060208201905061433b6000830184613c8d565b92915050565b6000602082019050818103600083015261435b8184613cd5565b905092915050565b6000602082019050818103600083015261437c81613d3f565b9050919050565b6000602082019050818103600083015261439c81613d62565b9050919050565b600060208201905081810360008301526143bc81613d85565b9050919050565b600060208201905081810360008301526143dc81613da8565b9050919050565b600060208201905081810360008301526143fc81613dcb565b9050919050565b6000602082019050818103600083015261441c81613dee565b9050919050565b6000602082019050818103600083015261443c81613e11565b9050919050565b6000602082019050818103600083015261445c81613e34565b9050919050565b6000602082019050818103600083015261447c81613e57565b9050919050565b6000602082019050818103600083015261449c81613e7a565b9050919050565b600060208201905081810360008301526144bc81613e9d565b9050919050565b600060208201905081810360008301526144dc81613ec0565b9050919050565b600060208201905081810360008301526144fc81613ee3565b9050919050565b6000602082019050818103600083015261451c81613f06565b9050919050565b6000602082019050818103600083015261453c81613f29565b9050919050565b6000602082019050818103600083015261455c81613f4c565b9050919050565b6000602082019050818103600083015261457c81613f6f565b9050919050565b6000602082019050818103600083015261459c81613f92565b9050919050565b600060208201905081810360008301526145bc81613fb5565b9050919050565b600060208201905081810360008301526145dc81613fd8565b9050919050565b600060208201905081810360008301526145fc81613ffb565b9050919050565b6000602082019050818103600083015261461c8161401e565b9050919050565b6000602082019050818103600083015261463c81614041565b9050919050565b6000602082019050818103600083015261465c81614064565b9050919050565b6000602082019050818103600083015261467c81614087565b9050919050565b6000602082019050818103600083015261469c816140aa565b9050919050565b600060208201905081810360008301526146bc816140cd565b9050919050565b600060208201905081810360008301526146dc816140f0565b9050919050565b600060208201905081810360008301526146fc81614113565b9050919050565b6000602082019050818103600083015261471c81614136565b9050919050565b6000602082019050818103600083015261473c81614159565b9050919050565b6000602082019050818103600083015261475c8161419f565b9050919050565b6000602082019050818103600083015261477c816141c2565b9050919050565b6000602082019050818103600083015261479c816141e5565b9050919050565b600060208201905081810360008301526147bc81614208565b9050919050565b600060208201905081810360008301526147dc8161422b565b9050919050565b60006020820190506147f8600083018461424e565b92915050565b6000604082019050614813600083018561424e565b6148206020830184613c7e565b9392505050565b6000614831614842565b905061483d8282614b14565b919050565b6000604051905090565b600067ffffffffffffffff82111561486757614866614cd5565b5b61487082614d22565b9050602081019050919050565b600067ffffffffffffffff82111561489857614897614cd5565b5b6148a182614d22565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061490782614a89565b915061491283614a89565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561494757614946614bea565b5b828201905092915050565b600061495d82614a89565b915061496883614a89565b92508261497857614977614c19565b5b828204905092915050565b600061498e82614a89565b915061499983614a89565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156149d2576149d1614bea565b5b828202905092915050565b60006149e882614a89565b91506149f383614a89565b925082821015614a0657614a05614bea565b5b828203905092915050565b6000614a1c82614a69565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015614acd578082015181840152602081019050614ab2565b83811115614adc576000848401525b50505050565b60006002820490506001821680614afa57607f821691505b60208210811415614b0e57614b0d614c48565b5b50919050565b614b1d82614d22565b810181811067ffffffffffffffff82111715614b3c57614b3b614cd5565b5b80604052505050565b6000614b5082614a5b565b915061ffff821415614b6557614b64614bea565b5b600182019050919050565b6000614b7b82614a89565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614bae57614bad614bea565b5b600182019050919050565b6000614bc482614a89565b9150614bcf83614a89565b925082614bdf57614bde614c19565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4d757374206f776e206174206c65617374206f6e65206f66207468697320736560008201527f72756d207479706520746f206d75746174650000000000000000000000000000602082015250565b7f4d757374206d696e74206174206c65617374206f6e65206d7574616e74000000600082015250565b7f4d757374206f776e207468652061706520796f7527726520617474656d70746960008201527f6e6720746f206d75746174650000000000000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f496e76616c6964204d454741204d7574616e7420496400000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f45746865722076616c75652073656e74206973206e6f7420636f727265637400600082015250565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b7f536572756d204d75746174696f6e206973206e6f742061637469766500000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f576f756c642065786365656420737570706c79206f6620736572756d2d6d757460008201527f617461626c65204d454741204d5554414e545300000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f5075626c69632073616c65206973206e6f742061637469766500000000000000600082015250565b7f4d696e74696e6720776f756c6420657863656564206d617820737570706c7900600082015250565b7f526571756573746564206e756d6265722065786365656473206d6178696d756d600082015250565b7f41706520616c7265616479206d7574617465642077697468207468697320747960008201527f7065206f6620736572756d000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f517565727920666f72206e6f6e6578697374656e74206d7574616e7400000000600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f746f6b656e4964206f75747369646520636f6c6c656374696f6e20626f756e6460008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f4d656761206d7574616e742049442063616e27742062652063616c63756c617460008201527f6564000000000000000000000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f41706520616c7265616479206d7574617465642077697468204d454741204d5560008201527f544154494f4e20534552554d0000000000000000000000000000000000000000602082015250565b61564781614a11565b811461565257600080fd5b50565b61565e81614a23565b811461566957600080fd5b50565b61567581614a2f565b811461568057600080fd5b50565b61568c81614a89565b811461569757600080fd5b50565b6156a381614a93565b81146156ae57600080fd5b5056fea2646970667358221220621ba6f5cc0cb25009d6455d42b176eeb278cc2d67c788e47a9c6bda85d8f61064736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000005f1cbe84d44e292fe3eae51b87f34bbdc8f04fc8000000000000000000000000d2a97b7c23bbfa726cb95204ddddafe231a09b5900000000000000000000000000000000000000000000000000000000000000164d7574616e74204269747320596163687420436c75620000000000000000000000000000000000000000000000000000000000000000000000000000000000044d42594300000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): Mutant Bits Yacht Club
Arg [1] : symbol (string): MBYC
Arg [2] : bbycAddress (address): 0x5F1cbe84D44E292fE3EaE51b87F34bbdc8f04fc8
Arg [3] : bbccAddress (address): 0xD2A97B7c23BbFA726cB95204DDddafe231A09B59
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000005f1cbe84d44e292fe3eae51b87f34bbdc8f04fc8
Arg [3] : 000000000000000000000000d2a97b7c23bbfa726cb95204ddddafe231a09b59
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000016
Arg [5] : 4d7574616e74204269747320596163687420436c756200000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [7] : 4d42594300000000000000000000000000000000000000000000000000000000
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.