ERC-721
Overview
Max Total Supply
3,501 ZPET
Holders
839
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 ZPETLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ZPets
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 500 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableMap.sol"; import "hardhat/console.sol"; abstract contract Zunks { function ownerOf(uint256 tokenId) public view virtual returns (address); } contract ZPets is Ownable, ERC721Enumerable, ERC721Burnable, ReentrancyGuard { using Strings for uint256; Zunks private zunks; enum Slot { eyes, hat, leftEar, neck, rightEar, smoke } mapping(uint256 => string) public serialIdToPet; mapping(string => bool) public existingPets; mapping(uint256 => uint256) public serialIdToTimeRedeemed; mapping(uint256 => uint256[]) public probabilities; string NO_OPTIONS = "no options"; uint256 NO_REROLL_OPTIONS = 99999; string UNICORN = "0206999999999999"; string ALIEN_ROCK = "0005999999999999"; string NORMAL_ROCK = "0205999999999999"; string ZOMBIE_ROCK = "0605999999999999"; uint256 ONE_DAY = 86400; // placeholder values uint256[6] petSlotProbabilities = [8000, 6000, 5000, 5000, 5000, 5000]; // cat, cow, dog, giraffe, pig, rock, unicorn uint256[] typeProbabilities = [3006, 1564, 3006, 800, 1564, 50, 10]; uint256[][] skinProbabilities = [ [16, 54, 2445, 2445, 2445, 2445, 150], [16, 0, 9834, 0, 0, 0, 150], [16, 54, 2445, 2445, 2445, 2445, 150], [37, 0, 9526, 0, 0, 0, 437], [16, 0, 9834, 0, 0, 0, 150], [600, 0, 7400, 0, 0, 0, 2000] ]; struct Attributes { uint256 eyes; uint256 hat; uint256 leftEar; uint256 neck; uint256 rightEar; uint256 smoke; } struct AttributesAsString { string eyes; string hat; string leftEar; string neck; string rightEar; string smoke; } struct SerialIdAndTokenRepresentation { uint256 serialId; string tokenRepresentation; } struct ZPetExists { uint256 serialId; bool exists; } struct ZPetData { uint256 serialId; bool canReroll; } constructor(address zunksAddress) ERC721("ZPets", "ZPET") { zunks = Zunks(zunksAddress); probabilities[uint256(Slot.eyes)] = [ 455, 853, 842, 610, 612, 608, 467, 734, 605, 853, 695, 605, 840, 518, 432, 272 ]; probabilities[uint256(Slot.hat)] = [ 400, 59, 299, 263, 275, 343, 116, 190, 324, 320, 405, 251, 345, 299, 548, 448, 382, 467, 457, 183, 139, 409, 192, 110, 193, 274, 222, 348, 405, 385, 190, 112, 155, 199, 293 ]; probabilities[uint256(Slot.leftEar)] = [2500, 2500, 2500, 2500]; probabilities[uint256(Slot.neck)] = [2600, 2600, 4800]; probabilities[uint256(Slot.rightEar)] = [2500, 2500, 2500, 2500]; probabilities[uint256(Slot.smoke)] = [1191, 4908, 893, 1619, 1389]; } bool public hasDevSingleMinted = false; bool public isMintEnabled = false; bool public isRerollEnabled = false; bool public isRerollAllEnabled = false; uint256 private MAX_SUPPLY = 10000; event ZPet( address indexed user, uint256 serialId, string tokenRepresentation, bool isReroll ); function mint(uint256[] calldata _serialIds) external payable nonReentrant { require(isMintEnabled, "Minting is not enabled."); uint256 _numMinted = totalSupply(); require( _numMinted + _serialIds.length <= MAX_SUPPLY, "There aren't this many pets left." ); _mint(_serialIds); } function _mint(uint256[] memory _serialIds) internal { for (uint256 i = 0; i < _serialIds.length; i++) { uint256 serialId = _serialIds[i]; require( zunks.ownerOf(serialId) == msg.sender, "User does not own the corresponding zunk" ); _safeMint(msg.sender, serialId); string memory generatedPet = generatePet(serialId); // we need to guarantee unique if not unicorn or rock if (!isNonUniquePet(generatedPet)) { if (existingPets[generatedPet] || unableToRerollPet(generatedPet)) { generatedPet = generatePet(serialId); } require( !(existingPets[generatedPet] || unableToRerollPet(generatedPet)) || isNonUniquePet(generatedPet), "Unable to mint, please try again." ); } serialIdToPet[serialId] = generatedPet; existingPets[generatedPet] = true; serialIdToTimeRedeemed[serialId] = block.timestamp; emit ZPet(msg.sender, serialId, generatedPet, false); } } function validateSlotToRerollValid( uint256 slotToReroll, Attributes memory attributes ) internal pure { uint256[] memory validSlots = getValidSlotsForReroll(attributes); bool slotToRerollValid = false; for (uint256 i = 0; i < validSlots.length; i++) { if (slotToReroll == validSlots[i]) { slotToRerollValid = true; break; } } require(slotToRerollValid, "slotToReroll is not valid for pet"); } function canRerollPet(uint256[] memory serialIds) public view returns (ZPetData[] memory) { ZPetData[] memory data = new ZPetData[](serialIds.length); uint256 curr = block.timestamp; for (uint256 i = 0; i < serialIds.length; i++) { uint256 serialId = serialIds[i]; if (serialIdToTimeRedeemed[serialId] - curr <= ONE_DAY) { data[i] = ZPetData(serialId, true); } else { data[i] = ZPetData(serialId, false); } } return data; } // this rerolls all the slots of a pet besides skin/type function rerollPet(uint256 serialId) public { require(isRerollAllEnabled, "Reroll is not enabled"); require(msg.sender == ownerOf(serialId), "Only owner can reroll."); require( block.timestamp - serialIdToTimeRedeemed[serialId] <= ONE_DAY, "Can not reroll after one day" ); string memory pet = serialIdToPet[serialId]; string memory petSkinAsString = substring(pet, 0, 2); string memory petTypeAsString = substring(pet, 2, 4); uint256 petSkin = convertToUint(petSkinAsString); uint256 petType = convertToUint(petTypeAsString); Attributes memory attributes = generateAttributes(serialId); string memory rerolledPet = createPetStringRepresentation( petSkin, petType, attributes ); if (existingPets[rerolledPet]) { uint256[] memory validSlots = getValidSlotsForReroll(attributes); uint256 randomSlotIndex = getRandomNumber(petType, petSkin, serialId) % validSlots.length; rerolledPet = _rerollPet( serialId, petSkin, petType, attributes, validSlots[randomSlotIndex], rerolledPet, false ); } require( !existingPets[rerolledPet], "Could not reroll into a valid pet, please try again." ); serialIdToPet[serialId] = rerolledPet; existingPets[rerolledPet] = true; existingPets[pet] = false; emit ZPet(msg.sender, serialId, rerolledPet, true); } function rerollPetSlot(uint256 serialId, uint256 slotToReroll) public payable { require(isRerollEnabled, "Reroll is not enabled"); require(msg.sender == ownerOf(serialId), "Only owner can reroll."); uint256 costForReroll = getCostForRerollAttribute(); require(msg.value >= costForReroll, "Need to send more ETH for reroll."); if (msg.value > costForReroll) { payable(msg.sender).transfer(msg.value - costForReroll); } string memory pet = serialIdToPet[serialId]; string memory petSkinAsString = substring(pet, 0, 2); string memory petTypeAsString = substring(pet, 2, 4); Attributes memory attributes = createAttributesFromPet(pet); validateSlotToRerollValid(slotToReroll, attributes); uint256 petSkin = convertToUint(petSkinAsString); uint256 petType = convertToUint(petTypeAsString); string memory rerolledPet = _rerollPet( serialId, petSkin, petType, attributes, slotToReroll, pet ); require( !existingPets[rerolledPet], "Could not reroll into a valid pet, please try again." ); serialIdToPet[serialId] = rerolledPet; existingPets[rerolledPet] = true; existingPets[pet] = false; emit ZPet(msg.sender, serialId, rerolledPet, true); } function createAttributesFromPet(string memory pet) internal pure returns (Attributes memory) { string memory attributes1 = substring(pet, 4, 6); string memory attributes2 = substring(pet, 6, 8); string memory attributes3 = substring(pet, 8, 10); string memory attributes4 = substring(pet, 10, 12); string memory attributes5 = substring(pet, 12, 14); string memory attributes6 = substring(pet, 14, 16); return Attributes( convertToUint(attributes1), convertToUint(attributes2), convertToUint(attributes3), convertToUint(attributes4), convertToUint(attributes5), convertToUint(attributes6) ); } function _rerollPet( uint256 serialId, uint256 petSkin, uint256 petType, Attributes memory attributes, uint256 slotToReroll, string memory pet ) internal view returns (string memory) { return _rerollPet( serialId, petSkin, petType, attributes, slotToReroll, pet, true ); } function _rerollPet( uint256 serialId, uint256 petSkin, uint256 petType, Attributes memory attributes, uint256 slotToReroll, string memory pet, bool throwIfUnableToReroll ) internal view returns (string memory) { uint256 rerolledAttribute; Attributes memory rerolledAttributes = Attributes( attributes.eyes, attributes.hat, attributes.leftEar, attributes.neck, attributes.rightEar, attributes.smoke ); if (slotToReroll == uint256(Slot.eyes)) { rerolledAttribute = rerollPetSlot( serialId, Slot.eyes, attributes.eyes, pet, throwIfUnableToReroll ); if (rerolledAttribute == NO_REROLL_OPTIONS) { return NO_OPTIONS; } rerolledAttributes.eyes = rerolledAttribute; } else if (slotToReroll == uint256(Slot.hat)) { rerolledAttribute = rerollPetSlot( serialId, Slot.hat, attributes.hat, pet, throwIfUnableToReroll ); if (rerolledAttribute == NO_REROLL_OPTIONS) { return NO_OPTIONS; } rerolledAttributes.hat = rerolledAttribute; } else if (slotToReroll == uint256(Slot.leftEar)) { rerolledAttribute = rerollPetSlot( serialId, Slot.leftEar, attributes.leftEar, pet, throwIfUnableToReroll ); if (rerolledAttribute == NO_REROLL_OPTIONS) { return NO_OPTIONS; } rerolledAttributes.leftEar = rerolledAttribute; } else if (slotToReroll == uint256(Slot.neck)) { rerolledAttribute = rerollPetSlot( serialId, Slot.neck, attributes.neck, pet, throwIfUnableToReroll ); if (rerolledAttribute == NO_REROLL_OPTIONS) { return NO_OPTIONS; } rerolledAttributes.neck = rerolledAttribute; } else if (slotToReroll == uint256(Slot.rightEar)) { rerolledAttribute = rerollPetSlot( serialId, Slot.rightEar, attributes.rightEar, pet, throwIfUnableToReroll ); if (rerolledAttribute == NO_REROLL_OPTIONS) { return NO_OPTIONS; } rerolledAttributes.rightEar = rerolledAttribute; } else { rerolledAttribute = rerollPetSlot( serialId, Slot.smoke, attributes.smoke, pet, throwIfUnableToReroll ); if (rerolledAttribute == NO_REROLL_OPTIONS) { return NO_OPTIONS; } rerolledAttributes.smoke = rerolledAttribute; } return createPetStringRepresentation(petSkin, petType, rerolledAttributes); } function rerollPetSlot( uint256 serialId, Slot slot, uint256 attribute, string memory pet, bool throwIfUnableToReroll ) internal view returns (uint256) { uint256 slotAsUint = uint256(slot); uint256[] storage attributeProbabilities = probabilities[slotAsUint]; uint256 probabilitiesLength = attributeProbabilities.length; string[] memory rerollCandidates = getRerollCandidates( slot, pet, probabilitiesLength ); uint256[] memory adjustedProbabilities = getAdjustedProbabilities( slot, attribute, probabilitiesLength, rerollCandidates ); bool atLeastOneValidAttribute = false; for (uint256 i = 0; i < probabilitiesLength; i++) { if (adjustedProbabilities[i] > 0) { atLeastOneValidAttribute = true; break; } } if (!atLeastOneValidAttribute) { if (throwIfUnableToReroll) { require(atLeastOneValidAttribute, "Unable to mint. Please try again."); } else { return NO_REROLL_OPTIONS; } } return pickRandomFromMemory( adjustedProbabilities, serialId, uint256(slot), attribute ); } function getAdjustedProbabilities( Slot slot, uint256 attribute, uint256 probabilitiesLength, string[] memory rerollCandidates ) internal view returns (uint256[] memory) { bool[] memory validAttribute = new bool[](probabilitiesLength); uint256 slotAsUint = uint256(slot); uint256[] storage attributeProbabilities = probabilities[slotAsUint]; uint256[] memory adjustedProbabilities = new uint256[](probabilitiesLength); uint256 invalidProbabilitiesToDistribute = 0; for (uint256 i = 0; i < probabilitiesLength; i++) { string memory rerollCandidate = rerollCandidates[i]; // can't give any attribute already off limits, if it makes a pet, or their current attribute if ( attributeProbabilities[i] == 0 || existingPets[rerollCandidate] || i == attribute ) { invalidProbabilitiesToDistribute += attributeProbabilities[i]; } else { validAttribute[i] = true; } } for (uint256 i = 0; i < probabilitiesLength; i++) { if (validAttribute[i]) { // the math here is to calculate how much of the invalidProbabilitiesToDistribute to // give to each validProbability. If we are removing 2000 from the pool and giving // 1000 its share, the additional probability for 1000 is 1000/8000 * 2000 adjustedProbabilities[i] = ((attributeProbabilities[i] * invalidProbabilitiesToDistribute) / (10000 - invalidProbabilitiesToDistribute)) + attributeProbabilities[i]; } else { adjustedProbabilities[i] = 0; } } return adjustedProbabilities; } function getRerollCandidates( Slot slot, string memory pet, uint256 probabilitiesLength ) internal pure returns (string[] memory) { string memory firstHalf = substring(pet, 0, 4 + uint256(slot) * 2); string memory secondHalf = substring(pet, 6 + uint256(slot) * 2, 16); string[] memory candidates = new string[](probabilitiesLength); for (uint256 i = 0; i < probabilitiesLength; i++) { candidates[i] = string( abi.encodePacked(firstHalf, convertToString(i), secondHalf) ); } return candidates; } function getValidSlotsForReroll(Attributes memory attributes) internal pure returns (uint256[] memory) { bool[] memory validSlots = new bool[](6); uint256 numValidSlots = 0; if (attributes.eyes != 99) { validSlots[uint256(Slot.eyes)] = true; numValidSlots++; } if (attributes.hat != 99) { validSlots[uint256(Slot.hat)] = true; numValidSlots++; } if (attributes.leftEar != 99) { validSlots[uint256(Slot.leftEar)] = true; numValidSlots++; } if (attributes.neck != 99) { validSlots[uint256(Slot.neck)] = true; numValidSlots++; } if (attributes.rightEar != 99) { validSlots[uint256(Slot.rightEar)] = true; numValidSlots++; } if (attributes.smoke != 99) { validSlots[uint256(Slot.smoke)] = true; numValidSlots++; } uint256[] memory valid = new uint256[](numValidSlots); uint256 counter = 0; for (uint256 i = 0; i < validSlots.length; i++) { if (validSlots[i]) { valid[counter] = i; counter++; } } return valid; } function generatePet(uint256 serialId) internal view returns (string memory) { // these seed numbers are arbitrary, matches prospectiveSlot and mappingLength used elsewhere uint256 petType = pickRandomFromStorage(typeProbabilities, serialId, 1, 5); if (petType == 6) { return UNICORN; } uint256 petSkin = pickRandomFromStorage( skinProbabilities[petType], serialId, 0, 7 ); if (petType == 5) { if (petSkin == 0) { return ALIEN_ROCK; } else if (petSkin == 2) { return NORMAL_ROCK; } else if (petSkin == 6) { return ZOMBIE_ROCK; } else { require( petSkin == 0 || petSkin == 2 || petSkin == 6, "Invalid pet skin for rock" ); } } Attributes memory attributes = generateAttributes(serialId); string memory generatedPet = createPetStringRepresentation( petSkin, petType, attributes ); if (existingPets[generatedPet]) { uint256[] memory validSlots = getValidSlotsForReroll(attributes); uint256 randomSlotIndex = getRandomNumber(petType, petSkin, serialId) % validSlots.length; generatedPet = _rerollPet( serialId, petSkin, petType, attributes, validSlots[randomSlotIndex], generatedPet, false ); } return generatedPet; } function convertSlotsToString(Attributes memory attributes) internal pure returns (AttributesAsString memory) { return AttributesAsString( convertToString(attributes.eyes), convertToString(attributes.hat), convertToString(attributes.leftEar), convertToString(attributes.neck), convertToString(attributes.rightEar), convertToString(attributes.smoke) ); } function generateAttributes(uint256 serialId) internal view returns (Attributes memory) { return Attributes( maybeGetAttribute(Slot.eyes, serialId), maybeGetAttribute(Slot.hat, serialId), maybeGetAttribute(Slot.leftEar, serialId), maybeGetAttribute(Slot.neck, serialId), maybeGetAttribute(Slot.rightEar, serialId), maybeGetAttribute(Slot.smoke, serialId) ); } function maybeGetAttribute(Slot slot, uint256 serialId) internal view returns (uint256) { uint256 slotAsUint = uint256(slot); uint256[] storage attributeProbabilities = probabilities[slotAsUint]; uint256 length = attributeProbabilities.length; bool isSelected = isSlotSelected(slot, serialId, slotAsUint, length); if (!isSelected) { return 99; } else { uint256 attribute = pickRandomFromStorage( attributeProbabilities, serialId, slotAsUint, length ); return attribute; } } // prospective slots are 0-4 function isSlotSelected( Slot prospectiveSlot, uint256 seed1, uint256 seed2, uint256 seed3 ) internal view returns (bool) { uint256 randomNumber = getRandomNumber(seed1, seed2, seed3); return petSlotProbabilities[uint256(prospectiveSlot)] >= randomNumber; } function pickRandomFromStorage( uint256[] storage attributeProbabilities, uint256 seed1, uint256 seed2, uint256 seed3 ) internal view returns (uint256) { // mix up ordering of seed to generate diff random number from the random number in isSlotSelected uint256 randomNumber = getRandomNumber(seed3, seed2, seed1); uint256 sum = 0; for (uint256 i = 0; i < attributeProbabilities.length; i++) { sum += attributeProbabilities[i]; if (sum >= randomNumber) { return i; } } // return the last one return attributeProbabilities.length - 1; } function pickRandomFromMemory( uint256[] memory attributeProbabilities, uint256 seed1, uint256 seed2, uint256 seed3 ) internal view returns (uint256) { // mix up ordering of seed to generate diff random number from the random number in isSlotSelected uint256 randomNumber = getRandomNumber(seed3, seed2, seed1); uint256 sum = 0; for (uint256 i = 0; i < attributeProbabilities.length; i++) { sum += attributeProbabilities[i]; if (sum >= randomNumber) { return i; } } // return the last one return attributeProbabilities.length - 1; } function getRandomNumber( uint256 seed1, uint256 seed2, uint256 seed3 ) internal view returns (uint256) { uint256 randomNum = uint256( keccak256( abi.encode( msg.sender, tx.gasprice, block.number, block.timestamp, blockhash(block.number - 1), seed1, seed2, seed3 ) ) ); // never return 0, edge cases where first probability of accessory // could be 0 while rerolling return (randomNum % 10000) + 1; } function createPetStringRepresentation( uint256 petSkin, uint256 petType, Attributes memory attributes ) internal pure returns (string memory) { AttributesAsString memory slotsAsString = convertSlotsToString(attributes); return appendAttributes( convertToString(petSkin), convertToString(petType), slotsAsString ); } function appendAttributes( string memory petSkin, string memory petType, AttributesAsString memory attributes ) internal pure returns (string memory) { return string( abi.encodePacked( petSkin, petType, attributes.eyes, attributes.hat, attributes.leftEar, attributes.neck, attributes.rightEar, attributes.smoke ) ); } function convertToString(uint256 num) internal pure returns (string memory) { if (num == 0) { return "00"; } else if (num == 1) { return "01"; } else if (num == 2) { return "02"; } else if (num == 3) { return "03"; } else if (num == 4) { return "04"; } else if (num == 5) { return "05"; } else if (num == 6) { return "06"; } else if (num == 7) { return "07"; } else if (num == 8) { return "08"; } else if (num == 9) { return "09"; } return Strings.toString(num); } function substring( string memory str, uint256 startIndex, uint256 endIndex ) internal pure returns (string memory) { bytes memory strBytes = bytes(str); bytes memory result = new bytes(endIndex - startIndex); for (uint256 i = startIndex; i < endIndex; i++) { result[i - startIndex] = strBytes[i]; } return string(result); } // s will always be len 2 function convertToUint(string memory s) internal pure returns (uint256) { string memory tensDigit = substring(s, 0, 1); string memory onesDigit = substring(s, 1, 2); return stringToUint(tensDigit) * 10 + stringToUint(onesDigit); } function stringToUint(string memory s) internal pure returns (uint256) { if (compareStrings(s, "0")) { return 0; } else if (compareStrings(s, "1")) { return 1; } else if (compareStrings(s, "2")) { return 2; } else if (compareStrings(s, "3")) { return 3; } else if (compareStrings(s, "4")) { return 4; } else if (compareStrings(s, "5")) { return 5; } else if (compareStrings(s, "6")) { return 6; } else if (compareStrings(s, "7")) { return 7; } else if (compareStrings(s, "8")) { return 8; } else { return 9; } } function isNonUniquePet(string memory generatedPet) internal view returns (bool) { return compareStrings(generatedPet, UNICORN) || compareStrings(generatedPet, ALIEN_ROCK) || compareStrings(generatedPet, NORMAL_ROCK) || compareStrings(generatedPet, ZOMBIE_ROCK); } function unableToRerollPet(string memory pet) internal view returns (bool) { return compareStrings(pet, NO_OPTIONS); } function compareStrings(string memory s1, string memory s2) internal pure returns (bool) { return keccak256(bytes(s1)) == keccak256(bytes(s2)); } function getOwnerPets(address _owner) external view returns (SerialIdAndTokenRepresentation[] memory) { uint256 numSerialIds = balanceOf(_owner); if (numSerialIds == 0) { return new SerialIdAndTokenRepresentation[](0); } else { SerialIdAndTokenRepresentation[] memory result = new SerialIdAndTokenRepresentation[](numSerialIds); for (uint256 i = 0; i < numSerialIds; i++) { uint256 serialId = tokenOfOwnerByIndex(_owner, i); string memory pet = serialIdToPet[serialId]; result[i] = SerialIdAndTokenRepresentation(serialId, pet); } return result; } } function getSerialIdTokenRepresentations(uint256[] memory serialIds) external view returns (string[] memory) { string[] memory tokenRepresentations = new string[](serialIds.length); for (uint256 i = 0; i < serialIds.length; i++) { tokenRepresentations[i] = serialIdToPet[serialIds[i]]; } return tokenRepresentations; } function getCostForRerollAttribute() public pure returns (uint256) { return 0.02 ether; } function startSale() public onlyOwner { isMintEnabled = true; isRerollAllEnabled = true; } function disableMint() public onlyOwner { isMintEnabled = false; } function disableRerollAll() public onlyOwner { isRerollAllEnabled = false; } function enableReroll() public onlyOwner { isRerollEnabled = true; } function disableReroll() public onlyOwner { isRerollEnabled = false; } // will be used for fun stuff in the future, stay tuned! function editProbabilities( uint256 slot, uint256[] memory updatedProbabilities ) public onlyOwner { probabilities[slot] = updatedProbabilities; } // Devs own zunk #10000, mint pet #10000 so we can set up OS function devSingleMint(uint256[] memory serialIds) public onlyOwner { require(!hasDevSingleMinted, "Can only dev single mint once"); require(serialIds.length == 1, "Can only mint one pet"); _mint(serialIds); hasDevSingleMinted = true; } // // metadata URI string private _baseTokenURI; function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function tokenURI(uint256 _serialId) public view override returns (string memory) { string memory base = _baseURI(); string memory _tokenURI = Strings.toString(_serialId); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } return string(abi.encodePacked(base, _tokenURI)); } function setBaseURI(string calldata baseURI) external onlyOwner { _baseTokenURI = baseURI; } function withdrawMoney() public payable onlyOwner { (bool success, ) = msg.sender.call{value: address(this).balance}(""); require(success, "Transfer failed."); } function _beforeTokenTransfer( address from, address to, uint256 serialId ) internal virtual override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, serialId); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT 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() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT 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 make 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 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 overriden 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 { require(operator != _msgSender(), "ERC721: approve to caller"); _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 { //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 || getApproved(tokenId) == spender || isApprovedForAll(owner, 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); } /** * @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); } /** * @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 of token that is not own"); 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); } /** * @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 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 {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } }
// SPDX-License-Identifier: MIT 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 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 pragma solidity ^0.8.0; import "./EnumerableSet.sol"; /** * @dev Library for managing an enumerable variant of Solidity's * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`] * type. * * Maps have the following properties: * * - Entries are added, removed, and checked for existence in constant time * (O(1)). * - Entries are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableMap for EnumerableMap.UintToAddressMap; * * // Declare a set state variable * EnumerableMap.UintToAddressMap private myMap; * } * ``` * * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are * supported. */ library EnumerableMap { using EnumerableSet for EnumerableSet.Bytes32Set; // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Map type with // bytes32 keys and values. // The Map implementation uses private functions, and user-facing // implementations (such as Uint256ToAddressMap) are just wrappers around // the underlying Map. // This means that we can only create new EnumerableMaps for types that fit // in bytes32. struct Map { // Storage of keys EnumerableSet.Bytes32Set _keys; mapping(bytes32 => bytes32) _values; } /** * @dev Adds a key-value pair to a map, or updates the value for an existing * key. O(1). * * Returns true if the key was added to the map, that is if it was not * already present. */ function _set( Map storage map, bytes32 key, bytes32 value ) private returns (bool) { map._values[key] = value; return map._keys.add(key); } /** * @dev Removes a key-value pair from a map. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function _remove(Map storage map, bytes32 key) private returns (bool) { delete map._values[key]; return map._keys.remove(key); } /** * @dev Returns true if the key is in the map. O(1). */ function _contains(Map storage map, bytes32 key) private view returns (bool) { return map._keys.contains(key); } /** * @dev Returns the number of key-value pairs in the map. O(1). */ function _length(Map storage map) private view returns (uint256) { return map._keys.length(); } /** * @dev Returns the key-value pair stored at position `index` in the map. O(1). * * Note that there are no guarantees on the ordering of entries inside the * array, and it may change when more entries are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) { bytes32 key = map._keys.at(index); return (key, map._values[key]); } /** * @dev Tries to returns the value associated with `key`. O(1). * Does not revert if `key` is not in the map. */ function _tryGet(Map storage map, bytes32 key) private view returns (bool, bytes32) { bytes32 value = map._values[key]; if (value == bytes32(0)) { return (_contains(map, key), bytes32(0)); } else { return (true, value); } } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function _get(Map storage map, bytes32 key) private view returns (bytes32) { bytes32 value = map._values[key]; require(value != 0 || _contains(map, key), "EnumerableMap: nonexistent key"); return value; } /** * @dev Same as {_get}, with a custom error message when `key` is not in the map. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {_tryGet}. */ function _get( Map storage map, bytes32 key, string memory errorMessage ) private view returns (bytes32) { bytes32 value = map._values[key]; require(value != 0 || _contains(map, key), errorMessage); return value; } // UintToAddressMap struct UintToAddressMap { Map _inner; } /** * @dev Adds a key-value pair to a map, or updates the value for an existing * key. O(1). * * Returns true if the key was added to the map, that is if it was not * already present. */ function set( UintToAddressMap storage map, uint256 key, address value ) internal returns (bool) { return _set(map._inner, bytes32(key), bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) { return _remove(map._inner, bytes32(key)); } /** * @dev Returns true if the key is in the map. O(1). */ function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) { return _contains(map._inner, bytes32(key)); } /** * @dev Returns the number of elements in the map. O(1). */ function length(UintToAddressMap storage map) internal view returns (uint256) { return _length(map._inner); } /** * @dev Returns the element stored at position `index` in the set. O(1). * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) { (bytes32 key, bytes32 value) = _at(map._inner, index); return (uint256(key), address(uint160(uint256(value)))); } /** * @dev Tries to returns the value associated with `key`. O(1). * Does not revert if `key` is not in the map. * * _Available since v3.4._ */ function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool, address) { (bool success, bytes32 value) = _tryGet(map._inner, bytes32(key)); return (success, address(uint160(uint256(value)))); } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function get(UintToAddressMap storage map, uint256 key) internal view returns (address) { return address(uint160(uint256(_get(map._inner, bytes32(key))))); } /** * @dev Same as {get}, with a custom error message when `key` is not in the map. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryGet}. */ function get( UintToAddressMap storage map, uint256 key, string memory errorMessage ) internal view returns (address) { return address(uint160(uint256(_get(map._inner, bytes32(key), errorMessage)))); } }
// SPDX-License-Identifier: MIT pragma solidity >= 0.4.22 <0.9.0; library console { address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67); function _sendLogPayload(bytes memory payload) private view { uint256 payloadLength = payload.length; address consoleAddress = CONSOLE_ADDRESS; assembly { let payloadStart := add(payload, 32) let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0) } } function log() internal view { _sendLogPayload(abi.encodeWithSignature("log()")); } function logInt(int p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(int)", p0)); } function logUint(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function logString(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function logBool(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function logAddress(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function logBytes(bytes memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes)", p0)); } function logBytes1(bytes1 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0)); } function logBytes2(bytes2 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0)); } function logBytes3(bytes3 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0)); } function logBytes4(bytes4 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0)); } function logBytes5(bytes5 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0)); } function logBytes6(bytes6 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0)); } function logBytes7(bytes7 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0)); } function logBytes8(bytes8 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0)); } function logBytes9(bytes9 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0)); } function logBytes10(bytes10 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0)); } function logBytes11(bytes11 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0)); } function logBytes12(bytes12 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0)); } function logBytes13(bytes13 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0)); } function logBytes14(bytes14 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0)); } function logBytes15(bytes15 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0)); } function logBytes16(bytes16 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0)); } function logBytes17(bytes17 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0)); } function logBytes18(bytes18 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0)); } function logBytes19(bytes19 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0)); } function logBytes20(bytes20 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0)); } function logBytes21(bytes21 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0)); } function logBytes22(bytes22 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0)); } function logBytes23(bytes23 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0)); } function logBytes24(bytes24 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0)); } function logBytes25(bytes25 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0)); } function logBytes26(bytes26 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0)); } function logBytes27(bytes27 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0)); } function logBytes28(bytes28 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0)); } function logBytes29(bytes29 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0)); } function logBytes30(bytes30 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0)); } function logBytes31(bytes31 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0)); } function logBytes32(bytes32 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0)); } function log(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function log(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function log(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function log(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function log(uint p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint)", p0, p1)); } function log(uint p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string)", p0, p1)); } function log(uint p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool)", p0, p1)); } function log(uint p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address)", p0, p1)); } function log(string memory p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint)", p0, p1)); } function log(string memory p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1)); } function log(string memory p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1)); } function log(string memory p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1)); } function log(bool p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint)", p0, p1)); } function log(bool p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1)); } function log(bool p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1)); } function log(bool p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1)); } function log(address p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint)", p0, p1)); } function log(address p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1)); } function log(address p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1)); } function log(address p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1)); } function log(uint p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint)", p0, p1, p2)); } function log(uint p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string)", p0, p1, p2)); } function log(uint p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool)", p0, p1, p2)); } function log(uint p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address)", p0, p1, p2)); } function log(uint p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint)", p0, p1, p2)); } function log(uint p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string)", p0, p1, p2)); } function log(uint p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool)", p0, p1, p2)); } function log(uint p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address)", p0, p1, p2)); } function log(uint p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint)", p0, p1, p2)); } function log(uint p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string)", p0, p1, p2)); } function log(uint p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool)", p0, p1, p2)); } function log(uint p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address)", p0, p1, p2)); } function log(uint p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint)", p0, p1, p2)); } function log(uint p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string)", p0, p1, p2)); } function log(uint p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool)", p0, p1, p2)); } function log(uint p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address)", p0, p1, p2)); } function log(string memory p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint)", p0, p1, p2)); } function log(string memory p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string)", p0, p1, p2)); } function log(string memory p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool)", p0, p1, p2)); } function log(string memory p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address)", p0, p1, p2)); } function log(string memory p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint)", p0, p1, p2)); } function log(string memory p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2)); } function log(string memory p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2)); } function log(string memory p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2)); } function log(string memory p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint)", p0, p1, p2)); } function log(string memory p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2)); } function log(string memory p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2)); } function log(string memory p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2)); } function log(string memory p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint)", p0, p1, p2)); } function log(string memory p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2)); } function log(string memory p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2)); } function log(string memory p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2)); } function log(bool p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint)", p0, p1, p2)); } function log(bool p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string)", p0, p1, p2)); } function log(bool p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool)", p0, p1, p2)); } function log(bool p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address)", p0, p1, p2)); } function log(bool p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint)", p0, p1, p2)); } function log(bool p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2)); } function log(bool p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2)); } function log(bool p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2)); } function log(bool p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint)", p0, p1, p2)); } function log(bool p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2)); } function log(bool p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2)); } function log(bool p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2)); } function log(bool p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint)", p0, p1, p2)); } function log(bool p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2)); } function log(bool p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2)); } function log(bool p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2)); } function log(address p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint)", p0, p1, p2)); } function log(address p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string)", p0, p1, p2)); } function log(address p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool)", p0, p1, p2)); } function log(address p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address)", p0, p1, p2)); } function log(address p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint)", p0, p1, p2)); } function log(address p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2)); } function log(address p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2)); } function log(address p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2)); } function log(address p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint)", p0, p1, p2)); } function log(address p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2)); } function log(address p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2)); } function log(address p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2)); } function log(address p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint)", p0, p1, p2)); } function log(address p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2)); } function log(address p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2)); } function log(address p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2)); } function log(uint p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,string)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,address)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3)); } }
// SPDX-License-Identifier: MIT 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 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`, 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 Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @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; }
// SPDX-License-Identifier: MIT 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 `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 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 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 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 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 tokenId); /** * @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 pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
{ "optimizer": { "enabled": true, "runs": 500 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"zunksAddress","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"serialId","type":"uint256"},{"indexed":false,"internalType":"string","name":"tokenRepresentation","type":"string"},{"indexed":false,"internalType":"bool","name":"isReroll","type":"bool"}],"name":"ZPet","type":"event"},{"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":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"serialIds","type":"uint256[]"}],"name":"canRerollPet","outputs":[{"components":[{"internalType":"uint256","name":"serialId","type":"uint256"},{"internalType":"bool","name":"canReroll","type":"bool"}],"internalType":"struct ZPets.ZPetData[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"serialIds","type":"uint256[]"}],"name":"devSingleMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"disableMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"disableReroll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"disableRerollAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"slot","type":"uint256"},{"internalType":"uint256[]","name":"updatedProbabilities","type":"uint256[]"}],"name":"editProbabilities","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableReroll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"existingPets","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCostForRerollAttribute","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"getOwnerPets","outputs":[{"components":[{"internalType":"uint256","name":"serialId","type":"uint256"},{"internalType":"string","name":"tokenRepresentation","type":"string"}],"internalType":"struct ZPets.SerialIdAndTokenRepresentation[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"serialIds","type":"uint256[]"}],"name":"getSerialIdTokenRepresentations","outputs":[{"internalType":"string[]","name":"","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasDevSingleMinted","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":[],"name":"isMintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRerollAllEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRerollEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_serialIds","type":"uint256[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"probabilities","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"serialId","type":"uint256"}],"name":"rerollPet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"serialId","type":"uint256"},{"internalType":"uint256","name":"slotToReroll","type":"uint256"}],"name":"rerollPetSlot","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"serialIdToPet","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"serialIdToTimeRedeemed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"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":"_serialId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawMoney","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
60c0604052600a6080819052696e6f206f7074696f6e7360b01b60a09081526200002d916011919062000844565b506201869f6012556040805180820190915260108082526f3032303639393939393939393939393960801b60209092019182526200006e9160139162000844565b506040805180820190915260108082526f3030303539393939393939393939393960801b6020909201918252620000a89160149162000844565b506040805180820190915260108082526f3032303539393939393939393939393960801b6020909201918252620000e29160159162000844565b506040805180820190915260108082526f3036303539393939393939393939393960801b60209092019182526200011c9160169162000844565b50620151806017556040805160c081018252611f4081526117706020820152611388918101829052606081018290526080810182905260a08101919091526200016a906018906006620008d3565b506040805160e081018252610bbe80825261061c602083018190529282015261032060608201526080810191909152603260a0820152600a60c0820152620001b790601e9060076200090a565b50604080516101a081018252601060c0808301828152603660e080860182905261098d610100870181905261012087018190526101408701819052610160870181905260966101808801819052938752875180830189528681526000602082810182905261266a838c018190526060808501849052608080860185905260a0808701869052868c018b9052848e01969096528d518089018f528c815280850199909952888e0187905288820187905288810187905288860196909652878a018990528b8d01979097528b518087018d5260258152808301849052612536818e01528088018490528086018490528085018490526101b5818b0152878c01528b518087018d52998a52898201839052898c01528886018290528884018290528883018290528888019690965282890197909752885192830189526102588352938201869052611ce897820197909752908101849052948501839052848101929092526107d0908401528101919091526200033590601f9060066200094d565b506020805463ffffffff191690556127106021553480156200035657600080fd5b506040516200621a3803806200621a833981016040819052620003799162000a02565b604051806040016040528060058152602001645a5065747360d81b815250604051806040016040528060048152602001631694115560e21b815250620003ce620003c8620007f060201b60201c565b620007f4565b8151620003e390600190602085019062000844565b508051620003f990600290602084019062000844565b50506001600b5550600c80546001600160a01b0319166001600160a01b03831617905560408051610200810182526101c78152610355602080830182905261034a938301939093526102626060830152610264608083015261026060a08301526101d360c08301526102de60e083015261025d61010083018190526101208301919091526102b76101408301526101608201526103486101808201526102066101a08201526101b06101c08201526101106101e082015260008052601091829052620004e8917f6e0956cda88cad152e89927e53611735b61a5c762d1428573c6931b0a5efcb0191906200090a565b5060408051610460810182526101908152603b60208083019190915261012b9282018390526101076060830152610113608083015261015760a0830152607460c08084019190915260be60e08401819052610144610100850152610140610120850181905261019590850181905260fb6101608601526101596101808601526101a08501959095526102246101c0808601919091526101e085015261017e6102008501526101d36102208501526101c961024085015260b7610260850152608b6102808501526101996102a08501526102c0840191909152606e6102e084015260c161030084015261011261032084015260de61034084015261015c6103608401526103808301939093526101816103a08301526103c082019290925260706103e0820152609b61040082015260c7610420820152610125610440820152600160005260109091526200065f907f8c6065603763fec3f5742441d3833f3f43b982453612d76adb39a885e3006b5f9060236200090a565b50604080516080810182526109c48082526020808301829052928201819052606082015260026000526010909152620006bc907f853b2fefe141400fef543280f93d98bd49996069f632d0d20236afeeed8e46a29060046200090a565b5060408051606081018252610a288082526020808301919091526112c0928201929092526003600081905260109092526200071a917fb3edd0d534d647cffdae9f1294f11ad21f3fcf2814bea44c92bbb8d384a57d9e91906200090a565b50604080516080810182526109c48082526020808301829052928201819052606082015260046000819052601090925262000778917f1588ac671d87f82adc0e6ae8ab009c0de98f92a20243897597e566bc59b9c12691906200090a565b506040805160a0810182526104a7815261132c60208083019190915261037d92820192909252610653606082015261056d6080820152600560008190526010909252620007e8917f61a7346ab5ebdac457db2a901eaf1b805239b6049a1b2f34bab85e2e274f39cb91906200090a565b505062000a6f565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620008529062000a32565b90600052602060002090601f016020900481019282620008765760008555620008c1565b82601f106200089157805160ff1916838001178555620008c1565b82800160010185558215620008c1579182015b82811115620008c1578251825591602001919060010190620008a4565b50620008cf929150620009a7565b5090565b8260068101928215620008c1579160200282015b82811115620008c1578251829061ffff16905591602001919060010190620008e7565b828054828255906000526020600020908101928215620008c15791602002820182811115620008c1578251829061ffff16905591602001919060010190620008e7565b82805482825590600052602060002090810192821562000999579160200282015b82811115620009995782516200098890839060076200090a565b50916020019190600101906200096e565b50620008cf929150620009be565b5b80821115620008cf5760008155600101620009a8565b80821115620008cf576000620009d58282620009df565b50600101620009be565b5080546000825590600052602060002090810190620009ff9190620009a7565b50565b60006020828403121562000a14578081fd5b81516001600160a01b038116811462000a2b578182fd5b9392505050565b600181811c9082168062000a4757607f821691505b6020821081141562000a6957634e487b7160e01b600052602260045260246000fd5b50919050565b61579b8062000a7f6000396000f3fe6080604052600436106102a75760003560e01c80638da5cb5b11610164578063c87b56dd116100c6578063ee14ae131161008a578063f39cccf911610064578063f39cccf9146107cc578063f8e93ef9146107f9578063fa6eadb11461080c57600080fd5b8063ee14ae131461075f578063f1311a8d1461078c578063f2fde38b146107ac57600080fd5b8063c87b56dd14610696578063d2df45e9146106b6578063d94e8ae2146106d6578063e8fbc4c214610703578063e985e9c51461071657600080fd5b8063ac44600211610128578063ba4f0a0e11610102578063ba4f0a0e14610635578063bfee771614610656578063c83827ff1461067657600080fd5b8063ac446002146105f8578063b66a0e5d14610600578063b88d4fde1461061557600080fd5b80638da5cb5b1461055857806395d89b41146105765780639770c31d1461058b5780639f11920b146105b8578063a22cb465146105d857600080fd5b806342842e0e1161020d5780636352211e116101d157806370a08231116101ab57806370a0823114610503578063715018a61461052357806379ce78581461053857600080fd5b80636352211e146104b457806363953bcb146104d45780636f0c3d2e146104e957600080fd5b806342842e0e1461041f57806342966c681461043f5780634c400d221461045f5780634f6ccce71461047457806355f804b31461049457600080fd5b80631dfc1f991161026f5780633326194d116102495780633326194d146103d657806334452f38146103eb578063346de50a1461040057600080fd5b80631dfc1f991461037c57806323b872dd146103965780632f745c59146103b657600080fd5b806301ffc9a7146102ac57806306fdde03146102e1578063081812fc14610303578063095ea7b31461033b57806318160ddd1461035d575b600080fd5b3480156102b857600080fd5b506102cc6102c7366004615160565b610847565b60405190151581526020015b60405180910390f35b3480156102ed57600080fd5b506102f6610858565b6040516102d89190615577565b34801561030f57600080fd5b5061032361031e366004615239565b6108ea565b6040516001600160a01b0390911681526020016102d8565b34801561034757600080fd5b5061035b610356366004615092565b610984565b005b34801561036957600080fd5b506009545b6040519081526020016102d8565b34801561038857600080fd5b5066470de4df82000061036e565b3480156103a257600080fd5b5061035b6103b1366004614fa4565b610a9a565b3480156103c257600080fd5b5061036e6103d1366004615092565b610b16565b3480156103e257600080fd5b5061035b610bac565b3480156103f757600080fd5b5061035b610c02565b34801561040c57600080fd5b506020546102cc90610100900460ff1681565b34801561042b57600080fd5b5061035b61043a366004614fa4565b610c57565b34801561044b57600080fd5b5061035b61045a366004615239565b610c72565b34801561046b57600080fd5b5061035b610cf9565b34801561048057600080fd5b5061036e61048f366004615239565b610d54565b3480156104a057600080fd5b5061035b6104af366004615198565b610df5565b3480156104c057600080fd5b506103236104cf366004615239565b610e49565b3480156104e057600080fd5b5061035b610ec0565b3480156104f557600080fd5b506020546102cc9060ff1681565b34801561050f57600080fd5b5061036e61051e366004614f2d565b610f17565b34801561052f57600080fd5b5061035b610f9e565b34801561054457600080fd5b5061035b610553366004615251565b610ff2565b34801561056457600080fd5b506000546001600160a01b0316610323565b34801561058257600080fd5b506102f6611059565b34801561059757600080fd5b5061036e6105a6366004615239565b600f6020526000908152604090205481565b3480156105c457600080fd5b5061035b6105d3366004615239565b611068565b3480156105e457600080fd5b5061035b6105f3366004615061565b611461565b61035b611526565b34801561060c57600080fd5b5061035b611606565b34801561062157600080fd5b5061035b610630366004614fe4565b611663565b34801561064157600080fd5b506020546102cc906301000000900460ff1681565b34801561066257600080fd5b506020546102cc9062010000900460ff1681565b34801561068257600080fd5b506102f6610691366004615239565b6116e5565b3480156106a257600080fd5b506102f66106b1366004615239565b61177f565b3480156106c257600080fd5b5061036e6106d1366004615296565b6117d6565b3480156106e257600080fd5b506106f66106f1366004614f2d565b611807565b6040516102d891906154b3565b61035b610711366004615296565b6119e3565b34801561072257600080fd5b506102cc610731366004614f6c565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561076b57600080fd5b5061077f61077a36600461512d565b611d96565b6040516102d89190615526565b34801561079857600080fd5b5061035b6107a736600461512d565b611f12565b3480156107b857600080fd5b5061035b6107c7366004614f2d565b612017565b3480156107d857600080fd5b506107ec6107e736600461512d565b6120cd565b6040516102d89190615452565b61035b6108073660046150bd565b612243565b34801561081857600080fd5b506102cc6108273660046151f3565b8051602081830181018051600e8252928201919093012091525460ff1681565b6000610852826123ab565b92915050565b60606001805461086790615674565b80601f016020809104026020016040519081016040528092919081815260200182805461089390615674565b80156108e05780601f106108b5576101008083540402835291602001916108e0565b820191906000526020600020905b8154815290600101906020018083116108c357829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b03166109685760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061098f82610e49565b9050806001600160a01b0316836001600160a01b031614156109fd5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161095f565b336001600160a01b0382161480610a195750610a198133610731565b610a8b5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161095f565b610a9583836123d0565b505050565b610aa5335b8261243e565b610b0b5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606482015260840161095f565b610a95838383612535565b6000610b2183610f17565b8210610b835760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161095f565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6000546001600160a01b03163314610bf45760405162461bcd60e51b81526020600482018190526024820152600080516020615746833981519152604482015260640161095f565b6020805462ff000019169055565b6000546001600160a01b03163314610c4a5760405162461bcd60e51b81526020600482018190526024820152600080516020615746833981519152604482015260640161095f565b6020805461ff0019169055565b610a9583838360405180602001604052806000815250611663565b610c7b33610a9f565b610ced5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000606482015260840161095f565b610cf6816126e0565b50565b6000546001600160a01b03163314610d415760405162461bcd60e51b81526020600482018190526024820152600080516020615746833981519152604482015260640161095f565b6020805462ff0000191662010000179055565b6000610d5f60095490565b8210610dc25760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161095f565b60098281548110610de357634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000546001600160a01b03163314610e3d5760405162461bcd60e51b81526020600482018190526024820152600080516020615746833981519152604482015260640161095f565b610a9560228383614d0b565b6000818152600360205260408120546001600160a01b0316806108525760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161095f565b6000546001600160a01b03163314610f085760405162461bcd60e51b81526020600482018190526024820152600080516020615746833981519152604482015260640161095f565b6020805463ff00000019169055565b60006001600160a01b038216610f825760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161095f565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b03163314610fe65760405162461bcd60e51b81526020600482018190526024820152600080516020615746833981519152604482015260640161095f565b610ff06000612787565b565b6000546001600160a01b0316331461103a5760405162461bcd60e51b81526020600482018190526024820152600080516020615746833981519152604482015260640161095f565b60008281526010602090815260409091208251610a9592840190614d8f565b60606002805461086790615674565b6020546301000000900460ff166110b95760405162461bcd60e51b815260206004820152601560248201527414995c9bdb1b081a5cc81b9bdd08195b98589b1959605a1b604482015260640161095f565b6110c281610e49565b6001600160a01b0316336001600160a01b0316146111225760405162461bcd60e51b815260206004820152601660248201527f4f6e6c79206f776e65722063616e207265726f6c6c2e00000000000000000000604482015260640161095f565b6017546000828152600f602052604090205461113e9042615631565b111561118c5760405162461bcd60e51b815260206004820152601c60248201527f43616e206e6f74207265726f6c6c206166746572206f6e652064617900000000604482015260640161095f565b6000818152600d6020526040812080546111a590615674565b80601f01602080910402602001604051908101604052809291908181526020018280546111d190615674565b801561121e5780601f106111f35761010080835404028352916020019161121e565b820191906000526020600020905b81548152906001019060200180831161120157829003601f168201915b50505050509050600061123482600060026127d7565b9050600061124583600260046127d7565b90506000611252836128e6565b9050600061125f836128e6565b9050600061126c87612930565b9050600061127b8484846129d7565b9050600e8160405161128d91906152e3565b9081526040519081900360200190205460ff16156113095760006112b083612a0a565b9050600081516112c186888d612ce6565b6112cb91906156c4565b90506113048a8787878686815181106112f457634e487b7160e01b600052603260045260246000fd5b6020026020010151886000612d70565b925050505b600e8160405161131991906152e3565b9081526040519081900360200190205460ff16156113965760405162461bcd60e51b815260206004820152603460248201527f436f756c64206e6f74207265726f6c6c20696e746f20612076616c69642070656044820152733a1610383632b0b9b2903a393c9030b3b0b4b71760611b606482015260840161095f565b6000888152600d6020908152604090912082516113b592840190614dca565b506001600e826040516113c891906152e3565b908152604051908190036020018120805492151560ff1990931692909217909155600090600e906113fa908a906152e3565b908152604051908190036020018120805492151560ff199093169290921790915533907fd3622a5ce603be2a4b013d804b9a24e109c6c66d7cbe4a82634bb461a29670619061144f908b90859060019061558a565b60405180910390a25050505050505050565b6001600160a01b0382163314156114ba5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161095f565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b0316331461156e5760405162461bcd60e51b81526020600482018190526024820152600080516020615746833981519152604482015260640161095f565b604051600090339047908381818185875af1925050503d80600081146115b0576040519150601f19603f3d011682016040523d82523d6000602084013e6115b5565b606091505b5050905080610cf65760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e00000000000000000000000000000000604482015260640161095f565b6000546001600160a01b0316331461164e5760405162461bcd60e51b81526020600482018190526024820152600080516020615746833981519152604482015260640161095f565b6020805463ff00ff0019166301000100179055565b61166d338361243e565b6116d35760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606482015260840161095f565b6116df84848484612fc2565b50505050565b600d60205260009081526040902080546116fe90615674565b80601f016020809104026020016040519081016040528092919081815260200182805461172a90615674565b80156117775780601f1061174c57610100808354040283529160200191611777565b820191906000526020600020905b81548152906001019060200180831161175a57829003601f168201915b505050505081565b6060600061178b613040565b905060006117988461304f565b90508151600014156117ab579392505050565b81816040516020016117be9291906152ff565b60405160208183030381529060405292505050919050565b601060205281600052604060002081815481106117f257600080fd5b90600052602060002001600091509150505481565b6060600061181483610f17565b905080611861576040805160008082526020820190925290611859565b6040805180820190915260008152606060208201528152602001906001900390816118315790505b509392505050565b60008167ffffffffffffffff81111561188a57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156118d057816020015b6040805180820190915260008152606060208201528152602001906001900390816118a85790505b50905060005b828110156118595760006118ea8683610b16565b6000818152600d602052604081208054929350909161190890615674565b80601f016020809104026020016040519081016040528092919081815260200182805461193490615674565b80156119815780601f1061195657610100808354040283529160200191611981565b820191906000526020600020905b81548152906001019060200180831161196457829003601f168201915b505050505090506040518060400160405280838152602001828152508484815181106119bd57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250505080806119d5906156a9565b9150506118d6565b50919050565b60205462010000900460ff16611a335760405162461bcd60e51b815260206004820152601560248201527414995c9bdb1b081a5cc81b9bdd08195b98589b1959605a1b604482015260640161095f565b611a3c82610e49565b6001600160a01b0316336001600160a01b031614611a9c5760405162461bcd60e51b815260206004820152601660248201527f4f6e6c79206f776e65722063616e207265726f6c6c2e00000000000000000000604482015260640161095f565b66470de4df82000034811115611afe5760405162461bcd60e51b815260206004820152602160248201527f4e65656420746f2073656e64206d6f72652045544820666f72207265726f6c6c6044820152601760f91b606482015260840161095f565b80341115611b3e57336108fc611b148334615631565b6040518115909202916000818181858888f19350505050158015611b3c573d6000803e3d6000fd5b505b6000838152600d602052604081208054611b5790615674565b80601f0160208091040260200160405190810160405280929190818152602001828054611b8390615674565b8015611bd05780601f10611ba557610100808354040283529160200191611bd0565b820191906000526020600020905b815481529060010190602001808311611bb357829003601f168201915b505050505090506000611be682600060026127d7565b90506000611bf783600260046127d7565b90506000611c0484613169565b9050611c108682613270565b6000611c1b846128e6565b90506000611c28846128e6565b90506000611c3a8a8484878d8c61332c565b9050600e81604051611c4c91906152e3565b9081526040519081900360200190205460ff1615611cc95760405162461bcd60e51b815260206004820152603460248201527f436f756c64206e6f74207265726f6c6c20696e746f20612076616c69642070656044820152733a1610383632b0b9b2903a393c9030b3b0b4b71760611b606482015260840161095f565b60008a8152600d602090815260409091208251611ce892840190614dca565b506001600e82604051611cfb91906152e3565b908152604051908190036020018120805492151560ff1990931692909217909155600090600e90611d2d908a906152e3565b908152604051908190036020018120805492151560ff199093169290921790915533907fd3622a5ce603be2a4b013d804b9a24e109c6c66d7cbe4a82634bb461a296706190611d82908d90859060019061558a565b60405180910390a250505050505050505050565b60606000825167ffffffffffffffff811115611dc257634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611e0757816020015b6040805180820190915260008082526020820152815260200190600190039081611de05790505b5090504260005b8451811015611f09576000858281518110611e3957634e487b7160e01b600052603260045260246000fd5b6020026020010151905060175483600f600084815260200190815260200160002054611e659190615631565b11611eb257604051806040016040528082815260200160011515815250848381518110611ea257634e487b7160e01b600052603260045260246000fd5b6020026020010181905250611ef6565b604051806040016040528082815260200160001515815250848381518110611eea57634e487b7160e01b600052603260045260246000fd5b60200260200101819052505b5080611f01816156a9565b915050611e0e565b50909392505050565b6000546001600160a01b03163314611f5a5760405162461bcd60e51b81526020600482018190526024820152600080516020615746833981519152604482015260640161095f565b60205460ff1615611fad5760405162461bcd60e51b815260206004820152601d60248201527f43616e206f6e6c79206465762073696e676c65206d696e74206f6e6365000000604482015260640161095f565b8051600114611ffe5760405162461bcd60e51b815260206004820152601560248201527f43616e206f6e6c79206d696e74206f6e65207065740000000000000000000000604482015260640161095f565b6120078161333e565b506020805460ff19166001179055565b6000546001600160a01b0316331461205f5760405162461bcd60e51b81526020600482018190526024820152600080516020615746833981519152604482015260640161095f565b6001600160a01b0381166120c45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161095f565b610cf681612787565b60606000825167ffffffffffffffff8111156120f957634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561212c57816020015b60608152602001906001900390816121175790505b50905060005b835181101561223c57600d600085838151811061215f57634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020805461218090615674565b80601f01602080910402602001604051908101604052809291908181526020018280546121ac90615674565b80156121f95780601f106121ce576101008083540402835291602001916121f9565b820191906000526020600020905b8154815290600101906020018083116121dc57829003601f168201915b505050505082828151811061221e57634e487b7160e01b600052603260045260246000fd5b60200260200101819052508080612234906156a9565b915050612132565b5092915050565b6002600b5414156122965760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161095f565b6002600b55602054610100900460ff166122f25760405162461bcd60e51b815260206004820152601760248201527f4d696e74696e67206973206e6f7420656e61626c65642e000000000000000000604482015260640161095f565b60006122fd60095490565b60215490915061230d83836155e6565b11156123655760405162461bcd60e51b815260206004820152602160248201527f5468657265206172656e27742074686973206d616e792070657473206c6566746044820152601760f91b606482015260840161095f565b6123a183838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061333e92505050565b50506001600b5550565b60006001600160e01b0319821663780e9d6360e01b1480610852575061085282613612565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061240582610e49565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600360205260408120546001600160a01b03166124b75760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161095f565b60006124c283610e49565b9050806001600160a01b0316846001600160a01b031614806124fd5750836001600160a01b03166124f2846108ea565b6001600160a01b0316145b8061252d57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661254882610e49565b6001600160a01b0316146125b05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161095f565b6001600160a01b0382166126125760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161095f565b61261d838383613662565b6126286000826123d0565b6001600160a01b0383166000908152600460205260408120805460019290612651908490615631565b90915550506001600160a01b038216600090815260046020526040812080546001929061267f9084906155e6565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006126eb82610e49565b90506126f981600084613662565b6127046000836123d0565b6001600160a01b038116600090815260046020526040812080546001929061272d908490615631565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60608360006127e68585615631565b67ffffffffffffffff81111561280c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612836576020820181803683370190505b509050845b848110156128dc5782818151811061286357634e487b7160e01b600052603260045260246000fd5b01602001517fff0000000000000000000000000000000000000000000000000000000000000016826128958884615631565b815181106128b357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350806128d4816156a9565b91505061283b565b5095945050505050565b6000806128f683600060016127d7565b9050600061290784600160026127d7565b90506129128161366d565b61291b8361366d565b61292690600a615612565b61252d91906155e6565b6129696040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040518060c0016040528061297f600085613936565b815260200161298f600185613936565b815260200161299f600285613936565b81526020016129af600385613936565b81526020016129bf600485613936565b81526020016129cf600585613936565b905292915050565b606060006129e4836139a9565b9050612a016129f286613a50565b6129fb86613a50565b83613bdd565b95945050505050565b60408051600680825260e08201909252606091600091906020820160c08036833701905050905060008360000151606314612a8057600182600081518110612a6257634e487b7160e01b600052603260045260246000fd5b9115156020928302919091019091015280612a7c816156a9565b9150505b8360200151606314612acc576001828181518110612aae57634e487b7160e01b600052603260045260246000fd5b9115156020928302919091019091015280612ac8816156a9565b9150505b8360400151606314612b1957600182600281518110612afb57634e487b7160e01b600052603260045260246000fd5b9115156020928302919091019091015280612b15816156a9565b9150505b8360600151606314612b6657600182600381518110612b4857634e487b7160e01b600052603260045260246000fd5b9115156020928302919091019091015280612b62816156a9565b9150505b8360800151606314612bb357600182600481518110612b9557634e487b7160e01b600052603260045260246000fd5b9115156020928302919091019091015280612baf816156a9565b9150505b8360a00151606314612c0057600182600581518110612be257634e487b7160e01b600052603260045260246000fd5b9115156020928302919091019091015280612bfc816156a9565b9150505b60008167ffffffffffffffff811115612c2957634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015612c52578160200160208202803683370190505b5090506000805b8451811015612cdb57848181518110612c8257634e487b7160e01b600052603260045260246000fd5b602002602001015115612cc95780838381518110612cb057634e487b7160e01b600052603260045260246000fd5b602090810291909101015281612cc5816156a9565b9250505b80612cd3816156a9565b915050612c59565b509095945050505050565b600080333a4342612cf8600183615631565b604080516001600160a01b039096166020870152850193909352606084019190915260808301524060a082015260c0810186905260e0810185905261010081018490526101200160408051601f1981840301815291905280516020909101209050612d65612710826156c4565b612a019060016155e6565b6040805160c08101825285518152602080870151908201528582015191810191909152606080860151818301526080808701519083015260a080870151908301529060009085612e7457612dcc8a600089600001518888613c2e565b9150601254821415612e6c5760118054612de590615674565b80601f0160208091040260200160405190810160405280929190818152602001828054612e1190615674565b8015612e5e5780601f10612e3357610100808354040283529160200191612e5e565b820191906000526020600020905b815481529060010190602001808311612e4157829003601f168201915b505050505092505050612fb7565b818152612fa7565b6001861415612eb457612e8f8a600189602001518888613c2e565b9150601254821415612ea85760118054612de590615674565b60208101829052612fa7565b6002861415612ef457612ecf8a600289604001518888613c2e565b9150601254821415612ee85760118054612de590615674565b60408101829052612fa7565b6003861415612f3457612f0f8a600389606001518888613c2e565b9150601254821415612f285760118054612de590615674565b60608101829052612fa7565b6004861415612f7457612f4f8a600489608001518888613c2e565b9150601254821415612f685760118054612de590615674565b60808101829052612fa7565b612f868a60058960a001518888613c2e565b9150601254821415612f9f5760118054612de590615674565b60a081018290525b612fb28989836129d7565b925050505b979650505050505050565b612fcd848484612535565b612fd984848484613d8d565b6116df5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161095f565b60606022805461086790615674565b6060816130735750506040805180820190915260018152600360fc1b602082015290565b8160005b811561309d5780613087816156a9565b91506130969050600a836155fe565b9150613077565b60008167ffffffffffffffff8111156130c657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156130f0576020820181803683370190505b5090505b841561252d57613105600183615631565b9150613112600a866156c4565b61311d9060306155e6565b60f81b81838151811061314057634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613162600a866155fe565b94506130f4565b6131a26040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b60006131b183600460066127d7565b905060006131c284600660086127d7565b905060006131d3856008600a6127d7565b905060006131e486600a600c6127d7565b905060006131f587600c600e6127d7565b9050600061320688600e60106127d7565b90506040518060c0016040528061321c886128e6565b815260200161322a876128e6565b8152602001613238866128e6565b8152602001613246856128e6565b8152602001613254846128e6565b8152602001613262836128e6565b905298975050505050505050565b600061327b82612a0a565b90506000805b82518110156132d4578281815181106132aa57634e487b7160e01b600052603260045260246000fd5b60200260200101518514156132c257600191506132d4565b806132cc816156a9565b915050613281565b50806116df5760405162461bcd60e51b815260206004820152602160248201527f736c6f74546f5265726f6c6c206973206e6f742076616c696420666f722070656044820152601d60fa1b606482015260840161095f565b6060612fb78787878787876001612d70565b60005b815181101561360e57600082828151811061336c57634e487b7160e01b600052603260045260246000fd5b6020908102919091010151600c546040516331a9108f60e11b81526004810183905291925033916001600160a01b0390911690636352211e9060240160206040518083038186803b1580156133c057600080fd5b505afa1580156133d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133f89190614f50565b6001600160a01b03161461345f5760405162461bcd60e51b815260206004820152602860248201527f5573657220646f6573206e6f74206f776e2074686520636f72726573706f6e64604482015267696e67207a756e6b60c01b606482015260840161095f565b6134693382613ee5565b600061347482613eff565b905061347f816141bd565b61355e57600e8160405161349391906152e3565b9081526040519081900360200190205460ff16806134b557506134b5816142a9565b156134c6576134c382613eff565b90505b600e816040516134d691906152e3565b9081526040519081900360200190205460ff16806134f857506134f8816142a9565b15806135085750613508816141bd565b61355e5760405162461bcd60e51b815260206004820152602160248201527f556e61626c6520746f206d696e742c20706c656173652074727920616761696e6044820152601760f91b606482015260840161095f565b6000828152600d60209081526040909120825161357d92840190614dca565b506001600e8260405161359091906152e3565b9081526040805160209281900383018120805460ff1916941515949094179093556000858152600f909252812042905533917fd3622a5ce603be2a4b013d804b9a24e109c6c66d7cbe4a82634bb461a2967061916135f1918691869161558a565b60405180910390a250508080613606906156a9565b915050613341565b5050565b60006001600160e01b031982166380ac58cd60e01b148061364357506001600160e01b03198216635b5e139f60e01b145b8061085257506301ffc9a760e01b6001600160e01b0319831614610852565b610a958383836142bc565b6040805180820190915260018152600360fc1b6020918201528151908201206000907f044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d14156136be57506000919050565b6040805180820190915260018152603160f81b6020918201528251908301207fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6141561370c57506001919050565b6040805180820190915260018152601960f91b6020918201528251908301207fad7c5bef027816a800da1736444fb58a807ef4c9603b7848673f7e3a68eb14a5141561375a57506002919050565b6040805180820190915260018152603360f81b6020918201528251908301207f2a80e1ef1d7842f27f2e6be0972bb708b9a135c38860dbe73c27c3486c34f4de14156137a857506003919050565b6040805180820190915260018152600d60fa1b6020918201528251908301207f13600b294191fc92924bb3ce4b969c1e7e2bab8f4c93c3fc6d0a51733df3c06014156137f657506004919050565b6040805180820190915260018152603560f81b6020918201528251908301207fceebf77a833b30520287ddd9478ff51abbdffa30aa90a8d655dba0e8a79ce0c1141561384457506005919050565b6040805180820190915260018152601b60f91b6020918201528251908301207fe455bf8ea6e7463a1046a0b52804526e119b4bf5136279614e0b1e8e296a4e2d141561389257506006919050565b6040805180820190915260018152603760f81b6020918201528251908301207f52f1a9b320cab38e5da8a8f97989383aab0a49165fc91c737310e4f7e982102114156138e057506007919050565b6040805180820190915260018152600760fb1b6020918201528251908301207fe4b1702d9298fee62dfeccc57d322a463ad55ca201256d01f62b45b2e1c21c10141561392e57506008919050565b506009919050565b60008083600581111561395957634e487b7160e01b600052602160045260246000fd5b60008181526010602052604081208054929350919061397a87878685614374565b90508061398e576063945050505050610852565b600061399c848887866143d3565b9550610852945050505050565b6139e26040518060c001604052806060815260200160608152602001606081526020016060815260200160608152602001606081525090565b6040518060c001604052806139fa8460000151613a50565b8152602001613a0c8460200151613a50565b8152602001613a1e8460400151613a50565b8152602001613a308460600151613a50565b8152602001613a428460800151613a50565b81526020016129cf8460a001515b606081613a75575050604080518082019091526002815261030360f41b602082015290565b8160011415613a9c575050604080518082019091526002815261303160f01b602082015290565b8160021415613ac3575050604080518082019091526002815261181960f11b602082015290565b8160031415613aea575050604080518082019091526002815261303360f01b602082015290565b8160041415613b115750506040805180820190915260028152610c0d60f21b602082015290565b8160051415613b38575050604080518082019091526002815261303560f01b602082015290565b8160061415613b5f575050604080518082019091526002815261181b60f11b602082015290565b8160071415613b86575050604080518082019091526002815261303760f01b602082015290565b8160081415613bad575050604080518082019091526002815261060760f31b602082015290565b8160091415613bd4575050604080518082019091526002815261303960f01b602082015290565b6108528261304f565b60608383836000015184602001518560400151866060015187608001518860a00151604051602001613c16989796959493929190615371565b60405160208183030381529060405290509392505050565b600080856005811115613c5157634e487b7160e01b600052602160045260246000fd5b600081815260106020526040812080549293509190613c7189888461445a565b90506000613c818a8a85856145c5565b90506000805b84811015613cda576000838281518110613cb157634e487b7160e01b600052603260045260246000fd5b60200260200101511115613cc85760019150613cda565b80613cd2816156a9565b915050613c87565b5080613d52578715613d425780613d3d5760405162461bcd60e51b815260206004820152602160248201527f556e61626c6520746f206d696e742e20506c656173652074727920616761696e6044820152601760f91b606482015260840161095f565b613d52565b6012549650505050505050612a01565b613d7d828d8d6005811115613d7757634e487b7160e01b600052602160045260246000fd5b8d614901565b9c9b505050505050505050505050565b60006001600160a01b0384163b15613eda57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613dd1903390899088908890600401615416565b602060405180830381600087803b158015613deb57600080fd5b505af1925050508015613e1b575060408051601f3d908101601f19168201909252613e189181019061517c565b60015b613ec0573d808015613e49576040519150601f19603f3d011682016040523d82523d6000602084013e613e4e565b606091505b508051613eb85760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161095f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061252d565b506001949350505050565b61360e828260405180602001604052806000815250614985565b60606000613f12601e84600160056143d3565b90508060061415613fb05760138054613f2a90615674565b80601f0160208091040260200160405190810160405280929190818152602001828054613f5690615674565b8015613fa35780601f10613f7857610100808354040283529160200191613fa3565b820191906000526020600020905b815481529060010190602001808311613f8657829003601f168201915b5050505050915050919050565b6000613fea601f8381548110613fd657634e487b7160e01b600052603260045260246000fd5b9060005260206000200185600060076143d3565b9050816005141561411e578061408e576014805461400790615674565b80601f016020809104026020016040519081016040528092919081815260200182805461403390615674565b80156140805780601f1061405557610100808354040283529160200191614080565b820191906000526020600020905b81548152906001019060200180831161406357829003601f168201915b505050505092505050919050565b80600214156140a4576015805461400790615674565b80600614156140ba576016805461400790615674565b8015806140c75750806002145b806140d25750806006145b61411e5760405162461bcd60e51b815260206004820152601960248201527f496e76616c69642070657420736b696e20666f7220726f636b00000000000000604482015260640161095f565b600061412985612930565b905060006141388385846129d7565b9050600e8160405161414a91906152e3565b9081526040519081900360200190205460ff1615612a0157600061416d83612a0a565b90506000815161417e87878b612ce6565b61418891906156c4565b90506141b1888688878686815181106112f457634e487b7160e01b600052603260045260246000fd5b98975050505050505050565b600061426482601380546141d090615674565b80601f01602080910402602001604051908101604052809291908181526020018280546141fc90615674565b80156142495780601f1061421e57610100808354040283529160200191614249565b820191906000526020600020905b81548152906001019060200180831161422c57829003601f168201915b50505050508051602091820120825192909101919091201490565b8061427b575061427b82601480546141d090615674565b80614292575061429282601580546141d090615674565b80610852575061085282601680546141d090615674565b600061085282601180546141d090615674565b6001600160a01b0383166143175761431281600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b61433a565b816001600160a01b0316836001600160a01b03161461433a5761433a8382614a03565b6001600160a01b03821661435157610a9581614aa0565b826001600160a01b0316826001600160a01b031614610a9557610a958282614b79565b600080614382858585612ce6565b90508060188760058111156143a757634e487b7160e01b600052602160045260246000fd5b600681106143c557634e487b7160e01b600052603260045260246000fd5b015410159695505050505050565b6000806143e1838587612ce6565b90506000805b875481101561444b5787818154811061441057634e487b7160e01b600052603260045260246000fd5b90600052602060002001548261442691906155e6565b915082821061443957925061252d915050565b80614443816156a9565b9150506143e7565b508654612fb790600190615631565b6060600061449f84600087600581111561448457634e487b7160e01b600052602160045260246000fd5b61448f906002615612565b61449a9060046155e6565b6127d7565b905060006144e4858760058111156144c757634e487b7160e01b600052602160045260246000fd5b6144d2906002615612565b6144dd9060066155e6565b60106127d7565b905060008467ffffffffffffffff81111561450f57634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561454257816020015b606081526020019060019003908161452d5790505b50905060005b858110156145ba578361455a82613a50565b8460405160200161456d9392919061532e565b60405160208183030381529060405282828151811061459c57634e487b7160e01b600052603260045260246000fd5b602002602001018190525080806145b2906156a9565b915050614548565b509695505050505050565b606060008367ffffffffffffffff8111156145f057634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015614619578160200160208202803683370190505b509050600086600581111561463e57634e487b7160e01b600052602160045260246000fd5b60008181526010602052604081209192508667ffffffffffffffff81111561467657634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561469f578160200160208202803683370190505b5090506000805b888110156147c45760008882815181106146d057634e487b7160e01b600052603260045260246000fd5b602002602001015190508482815481106146fa57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154600014806147325750600e8160405161471e91906152e3565b9081526040519081900360200190205460ff165b8061473c57508a82145b1561477e5784828154811061476157634e487b7160e01b600052603260045260246000fd5b90600052602060002001548361477791906155e6565b92506147b1565b60018783815181106147a057634e487b7160e01b600052603260045260246000fd5b911515602092830291909101909101525b50806147bc816156a9565b9150506146a6565b5060005b888110156148f2578581815181106147f057634e487b7160e01b600052603260045260246000fd5b6020026020010151156148b15783818154811061481d57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154826127106148369190615631565b8386848154811061485757634e487b7160e01b600052603260045260246000fd5b906000526020600020015461486c9190615612565b61487691906155fe565b61488091906155e6565b8382815181106148a057634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506148e0565b60008382815181106148d357634e487b7160e01b600052603260045260246000fd5b6020026020010181815250505b806148ea816156a9565b9150506147c8565b50909998505050505050505050565b60008061490f838587612ce6565b90506000805b87518110156149765787818151811061493e57634e487b7160e01b600052603260045260246000fd5b60200260200101518261495191906155e6565b915082821061496457925061252d915050565b8061496e816156a9565b915050614915565b5060018751612fb79190615631565b61498f8383614bbd565b61499c6000848484613d8d565b610a955760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161095f565b60006001614a1084610f17565b614a1a9190615631565b600083815260086020526040902054909150808214614a6d576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090614ab290600190615631565b6000838152600a602052604081205460098054939450909284908110614ae857634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060098381548110614b1757634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480614b5d57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000614b8483610f17565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6001600160a01b038216614c135760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161095f565b6000818152600360205260409020546001600160a01b031615614c785760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161095f565b614c8460008383613662565b6001600160a01b0382166000908152600460205260408120805460019290614cad9084906155e6565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054614d1790615674565b90600052602060002090601f016020900481019282614d395760008555614d7f565b82601f10614d525782800160ff19823516178555614d7f565b82800160010185558215614d7f579182015b82811115614d7f578235825591602001919060010190614d64565b50614d8b929150614e3d565b5090565b828054828255906000526020600020908101928215614d7f579160200282015b82811115614d7f578251825591602001919060010190614daf565b828054614dd690615674565b90600052602060002090601f016020900481019282614df85760008555614d7f565b82601f10614e1157805160ff1916838001178555614d7f565b82800160010185558215614d7f5791820182811115614d7f578251825591602001919060010190614daf565b5b80821115614d8b5760008155600101614e3e565b600067ffffffffffffffff831115614e6c57614e6c615704565b614e7f601f8401601f19166020016155b5565b9050828152838383011115614e9357600080fd5b828260208301376000602084830101529392505050565b600082601f830112614eba578081fd5b8135602067ffffffffffffffff821115614ed657614ed6615704565b8160051b614ee58282016155b5565b838152828101908684018388018501891015614eff578687fd5b8693505b85841015614f21578035835260019390930192918401918401614f03565b50979650505050505050565b600060208284031215614f3e578081fd5b8135614f498161571a565b9392505050565b600060208284031215614f61578081fd5b8151614f498161571a565b60008060408385031215614f7e578081fd5b8235614f898161571a565b91506020830135614f998161571a565b809150509250929050565b600080600060608486031215614fb8578081fd5b8335614fc38161571a565b92506020840135614fd38161571a565b929592945050506040919091013590565b60008060008060808587031215614ff9578081fd5b84356150048161571a565b935060208501356150148161571a565b925060408501359150606085013567ffffffffffffffff811115615036578182fd5b8501601f81018713615046578182fd5b61505587823560208401614e52565b91505092959194509250565b60008060408385031215615073578182fd5b823561507e8161571a565b915060208301358015158114614f99578182fd5b600080604083850312156150a4578182fd5b82356150af8161571a565b946020939093013593505050565b600080602083850312156150cf578182fd5b823567ffffffffffffffff808211156150e6578384fd5b818501915085601f8301126150f9578384fd5b813581811115615107578485fd5b8660208260051b850101111561511b578485fd5b60209290920196919550909350505050565b60006020828403121561513e578081fd5b813567ffffffffffffffff811115615154578182fd5b61252d84828501614eaa565b600060208284031215615171578081fd5b8135614f498161572f565b60006020828403121561518d578081fd5b8151614f498161572f565b600080602083850312156151aa578182fd5b823567ffffffffffffffff808211156151c1578384fd5b818501915085601f8301126151d4578384fd5b8135818111156151e2578485fd5b86602082850101111561511b578485fd5b600060208284031215615204578081fd5b813567ffffffffffffffff81111561521a578182fd5b8201601f8101841361522a578182fd5b61252d84823560208401614e52565b60006020828403121561524a578081fd5b5035919050565b60008060408385031215615263578182fd5b82359150602083013567ffffffffffffffff811115615280578182fd5b61528c85828601614eaa565b9150509250929050565b600080604083850312156152a8578182fd5b50508035926020909101359150565b600081518084526152cf816020860160208601615648565b601f01601f19169290920160200192915050565b600082516152f5818460208701615648565b9190910192915050565b60008351615311818460208801615648565b835190830190615325818360208801615648565b01949350505050565b60008451615340818460208901615648565b845190830190615354818360208901615648565b8451910190615367818360208801615648565b0195945050505050565b6000895160206153848285838f01615648565b8a51918401916153978184848f01615648565b8a519201916153a98184848e01615648565b89519201916153bb8184848d01615648565b88519201916153cd8184848c01615648565b87519201916153df8184848b01615648565b86519201916153f18184848a01615648565b85519201916154038184848901615648565b919091019b9a5050505050505050505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261544860808301846152b7565b9695505050505050565b6000602080830181845280855180835260408601915060408160051b8701019250838701855b828110156154a657603f198886030184526154948583516152b7565b94509285019290850190600101615478565b5092979650505050505050565b60006020808301818452808551808352604092508286019150828160051b870101848801865b8381101561551857888303603f19018552815180518452870151878401879052615505878501826152b7565b95880195935050908601906001016154d9565b509098975050505050505050565b602080825282518282018190526000919060409081850190868401855b8281101561556a578151805185528601511515868501529284019290850190600101615543565b5091979650505050505050565b602081526000614f4960208301846152b7565b8381526060602082015260006155a360608301856152b7565b90508215156040830152949350505050565b604051601f8201601f1916810167ffffffffffffffff811182821017156155de576155de615704565b604052919050565b600082198211156155f9576155f96156d8565b500190565b60008261560d5761560d6156ee565b500490565b600081600019048311821515161561562c5761562c6156d8565b500290565b600082821015615643576156436156d8565b500390565b60005b8381101561566357818101518382015260200161564b565b838111156116df5750506000910152565b600181811c9082168061568857607f821691505b602082108114156119dd57634e487b7160e01b600052602260045260246000fd5b60006000198214156156bd576156bd6156d8565b5060010190565b6000826156d3576156d36156ee565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610cf657600080fd5b6001600160e01b031981168114610cf657600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220dbf221c92c63384891c5e09ebb7c688fb0c445b881c147b4f0e51ea4cc2f0a3964736f6c63430008040033000000000000000000000000031920cc2d9f5c10b444fd44009cd64f829e7be2
Deployed Bytecode
0x6080604052600436106102a75760003560e01c80638da5cb5b11610164578063c87b56dd116100c6578063ee14ae131161008a578063f39cccf911610064578063f39cccf9146107cc578063f8e93ef9146107f9578063fa6eadb11461080c57600080fd5b8063ee14ae131461075f578063f1311a8d1461078c578063f2fde38b146107ac57600080fd5b8063c87b56dd14610696578063d2df45e9146106b6578063d94e8ae2146106d6578063e8fbc4c214610703578063e985e9c51461071657600080fd5b8063ac44600211610128578063ba4f0a0e11610102578063ba4f0a0e14610635578063bfee771614610656578063c83827ff1461067657600080fd5b8063ac446002146105f8578063b66a0e5d14610600578063b88d4fde1461061557600080fd5b80638da5cb5b1461055857806395d89b41146105765780639770c31d1461058b5780639f11920b146105b8578063a22cb465146105d857600080fd5b806342842e0e1161020d5780636352211e116101d157806370a08231116101ab57806370a0823114610503578063715018a61461052357806379ce78581461053857600080fd5b80636352211e146104b457806363953bcb146104d45780636f0c3d2e146104e957600080fd5b806342842e0e1461041f57806342966c681461043f5780634c400d221461045f5780634f6ccce71461047457806355f804b31461049457600080fd5b80631dfc1f991161026f5780633326194d116102495780633326194d146103d657806334452f38146103eb578063346de50a1461040057600080fd5b80631dfc1f991461037c57806323b872dd146103965780632f745c59146103b657600080fd5b806301ffc9a7146102ac57806306fdde03146102e1578063081812fc14610303578063095ea7b31461033b57806318160ddd1461035d575b600080fd5b3480156102b857600080fd5b506102cc6102c7366004615160565b610847565b60405190151581526020015b60405180910390f35b3480156102ed57600080fd5b506102f6610858565b6040516102d89190615577565b34801561030f57600080fd5b5061032361031e366004615239565b6108ea565b6040516001600160a01b0390911681526020016102d8565b34801561034757600080fd5b5061035b610356366004615092565b610984565b005b34801561036957600080fd5b506009545b6040519081526020016102d8565b34801561038857600080fd5b5066470de4df82000061036e565b3480156103a257600080fd5b5061035b6103b1366004614fa4565b610a9a565b3480156103c257600080fd5b5061036e6103d1366004615092565b610b16565b3480156103e257600080fd5b5061035b610bac565b3480156103f757600080fd5b5061035b610c02565b34801561040c57600080fd5b506020546102cc90610100900460ff1681565b34801561042b57600080fd5b5061035b61043a366004614fa4565b610c57565b34801561044b57600080fd5b5061035b61045a366004615239565b610c72565b34801561046b57600080fd5b5061035b610cf9565b34801561048057600080fd5b5061036e61048f366004615239565b610d54565b3480156104a057600080fd5b5061035b6104af366004615198565b610df5565b3480156104c057600080fd5b506103236104cf366004615239565b610e49565b3480156104e057600080fd5b5061035b610ec0565b3480156104f557600080fd5b506020546102cc9060ff1681565b34801561050f57600080fd5b5061036e61051e366004614f2d565b610f17565b34801561052f57600080fd5b5061035b610f9e565b34801561054457600080fd5b5061035b610553366004615251565b610ff2565b34801561056457600080fd5b506000546001600160a01b0316610323565b34801561058257600080fd5b506102f6611059565b34801561059757600080fd5b5061036e6105a6366004615239565b600f6020526000908152604090205481565b3480156105c457600080fd5b5061035b6105d3366004615239565b611068565b3480156105e457600080fd5b5061035b6105f3366004615061565b611461565b61035b611526565b34801561060c57600080fd5b5061035b611606565b34801561062157600080fd5b5061035b610630366004614fe4565b611663565b34801561064157600080fd5b506020546102cc906301000000900460ff1681565b34801561066257600080fd5b506020546102cc9062010000900460ff1681565b34801561068257600080fd5b506102f6610691366004615239565b6116e5565b3480156106a257600080fd5b506102f66106b1366004615239565b61177f565b3480156106c257600080fd5b5061036e6106d1366004615296565b6117d6565b3480156106e257600080fd5b506106f66106f1366004614f2d565b611807565b6040516102d891906154b3565b61035b610711366004615296565b6119e3565b34801561072257600080fd5b506102cc610731366004614f6c565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561076b57600080fd5b5061077f61077a36600461512d565b611d96565b6040516102d89190615526565b34801561079857600080fd5b5061035b6107a736600461512d565b611f12565b3480156107b857600080fd5b5061035b6107c7366004614f2d565b612017565b3480156107d857600080fd5b506107ec6107e736600461512d565b6120cd565b6040516102d89190615452565b61035b6108073660046150bd565b612243565b34801561081857600080fd5b506102cc6108273660046151f3565b8051602081830181018051600e8252928201919093012091525460ff1681565b6000610852826123ab565b92915050565b60606001805461086790615674565b80601f016020809104026020016040519081016040528092919081815260200182805461089390615674565b80156108e05780601f106108b5576101008083540402835291602001916108e0565b820191906000526020600020905b8154815290600101906020018083116108c357829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b03166109685760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061098f82610e49565b9050806001600160a01b0316836001600160a01b031614156109fd5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161095f565b336001600160a01b0382161480610a195750610a198133610731565b610a8b5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161095f565b610a9583836123d0565b505050565b610aa5335b8261243e565b610b0b5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606482015260840161095f565b610a95838383612535565b6000610b2183610f17565b8210610b835760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161095f565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6000546001600160a01b03163314610bf45760405162461bcd60e51b81526020600482018190526024820152600080516020615746833981519152604482015260640161095f565b6020805462ff000019169055565b6000546001600160a01b03163314610c4a5760405162461bcd60e51b81526020600482018190526024820152600080516020615746833981519152604482015260640161095f565b6020805461ff0019169055565b610a9583838360405180602001604052806000815250611663565b610c7b33610a9f565b610ced5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000606482015260840161095f565b610cf6816126e0565b50565b6000546001600160a01b03163314610d415760405162461bcd60e51b81526020600482018190526024820152600080516020615746833981519152604482015260640161095f565b6020805462ff0000191662010000179055565b6000610d5f60095490565b8210610dc25760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161095f565b60098281548110610de357634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000546001600160a01b03163314610e3d5760405162461bcd60e51b81526020600482018190526024820152600080516020615746833981519152604482015260640161095f565b610a9560228383614d0b565b6000818152600360205260408120546001600160a01b0316806108525760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161095f565b6000546001600160a01b03163314610f085760405162461bcd60e51b81526020600482018190526024820152600080516020615746833981519152604482015260640161095f565b6020805463ff00000019169055565b60006001600160a01b038216610f825760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161095f565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b03163314610fe65760405162461bcd60e51b81526020600482018190526024820152600080516020615746833981519152604482015260640161095f565b610ff06000612787565b565b6000546001600160a01b0316331461103a5760405162461bcd60e51b81526020600482018190526024820152600080516020615746833981519152604482015260640161095f565b60008281526010602090815260409091208251610a9592840190614d8f565b60606002805461086790615674565b6020546301000000900460ff166110b95760405162461bcd60e51b815260206004820152601560248201527414995c9bdb1b081a5cc81b9bdd08195b98589b1959605a1b604482015260640161095f565b6110c281610e49565b6001600160a01b0316336001600160a01b0316146111225760405162461bcd60e51b815260206004820152601660248201527f4f6e6c79206f776e65722063616e207265726f6c6c2e00000000000000000000604482015260640161095f565b6017546000828152600f602052604090205461113e9042615631565b111561118c5760405162461bcd60e51b815260206004820152601c60248201527f43616e206e6f74207265726f6c6c206166746572206f6e652064617900000000604482015260640161095f565b6000818152600d6020526040812080546111a590615674565b80601f01602080910402602001604051908101604052809291908181526020018280546111d190615674565b801561121e5780601f106111f35761010080835404028352916020019161121e565b820191906000526020600020905b81548152906001019060200180831161120157829003601f168201915b50505050509050600061123482600060026127d7565b9050600061124583600260046127d7565b90506000611252836128e6565b9050600061125f836128e6565b9050600061126c87612930565b9050600061127b8484846129d7565b9050600e8160405161128d91906152e3565b9081526040519081900360200190205460ff16156113095760006112b083612a0a565b9050600081516112c186888d612ce6565b6112cb91906156c4565b90506113048a8787878686815181106112f457634e487b7160e01b600052603260045260246000fd5b6020026020010151886000612d70565b925050505b600e8160405161131991906152e3565b9081526040519081900360200190205460ff16156113965760405162461bcd60e51b815260206004820152603460248201527f436f756c64206e6f74207265726f6c6c20696e746f20612076616c69642070656044820152733a1610383632b0b9b2903a393c9030b3b0b4b71760611b606482015260840161095f565b6000888152600d6020908152604090912082516113b592840190614dca565b506001600e826040516113c891906152e3565b908152604051908190036020018120805492151560ff1990931692909217909155600090600e906113fa908a906152e3565b908152604051908190036020018120805492151560ff199093169290921790915533907fd3622a5ce603be2a4b013d804b9a24e109c6c66d7cbe4a82634bb461a29670619061144f908b90859060019061558a565b60405180910390a25050505050505050565b6001600160a01b0382163314156114ba5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161095f565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b0316331461156e5760405162461bcd60e51b81526020600482018190526024820152600080516020615746833981519152604482015260640161095f565b604051600090339047908381818185875af1925050503d80600081146115b0576040519150601f19603f3d011682016040523d82523d6000602084013e6115b5565b606091505b5050905080610cf65760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e00000000000000000000000000000000604482015260640161095f565b6000546001600160a01b0316331461164e5760405162461bcd60e51b81526020600482018190526024820152600080516020615746833981519152604482015260640161095f565b6020805463ff00ff0019166301000100179055565b61166d338361243e565b6116d35760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606482015260840161095f565b6116df84848484612fc2565b50505050565b600d60205260009081526040902080546116fe90615674565b80601f016020809104026020016040519081016040528092919081815260200182805461172a90615674565b80156117775780601f1061174c57610100808354040283529160200191611777565b820191906000526020600020905b81548152906001019060200180831161175a57829003601f168201915b505050505081565b6060600061178b613040565b905060006117988461304f565b90508151600014156117ab579392505050565b81816040516020016117be9291906152ff565b60405160208183030381529060405292505050919050565b601060205281600052604060002081815481106117f257600080fd5b90600052602060002001600091509150505481565b6060600061181483610f17565b905080611861576040805160008082526020820190925290611859565b6040805180820190915260008152606060208201528152602001906001900390816118315790505b509392505050565b60008167ffffffffffffffff81111561188a57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156118d057816020015b6040805180820190915260008152606060208201528152602001906001900390816118a85790505b50905060005b828110156118595760006118ea8683610b16565b6000818152600d602052604081208054929350909161190890615674565b80601f016020809104026020016040519081016040528092919081815260200182805461193490615674565b80156119815780601f1061195657610100808354040283529160200191611981565b820191906000526020600020905b81548152906001019060200180831161196457829003601f168201915b505050505090506040518060400160405280838152602001828152508484815181106119bd57634e487b7160e01b600052603260045260246000fd5b6020026020010181905250505080806119d5906156a9565b9150506118d6565b50919050565b60205462010000900460ff16611a335760405162461bcd60e51b815260206004820152601560248201527414995c9bdb1b081a5cc81b9bdd08195b98589b1959605a1b604482015260640161095f565b611a3c82610e49565b6001600160a01b0316336001600160a01b031614611a9c5760405162461bcd60e51b815260206004820152601660248201527f4f6e6c79206f776e65722063616e207265726f6c6c2e00000000000000000000604482015260640161095f565b66470de4df82000034811115611afe5760405162461bcd60e51b815260206004820152602160248201527f4e65656420746f2073656e64206d6f72652045544820666f72207265726f6c6c6044820152601760f91b606482015260840161095f565b80341115611b3e57336108fc611b148334615631565b6040518115909202916000818181858888f19350505050158015611b3c573d6000803e3d6000fd5b505b6000838152600d602052604081208054611b5790615674565b80601f0160208091040260200160405190810160405280929190818152602001828054611b8390615674565b8015611bd05780601f10611ba557610100808354040283529160200191611bd0565b820191906000526020600020905b815481529060010190602001808311611bb357829003601f168201915b505050505090506000611be682600060026127d7565b90506000611bf783600260046127d7565b90506000611c0484613169565b9050611c108682613270565b6000611c1b846128e6565b90506000611c28846128e6565b90506000611c3a8a8484878d8c61332c565b9050600e81604051611c4c91906152e3565b9081526040519081900360200190205460ff1615611cc95760405162461bcd60e51b815260206004820152603460248201527f436f756c64206e6f74207265726f6c6c20696e746f20612076616c69642070656044820152733a1610383632b0b9b2903a393c9030b3b0b4b71760611b606482015260840161095f565b60008a8152600d602090815260409091208251611ce892840190614dca565b506001600e82604051611cfb91906152e3565b908152604051908190036020018120805492151560ff1990931692909217909155600090600e90611d2d908a906152e3565b908152604051908190036020018120805492151560ff199093169290921790915533907fd3622a5ce603be2a4b013d804b9a24e109c6c66d7cbe4a82634bb461a296706190611d82908d90859060019061558a565b60405180910390a250505050505050505050565b60606000825167ffffffffffffffff811115611dc257634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611e0757816020015b6040805180820190915260008082526020820152815260200190600190039081611de05790505b5090504260005b8451811015611f09576000858281518110611e3957634e487b7160e01b600052603260045260246000fd5b6020026020010151905060175483600f600084815260200190815260200160002054611e659190615631565b11611eb257604051806040016040528082815260200160011515815250848381518110611ea257634e487b7160e01b600052603260045260246000fd5b6020026020010181905250611ef6565b604051806040016040528082815260200160001515815250848381518110611eea57634e487b7160e01b600052603260045260246000fd5b60200260200101819052505b5080611f01816156a9565b915050611e0e565b50909392505050565b6000546001600160a01b03163314611f5a5760405162461bcd60e51b81526020600482018190526024820152600080516020615746833981519152604482015260640161095f565b60205460ff1615611fad5760405162461bcd60e51b815260206004820152601d60248201527f43616e206f6e6c79206465762073696e676c65206d696e74206f6e6365000000604482015260640161095f565b8051600114611ffe5760405162461bcd60e51b815260206004820152601560248201527f43616e206f6e6c79206d696e74206f6e65207065740000000000000000000000604482015260640161095f565b6120078161333e565b506020805460ff19166001179055565b6000546001600160a01b0316331461205f5760405162461bcd60e51b81526020600482018190526024820152600080516020615746833981519152604482015260640161095f565b6001600160a01b0381166120c45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161095f565b610cf681612787565b60606000825167ffffffffffffffff8111156120f957634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561212c57816020015b60608152602001906001900390816121175790505b50905060005b835181101561223c57600d600085838151811061215f57634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020805461218090615674565b80601f01602080910402602001604051908101604052809291908181526020018280546121ac90615674565b80156121f95780601f106121ce576101008083540402835291602001916121f9565b820191906000526020600020905b8154815290600101906020018083116121dc57829003601f168201915b505050505082828151811061221e57634e487b7160e01b600052603260045260246000fd5b60200260200101819052508080612234906156a9565b915050612132565b5092915050565b6002600b5414156122965760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161095f565b6002600b55602054610100900460ff166122f25760405162461bcd60e51b815260206004820152601760248201527f4d696e74696e67206973206e6f7420656e61626c65642e000000000000000000604482015260640161095f565b60006122fd60095490565b60215490915061230d83836155e6565b11156123655760405162461bcd60e51b815260206004820152602160248201527f5468657265206172656e27742074686973206d616e792070657473206c6566746044820152601760f91b606482015260840161095f565b6123a183838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061333e92505050565b50506001600b5550565b60006001600160e01b0319821663780e9d6360e01b1480610852575061085282613612565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061240582610e49565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600360205260408120546001600160a01b03166124b75760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161095f565b60006124c283610e49565b9050806001600160a01b0316846001600160a01b031614806124fd5750836001600160a01b03166124f2846108ea565b6001600160a01b0316145b8061252d57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661254882610e49565b6001600160a01b0316146125b05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161095f565b6001600160a01b0382166126125760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161095f565b61261d838383613662565b6126286000826123d0565b6001600160a01b0383166000908152600460205260408120805460019290612651908490615631565b90915550506001600160a01b038216600090815260046020526040812080546001929061267f9084906155e6565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006126eb82610e49565b90506126f981600084613662565b6127046000836123d0565b6001600160a01b038116600090815260046020526040812080546001929061272d908490615631565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60608360006127e68585615631565b67ffffffffffffffff81111561280c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612836576020820181803683370190505b509050845b848110156128dc5782818151811061286357634e487b7160e01b600052603260045260246000fd5b01602001517fff0000000000000000000000000000000000000000000000000000000000000016826128958884615631565b815181106128b357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350806128d4816156a9565b91505061283b565b5095945050505050565b6000806128f683600060016127d7565b9050600061290784600160026127d7565b90506129128161366d565b61291b8361366d565b61292690600a615612565b61252d91906155e6565b6129696040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040518060c0016040528061297f600085613936565b815260200161298f600185613936565b815260200161299f600285613936565b81526020016129af600385613936565b81526020016129bf600485613936565b81526020016129cf600585613936565b905292915050565b606060006129e4836139a9565b9050612a016129f286613a50565b6129fb86613a50565b83613bdd565b95945050505050565b60408051600680825260e08201909252606091600091906020820160c08036833701905050905060008360000151606314612a8057600182600081518110612a6257634e487b7160e01b600052603260045260246000fd5b9115156020928302919091019091015280612a7c816156a9565b9150505b8360200151606314612acc576001828181518110612aae57634e487b7160e01b600052603260045260246000fd5b9115156020928302919091019091015280612ac8816156a9565b9150505b8360400151606314612b1957600182600281518110612afb57634e487b7160e01b600052603260045260246000fd5b9115156020928302919091019091015280612b15816156a9565b9150505b8360600151606314612b6657600182600381518110612b4857634e487b7160e01b600052603260045260246000fd5b9115156020928302919091019091015280612b62816156a9565b9150505b8360800151606314612bb357600182600481518110612b9557634e487b7160e01b600052603260045260246000fd5b9115156020928302919091019091015280612baf816156a9565b9150505b8360a00151606314612c0057600182600581518110612be257634e487b7160e01b600052603260045260246000fd5b9115156020928302919091019091015280612bfc816156a9565b9150505b60008167ffffffffffffffff811115612c2957634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015612c52578160200160208202803683370190505b5090506000805b8451811015612cdb57848181518110612c8257634e487b7160e01b600052603260045260246000fd5b602002602001015115612cc95780838381518110612cb057634e487b7160e01b600052603260045260246000fd5b602090810291909101015281612cc5816156a9565b9250505b80612cd3816156a9565b915050612c59565b509095945050505050565b600080333a4342612cf8600183615631565b604080516001600160a01b039096166020870152850193909352606084019190915260808301524060a082015260c0810186905260e0810185905261010081018490526101200160408051601f1981840301815291905280516020909101209050612d65612710826156c4565b612a019060016155e6565b6040805160c08101825285518152602080870151908201528582015191810191909152606080860151818301526080808701519083015260a080870151908301529060009085612e7457612dcc8a600089600001518888613c2e565b9150601254821415612e6c5760118054612de590615674565b80601f0160208091040260200160405190810160405280929190818152602001828054612e1190615674565b8015612e5e5780601f10612e3357610100808354040283529160200191612e5e565b820191906000526020600020905b815481529060010190602001808311612e4157829003601f168201915b505050505092505050612fb7565b818152612fa7565b6001861415612eb457612e8f8a600189602001518888613c2e565b9150601254821415612ea85760118054612de590615674565b60208101829052612fa7565b6002861415612ef457612ecf8a600289604001518888613c2e565b9150601254821415612ee85760118054612de590615674565b60408101829052612fa7565b6003861415612f3457612f0f8a600389606001518888613c2e565b9150601254821415612f285760118054612de590615674565b60608101829052612fa7565b6004861415612f7457612f4f8a600489608001518888613c2e565b9150601254821415612f685760118054612de590615674565b60808101829052612fa7565b612f868a60058960a001518888613c2e565b9150601254821415612f9f5760118054612de590615674565b60a081018290525b612fb28989836129d7565b925050505b979650505050505050565b612fcd848484612535565b612fd984848484613d8d565b6116df5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161095f565b60606022805461086790615674565b6060816130735750506040805180820190915260018152600360fc1b602082015290565b8160005b811561309d5780613087816156a9565b91506130969050600a836155fe565b9150613077565b60008167ffffffffffffffff8111156130c657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156130f0576020820181803683370190505b5090505b841561252d57613105600183615631565b9150613112600a866156c4565b61311d9060306155e6565b60f81b81838151811061314057634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613162600a866155fe565b94506130f4565b6131a26040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b60006131b183600460066127d7565b905060006131c284600660086127d7565b905060006131d3856008600a6127d7565b905060006131e486600a600c6127d7565b905060006131f587600c600e6127d7565b9050600061320688600e60106127d7565b90506040518060c0016040528061321c886128e6565b815260200161322a876128e6565b8152602001613238866128e6565b8152602001613246856128e6565b8152602001613254846128e6565b8152602001613262836128e6565b905298975050505050505050565b600061327b82612a0a565b90506000805b82518110156132d4578281815181106132aa57634e487b7160e01b600052603260045260246000fd5b60200260200101518514156132c257600191506132d4565b806132cc816156a9565b915050613281565b50806116df5760405162461bcd60e51b815260206004820152602160248201527f736c6f74546f5265726f6c6c206973206e6f742076616c696420666f722070656044820152601d60fa1b606482015260840161095f565b6060612fb78787878787876001612d70565b60005b815181101561360e57600082828151811061336c57634e487b7160e01b600052603260045260246000fd5b6020908102919091010151600c546040516331a9108f60e11b81526004810183905291925033916001600160a01b0390911690636352211e9060240160206040518083038186803b1580156133c057600080fd5b505afa1580156133d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133f89190614f50565b6001600160a01b03161461345f5760405162461bcd60e51b815260206004820152602860248201527f5573657220646f6573206e6f74206f776e2074686520636f72726573706f6e64604482015267696e67207a756e6b60c01b606482015260840161095f565b6134693382613ee5565b600061347482613eff565b905061347f816141bd565b61355e57600e8160405161349391906152e3565b9081526040519081900360200190205460ff16806134b557506134b5816142a9565b156134c6576134c382613eff565b90505b600e816040516134d691906152e3565b9081526040519081900360200190205460ff16806134f857506134f8816142a9565b15806135085750613508816141bd565b61355e5760405162461bcd60e51b815260206004820152602160248201527f556e61626c6520746f206d696e742c20706c656173652074727920616761696e6044820152601760f91b606482015260840161095f565b6000828152600d60209081526040909120825161357d92840190614dca565b506001600e8260405161359091906152e3565b9081526040805160209281900383018120805460ff1916941515949094179093556000858152600f909252812042905533917fd3622a5ce603be2a4b013d804b9a24e109c6c66d7cbe4a82634bb461a2967061916135f1918691869161558a565b60405180910390a250508080613606906156a9565b915050613341565b5050565b60006001600160e01b031982166380ac58cd60e01b148061364357506001600160e01b03198216635b5e139f60e01b145b8061085257506301ffc9a760e01b6001600160e01b0319831614610852565b610a958383836142bc565b6040805180820190915260018152600360fc1b6020918201528151908201206000907f044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d14156136be57506000919050565b6040805180820190915260018152603160f81b6020918201528251908301207fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6141561370c57506001919050565b6040805180820190915260018152601960f91b6020918201528251908301207fad7c5bef027816a800da1736444fb58a807ef4c9603b7848673f7e3a68eb14a5141561375a57506002919050565b6040805180820190915260018152603360f81b6020918201528251908301207f2a80e1ef1d7842f27f2e6be0972bb708b9a135c38860dbe73c27c3486c34f4de14156137a857506003919050565b6040805180820190915260018152600d60fa1b6020918201528251908301207f13600b294191fc92924bb3ce4b969c1e7e2bab8f4c93c3fc6d0a51733df3c06014156137f657506004919050565b6040805180820190915260018152603560f81b6020918201528251908301207fceebf77a833b30520287ddd9478ff51abbdffa30aa90a8d655dba0e8a79ce0c1141561384457506005919050565b6040805180820190915260018152601b60f91b6020918201528251908301207fe455bf8ea6e7463a1046a0b52804526e119b4bf5136279614e0b1e8e296a4e2d141561389257506006919050565b6040805180820190915260018152603760f81b6020918201528251908301207f52f1a9b320cab38e5da8a8f97989383aab0a49165fc91c737310e4f7e982102114156138e057506007919050565b6040805180820190915260018152600760fb1b6020918201528251908301207fe4b1702d9298fee62dfeccc57d322a463ad55ca201256d01f62b45b2e1c21c10141561392e57506008919050565b506009919050565b60008083600581111561395957634e487b7160e01b600052602160045260246000fd5b60008181526010602052604081208054929350919061397a87878685614374565b90508061398e576063945050505050610852565b600061399c848887866143d3565b9550610852945050505050565b6139e26040518060c001604052806060815260200160608152602001606081526020016060815260200160608152602001606081525090565b6040518060c001604052806139fa8460000151613a50565b8152602001613a0c8460200151613a50565b8152602001613a1e8460400151613a50565b8152602001613a308460600151613a50565b8152602001613a428460800151613a50565b81526020016129cf8460a001515b606081613a75575050604080518082019091526002815261030360f41b602082015290565b8160011415613a9c575050604080518082019091526002815261303160f01b602082015290565b8160021415613ac3575050604080518082019091526002815261181960f11b602082015290565b8160031415613aea575050604080518082019091526002815261303360f01b602082015290565b8160041415613b115750506040805180820190915260028152610c0d60f21b602082015290565b8160051415613b38575050604080518082019091526002815261303560f01b602082015290565b8160061415613b5f575050604080518082019091526002815261181b60f11b602082015290565b8160071415613b86575050604080518082019091526002815261303760f01b602082015290565b8160081415613bad575050604080518082019091526002815261060760f31b602082015290565b8160091415613bd4575050604080518082019091526002815261303960f01b602082015290565b6108528261304f565b60608383836000015184602001518560400151866060015187608001518860a00151604051602001613c16989796959493929190615371565b60405160208183030381529060405290509392505050565b600080856005811115613c5157634e487b7160e01b600052602160045260246000fd5b600081815260106020526040812080549293509190613c7189888461445a565b90506000613c818a8a85856145c5565b90506000805b84811015613cda576000838281518110613cb157634e487b7160e01b600052603260045260246000fd5b60200260200101511115613cc85760019150613cda565b80613cd2816156a9565b915050613c87565b5080613d52578715613d425780613d3d5760405162461bcd60e51b815260206004820152602160248201527f556e61626c6520746f206d696e742e20506c656173652074727920616761696e6044820152601760f91b606482015260840161095f565b613d52565b6012549650505050505050612a01565b613d7d828d8d6005811115613d7757634e487b7160e01b600052602160045260246000fd5b8d614901565b9c9b505050505050505050505050565b60006001600160a01b0384163b15613eda57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613dd1903390899088908890600401615416565b602060405180830381600087803b158015613deb57600080fd5b505af1925050508015613e1b575060408051601f3d908101601f19168201909252613e189181019061517c565b60015b613ec0573d808015613e49576040519150601f19603f3d011682016040523d82523d6000602084013e613e4e565b606091505b508051613eb85760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161095f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061252d565b506001949350505050565b61360e828260405180602001604052806000815250614985565b60606000613f12601e84600160056143d3565b90508060061415613fb05760138054613f2a90615674565b80601f0160208091040260200160405190810160405280929190818152602001828054613f5690615674565b8015613fa35780601f10613f7857610100808354040283529160200191613fa3565b820191906000526020600020905b815481529060010190602001808311613f8657829003601f168201915b5050505050915050919050565b6000613fea601f8381548110613fd657634e487b7160e01b600052603260045260246000fd5b9060005260206000200185600060076143d3565b9050816005141561411e578061408e576014805461400790615674565b80601f016020809104026020016040519081016040528092919081815260200182805461403390615674565b80156140805780601f1061405557610100808354040283529160200191614080565b820191906000526020600020905b81548152906001019060200180831161406357829003601f168201915b505050505092505050919050565b80600214156140a4576015805461400790615674565b80600614156140ba576016805461400790615674565b8015806140c75750806002145b806140d25750806006145b61411e5760405162461bcd60e51b815260206004820152601960248201527f496e76616c69642070657420736b696e20666f7220726f636b00000000000000604482015260640161095f565b600061412985612930565b905060006141388385846129d7565b9050600e8160405161414a91906152e3565b9081526040519081900360200190205460ff1615612a0157600061416d83612a0a565b90506000815161417e87878b612ce6565b61418891906156c4565b90506141b1888688878686815181106112f457634e487b7160e01b600052603260045260246000fd5b98975050505050505050565b600061426482601380546141d090615674565b80601f01602080910402602001604051908101604052809291908181526020018280546141fc90615674565b80156142495780601f1061421e57610100808354040283529160200191614249565b820191906000526020600020905b81548152906001019060200180831161422c57829003601f168201915b50505050508051602091820120825192909101919091201490565b8061427b575061427b82601480546141d090615674565b80614292575061429282601580546141d090615674565b80610852575061085282601680546141d090615674565b600061085282601180546141d090615674565b6001600160a01b0383166143175761431281600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b61433a565b816001600160a01b0316836001600160a01b03161461433a5761433a8382614a03565b6001600160a01b03821661435157610a9581614aa0565b826001600160a01b0316826001600160a01b031614610a9557610a958282614b79565b600080614382858585612ce6565b90508060188760058111156143a757634e487b7160e01b600052602160045260246000fd5b600681106143c557634e487b7160e01b600052603260045260246000fd5b015410159695505050505050565b6000806143e1838587612ce6565b90506000805b875481101561444b5787818154811061441057634e487b7160e01b600052603260045260246000fd5b90600052602060002001548261442691906155e6565b915082821061443957925061252d915050565b80614443816156a9565b9150506143e7565b508654612fb790600190615631565b6060600061449f84600087600581111561448457634e487b7160e01b600052602160045260246000fd5b61448f906002615612565b61449a9060046155e6565b6127d7565b905060006144e4858760058111156144c757634e487b7160e01b600052602160045260246000fd5b6144d2906002615612565b6144dd9060066155e6565b60106127d7565b905060008467ffffffffffffffff81111561450f57634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561454257816020015b606081526020019060019003908161452d5790505b50905060005b858110156145ba578361455a82613a50565b8460405160200161456d9392919061532e565b60405160208183030381529060405282828151811061459c57634e487b7160e01b600052603260045260246000fd5b602002602001018190525080806145b2906156a9565b915050614548565b509695505050505050565b606060008367ffffffffffffffff8111156145f057634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015614619578160200160208202803683370190505b509050600086600581111561463e57634e487b7160e01b600052602160045260246000fd5b60008181526010602052604081209192508667ffffffffffffffff81111561467657634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561469f578160200160208202803683370190505b5090506000805b888110156147c45760008882815181106146d057634e487b7160e01b600052603260045260246000fd5b602002602001015190508482815481106146fa57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154600014806147325750600e8160405161471e91906152e3565b9081526040519081900360200190205460ff165b8061473c57508a82145b1561477e5784828154811061476157634e487b7160e01b600052603260045260246000fd5b90600052602060002001548361477791906155e6565b92506147b1565b60018783815181106147a057634e487b7160e01b600052603260045260246000fd5b911515602092830291909101909101525b50806147bc816156a9565b9150506146a6565b5060005b888110156148f2578581815181106147f057634e487b7160e01b600052603260045260246000fd5b6020026020010151156148b15783818154811061481d57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154826127106148369190615631565b8386848154811061485757634e487b7160e01b600052603260045260246000fd5b906000526020600020015461486c9190615612565b61487691906155fe565b61488091906155e6565b8382815181106148a057634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506148e0565b60008382815181106148d357634e487b7160e01b600052603260045260246000fd5b6020026020010181815250505b806148ea816156a9565b9150506147c8565b50909998505050505050505050565b60008061490f838587612ce6565b90506000805b87518110156149765787818151811061493e57634e487b7160e01b600052603260045260246000fd5b60200260200101518261495191906155e6565b915082821061496457925061252d915050565b8061496e816156a9565b915050614915565b5060018751612fb79190615631565b61498f8383614bbd565b61499c6000848484613d8d565b610a955760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161095f565b60006001614a1084610f17565b614a1a9190615631565b600083815260086020526040902054909150808214614a6d576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090614ab290600190615631565b6000838152600a602052604081205460098054939450909284908110614ae857634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060098381548110614b1757634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480614b5d57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000614b8483610f17565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6001600160a01b038216614c135760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161095f565b6000818152600360205260409020546001600160a01b031615614c785760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161095f565b614c8460008383613662565b6001600160a01b0382166000908152600460205260408120805460019290614cad9084906155e6565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054614d1790615674565b90600052602060002090601f016020900481019282614d395760008555614d7f565b82601f10614d525782800160ff19823516178555614d7f565b82800160010185558215614d7f579182015b82811115614d7f578235825591602001919060010190614d64565b50614d8b929150614e3d565b5090565b828054828255906000526020600020908101928215614d7f579160200282015b82811115614d7f578251825591602001919060010190614daf565b828054614dd690615674565b90600052602060002090601f016020900481019282614df85760008555614d7f565b82601f10614e1157805160ff1916838001178555614d7f565b82800160010185558215614d7f5791820182811115614d7f578251825591602001919060010190614daf565b5b80821115614d8b5760008155600101614e3e565b600067ffffffffffffffff831115614e6c57614e6c615704565b614e7f601f8401601f19166020016155b5565b9050828152838383011115614e9357600080fd5b828260208301376000602084830101529392505050565b600082601f830112614eba578081fd5b8135602067ffffffffffffffff821115614ed657614ed6615704565b8160051b614ee58282016155b5565b838152828101908684018388018501891015614eff578687fd5b8693505b85841015614f21578035835260019390930192918401918401614f03565b50979650505050505050565b600060208284031215614f3e578081fd5b8135614f498161571a565b9392505050565b600060208284031215614f61578081fd5b8151614f498161571a565b60008060408385031215614f7e578081fd5b8235614f898161571a565b91506020830135614f998161571a565b809150509250929050565b600080600060608486031215614fb8578081fd5b8335614fc38161571a565b92506020840135614fd38161571a565b929592945050506040919091013590565b60008060008060808587031215614ff9578081fd5b84356150048161571a565b935060208501356150148161571a565b925060408501359150606085013567ffffffffffffffff811115615036578182fd5b8501601f81018713615046578182fd5b61505587823560208401614e52565b91505092959194509250565b60008060408385031215615073578182fd5b823561507e8161571a565b915060208301358015158114614f99578182fd5b600080604083850312156150a4578182fd5b82356150af8161571a565b946020939093013593505050565b600080602083850312156150cf578182fd5b823567ffffffffffffffff808211156150e6578384fd5b818501915085601f8301126150f9578384fd5b813581811115615107578485fd5b8660208260051b850101111561511b578485fd5b60209290920196919550909350505050565b60006020828403121561513e578081fd5b813567ffffffffffffffff811115615154578182fd5b61252d84828501614eaa565b600060208284031215615171578081fd5b8135614f498161572f565b60006020828403121561518d578081fd5b8151614f498161572f565b600080602083850312156151aa578182fd5b823567ffffffffffffffff808211156151c1578384fd5b818501915085601f8301126151d4578384fd5b8135818111156151e2578485fd5b86602082850101111561511b578485fd5b600060208284031215615204578081fd5b813567ffffffffffffffff81111561521a578182fd5b8201601f8101841361522a578182fd5b61252d84823560208401614e52565b60006020828403121561524a578081fd5b5035919050565b60008060408385031215615263578182fd5b82359150602083013567ffffffffffffffff811115615280578182fd5b61528c85828601614eaa565b9150509250929050565b600080604083850312156152a8578182fd5b50508035926020909101359150565b600081518084526152cf816020860160208601615648565b601f01601f19169290920160200192915050565b600082516152f5818460208701615648565b9190910192915050565b60008351615311818460208801615648565b835190830190615325818360208801615648565b01949350505050565b60008451615340818460208901615648565b845190830190615354818360208901615648565b8451910190615367818360208801615648565b0195945050505050565b6000895160206153848285838f01615648565b8a51918401916153978184848f01615648565b8a519201916153a98184848e01615648565b89519201916153bb8184848d01615648565b88519201916153cd8184848c01615648565b87519201916153df8184848b01615648565b86519201916153f18184848a01615648565b85519201916154038184848901615648565b919091019b9a5050505050505050505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261544860808301846152b7565b9695505050505050565b6000602080830181845280855180835260408601915060408160051b8701019250838701855b828110156154a657603f198886030184526154948583516152b7565b94509285019290850190600101615478565b5092979650505050505050565b60006020808301818452808551808352604092508286019150828160051b870101848801865b8381101561551857888303603f19018552815180518452870151878401879052615505878501826152b7565b95880195935050908601906001016154d9565b509098975050505050505050565b602080825282518282018190526000919060409081850190868401855b8281101561556a578151805185528601511515868501529284019290850190600101615543565b5091979650505050505050565b602081526000614f4960208301846152b7565b8381526060602082015260006155a360608301856152b7565b90508215156040830152949350505050565b604051601f8201601f1916810167ffffffffffffffff811182821017156155de576155de615704565b604052919050565b600082198211156155f9576155f96156d8565b500190565b60008261560d5761560d6156ee565b500490565b600081600019048311821515161561562c5761562c6156d8565b500290565b600082821015615643576156436156d8565b500390565b60005b8381101561566357818101518382015260200161564b565b838111156116df5750506000910152565b600181811c9082168061568857607f821691505b602082108114156119dd57634e487b7160e01b600052602260045260246000fd5b60006000198214156156bd576156bd6156d8565b5060010190565b6000826156d3576156d36156ee565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610cf657600080fd5b6001600160e01b031981168114610cf657600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220dbf221c92c63384891c5e09ebb7c688fb0c445b881c147b4f0e51ea4cc2f0a3964736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000031920cc2d9f5c10b444fd44009cd64f829e7be2
-----Decoded View---------------
Arg [0] : zunksAddress (address): 0x031920cc2D9F5c10B444FD44009cd64F829E7be2
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000031920cc2d9f5c10b444fd44009cd64f829e7be2
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.