Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
714 SCUMBUGS
Holders
64
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
5 SCUMBUGSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ScumbugsNFT
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
Yes with 31000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "erc721a/contracts/ERC721A.sol"; import "./Pausable.sol"; import "./ScumbugsMetadata.sol"; import "./OpenseaProxy.sol"; /** * @notice Smart contract for Scumbugs. * โญโโโโณโโโโณโฎโฑโญโณโโฎโญโโณโโโฎโญโฎโฑโญโณโโโโณโโโโฎ * โโญโโฎโโญโโฎโโโฑโโโโฐโฏโโโญโฎโโโโฑโโโญโโฎโโญโโฎโ * โโฐโโโซโโฑโฐโซโโฑโโโญโฎโญโฎโโฐโฏโฐโซโโฑโโโโฑโฐโซโฐโโโฎ * โฐโโโฎโโโฑโญโซโโฑโโโโโโโโญโโฎโโโฑโโโโญโโโโโฎโ * โโฐโโฏโโฐโโฏโโฐโโฏโโโโโโโฐโโฏโโฐโโฏโโฐโปโโโฐโโฏโ * โฐโโโโปโโโโปโโโโปโฏโฐโฏโฐโปโโโโปโโโโปโโโโปโโโโฏ */ contract ScumbugsNFT is ERC721A, Pausable, ScumbugsMetadata { // ---------------------- Variables ---------------------- address private proxyRegistryAddress; uint256 public unitPrice = 0.069 ether; uint32 public constant supply = 15341; uint16 public constant maxAmount = 20; bool private isOpenSeaProxyActive = true; // ---------------------- Constructor ---------------------- /** * @notice Constructor. */ constructor(bytes32 _siteUrl, address _ScumbugsValues, address _proxyRegistryAddress) ERC721A("Scumbugs", "SCUMBUGS") ScumbugsMetadata(_siteUrl, _ScumbugsValues) { proxyRegistryAddress = _proxyRegistryAddress; _safeMint(msg.sender, 341); } /** * @notice Returns the tokenId of the last minted Scumbug. */ function currentTokenId() view external returns (uint256) { return _currentIndex - 1; } /** * @notice Mints new NFT(s). */ function mintNFT(uint16 amount) external payable whenNotPaused { require(amount <= maxAmount, "Can't mint more than max amount"); require(msg.value >= (unitPrice * amount), "Value should be equal or greater than unit price * amount"); require((_currentIndex + amount - 1) < supply, "Can't mint that amount of NFTs"); _safeMint(msg.sender, amount); } /** * @notice Withdraws the funds in the contract and sends them to the contract's owner */ function withdraw() external { payable(owner()).transfer(address(this).balance); } /** * @notice Generates and stores metadata for given token id * @param metadataInput The data of the generated Scumbug */ function generateMetadata_w1o(MetadataInput memory metadataInput) external onlyOwner { uint256 tokenId = metadataInput.tokenId; bool generated = isGenerated(tokenId); require(!generated, "Metadata already generated for tokenId"); require(_currentIndex > tokenId, "NFT with tokenId does not exist"); delete generated; attributesMap[tokenId] = Attributes({ hand: metadataInput.hand, body: metadataInput.body, eyes: metadataInput.eyes, head: metadataInput.head, mouth: metadataInput.mouth, background_color: metadataInput.background_color, bug_type: metadataInput.bug_type, birthday: metadataInput.birthday }); txhashes[tokenId] = metadataInput.txHash; mediaIds1[tokenId] = metadataInput.mediaId1; mediaIds2[tokenId] = metadataInput.mediaId2; mediaBdayIds1[tokenId] = metadataInput.mediaBdayId1; mediaBdayIds2[tokenId] = metadataInput.mediaBdayId2; } /** * @notice Sets siteUrl new value */ function setSiteUrl(bytes32 _siteUrl) external onlyOwner { siteUrl = _siteUrl; } /** * @notice Sets the unit price */ function setUnitPrice(uint256 _unitPrice) external onlyOwner whenPaused { unitPrice = _unitPrice; } /** * @dev Override tokenURI to return json instead of URI. * Taken from GenesisRepot: https://etherscan.io/address/0x5d4683ba64ee6283bb7fdb8a91252f6aab32a110#code */ function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), 'ERC721Metadata: URI query for nonexistent token'); return _render(tokenId); } // function to disable gasless listings for security in case // opensea ever shuts down or is compromised // from CryptoCoven https://etherscan.io/address/0x5180db8f5c931aae63c74266b211f580155ecac8#code function setIsOpenSeaProxyActive(bool _isOpenSeaProxyActive) public onlyOwner { isOpenSeaProxyActive = _isOpenSeaProxyActive; } /** * @dev Override isApprovedForAll to allowlist user's OpenSea proxy accounts to enable gas-less listings. * Taken from CryptoCoven: https://etherscan.io/address/0x5180db8f5c931aae63c74266b211f580155ecac8#code */ function isApprovedForAll(address owner, address operator) public view override returns (bool) { // Get a reference to OpenSea's proxy registry contract by instantiating // the contract using the already existing address. ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); if (isOpenSeaProxyActive && address(proxyRegistry.proxies(owner)) == operator) { return true; } return super.isApprovedForAll(owner, operator); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Scumbugs Data Values */ contract ScumbugsValues { mapping(uint8 => bytes32) public handMap; mapping(uint8 => bytes32) public bodyMap; mapping(uint8 => bytes32) public eyesMap; mapping(uint8 => bytes32) public headMap; mapping(uint8 => bytes32) public mouthMap; mapping(uint8 => bytes32) public backgroundMap; mapping(uint8 => bytes32) public bugTypeMap; constructor() { // Initialize hand map handMap[0] = bytes32("No traits"); handMap[1] = bytes32("Bug You"); handMap[2] = bytes32("Smoke"); handMap[3] = bytes32("Money Talk"); handMap[4] = bytes32("Bug Spray"); handMap[5] = bytes32("Camcorder"); handMap[6] = bytes32("Golf Club"); handMap[7] = bytes32("Spicey"); handMap[8] = bytes32("Genius"); handMap[9] = bytes32("All In"); handMap[10] = bytes32("Fishing Rod"); handMap[11] = bytes32("Lactose Intolerant"); handMap[12] = bytes32("Pizza"); handMap[13] = bytes32("Scum Drink"); handMap[14] = bytes32("Selfie Stick"); handMap[15] = bytes32("Fake Watch"); handMap[16] = bytes32("Rings"); handMap[17] = bytes32("Boujee"); handMap[18] = bytes32("Scissorhands"); handMap[19] = bytes32("Artist"); handMap[20] = bytes32("Graffiti"); handMap[21] = bytes32("Lasso"); handMap[22] = bytes32("Mic"); handMap[23] = bytes32("Wood"); handMap[24] = bytes32("Spy"); handMap[25] = bytes32("Lettuce Finger"); handMap[26] = bytes32("Baller"); handMap[27] = bytes32("Katana"); handMap[28] = bytes32("Scary Puppet"); handMap[29] = bytes32("Sippin"); handMap[30] = bytes32("Shroom"); handMap[31] = bytes32("Banana Gun"); handMap[32] = bytes32("Flask"); handMap[33] = bytes32("Boombox"); handMap[34] = bytes32("Larry SB"); handMap[35] = bytes32("Wonderful gm"); handMap[36] = bytes32("Slingshot"); handMap[37] = bytes32("Skateboard"); handMap[38] = bytes32("Glow Stick"); handMap[39] = bytes32("Sadomaso"); handMap[40] = bytes32("Demi God"); handMap[41] = bytes32("I Can Point This"); // Initialize body map bodyMap[0] = bytes32("No traits"); bodyMap[1] = bytes32("Logo T"); bodyMap[2] = bytes32("System B"); bodyMap[3] = bytes32("Daddy's Rich"); bodyMap[4] = bytes32("McScumin"); bodyMap[5] = bytes32("Stunt Bug"); bodyMap[6] = bytes32("Bug Squad"); bodyMap[7] = bytes32("Track Jacket"); bodyMap[8] = bytes32("Polo"); bodyMap[9] = bytes32("Boomer"); bodyMap[10] = bytes32("Turtleneck"); bodyMap[11] = bytes32("Coconut Bra"); bodyMap[12] = bytes32("Tie-dye"); bodyMap[13] = bytes32("Life Jacket"); bodyMap[14] = bytes32("Down Jacket"); bodyMap[15] = bytes32("Perfecto"); bodyMap[16] = bytes32("Thunder Fleece"); bodyMap[17] = bytes32("Spandex"); bodyMap[18] = bytes32("Bugs Racing"); bodyMap[19] = bytes32("Scum Bag"); bodyMap[20] = bytes32("Trailer Park Bugs"); bodyMap[21] = bytes32("Disco Shirt"); bodyMap[22] = bytes32("Knit"); bodyMap[23] = bytes32("Gloves Jacket"); bodyMap[24] = bytes32("Sherpa Fleece"); bodyMap[25] = bytes32("Velvet Hoodie"); bodyMap[26] = bytes32("Hoodie Up"); bodyMap[27] = bytes32("Denim Jacket"); bodyMap[28] = bytes32("Biker Vest"); bodyMap[29] = bytes32("Sherling Jacket"); bodyMap[30] = bytes32("V God"); bodyMap[31] = bytes32("Trench Coat"); bodyMap[32] = bytes32("Tuxedo"); bodyMap[33] = bytes32("Dragon Shirt"); bodyMap[34] = bytes32("Scammer"); bodyMap[35] = bytes32("B.W.A."); bodyMap[36] = bytes32("Punk Jacket"); bodyMap[37] = bytes32("Loose Knit"); bodyMap[38] = bytes32("Red Puffer"); bodyMap[39] = bytes32("Wolf"); bodyMap[40] = bytes32("King Robe"); bodyMap[41] = bytes32("Notorious B.U.G."); bodyMap[42] = bytes32("Scum God Jacket"); bodyMap[43] = bytes32("Fast Lane"); bodyMap[44] = bytes32("Iced Out Chain"); bodyMap[45] = bytes32("Flower Costume"); bodyMap[46] = bytes32("Cold Chain"); bodyMap[47] = bytes32("Straight Jacket"); bodyMap[48] = bytes32("Predator Costume"); bodyMap[49] = bytes32("White & Gold Dress"); bodyMap[50] = bytes32("Spike Jacket"); bodyMap[51] = bytes32("Invisibility Cloak"); bodyMap[52] = bytes32("GOAT Jacket"); bodyMap[53] = bytes32("Black & Blue Dress"); // Initialize eyes map eyesMap[0] = bytes32("No traits"); eyesMap[1] = bytes32("Clear Eyes"); eyesMap[2] = bytes32("Sus"); eyesMap[3] = bytes32("Scum"); eyesMap[4] = bytes32("Shroomed"); eyesMap[5] = bytes32("Shark"); eyesMap[6] = bytes32("Cleo"); eyesMap[7] = bytes32("Soft Glam"); eyesMap[8] = bytes32("Goat"); eyesMap[9] = bytes32("Cat"); eyesMap[10] = bytes32("Clown"); eyesMap[11] = bytes32("Tearful"); eyesMap[12] = bytes32("Mesmerized"); eyesMap[13] = bytes32("Scum Clown"); eyesMap[14] = bytes32("Blind"); eyesMap[15] = bytes32("Black Eye"); eyesMap[16] = bytes32("Black Eye Scum"); // Initialize head map headMap[0] = bytes32("No traits"); headMap[1] = bytes32("Logo Cap"); headMap[2] = bytes32("Beanie"); headMap[3] = bytes32("Mullet"); headMap[4] = bytes32("Dreadlocks"); headMap[5] = bytes32("V-cut"); headMap[6] = bytes32("Sleek"); headMap[7] = bytes32("Trucker Hat"); headMap[8] = bytes32("Preppy"); headMap[9] = bytes32("Bun"); headMap[10] = bytes32("Black Bucket Hat"); headMap[11] = bytes32("Fade"); headMap[12] = bytes32("Ushanka"); headMap[13] = bytes32("Red Spikes"); headMap[14] = bytes32("Beach"); headMap[15] = bytes32("Afro"); headMap[16] = bytes32("Lover Bug"); headMap[17] = bytes32("New Jack City"); headMap[18] = bytes32("Blume"); headMap[19] = bytes32("Mohawk"); headMap[20] = bytes32("Fitted Cap"); headMap[21] = bytes32("Karen"); headMap[22] = bytes32("Blond Bowlcut"); headMap[23] = bytes32("The King"); headMap[24] = bytes32("Durag"); headMap[25] = bytes32("Bucket Hat"); headMap[26] = bytes32("Bus Driver"); headMap[27] = bytes32("Black Bowlcut"); headMap[28] = bytes32("Rawr xd"); headMap[29] = bytes32("Cowboy"); headMap[30] = bytes32("Aerobics"); headMap[31] = bytes32("Rattail"); headMap[32] = bytes32("Clown"); headMap[33] = bytes32("Hair Metal"); headMap[34] = bytes32("Unibruh"); headMap[35] = bytes32("Biker"); headMap[36] = bytes32("Piercing"); headMap[37] = bytes32("/"); headMap[38] = bytes32("Knot Head"); headMap[39] = bytes32("Say No More"); headMap[40] = bytes32("Mixologist"); headMap[41] = bytes32("Sahara Cap"); headMap[42] = bytes32("Cheetah Fur Hat"); headMap[43] = bytes32("Pharaoh"); headMap[44] = bytes32("Giga Brain"); headMap[45] = bytes32("Flower Costume"); headMap[46] = bytes32("Rockstar"); headMap[47] = bytes32("Dryden"); headMap[48] = bytes32("Trash's King"); headMap[49] = bytes32("Tin Foil Hat"); headMap[50] = bytes32("Umbrella"); headMap[51] = bytes32("Archive Cap"); headMap[52] = bytes32("Rug Legend"); headMap[53] = bytes32("Compost God"); headMap[54] = bytes32("Balaclava"); headMap[55] = bytes32("Predator Costume"); // Initialize mouth map mouthMap[0] = bytes32("Smiley"); mouthMap[1] = bytes32("Duck Face"); mouthMap[2] = bytes32("Vortex"); mouthMap[3] = bytes32("Pornstache"); mouthMap[4] = bytes32("Ron"); mouthMap[5] = bytes32("Bandana"); mouthMap[6] = bytes32("Kiss"); mouthMap[7] = bytes32("Glossy Lips"); mouthMap[8] = bytes32("Hogan"); mouthMap[9] = bytes32("Buckteeth"); mouthMap[10] = bytes32("Lumbersexual"); mouthMap[11] = bytes32("Grrr"); mouthMap[12] = bytes32("Toothbrush"); mouthMap[13] = bytes32("Rotten"); mouthMap[14] = bytes32("Zoidbug"); mouthMap[15] = bytes32("Reptilian"); mouthMap[16] = bytes32("Goth"); mouthMap[17] = bytes32("Tooth Cap"); mouthMap[18] = bytes32("Lemmy"); mouthMap[19] = bytes32("Gold Grillz"); mouthMap[20] = bytes32("Overjet"); mouthMap[21] = bytes32("Duke In Vegas"); mouthMap[22] = bytes32("Hannibal"); mouthMap[23] = bytes32("Iced Out"); mouthMap[24] = bytes32("Braces"); // Initialize background map backgroundMap[0] = bytes32("blue"); backgroundMap[1] = bytes32("green"); backgroundMap[2] = bytes32("orange"); backgroundMap[3] = bytes32("pink"); backgroundMap[4] = bytes32("red"); backgroundMap[5] = bytes32("yellow"); // Initialize bug type map bugTypeMap[0] = bytes32("mantis"); bugTypeMap[1] = bytes32("caterpillar"); bugTypeMap[2] = bytes32("fly"); bugTypeMap[3] = bytes32("mosquito"); bugTypeMap[4] = bytes32("moth"); bugTypeMap[5] = bytes32("snail"); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ScumbugsValues.sol"; import "./DateTime.sol"; /** * @title Scumbugs Metadata storage * @notice Stores the metadata on-chain. */ contract ScumbugsMetadata is DateTime { // ---------------------- Structs ---------------------- struct Attributes { uint8 hand; uint8 body; uint8 eyes; uint8 head; uint8 mouth; uint8 background_color; uint8 bug_type; uint32 birthday; } struct MetadataInput { uint256 tokenId; bytes32 txHash; bytes32 mediaId1; bytes32 mediaId2; bytes32 mediaBdayId1; bytes32 mediaBdayId2; // 11 bytes uint8 hand; uint8 body; uint8 eyes; uint8 head; uint8 mouth; uint8 background_color; uint8 bug_type; uint32 birthday; } mapping (uint256 => Attributes) internal attributesMap; mapping (uint256 => bytes32) public txhashes; mapping (uint256 => bytes32) internal mediaIds1; mapping (uint256 => bytes32) internal mediaIds2; mapping (uint256 => bytes32) internal mediaBdayIds1; mapping (uint256 => bytes32) internal mediaBdayIds2; bytes32 private defaultImagePart1 = bytes32("U95dUPeExh0CVYAH0ga8jOuifsPD6FsF"); bytes32 private defaultImagePart2 = bytes32("6aGK2oGauo8"); bytes32 internal siteUrl; address public ScumbugsValuesAddress; // ---------------------- Constructor ---------------------- /** * @notice Constructor. Sets networkPath and siteUrl. * @param _siteUrl The value given to siteUrl * @param _ScumbugsValuesAddress The address of the Scumbug Values */ constructor(bytes32 _siteUrl, address _ScumbugsValuesAddress) { siteUrl = _siteUrl; ScumbugsValuesAddress = _ScumbugsValuesAddress; } /** * @notice Renders json as a string containing metadata for token with tokenId */ function _render(uint256 tokenId) internal view virtual returns (string memory) { bool isBirthday = false; uint8 nowDay = getDay(block.timestamp); uint8 nowMonth = getMonth(block.timestamp); uint8 bdDay = getDay(attributesMap[tokenId].birthday); uint8 bdMonth = getMonth(attributesMap[tokenId].birthday); if (nowDay == bdDay && nowMonth == bdMonth) { isBirthday = true; } delete nowDay; delete nowMonth; delete bdDay; delete bdMonth; bool generated = isGenerated(tokenId); bytes memory tokenIdBytes = uintToStrBytes(tokenId); bytes memory buffer = bytes.concat(bytes28("data:application/json;utf8,{"), bytes8('"name":"')); // Name buffer = bytes.concat(buffer, bytes9("Scumbug #"), tokenIdBytes, bytes2('",')); // Image if (!generated) { buffer = bytes.concat(buffer, bytes9('"image":"'), bytes5("ar://"), defaultImagePart1); buffer = bytes.concat(buffer, defaultImagePart2, bytes2('",')); } else if (isBirthday) { buffer = bytes.concat(buffer, bytes9('"image":"'), bytes5("ar://"), mediaBdayIds1[tokenId]); buffer = bytes.concat(buffer, mediaBdayIds2[tokenId], bytes2('",')); } else { buffer = bytes.concat(buffer, bytes9('"image":"'), bytes5("ar://"), mediaIds1[tokenId]); buffer = bytes.concat(buffer, mediaIds2[tokenId], bytes2('",')); } // Token Id buffer = bytes.concat(buffer, bytes10('"tokenId":'), tokenIdBytes, bytes1(",")); if (generated) { // External URL buffer = bytes.concat(buffer, bytes16('"external_url":"'), siteUrl, tokenIdBytes, bytes2('",')); // Clean up delete tokenIdBytes; Attributes memory attributes = attributesMap[tokenId]; ScumbugsValues scumbugsValuesInstance = ScumbugsValues(ScumbugsValuesAddress); // Open attributes buffer = bytes.concat(buffer, bytes14('"attributes":[')); // hand if (attributes.hand != 0) { bytes32 data = scumbugsValuesInstance.handMap(attributes.hand); buffer = bytes.concat(buffer, bytes30('{"trait_type":"hand","value":"'), data, bytes3('"},')); } // body if (attributes.body != 0) { bytes32 data = scumbugsValuesInstance.bodyMap(attributes.body); buffer = bytes.concat(buffer, bytes30('{"trait_type":"body","value":"'), data, bytes3('"},')); } // eyes if (attributes.eyes != 0) { bytes32 data = scumbugsValuesInstance.eyesMap(attributes.eyes); buffer = bytes.concat(buffer, bytes30('{"trait_type":"eyes","value":"'), data, bytes3('"},')); } // head if (attributes.head != 0) { bytes32 data = scumbugsValuesInstance.headMap(attributes.head); buffer = bytes.concat(buffer, bytes30('{"trait_type":"head","value":"'), data, bytes3('"},')); } // mouth if (attributes.mouth != 0) { bytes32 data = scumbugsValuesInstance.mouthMap(attributes.mouth); buffer = bytes.concat(buffer, bytes31('{"trait_type":"mouth","value":"'), data, bytes3('"},')); } // Background color if (isBirthday) { buffer = bytes.concat(buffer, bytes32('{"trait_type":"background_color"'), bytes22(',"value":"Birthday!"},')); } else { bytes32 backgroundData = scumbugsValuesInstance.backgroundMap(attributes.background_color); buffer = bytes.concat(buffer, bytes32('{"trait_type":"background_color"'), bytes10(',"value":"'), backgroundData, bytes3('"},')); delete backgroundData; } // Bug type bytes32 bugTypeData = scumbugsValuesInstance.bugTypeMap(attributes.bug_type); buffer = bytes.concat(buffer, bytes24('{"trait_type":"bug_type"'), bytes10(',"value":"'), bugTypeData, bytes3('"},')); delete bugTypeData; delete scumbugsValuesInstance; // Birthday buffer = bytes.concat(buffer, bytes25('{"trait_type":"birthday",'), bytes22('"display_type":"date",'), bytes8('"value":'), uintToStrBytes(attributes.birthday), bytes1('}')); // Close attributes delete attributes; buffer = bytes.concat(buffer, bytes1("]")); } else { buffer = bytes.concat(buffer, bytes15('"attributes":[]')); } // Close json buffer = bytes.concat(buffer, bytes1("}")); return string(buffer); } function isGenerated(uint256 tokenId) public view returns (bool) { return mediaIds1[tokenId] != 0; } /** * @notice Transforms uint to string bytes. Based on toString(uint256 value) from @openzeppelin/contracts/utils/Strings.sol */ function uintToStrBytes(uint256 value) pure private returns (bytes memory) { if (value == 0) { return bytes("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 buffer; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; /** * @title Pausable * @dev Base contract which allows children to implement an emergency stop mechanism. */ contract Pausable is Ownable { bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. */ modifier whenNotPaused() { require(!_paused); _; } /** * @dev Modifier to make a function callable only when the contract is paused. */ modifier whenPaused() { require(_paused); _; } /** * @dev called by the owner to pause, triggers stopped state */ function pause() onlyOwner whenNotPaused public { _paused = true; } /** * @dev called by the owner to unpause, returns to normal state */ function unpause() onlyOwner whenPaused public { _paused = false; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // These contract definitions are used to create a reference to the OpenSea // ProxyRegistry contract by using the registry's address (see isApprovedForAll). interface OwnableDelegateProxy { } interface ProxyRegistry { function proxies(address) external view returns (OwnableDelegateProxy); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * Inspired by DateTime: https://etherscan.io/address/0x1a6184cd4c5bea62b0116de7962ee7315b7bcbce#code */ contract DateTime { /* * Date and Time utilities for ethereum contracts * */ struct _DateTime { uint16 year; uint8 month; uint8 day; } uint private constant DAY_IN_SECONDS = 86400; uint private constant YEAR_IN_SECONDS = 31536000; uint private constant LEAP_YEAR_IN_SECONDS = 31622400; uint private constant HOUR_IN_SECONDS = 3600; uint private constant MINUTE_IN_SECONDS = 60; uint16 private constant ORIGIN_YEAR = 1970; function isLeapYear(uint16 year) internal pure returns (bool) { if (year % 4 != 0) { return false; } if (year % 100 != 0) { return true; } if (year % 400 != 0) { return false; } return true; } function leapYearsBefore(uint year) internal pure returns (uint) { year -= 1; return year / 4 - year / 100 + year / 400; } function getDaysInMonth(uint8 month, uint16 year) internal pure returns (uint8) { if (month == 1 || month == 3 || month == 5 || month == 7 || month == 8 || month == 10 || month == 12) { return 31; } else if (month == 4 || month == 6 || month == 9 || month == 11) { return 30; } else if (isLeapYear(year)) { return 29; } else { return 28; } } function parseTimestamp(uint timestamp) internal pure returns (_DateTime memory dt) { uint secondsAccountedFor = 0; uint buf; uint8 i; // Year dt.year = getYear(timestamp); buf = leapYearsBefore(dt.year) - leapYearsBefore(ORIGIN_YEAR); secondsAccountedFor += LEAP_YEAR_IN_SECONDS * buf; secondsAccountedFor += YEAR_IN_SECONDS * (dt.year - ORIGIN_YEAR - buf); // Month uint secondsInMonth; for (i = 1; i <= 12; i++) { secondsInMonth = DAY_IN_SECONDS * getDaysInMonth(i, dt.year); if (secondsInMonth + secondsAccountedFor > timestamp) { dt.month = i; break; } secondsAccountedFor += secondsInMonth; } // Day for (i = 1; i <= getDaysInMonth(dt.month, dt.year); i++) { if (DAY_IN_SECONDS + secondsAccountedFor > timestamp) { dt.day = i; break; } secondsAccountedFor += DAY_IN_SECONDS; } } function getYear(uint timestamp) internal pure returns (uint16) { uint secondsAccountedFor = 0; uint16 year; uint numLeapYears; // Year year = uint16(ORIGIN_YEAR + timestamp / YEAR_IN_SECONDS); numLeapYears = leapYearsBefore(year) - leapYearsBefore(ORIGIN_YEAR); secondsAccountedFor += LEAP_YEAR_IN_SECONDS * numLeapYears; secondsAccountedFor += YEAR_IN_SECONDS * (year - ORIGIN_YEAR - numLeapYears); while (secondsAccountedFor > timestamp) { if (isLeapYear(uint16(year - 1))) { secondsAccountedFor -= LEAP_YEAR_IN_SECONDS; } else { secondsAccountedFor -= YEAR_IN_SECONDS; } year -= 1; } return year; } function getMonth(uint timestamp) internal pure returns (uint8) { return parseTimestamp(timestamp).month; } function getDay(uint timestamp) internal pure returns (uint8) { return parseTimestamp(timestamp).day; } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintedQueryForZeroAddress(); error BurnedQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerIndexOutOfBounds(); error OwnerQueryForNonexistentToken(); error TokenIndexOutOfBounds(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**128 - 1 (max value of uint128). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; } // Compiler will pack the following // _currentIndex and _burnCounter into a single 256bit word. // The tokenId of the next token to be minted. uint128 internal _currentIndex; // The number of tokens burned. uint128 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex times unchecked { return _currentIndex - _burnCounter; } } /** * @dev See {IERC721Enumerable-tokenByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenByIndex(uint256 index) public view override returns (uint256) { uint256 numMintedSoFar = _currentIndex; uint256 tokenIdsIdx; // Counter overflow is impossible as the loop breaks when // uint256 i is equal to another uint256 numMintedSoFar. unchecked { for (uint256 i; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (!ownership.burned) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } } revert TokenIndexOutOfBounds(); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { if (index >= balanceOf(owner)) revert OwnerIndexOutOfBounds(); uint256 numMintedSoFar = _currentIndex; uint256 tokenIdsIdx; address currOwnershipAddr; // Counter overflow is impossible as the loop breaks when // uint256 i is equal to another uint256 numMintedSoFar. unchecked { for (uint256 i; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } } // Execution should never reach this point. revert(); } /** * @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 || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { if (owner == address(0)) revert MintedQueryForZeroAddress(); return uint256(_addressData[owner].numberMinted); } function _numberBurned(address owner) internal view returns (uint256) { if (owner == address(0)) revert BurnedQueryForZeroAddress(); return uint256(_addressData[owner].numberBurned); } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (!_checkOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < _currentIndex && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 3.4e38 (2**128) - 1 // updatedIndex overflows if _currentIndex + quantity > 3.4e38 (2**128) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; for (uint256 i; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); if (safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)) { revert TransferToNonERC721ReceiverImplementer(); } updatedIndex++; } _currentIndex = uint128(updatedIndex); } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || isApprovedForAll(prevOwnership.addr, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**128. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId].addr = to; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @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 { TokenOwnership memory prevOwnership = ownershipOf(tokenId); _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**128. unchecked { _addressData[prevOwnership.addr].balance -= 1; _addressData[prevOwnership.addr].numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. _ownerships[tokenId].addr = prevOwnership.addr; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); _ownerships[tokenId].burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(prevOwnership.addr, address(0), tokenId); _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) 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 // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 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 // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, 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 // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 31000 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"bytes32","name":"_siteUrl","type":"bytes32"},{"internalType":"address","name":"_ScumbugsValues","type":"address"},{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerIndexOutOfBounds","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TokenIndexOutOfBounds","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ScumbugsValuesAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes32","name":"txHash","type":"bytes32"},{"internalType":"bytes32","name":"mediaId1","type":"bytes32"},{"internalType":"bytes32","name":"mediaId2","type":"bytes32"},{"internalType":"bytes32","name":"mediaBdayId1","type":"bytes32"},{"internalType":"bytes32","name":"mediaBdayId2","type":"bytes32"},{"internalType":"uint8","name":"hand","type":"uint8"},{"internalType":"uint8","name":"body","type":"uint8"},{"internalType":"uint8","name":"eyes","type":"uint8"},{"internalType":"uint8","name":"head","type":"uint8"},{"internalType":"uint8","name":"mouth","type":"uint8"},{"internalType":"uint8","name":"background_color","type":"uint8"},{"internalType":"uint8","name":"bug_type","type":"uint8"},{"internalType":"uint32","name":"birthday","type":"uint32"}],"internalType":"struct ScumbugsMetadata.MetadataInput","name":"metadataInput","type":"tuple"}],"name":"generateMetadata_w1o","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isGenerated","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxAmount","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"amount","type":"uint16"}],"name":"mintNFT","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":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isOpenSeaProxyActive","type":"bool"}],"name":"setIsOpenSeaProxyActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_siteUrl","type":"bytes32"}],"name":"setSiteUrl","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_unitPrice","type":"uint256"}],"name":"setUnitPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supply","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"txhashes","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unitPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040527f55393564555065457868304356594148306761386a4f75696673504436467346600e556a06cc28e9664de8ec2eade760ab1b600f5566f52322698080006013556014805460ff191660011790553480156200005f57600080fd5b506040516200520e3803806200520e83398101604081905262000082916200057b565b8282604051806040016040528060088152602001675363756d6275677360c01b815250604051806040016040528060088152602001675343554d4255475360c01b8152508160019080519060200190620000de929190620004b8565b508051620000f4906002906020840190620004b8565b505050620001116200010b6200016a60201b60201c565b6200016e565b6007805460ff60a01b19169055601091909155601180546001600160a01b03199081166001600160a01b0393841617909155601280549091169183169190911790556200016133610155620001c0565b505050620006a7565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620001e2828260405180602001604052806000815250620001e660201b60201c565b5050565b620001f58383836001620001fa565b505050565b6000546001600160801b03166001600160a01b0385166200022d57604051622e076360e81b815260040160405180910390fd5b836200024c5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260046020908152604080832080546001600160801b031981166001600160401b038083168c018116918217680100000000000000006001600160401b031990941690921783900481168c018116909202179091558584526003909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b85811015620003635760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a483801562000337575062000335600088848862000393565b155b1562000356576040516368d2bf6b60e11b815260040160405180910390fd5b60019182019101620002dc565b50600080546001600160801b0319166001600160801b03929092169190911781556200038c9050565b5050505050565b6000620003b4846001600160a01b0316620004b260201b62001c0d1760201c565b15620004a657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290620003ee903390899088908890600401620005bc565b6020604051808303816000875af19250505080156200042c575060408051601f3d908101601f19168201909252620004299181019062000637565b60015b6200048b573d8080156200045d576040519150601f19603f3d011682016040523d82523d6000602084013e62000462565b606091505b50805162000483576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050620004aa565b5060015b949350505050565b3b151590565b828054620004c6906200066a565b90600052602060002090601f016020900481019282620004ea576000855562000535565b82601f106200050557805160ff191683800117855562000535565b8280016001018555821562000535579182015b828111156200053557825182559160200191906001019062000518565b506200054392915062000547565b5090565b5b8082111562000543576000815560010162000548565b80516001600160a01b03811681146200057657600080fd5b919050565b6000806000606084860312156200059157600080fd5b83519250620005a3602085016200055e565b9150620005b3604085016200055e565b90509250925092565b600060018060a01b038087168352602081871681850152856040850152608060608501528451915081608085015260005b828110156200060b5785810182015185820160a001528101620005ed565b828111156200061e57600060a084870101525b5050601f01601f19169190910160a00195945050505050565b6000602082840312156200064a57600080fd5b81516001600160e01b0319811681146200066357600080fd5b9392505050565b600181811c908216806200067f57607f821691505b60208210811415620006a157634e487b7160e01b600052602260045260246000fd5b50919050565b614b5780620006b76000396000f3fe6080604052600436106102335760003560e01c80636352211e11610138578063b88d4fde116100b0578063e73faa2d1161007f578063ecc03bbd11610064578063ecc03bbd1461069a578063f2fde38b146106c7578063fc572678146106e757600080fd5b8063e73faa2d14610664578063e985e9c51461067a57600080fd5b8063b88d4fde146105e4578063c87b56dd14610604578063dc1b732814610624578063e43082f71461064457600080fd5b80638456cb591161010757806395d89b41116100ec57806395d89b411461059c578063a22cb465146105b1578063a39e9a2f146105d157600080fd5b80638456cb591461055c5780638da5cb5b1461057157600080fd5b80636352211e146104d857806370a08231146104f8578063715018a6146105185780637f46ecd81461052d57600080fd5b806323b872dd116101cb57806342842e0e1161019a5780634f6ccce71161017f5780634f6ccce7146104605780635c975abb146104805780635f48f393146104b057600080fd5b806342842e0e14610413578063460447ae1461043357600080fd5b806323b872dd146103a95780632f745c59146103c95780633ccfd60b146103e95780633f4ba83a146103fe57600080fd5b806306fdde031161020757806306fdde03146102dd578063081812fc146102ff578063095ea7b31461034457806318160ddd1461036457600080fd5b80629a9b7b1461023857806301ffc9a714610260578063047fc9aa146102905780630613ae08146102bb575b600080fd5b34801561024457600080fd5b5061024d610707565b6040519081526020015b60405180910390f35b34801561026c57600080fd5b5061028061027b366004613ce2565b610740565b6040519015158152602001610257565b34801561029c57600080fd5b506102a6613bed81565b60405163ffffffff9091168152602001610257565b3480156102c757600080fd5b506102db6102d6366004613d06565b610871565b005b3480156102e957600080fd5b506102f26108fc565b6040516102579190613d95565b34801561030b57600080fd5b5061031f61031a366004613d06565b61098e565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610257565b34801561035057600080fd5b506102db61035f366004613dca565b6109f8565b34801561037057600080fd5b5061024d6000546fffffffffffffffffffffffffffffffff70010000000000000000000000000000000082048116918116919091031690565b3480156103b557600080fd5b506102db6103c4366004613df6565b610adf565b3480156103d557600080fd5b5061024d6103e4366004613dca565b610aea565b3480156103f557600080fd5b506102db610c67565b34801561040a57600080fd5b506102db610cb0565b34801561041f57600080fd5b506102db61042e366004613df6565b610d82565b34801561043f57600080fd5b5060115461031f9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561046c57600080fd5b5061024d61047b366004613d06565b610d9d565b34801561048c57600080fd5b5060075474010000000000000000000000000000000000000000900460ff16610280565b3480156104bc57600080fd5b506104c5601481565b60405161ffff9091168152602001610257565b3480156104e457600080fd5b5061031f6104f3366004613d06565b610ea1565b34801561050457600080fd5b5061024d610513366004613e37565b610eb3565b34801561052457600080fd5b506102db610f35565b34801561053957600080fd5b50610280610548366004613d06565b6000908152600a6020526040902054151590565b34801561056857600080fd5b506102db610fc2565b34801561057d57600080fd5b5060075473ffffffffffffffffffffffffffffffffffffffff1661031f565b3480156105a857600080fd5b506102f26110ac565b3480156105bd57600080fd5b506102db6105cc366004613e69565b6110bb565b6102db6105df366004613e9e565b6111a2565b3480156105f057600080fd5b506102db6105ff366004613f6a565b611396565b34801561061057600080fd5b506102f261061f366004613d06565b6113e9565b34801561063057600080fd5b506102db61063f366004613d06565b611489565b34801561065057600080fd5b506102db61065f36600461404c565b611536565b34801561067057600080fd5b5061024d60135481565b34801561068657600080fd5b50610280610695366004614067565b6115e8565b3480156106a657600080fd5b5061024d6106b5366004613d06565b60096020526000908152604090205481565b3480156106d357600080fd5b506102db6106e2366004613e37565b61170d565b3480156106f357600080fd5b506102db6107023660046140c5565b61183a565b60008054610729906001906fffffffffffffffffffffffffffffffff166141da565b6fffffffffffffffffffffffffffffffff16905090565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806107d357507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061081f57507fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000145b8061086b57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60075473ffffffffffffffffffffffffffffffffffffffff1633146108f7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b601055565b60606001805461090b9061420b565b80601f01602080910402602001604051908101604052809291908181526020018280546109379061420b565b80156109845780601f1061095957610100808354040283529160200191610984565b820191906000526020600020905b81548152906001019060200180831161096757829003601f168201915b5050505050905090565b600061099982611c13565b6109cf576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5060009081526005602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610a0382610ea1565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a6b576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff821614801590610a985750610a9681336115e8565b155b15610acf576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ada838383611c69565b505050565b610ada838383611cea565b6000610af583610eb3565b8210610b2d576040517f0ddac30e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080546fffffffffffffffffffffffffffffffff169080805b83811015610c61576000818152600360209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff161580159282019290925290610be65750610c59565b805173ffffffffffffffffffffffffffffffffffffffff1615610c0857805192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c575786841415610c505750935061086b92505050565b6001909301925b505b600101610b47565b50600080fd5b60075460405173ffffffffffffffffffffffffffffffffffffffff909116904780156108fc02916000818181858888f19350505050158015610cad573d6000803e3d6000fd5b50565b60075473ffffffffffffffffffffffffffffffffffffffff163314610d31576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108ee565b60075474010000000000000000000000000000000000000000900460ff16610d5857600080fd5b600780547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff169055565b610ada83838360405180602001604052806000815250611396565b600080546fffffffffffffffffffffffffffffffff1681805b82811015610e6e576000818152600360209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff16151591810182905290610e655785831415610e5e5750949350505050565b6001909201915b50600101610db6565b506040517fa723001c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610eac82612067565b5192915050565b600073ffffffffffffffffffffffffffffffffffffffff8216610f02576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5073ffffffffffffffffffffffffffffffffffffffff1660009081526004602052604090205467ffffffffffffffff1690565b60075473ffffffffffffffffffffffffffffffffffffffff163314610fb6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108ee565b610fc06000612246565b565b60075473ffffffffffffffffffffffffffffffffffffffff163314611043576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108ee565b60075474010000000000000000000000000000000000000000900460ff161561106b57600080fd5b600780547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055565b60606002805461090b9061420b565b73ffffffffffffffffffffffffffffffffffffffff821633141561110b576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b33600081815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60075474010000000000000000000000000000000000000000900460ff16156111ca57600080fd5b601461ffff82161115611239576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f43616e2774206d696e74206d6f7265207468616e206d617820616d6f756e740060448201526064016108ee565b8061ffff1660135461124b919061425f565b3410156112da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603960248201527f56616c75652073686f756c6420626520657175616c206f72206772656174657260448201527f207468616e20756e6974207072696365202a20616d6f756e740000000000000060648201526084016108ee565b600054613bed906001906113059061ffff8516906fffffffffffffffffffffffffffffffff1661429c565b61130f91906141da565b6fffffffffffffffffffffffffffffffff1610611388576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f43616e2774206d696e74207468617420616d6f756e74206f66204e465473000060448201526064016108ee565b610cad338261ffff166122bd565b6113a1848484611cea565b6113ad848484846122db565b6113e3576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b60606113f482611c13565b611480576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016108ee565b61086b82612475565b60075473ffffffffffffffffffffffffffffffffffffffff16331461150a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108ee565b60075474010000000000000000000000000000000000000000900460ff1661153157600080fd5b601355565b60075473ffffffffffffffffffffffffffffffffffffffff1633146115b7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108ee565b601480547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60125460145460009173ffffffffffffffffffffffffffffffffffffffff169060ff1680156116bf57506040517fc455279100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152808516919083169063c455279190602401602060405180830381865afa158015611683573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116a791906142d0565b73ffffffffffffffffffffffffffffffffffffffff16145b156116ce57600191505061086b565b73ffffffffffffffffffffffffffffffffffffffff80851660009081526006602090815260408083209387168352929052205460ff165b949350505050565b60075473ffffffffffffffffffffffffffffffffffffffff16331461178e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108ee565b73ffffffffffffffffffffffffffffffffffffffff8116611831576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016108ee565b610cad81612246565b60075473ffffffffffffffffffffffffffffffffffffffff1633146118bb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108ee565b80516000818152600a60205260409020541580159061195c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4d6574616461746120616c72656164792067656e65726174656420666f72207460448201527f6f6b656e4964000000000000000000000000000000000000000000000000000060648201526084016108ee565b6000546fffffffffffffffffffffffffffffffff1682106119d9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4e4654207769746820746f6b656e496420646f6573206e6f742065786973740060448201526064016108ee565b600090506040518061010001604052808460c0015160ff1681526020018460e0015160ff16815260200184610100015160ff16815260200184610120015160ff16815260200184610140015160ff16815260200184610160015160ff16815260200184610180015160ff168152602001846101a0015163ffffffff168152506008600084815260200190815260200160002060008201518160000160006101000a81548160ff021916908360ff16021790555060208201518160000160016101000a81548160ff021916908360ff16021790555060408201518160000160026101000a81548160ff021916908360ff16021790555060608201518160000160036101000a81548160ff021916908360ff16021790555060808201518160000160046101000a81548160ff021916908360ff16021790555060a08201518160000160056101000a81548160ff021916908360ff16021790555060c08201518160000160066101000a81548160ff021916908360ff16021790555060e08201518160000160076101000a81548163ffffffff021916908363ffffffff160217905550905050826020015160096000848152602001908152602001600020819055508260400151600a6000848152602001908152602001600020819055508260600151600b6000848152602001908152602001600020819055508260800151600c6000848152602001908152602001600020819055508260a00151600d600084815260200190815260200160002081905550505050565b3b151590565b600080546fffffffffffffffffffffffffffffffff168210801561086b5750506000908152600360205260409020547c0100000000000000000000000000000000000000000000000000000000900460ff161590565b60008281526005602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611cf582612067565b805190915060009073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611d3d57508151611d3d90336115e8565b80611d65575033611d4d8461098e565b73ffffffffffffffffffffffffffffffffffffffff16145b905080611d9e576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614611e07576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8416611e54576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611e646000848460000151611c69565b73ffffffffffffffffffffffffffffffffffffffff858116600090815260046020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000080821667ffffffffffffffff9283167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01831617909255898616808652838620805493841693831660019081018416949094179055898652600390945282852080547fffffffff000000000000000000000000000000000000000000000000000000001690941774010000000000000000000000000000000000000000429092169190910217909255908601808352912054909116612003576000546fffffffffffffffffffffffffffffffff16811015612003578251600082815260036020908152604090912080549186015167ffffffffffffffff1674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090921673ffffffffffffffffffffffffffffffffffffffff909316929092171790555b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b60408051606081018252600080825260208201819052918101829052905482906fffffffffffffffffffffffffffffffff16811015612214576000818152600360209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff1615159181018290529061221257805173ffffffffffffffffffffffffffffffffffffffff1615612153579392505050565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff016000818152600360209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff811680835274010000000000000000000000000000000000000000820467ffffffffffffffff16938301939093527c0100000000000000000000000000000000000000000000000000000000900460ff161515928101929092521561220d579392505050565b612153565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6122d78282604051806020016040528060008152506134e7565b5050565b600073ffffffffffffffffffffffffffffffffffffffff84163b1561246a576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a02906123529033908990889088906004016142ed565b6020604051808303816000875af19250505080156123ab575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526123a891810190614336565b60015b61241f573d8080156123d9576040519150601f19603f3d011682016040523d82523d6000602084013e6123de565b606091505b508051612417576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611705565b506001949350505050565b6060600080612483426134f4565b9050600061249042613509565b600086815260086020526040812054919250906124bd90670100000000000000900463ffffffff166134f4565b600087815260086020526040812054919250906124ea90670100000000000000900463ffffffff16613509565b90508160ff168460ff1614801561250657508060ff168360ff16145b1561251057600194505b50600092508291508190508080612535886000908152600a6020526040902054151590565b905060006125428961351e565b604080517f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b0000000060208201527f226e616d65223a22000000000000000000000000000000000000000000000000603c8201528151602481830301815260448201909252919250906125fb9082907f5363756d627567202300000000000000000000000000000000000000000000009085907f222c00000000000000000000000000000000000000000000000000000000000090606401614353565b6040516020818303038152906040529050826126c757600e546040516126699183917f22696d616765223a220000000000000000000000000000000000000000000000917f61723a2f2f000000000000000000000000000000000000000000000000000000916020016143df565b604051602081830303815290604052905080600f547f222c0000000000000000000000000000000000000000000000000000000000006040516020016126b193929190614455565b6040516020818303038152906040529050612889565b87156127a25760008a8152600c60209081526040918290205491516127339284927f22696d616765223a220000000000000000000000000000000000000000000000927f61723a2f2f0000000000000000000000000000000000000000000000000000009291016143df565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815282825260008d8152600d6020908152929020549093506126b19284927f222c0000000000000000000000000000000000000000000000000000000000009101614455565b60008a8152600a60209081526040918290205491516128089284927f22696d616765223a220000000000000000000000000000000000000000000000927f61723a2f2f0000000000000000000000000000000000000000000000000000009291016143df565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815282825260008d8152600b6020908152929020549093506128779284927f222c0000000000000000000000000000000000000000000000000000000000009101614455565b60405160208183030381529060405290505b807f22746f6b656e4964223a00000000000000000000000000000000000000000000837f2c000000000000000000000000000000000000000000000000000000000000006040516020016128e0949392919061449e565b6040516020818303038152906040529050821561343357807f2265787465726e616c5f75726c223a2200000000000000000000000000000000601054847f222c00000000000000000000000000000000000000000000000000000000000060405160200161295295949392919061452a565b604080518083037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001815260008d815260086020908152908390206101008086018552905460ff8082168752918104821683870152620100008104821686860152630100000081048216606080880191909152640100000000820483166080880152650100000000008204831660a08801526601000000000000820490921660c0870152670100000000000000900463ffffffff1660e0860152601154935190965091945073ffffffffffffffffffffffffffffffffffffffff90921691612a5e9185917f2261747472696275746573223a5b00000000000000000000000000000000000091016145be565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052825190935060ff1615612b9c5781516040517f560c894700000000000000000000000000000000000000000000000000000000815260ff909116600482015260009073ffffffffffffffffffffffffffffffffffffffff83169063560c894790602401602060405180830381865afa158015612b0c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b309190614605565b9050837f7b2274726169745f74797065223a2268616e64222c2276616c7565223a220000827f227d2c0000000000000000000000000000000000000000000000000000000000604051602001612b89949392919061461e565b6040516020818303038152906040529350505b602082015160ff1615612caf5760208201516040517f34f959de00000000000000000000000000000000000000000000000000000000815260ff909116600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906334f959de90602401602060405180830381865afa158015612c1f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c439190614605565b9050837f7b2274726169745f74797065223a22626f6479222c2276616c7565223a220000827f227d2c0000000000000000000000000000000000000000000000000000000000604051602001612c9c949392919061461e565b6040516020818303038152906040529350505b604082015160ff1615612dc25760408281015190517fb5fda7d700000000000000000000000000000000000000000000000000000000815260ff909116600482015260009073ffffffffffffffffffffffffffffffffffffffff83169063b5fda7d790602401602060405180830381865afa158015612d32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d569190614605565b9050837f7b2274726169745f74797065223a2265796573222c2276616c7565223a220000827f227d2c0000000000000000000000000000000000000000000000000000000000604051602001612daf949392919061461e565b6040516020818303038152906040529350505b606082015160ff1615612ed55760608201516040517f7f8e39b700000000000000000000000000000000000000000000000000000000815260ff909116600482015260009073ffffffffffffffffffffffffffffffffffffffff831690637f8e39b790602401602060405180830381865afa158015612e45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e699190614605565b9050837f7b2274726169745f74797065223a2268656164222c2276616c7565223a220000827f227d2c0000000000000000000000000000000000000000000000000000000000604051602001612ec2949392919061461e565b6040516020818303038152906040529350505b608082015160ff1615612fe85760808201516040517fea32490200000000000000000000000000000000000000000000000000000000815260ff909116600482015260009073ffffffffffffffffffffffffffffffffffffffff83169063ea32490290602401602060405180830381865afa158015612f58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f7c9190614605565b9050837f7b2274726169745f74797065223a226d6f757468222c2276616c7565223a2200827f227d2c0000000000000000000000000000000000000000000000000000000000604051602001612fd59493929190614694565b6040516020818303038152906040529350505b891561305957827f7b2274726169745f74797065223a226261636b67726f756e645f636f6c6f72227f2c2276616c7565223a22426972746864617921227d2c000000000000000000006040516020016130439392919061470a565b60405160208183030381529060405292506131a0565b60a08201516040517f9fbe3ee800000000000000000000000000000000000000000000000000000000815260ff909116600482015260009073ffffffffffffffffffffffffffffffffffffffff831690639fbe3ee890602401602060405180830381865afa1580156130cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130f39190614605565b9050837f7b2274726169745f74797065223a226261636b67726f756e645f636f6c6f72227f2c2276616c7565223a2200000000000000000000000000000000000000000000837f227d2c000000000000000000000000000000000000000000000000000000000060405160200161316e959493929190614753565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190529350505b60c08201516040517fe492bfcd00000000000000000000000000000000000000000000000000000000815260ff909116600482015260009073ffffffffffffffffffffffffffffffffffffffff83169063e492bfcd90602401602060405180830381865afa158015613216573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061323a9190614605565b9050837f7b2274726169745f74797065223a226275675f747970652200000000000000007f2c2276616c7565223a2200000000000000000000000000000000000000000000837f227d2c00000000000000000000000000000000000000000000000000000000006040516020016132b59594939291906147cb565b60405160208183030381529060405293506000905060009150837f7b2274726169745f74797065223a226269727468646179222c000000000000007f22646973706c61795f74797065223a2264617465222c000000000000000000007f2276616c7565223a0000000000000000000000000000000000000000000000006133458760e0015163ffffffff1661351e565b7f7d0000000000000000000000000000000000000000000000000000000000000060405160200161337b9695949392919061486b565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815261010083018252600080845260208401819052918301829052606083018290526080830182905260a0830182905260c0830182905260e083019190915294509250837f5d0000000000000000000000000000000000000000000000000000000000000060405160200161341a929190614949565b6040516020818303038152906040529350505050613478565b807f2261747472696275746573223a5b5d0000000000000000000000000000000000604051602001613466929190614990565b60405160208183030381529060405290505b807f7d000000000000000000000000000000000000000000000000000000000000006040516020016134ab929190614949565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190529a9950505050505050505050565b610ada8383836001613650565b60006134ff826138ce565b6040015192915050565b6000613514826138ce565b6020015192915050565b60608161355e57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156135885780613572816149d7565b91506135819050600a83614a3f565b9150613562565b60008167ffffffffffffffff8111156135a3576135a3613ec2565b6040519080825280601f01601f1916602001820160405280156135cd576020820181803683370190505b5090505b8415611705576135e2600183614a53565b91506135ef600a86614a6a565b6135fa906030614a7e565b60f81b81838151811061360f5761360f614a96565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613649600a86614a3f565b94506135d1565b6000546fffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff85166136b2576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b836136e9576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8516600081815260046020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c018116918217680100000000000000007fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090941690921783900481168c018116909202179091558584526003909252822080547fffffffff00000000000000000000000000000000000000000000000000000000169093177401000000000000000000000000000000000000000042909216919091021790915581905b8581101561388757604051829073ffffffffffffffffffffffffffffffffffffffff8916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4838015613844575061384260008884886122db565b155b1561387b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600191820191016137e0565b50600080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff92909216919091179055612060565b604080516060810182526000808252602082018190529181018290529080806138f685613a55565b61ffff1684526139076107b2613b4a565b84516139169061ffff16613b4a565b6139209190614a53565b9150613930826301e2850061425f565b61393a9084614a7e565b9250816107b2856000015161394f9190614ac5565b61ffff1661395d9190614a53565b61396b906301e1338061425f565b6139759084614a7e565b92506000600191505b600c8260ff16116139e657613997828660000151613b8f565b6139a79060ff166201518061425f565b9050856139b48583614a7e565b11156139c85760ff821660208601526139e6565b6139d28185614a7e565b9350816139de81614ae0565b92505061397e565b600191505b6139fd85602001518660000151613b8f565b60ff168260ff1611613a4c5785613a178562015180614a7e565b1115613a2b5760ff82166040860152613a4c565b613a386201518085614a7e565b935081613a4481614ae0565b9250506139eb565b50505050919050565b6000808080613a686301e1338086614a3f565b613a74906107b2614a7e565b9150613a816107b2613b4a565b613a8e8361ffff16613b4a565b613a989190614a53565b9050613aa8816301e2850061425f565b613ab29084614a7e565b925080613ac16107b284614ac5565b61ffff16613acf9190614a53565b613add906301e1338061425f565b613ae79084614a7e565b92505b84831115613b4257613b05613b00600184614ac5565b613c55565b15613b1f57613b186301e2850084614a53565b9250613b30565b613b2d6301e1338084614a53565b92505b613b3b600183614ac5565b9150613aea565b509392505050565b6000613b57600183614a53565b9150613b6561019083614a3f565b613b70606484614a3f565b613b7b600485614a3f565b613b859190614a53565b61086b9190614a7e565b60008260ff1660011480613ba657508260ff166003145b80613bb457508260ff166005145b80613bc257508260ff166007145b80613bd057508260ff166008145b80613bde57508260ff16600a145b80613bec57508260ff16600c145b15613bf95750601f61086b565b8260ff1660041480613c0e57508260ff166006145b80613c1c57508260ff166009145b80613c2a57508260ff16600b145b15613c375750601e61086b565b613c4082613c55565b15613c4d5750601d61086b565b50601c61086b565b6000613c62600483614b00565b61ffff1615613c7357506000919050565b613c7e606483614b00565b61ffff1615613c8f57506001919050565b613c9b61019083614b00565b61ffff1615613cac57506000919050565b506001919050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610cad57600080fd5b600060208284031215613cf457600080fd5b8135613cff81613cb4565b9392505050565b600060208284031215613d1857600080fd5b5035919050565b60005b83811015613d3a578181015183820152602001613d22565b838111156113e35750506000910152565b60008151808452613d63816020860160208601613d1f565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000613cff6020830184613d4b565b73ffffffffffffffffffffffffffffffffffffffff81168114610cad57600080fd5b60008060408385031215613ddd57600080fd5b8235613de881613da8565b946020939093013593505050565b600080600060608486031215613e0b57600080fd5b8335613e1681613da8565b92506020840135613e2681613da8565b929592945050506040919091013590565b600060208284031215613e4957600080fd5b8135613cff81613da8565b80358015158114613e6457600080fd5b919050565b60008060408385031215613e7c57600080fd5b8235613e8781613da8565b9150613e9560208401613e54565b90509250929050565b600060208284031215613eb057600080fd5b813561ffff81168114613cff57600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040516101c0810167ffffffffffffffff81118282101715613f1557613f15613ec2565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715613f6257613f62613ec2565b604052919050565b60008060008060808587031215613f8057600080fd5b8435613f8b81613da8565b9350602085810135613f9c81613da8565b935060408601359250606086013567ffffffffffffffff80821115613fc057600080fd5b818801915088601f830112613fd457600080fd5b813581811115613fe657613fe6613ec2565b614016847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601613f1b565b9150808252898482850101111561402c57600080fd5b808484018584013760008482840101525080935050505092959194509250565b60006020828403121561405e57600080fd5b613cff82613e54565b6000806040838503121561407a57600080fd5b823561408581613da8565b9150602083013561409581613da8565b809150509250929050565b803560ff81168114613e6457600080fd5b803563ffffffff81168114613e6457600080fd5b60006101c082840312156140d857600080fd5b6140e0613ef1565b823581526020830135602082015260408301356040820152606083013560608201526080830135608082015260a083013560a082015261412260c084016140a0565b60c082015261413360e084016140a0565b60e08201526101006141468185016140a0565b908201526101206141588482016140a0565b9082015261014061416a8482016140a0565b9082015261016061417c8482016140a0565b9082015261018061418e8482016140a0565b908201526101a06141a08482016140b1565b908201529392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006fffffffffffffffffffffffffffffffff83811690831681811015614203576142036141ab565b039392505050565b600181811c9082168061421f57607f821691505b60208210811415614259577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614297576142976141ab565b500290565b60006fffffffffffffffffffffffffffffffff8083168185168083038211156142c7576142c76141ab565b01949350505050565b6000602082840312156142e257600080fd5b8151613cff81613da8565b600073ffffffffffffffffffffffffffffffffffffffff80871683528086166020840152508360408301526080606083015261432c6080830184613d4b565b9695505050505050565b60006020828403121561434857600080fd5b8151613cff81613cb4565b60008551614365818460208a01613d1f565b7fffffffffffffffffff0000000000000000000000000000000000000000000000861690830190815284516143a1816009840160208901613d1f565b8082019150507fffff00000000000000000000000000000000000000000000000000000000000084166009820152600b810191505095945050505050565b600085516143f1818460208a01613d1f565b7fffffffffffffffffff000000000000000000000000000000000000000000000095909516919094019081527fffffffffff000000000000000000000000000000000000000000000000000000929092166009830152600e820152602e0192915050565b60008451614467818460208901613d1f565b91909101928352507fffff000000000000000000000000000000000000000000000000000000000000166020820152602201919050565b600085516144b0818460208a01613d1f565b7fffffffffffffffffffff00000000000000000000000000000000000000000000861690830190815284516144ec81600a840160208901613d1f565b8082019150507fff000000000000000000000000000000000000000000000000000000000000008416600a820152600b810191505095945050505050565b6000865161453c818460208b01613d1f565b80830190507fffffffffffffffffffffffffffffffff0000000000000000000000000000000087168152856010820152845161457f816030840160208901613d1f565b8082019150507fffff00000000000000000000000000000000000000000000000000000000000084166030820152603281019150509695505050505050565b600083516145d0818460208801613d1f565b7fffffffffffffffffffffffffffff0000000000000000000000000000000000009390931691909201908152600e0192915050565b60006020828403121561461757600080fd5b5051919050565b60008551614630818460208a01613d1f565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00009590951691909401908152601e8101929092527fffffff000000000000000000000000000000000000000000000000000000000016603e82015260410192915050565b600085516146a6818460208a01613d1f565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009590951691909401908152601f8101929092527fffffff000000000000000000000000000000000000000000000000000000000016603f82015260420192915050565b6000845161471c818460208901613d1f565b91909101928352507fffffffffffffffffffffffffffffffffffffffffffff00000000000000000000166020820152603601919050565b60008651614765818460208b01613d1f565b91909101948552507fffffffffffffffffffff00000000000000000000000000000000000000000000929092166020840152602a8301527fffffff000000000000000000000000000000000000000000000000000000000016604a820152604d01919050565b600086516147dd818460208b01613d1f565b7fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000096909616919095019081527fffffffffffffffffffff0000000000000000000000000000000000000000000093909316601884015260228301919091527fffffff000000000000000000000000000000000000000000000000000000000016604282015260450192915050565b6000875161487d818460208c01613d1f565b7fffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000088169083019081527fffffffffffffffffffffffffffffffffffffffffffff00000000000000000000871660198201527fffffffffffffffff0000000000000000000000000000000000000000000000008616602f8201528451614909816037840160208901613d1f565b8082019150507fff000000000000000000000000000000000000000000000000000000000000008416603782015260388101915050979650505050505050565b6000835161495b818460208801613d1f565b7fff00000000000000000000000000000000000000000000000000000000000000939093169190920190815260010192915050565b600083516149a2818460208801613d1f565b7fffffffffffffffffffffffffffffff00000000000000000000000000000000009390931691909201908152600f0192915050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614a0957614a096141ab565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082614a4e57614a4e614a10565b500490565b600082821015614a6557614a656141ab565b500390565b600082614a7957614a79614a10565b500690565b60008219821115614a9157614a916141ab565b500190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061ffff83811690831681811015614203576142036141ab565b600060ff821660ff811415614af757614af76141ab565b60010192915050565b600061ffff80841680614b1557614b15614a10565b9216919091069291505056fea2646970667358221220d933709aa1c67949075bbfc7e7c143fb31a51e23240d01dc50f0388b8202e73e64736f6c634300080c003368747470733a2f2f7777772e7363756d627567732e6e65742f6275672f00000000000000000000000000000015a768c1d9ec2450d641ffb580af0954c40a4ec8000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Deployed Bytecode
0x6080604052600436106102335760003560e01c80636352211e11610138578063b88d4fde116100b0578063e73faa2d1161007f578063ecc03bbd11610064578063ecc03bbd1461069a578063f2fde38b146106c7578063fc572678146106e757600080fd5b8063e73faa2d14610664578063e985e9c51461067a57600080fd5b8063b88d4fde146105e4578063c87b56dd14610604578063dc1b732814610624578063e43082f71461064457600080fd5b80638456cb591161010757806395d89b41116100ec57806395d89b411461059c578063a22cb465146105b1578063a39e9a2f146105d157600080fd5b80638456cb591461055c5780638da5cb5b1461057157600080fd5b80636352211e146104d857806370a08231146104f8578063715018a6146105185780637f46ecd81461052d57600080fd5b806323b872dd116101cb57806342842e0e1161019a5780634f6ccce71161017f5780634f6ccce7146104605780635c975abb146104805780635f48f393146104b057600080fd5b806342842e0e14610413578063460447ae1461043357600080fd5b806323b872dd146103a95780632f745c59146103c95780633ccfd60b146103e95780633f4ba83a146103fe57600080fd5b806306fdde031161020757806306fdde03146102dd578063081812fc146102ff578063095ea7b31461034457806318160ddd1461036457600080fd5b80629a9b7b1461023857806301ffc9a714610260578063047fc9aa146102905780630613ae08146102bb575b600080fd5b34801561024457600080fd5b5061024d610707565b6040519081526020015b60405180910390f35b34801561026c57600080fd5b5061028061027b366004613ce2565b610740565b6040519015158152602001610257565b34801561029c57600080fd5b506102a6613bed81565b60405163ffffffff9091168152602001610257565b3480156102c757600080fd5b506102db6102d6366004613d06565b610871565b005b3480156102e957600080fd5b506102f26108fc565b6040516102579190613d95565b34801561030b57600080fd5b5061031f61031a366004613d06565b61098e565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610257565b34801561035057600080fd5b506102db61035f366004613dca565b6109f8565b34801561037057600080fd5b5061024d6000546fffffffffffffffffffffffffffffffff70010000000000000000000000000000000082048116918116919091031690565b3480156103b557600080fd5b506102db6103c4366004613df6565b610adf565b3480156103d557600080fd5b5061024d6103e4366004613dca565b610aea565b3480156103f557600080fd5b506102db610c67565b34801561040a57600080fd5b506102db610cb0565b34801561041f57600080fd5b506102db61042e366004613df6565b610d82565b34801561043f57600080fd5b5060115461031f9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561046c57600080fd5b5061024d61047b366004613d06565b610d9d565b34801561048c57600080fd5b5060075474010000000000000000000000000000000000000000900460ff16610280565b3480156104bc57600080fd5b506104c5601481565b60405161ffff9091168152602001610257565b3480156104e457600080fd5b5061031f6104f3366004613d06565b610ea1565b34801561050457600080fd5b5061024d610513366004613e37565b610eb3565b34801561052457600080fd5b506102db610f35565b34801561053957600080fd5b50610280610548366004613d06565b6000908152600a6020526040902054151590565b34801561056857600080fd5b506102db610fc2565b34801561057d57600080fd5b5060075473ffffffffffffffffffffffffffffffffffffffff1661031f565b3480156105a857600080fd5b506102f26110ac565b3480156105bd57600080fd5b506102db6105cc366004613e69565b6110bb565b6102db6105df366004613e9e565b6111a2565b3480156105f057600080fd5b506102db6105ff366004613f6a565b611396565b34801561061057600080fd5b506102f261061f366004613d06565b6113e9565b34801561063057600080fd5b506102db61063f366004613d06565b611489565b34801561065057600080fd5b506102db61065f36600461404c565b611536565b34801561067057600080fd5b5061024d60135481565b34801561068657600080fd5b50610280610695366004614067565b6115e8565b3480156106a657600080fd5b5061024d6106b5366004613d06565b60096020526000908152604090205481565b3480156106d357600080fd5b506102db6106e2366004613e37565b61170d565b3480156106f357600080fd5b506102db6107023660046140c5565b61183a565b60008054610729906001906fffffffffffffffffffffffffffffffff166141da565b6fffffffffffffffffffffffffffffffff16905090565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806107d357507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061081f57507fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000145b8061086b57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60075473ffffffffffffffffffffffffffffffffffffffff1633146108f7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b601055565b60606001805461090b9061420b565b80601f01602080910402602001604051908101604052809291908181526020018280546109379061420b565b80156109845780601f1061095957610100808354040283529160200191610984565b820191906000526020600020905b81548152906001019060200180831161096757829003601f168201915b5050505050905090565b600061099982611c13565b6109cf576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5060009081526005602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610a0382610ea1565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a6b576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff821614801590610a985750610a9681336115e8565b155b15610acf576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ada838383611c69565b505050565b610ada838383611cea565b6000610af583610eb3565b8210610b2d576040517f0ddac30e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080546fffffffffffffffffffffffffffffffff169080805b83811015610c61576000818152600360209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff161580159282019290925290610be65750610c59565b805173ffffffffffffffffffffffffffffffffffffffff1615610c0857805192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c575786841415610c505750935061086b92505050565b6001909301925b505b600101610b47565b50600080fd5b60075460405173ffffffffffffffffffffffffffffffffffffffff909116904780156108fc02916000818181858888f19350505050158015610cad573d6000803e3d6000fd5b50565b60075473ffffffffffffffffffffffffffffffffffffffff163314610d31576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108ee565b60075474010000000000000000000000000000000000000000900460ff16610d5857600080fd5b600780547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff169055565b610ada83838360405180602001604052806000815250611396565b600080546fffffffffffffffffffffffffffffffff1681805b82811015610e6e576000818152600360209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff16151591810182905290610e655785831415610e5e5750949350505050565b6001909201915b50600101610db6565b506040517fa723001c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610eac82612067565b5192915050565b600073ffffffffffffffffffffffffffffffffffffffff8216610f02576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5073ffffffffffffffffffffffffffffffffffffffff1660009081526004602052604090205467ffffffffffffffff1690565b60075473ffffffffffffffffffffffffffffffffffffffff163314610fb6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108ee565b610fc06000612246565b565b60075473ffffffffffffffffffffffffffffffffffffffff163314611043576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108ee565b60075474010000000000000000000000000000000000000000900460ff161561106b57600080fd5b600780547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055565b60606002805461090b9061420b565b73ffffffffffffffffffffffffffffffffffffffff821633141561110b576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b33600081815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60075474010000000000000000000000000000000000000000900460ff16156111ca57600080fd5b601461ffff82161115611239576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f43616e2774206d696e74206d6f7265207468616e206d617820616d6f756e740060448201526064016108ee565b8061ffff1660135461124b919061425f565b3410156112da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603960248201527f56616c75652073686f756c6420626520657175616c206f72206772656174657260448201527f207468616e20756e6974207072696365202a20616d6f756e740000000000000060648201526084016108ee565b600054613bed906001906113059061ffff8516906fffffffffffffffffffffffffffffffff1661429c565b61130f91906141da565b6fffffffffffffffffffffffffffffffff1610611388576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f43616e2774206d696e74207468617420616d6f756e74206f66204e465473000060448201526064016108ee565b610cad338261ffff166122bd565b6113a1848484611cea565b6113ad848484846122db565b6113e3576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b60606113f482611c13565b611480576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016108ee565b61086b82612475565b60075473ffffffffffffffffffffffffffffffffffffffff16331461150a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108ee565b60075474010000000000000000000000000000000000000000900460ff1661153157600080fd5b601355565b60075473ffffffffffffffffffffffffffffffffffffffff1633146115b7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108ee565b601480547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60125460145460009173ffffffffffffffffffffffffffffffffffffffff169060ff1680156116bf57506040517fc455279100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152808516919083169063c455279190602401602060405180830381865afa158015611683573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116a791906142d0565b73ffffffffffffffffffffffffffffffffffffffff16145b156116ce57600191505061086b565b73ffffffffffffffffffffffffffffffffffffffff80851660009081526006602090815260408083209387168352929052205460ff165b949350505050565b60075473ffffffffffffffffffffffffffffffffffffffff16331461178e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108ee565b73ffffffffffffffffffffffffffffffffffffffff8116611831576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016108ee565b610cad81612246565b60075473ffffffffffffffffffffffffffffffffffffffff1633146118bb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108ee565b80516000818152600a60205260409020541580159061195c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4d6574616461746120616c72656164792067656e65726174656420666f72207460448201527f6f6b656e4964000000000000000000000000000000000000000000000000000060648201526084016108ee565b6000546fffffffffffffffffffffffffffffffff1682106119d9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4e4654207769746820746f6b656e496420646f6573206e6f742065786973740060448201526064016108ee565b600090506040518061010001604052808460c0015160ff1681526020018460e0015160ff16815260200184610100015160ff16815260200184610120015160ff16815260200184610140015160ff16815260200184610160015160ff16815260200184610180015160ff168152602001846101a0015163ffffffff168152506008600084815260200190815260200160002060008201518160000160006101000a81548160ff021916908360ff16021790555060208201518160000160016101000a81548160ff021916908360ff16021790555060408201518160000160026101000a81548160ff021916908360ff16021790555060608201518160000160036101000a81548160ff021916908360ff16021790555060808201518160000160046101000a81548160ff021916908360ff16021790555060a08201518160000160056101000a81548160ff021916908360ff16021790555060c08201518160000160066101000a81548160ff021916908360ff16021790555060e08201518160000160076101000a81548163ffffffff021916908363ffffffff160217905550905050826020015160096000848152602001908152602001600020819055508260400151600a6000848152602001908152602001600020819055508260600151600b6000848152602001908152602001600020819055508260800151600c6000848152602001908152602001600020819055508260a00151600d600084815260200190815260200160002081905550505050565b3b151590565b600080546fffffffffffffffffffffffffffffffff168210801561086b5750506000908152600360205260409020547c0100000000000000000000000000000000000000000000000000000000900460ff161590565b60008281526005602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611cf582612067565b805190915060009073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611d3d57508151611d3d90336115e8565b80611d65575033611d4d8461098e565b73ffffffffffffffffffffffffffffffffffffffff16145b905080611d9e576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614611e07576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8416611e54576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611e646000848460000151611c69565b73ffffffffffffffffffffffffffffffffffffffff858116600090815260046020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000080821667ffffffffffffffff9283167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01831617909255898616808652838620805493841693831660019081018416949094179055898652600390945282852080547fffffffff000000000000000000000000000000000000000000000000000000001690941774010000000000000000000000000000000000000000429092169190910217909255908601808352912054909116612003576000546fffffffffffffffffffffffffffffffff16811015612003578251600082815260036020908152604090912080549186015167ffffffffffffffff1674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090921673ffffffffffffffffffffffffffffffffffffffff909316929092171790555b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b60408051606081018252600080825260208201819052918101829052905482906fffffffffffffffffffffffffffffffff16811015612214576000818152600360209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff1615159181018290529061221257805173ffffffffffffffffffffffffffffffffffffffff1615612153579392505050565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff016000818152600360209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff811680835274010000000000000000000000000000000000000000820467ffffffffffffffff16938301939093527c0100000000000000000000000000000000000000000000000000000000900460ff161515928101929092521561220d579392505050565b612153565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6122d78282604051806020016040528060008152506134e7565b5050565b600073ffffffffffffffffffffffffffffffffffffffff84163b1561246a576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a02906123529033908990889088906004016142ed565b6020604051808303816000875af19250505080156123ab575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526123a891810190614336565b60015b61241f573d8080156123d9576040519150601f19603f3d011682016040523d82523d6000602084013e6123de565b606091505b508051612417576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611705565b506001949350505050565b6060600080612483426134f4565b9050600061249042613509565b600086815260086020526040812054919250906124bd90670100000000000000900463ffffffff166134f4565b600087815260086020526040812054919250906124ea90670100000000000000900463ffffffff16613509565b90508160ff168460ff1614801561250657508060ff168360ff16145b1561251057600194505b50600092508291508190508080612535886000908152600a6020526040902054151590565b905060006125428961351e565b604080517f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b0000000060208201527f226e616d65223a22000000000000000000000000000000000000000000000000603c8201528151602481830301815260448201909252919250906125fb9082907f5363756d627567202300000000000000000000000000000000000000000000009085907f222c00000000000000000000000000000000000000000000000000000000000090606401614353565b6040516020818303038152906040529050826126c757600e546040516126699183917f22696d616765223a220000000000000000000000000000000000000000000000917f61723a2f2f000000000000000000000000000000000000000000000000000000916020016143df565b604051602081830303815290604052905080600f547f222c0000000000000000000000000000000000000000000000000000000000006040516020016126b193929190614455565b6040516020818303038152906040529050612889565b87156127a25760008a8152600c60209081526040918290205491516127339284927f22696d616765223a220000000000000000000000000000000000000000000000927f61723a2f2f0000000000000000000000000000000000000000000000000000009291016143df565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815282825260008d8152600d6020908152929020549093506126b19284927f222c0000000000000000000000000000000000000000000000000000000000009101614455565b60008a8152600a60209081526040918290205491516128089284927f22696d616765223a220000000000000000000000000000000000000000000000927f61723a2f2f0000000000000000000000000000000000000000000000000000009291016143df565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815282825260008d8152600b6020908152929020549093506128779284927f222c0000000000000000000000000000000000000000000000000000000000009101614455565b60405160208183030381529060405290505b807f22746f6b656e4964223a00000000000000000000000000000000000000000000837f2c000000000000000000000000000000000000000000000000000000000000006040516020016128e0949392919061449e565b6040516020818303038152906040529050821561343357807f2265787465726e616c5f75726c223a2200000000000000000000000000000000601054847f222c00000000000000000000000000000000000000000000000000000000000060405160200161295295949392919061452a565b604080518083037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001815260008d815260086020908152908390206101008086018552905460ff8082168752918104821683870152620100008104821686860152630100000081048216606080880191909152640100000000820483166080880152650100000000008204831660a08801526601000000000000820490921660c0870152670100000000000000900463ffffffff1660e0860152601154935190965091945073ffffffffffffffffffffffffffffffffffffffff90921691612a5e9185917f2261747472696275746573223a5b00000000000000000000000000000000000091016145be565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052825190935060ff1615612b9c5781516040517f560c894700000000000000000000000000000000000000000000000000000000815260ff909116600482015260009073ffffffffffffffffffffffffffffffffffffffff83169063560c894790602401602060405180830381865afa158015612b0c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b309190614605565b9050837f7b2274726169745f74797065223a2268616e64222c2276616c7565223a220000827f227d2c0000000000000000000000000000000000000000000000000000000000604051602001612b89949392919061461e565b6040516020818303038152906040529350505b602082015160ff1615612caf5760208201516040517f34f959de00000000000000000000000000000000000000000000000000000000815260ff909116600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906334f959de90602401602060405180830381865afa158015612c1f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c439190614605565b9050837f7b2274726169745f74797065223a22626f6479222c2276616c7565223a220000827f227d2c0000000000000000000000000000000000000000000000000000000000604051602001612c9c949392919061461e565b6040516020818303038152906040529350505b604082015160ff1615612dc25760408281015190517fb5fda7d700000000000000000000000000000000000000000000000000000000815260ff909116600482015260009073ffffffffffffffffffffffffffffffffffffffff83169063b5fda7d790602401602060405180830381865afa158015612d32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d569190614605565b9050837f7b2274726169745f74797065223a2265796573222c2276616c7565223a220000827f227d2c0000000000000000000000000000000000000000000000000000000000604051602001612daf949392919061461e565b6040516020818303038152906040529350505b606082015160ff1615612ed55760608201516040517f7f8e39b700000000000000000000000000000000000000000000000000000000815260ff909116600482015260009073ffffffffffffffffffffffffffffffffffffffff831690637f8e39b790602401602060405180830381865afa158015612e45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e699190614605565b9050837f7b2274726169745f74797065223a2268656164222c2276616c7565223a220000827f227d2c0000000000000000000000000000000000000000000000000000000000604051602001612ec2949392919061461e565b6040516020818303038152906040529350505b608082015160ff1615612fe85760808201516040517fea32490200000000000000000000000000000000000000000000000000000000815260ff909116600482015260009073ffffffffffffffffffffffffffffffffffffffff83169063ea32490290602401602060405180830381865afa158015612f58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f7c9190614605565b9050837f7b2274726169745f74797065223a226d6f757468222c2276616c7565223a2200827f227d2c0000000000000000000000000000000000000000000000000000000000604051602001612fd59493929190614694565b6040516020818303038152906040529350505b891561305957827f7b2274726169745f74797065223a226261636b67726f756e645f636f6c6f72227f2c2276616c7565223a22426972746864617921227d2c000000000000000000006040516020016130439392919061470a565b60405160208183030381529060405292506131a0565b60a08201516040517f9fbe3ee800000000000000000000000000000000000000000000000000000000815260ff909116600482015260009073ffffffffffffffffffffffffffffffffffffffff831690639fbe3ee890602401602060405180830381865afa1580156130cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130f39190614605565b9050837f7b2274726169745f74797065223a226261636b67726f756e645f636f6c6f72227f2c2276616c7565223a2200000000000000000000000000000000000000000000837f227d2c000000000000000000000000000000000000000000000000000000000060405160200161316e959493929190614753565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190529350505b60c08201516040517fe492bfcd00000000000000000000000000000000000000000000000000000000815260ff909116600482015260009073ffffffffffffffffffffffffffffffffffffffff83169063e492bfcd90602401602060405180830381865afa158015613216573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061323a9190614605565b9050837f7b2274726169745f74797065223a226275675f747970652200000000000000007f2c2276616c7565223a2200000000000000000000000000000000000000000000837f227d2c00000000000000000000000000000000000000000000000000000000006040516020016132b59594939291906147cb565b60405160208183030381529060405293506000905060009150837f7b2274726169745f74797065223a226269727468646179222c000000000000007f22646973706c61795f74797065223a2264617465222c000000000000000000007f2276616c7565223a0000000000000000000000000000000000000000000000006133458760e0015163ffffffff1661351e565b7f7d0000000000000000000000000000000000000000000000000000000000000060405160200161337b9695949392919061486b565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815261010083018252600080845260208401819052918301829052606083018290526080830182905260a0830182905260c0830182905260e083019190915294509250837f5d0000000000000000000000000000000000000000000000000000000000000060405160200161341a929190614949565b6040516020818303038152906040529350505050613478565b807f2261747472696275746573223a5b5d0000000000000000000000000000000000604051602001613466929190614990565b60405160208183030381529060405290505b807f7d000000000000000000000000000000000000000000000000000000000000006040516020016134ab929190614949565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190529a9950505050505050505050565b610ada8383836001613650565b60006134ff826138ce565b6040015192915050565b6000613514826138ce565b6020015192915050565b60608161355e57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156135885780613572816149d7565b91506135819050600a83614a3f565b9150613562565b60008167ffffffffffffffff8111156135a3576135a3613ec2565b6040519080825280601f01601f1916602001820160405280156135cd576020820181803683370190505b5090505b8415611705576135e2600183614a53565b91506135ef600a86614a6a565b6135fa906030614a7e565b60f81b81838151811061360f5761360f614a96565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613649600a86614a3f565b94506135d1565b6000546fffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff85166136b2576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b836136e9576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8516600081815260046020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c018116918217680100000000000000007fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090941690921783900481168c018116909202179091558584526003909252822080547fffffffff00000000000000000000000000000000000000000000000000000000169093177401000000000000000000000000000000000000000042909216919091021790915581905b8581101561388757604051829073ffffffffffffffffffffffffffffffffffffffff8916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4838015613844575061384260008884886122db565b155b1561387b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600191820191016137e0565b50600080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff92909216919091179055612060565b604080516060810182526000808252602082018190529181018290529080806138f685613a55565b61ffff1684526139076107b2613b4a565b84516139169061ffff16613b4a565b6139209190614a53565b9150613930826301e2850061425f565b61393a9084614a7e565b9250816107b2856000015161394f9190614ac5565b61ffff1661395d9190614a53565b61396b906301e1338061425f565b6139759084614a7e565b92506000600191505b600c8260ff16116139e657613997828660000151613b8f565b6139a79060ff166201518061425f565b9050856139b48583614a7e565b11156139c85760ff821660208601526139e6565b6139d28185614a7e565b9350816139de81614ae0565b92505061397e565b600191505b6139fd85602001518660000151613b8f565b60ff168260ff1611613a4c5785613a178562015180614a7e565b1115613a2b5760ff82166040860152613a4c565b613a386201518085614a7e565b935081613a4481614ae0565b9250506139eb565b50505050919050565b6000808080613a686301e1338086614a3f565b613a74906107b2614a7e565b9150613a816107b2613b4a565b613a8e8361ffff16613b4a565b613a989190614a53565b9050613aa8816301e2850061425f565b613ab29084614a7e565b925080613ac16107b284614ac5565b61ffff16613acf9190614a53565b613add906301e1338061425f565b613ae79084614a7e565b92505b84831115613b4257613b05613b00600184614ac5565b613c55565b15613b1f57613b186301e2850084614a53565b9250613b30565b613b2d6301e1338084614a53565b92505b613b3b600183614ac5565b9150613aea565b509392505050565b6000613b57600183614a53565b9150613b6561019083614a3f565b613b70606484614a3f565b613b7b600485614a3f565b613b859190614a53565b61086b9190614a7e565b60008260ff1660011480613ba657508260ff166003145b80613bb457508260ff166005145b80613bc257508260ff166007145b80613bd057508260ff166008145b80613bde57508260ff16600a145b80613bec57508260ff16600c145b15613bf95750601f61086b565b8260ff1660041480613c0e57508260ff166006145b80613c1c57508260ff166009145b80613c2a57508260ff16600b145b15613c375750601e61086b565b613c4082613c55565b15613c4d5750601d61086b565b50601c61086b565b6000613c62600483614b00565b61ffff1615613c7357506000919050565b613c7e606483614b00565b61ffff1615613c8f57506001919050565b613c9b61019083614b00565b61ffff1615613cac57506000919050565b506001919050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610cad57600080fd5b600060208284031215613cf457600080fd5b8135613cff81613cb4565b9392505050565b600060208284031215613d1857600080fd5b5035919050565b60005b83811015613d3a578181015183820152602001613d22565b838111156113e35750506000910152565b60008151808452613d63816020860160208601613d1f565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000613cff6020830184613d4b565b73ffffffffffffffffffffffffffffffffffffffff81168114610cad57600080fd5b60008060408385031215613ddd57600080fd5b8235613de881613da8565b946020939093013593505050565b600080600060608486031215613e0b57600080fd5b8335613e1681613da8565b92506020840135613e2681613da8565b929592945050506040919091013590565b600060208284031215613e4957600080fd5b8135613cff81613da8565b80358015158114613e6457600080fd5b919050565b60008060408385031215613e7c57600080fd5b8235613e8781613da8565b9150613e9560208401613e54565b90509250929050565b600060208284031215613eb057600080fd5b813561ffff81168114613cff57600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040516101c0810167ffffffffffffffff81118282101715613f1557613f15613ec2565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715613f6257613f62613ec2565b604052919050565b60008060008060808587031215613f8057600080fd5b8435613f8b81613da8565b9350602085810135613f9c81613da8565b935060408601359250606086013567ffffffffffffffff80821115613fc057600080fd5b818801915088601f830112613fd457600080fd5b813581811115613fe657613fe6613ec2565b614016847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601613f1b565b9150808252898482850101111561402c57600080fd5b808484018584013760008482840101525080935050505092959194509250565b60006020828403121561405e57600080fd5b613cff82613e54565b6000806040838503121561407a57600080fd5b823561408581613da8565b9150602083013561409581613da8565b809150509250929050565b803560ff81168114613e6457600080fd5b803563ffffffff81168114613e6457600080fd5b60006101c082840312156140d857600080fd5b6140e0613ef1565b823581526020830135602082015260408301356040820152606083013560608201526080830135608082015260a083013560a082015261412260c084016140a0565b60c082015261413360e084016140a0565b60e08201526101006141468185016140a0565b908201526101206141588482016140a0565b9082015261014061416a8482016140a0565b9082015261016061417c8482016140a0565b9082015261018061418e8482016140a0565b908201526101a06141a08482016140b1565b908201529392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006fffffffffffffffffffffffffffffffff83811690831681811015614203576142036141ab565b039392505050565b600181811c9082168061421f57607f821691505b60208210811415614259577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614297576142976141ab565b500290565b60006fffffffffffffffffffffffffffffffff8083168185168083038211156142c7576142c76141ab565b01949350505050565b6000602082840312156142e257600080fd5b8151613cff81613da8565b600073ffffffffffffffffffffffffffffffffffffffff80871683528086166020840152508360408301526080606083015261432c6080830184613d4b565b9695505050505050565b60006020828403121561434857600080fd5b8151613cff81613cb4565b60008551614365818460208a01613d1f565b7fffffffffffffffffff0000000000000000000000000000000000000000000000861690830190815284516143a1816009840160208901613d1f565b8082019150507fffff00000000000000000000000000000000000000000000000000000000000084166009820152600b810191505095945050505050565b600085516143f1818460208a01613d1f565b7fffffffffffffffffff000000000000000000000000000000000000000000000095909516919094019081527fffffffffff000000000000000000000000000000000000000000000000000000929092166009830152600e820152602e0192915050565b60008451614467818460208901613d1f565b91909101928352507fffff000000000000000000000000000000000000000000000000000000000000166020820152602201919050565b600085516144b0818460208a01613d1f565b7fffffffffffffffffffff00000000000000000000000000000000000000000000861690830190815284516144ec81600a840160208901613d1f565b8082019150507fff000000000000000000000000000000000000000000000000000000000000008416600a820152600b810191505095945050505050565b6000865161453c818460208b01613d1f565b80830190507fffffffffffffffffffffffffffffffff0000000000000000000000000000000087168152856010820152845161457f816030840160208901613d1f565b8082019150507fffff00000000000000000000000000000000000000000000000000000000000084166030820152603281019150509695505050505050565b600083516145d0818460208801613d1f565b7fffffffffffffffffffffffffffff0000000000000000000000000000000000009390931691909201908152600e0192915050565b60006020828403121561461757600080fd5b5051919050565b60008551614630818460208a01613d1f565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00009590951691909401908152601e8101929092527fffffff000000000000000000000000000000000000000000000000000000000016603e82015260410192915050565b600085516146a6818460208a01613d1f565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009590951691909401908152601f8101929092527fffffff000000000000000000000000000000000000000000000000000000000016603f82015260420192915050565b6000845161471c818460208901613d1f565b91909101928352507fffffffffffffffffffffffffffffffffffffffffffff00000000000000000000166020820152603601919050565b60008651614765818460208b01613d1f565b91909101948552507fffffffffffffffffffff00000000000000000000000000000000000000000000929092166020840152602a8301527fffffff000000000000000000000000000000000000000000000000000000000016604a820152604d01919050565b600086516147dd818460208b01613d1f565b7fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000096909616919095019081527fffffffffffffffffffff0000000000000000000000000000000000000000000093909316601884015260228301919091527fffffff000000000000000000000000000000000000000000000000000000000016604282015260450192915050565b6000875161487d818460208c01613d1f565b7fffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000088169083019081527fffffffffffffffffffffffffffffffffffffffffffff00000000000000000000871660198201527fffffffffffffffff0000000000000000000000000000000000000000000000008616602f8201528451614909816037840160208901613d1f565b8082019150507fff000000000000000000000000000000000000000000000000000000000000008416603782015260388101915050979650505050505050565b6000835161495b818460208801613d1f565b7fff00000000000000000000000000000000000000000000000000000000000000939093169190920190815260010192915050565b600083516149a2818460208801613d1f565b7fffffffffffffffffffffffffffffff00000000000000000000000000000000009390931691909201908152600f0192915050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614a0957614a096141ab565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082614a4e57614a4e614a10565b500490565b600082821015614a6557614a656141ab565b500390565b600082614a7957614a79614a10565b500690565b60008219821115614a9157614a916141ab565b500190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061ffff83811690831681811015614203576142036141ab565b600060ff821660ff811415614af757614af76141ab565b60010192915050565b600061ffff80841680614b1557614b15614a10565b9216919091069291505056fea2646970667358221220d933709aa1c67949075bbfc7e7c143fb31a51e23240d01dc50f0388b8202e73e64736f6c634300080c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
68747470733a2f2f7777772e7363756d627567732e6e65742f6275672f00000000000000000000000000000015a768c1d9ec2450d641ffb580af0954c40a4ec8000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
-----Decoded View---------------
Arg [0] : _siteUrl (bytes32): 0x68747470733a2f2f7777772e7363756d627567732e6e65742f6275672f000000
Arg [1] : _ScumbugsValues (address): 0x15A768c1D9Ec2450D641FFB580AF0954c40A4Ec8
Arg [2] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 68747470733a2f2f7777772e7363756d627567732e6e65742f6275672f000000
Arg [1] : 00000000000000000000000015a768c1d9ec2450d641ffb580af0954c40a4ec8
Arg [2] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
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.