Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Name:
LOOKLogic
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-09-16 */ pragma solidity ^0.8.0; library LOOKLib { function textures() public pure returns (string[64] memory) { return [ "Silky", "Velvety", "Slimy", "Sharp", "Latex", "Wool", "Scaly", "Coarse", "Sandy", "Rocky", "Bumpy", "Slippery", "Fuzzy", "Synthetic", "Rough", "Fizzy", "Sticky", "Slick", "Popcorn", "Cotton Candy", "Slap Brush", "Feathery", "Prickly", "Crows Feet", "Smooth", "Cloudy", "Misty", "Bristly", "Solid", "Liquid", "Foamy", "Spongey", "Gelatinous", "Crumbly", "Spiked", "Crackled", "Barbed", "Crusty", "Powdery", "Leathery", "Squishy", "Wrinkly", "Reflective", "Glittery", "Felt", "Puffy", "Fleece", "Polymer", "Ceramic", "Chiffon", "Plastic", "Glass", "Lumpy", "Cotton", "Denim", "Lace", "Double Knit", "Knit", "Lace", "Mesh", "Nylon", "Satin", "Tactel", "Wool" ]; } function flares() public pure returns (string[45] memory) { return [ "Empty Wine Bottle", "Copper Dragon", "Sugary Cereal", "White Dragon", "Rainbow Serpent", "Paradise A Burn", "Asteroid En Route", "Neptune Sword", "Jupiter Honey", "Cosmic Heat", "Indie Luna", "Flashbulb Camera", "Category Four Hurricane", "Blood Mustang", "Candle in the Wind", "Diamond Wave", "All Powerful Trident", "Multifaceted Buzz", "1964 California Spyder", "Millions of Polka Dots", "Interstellar Mass", "Endless Galaxies", "A 1999 Video Game", "Glimmering Swimming Pool", "Black Cristal", "Zero Gravity", "Coney Island", "Aerodynamic Steering Wheel", "National Turbulence", "Heavy Metal Hour", "Seagull\xE2\x80\x99s Circling", "Mermaid Motel", "Self Loathing Poet", "Canyon\xE2\x80\x99s Infinite Abyss", "Diet Mountain Dew", "Harem Silks From Bombay", "Rolling Party Ashes", "Gate of the Gargoyles", "Bel Air Palm Trees", "Rare Jazz Collection", "Hydroponic Weed", "Spicy Caviar", "Brooklyn Cola Bottle", "Wabi Sabi", "Summer Apartment Complex" ]; } function colours() public pure returns (string[54] memory) { return [ "Crow Black", "Raven Black", "Jet Black", "Black as Night", "Black as Ink", "Milky White", "Pearl White", "Sugar White", "Eggshell White", "Scarlet", "Crimson", "Ruby Red", "Cranberry", "Aqua", "Navy", "Turquoise", "Teal", "Aquamarine", "Golden Oak", "Sapphire Blue", "Glacial Blue", "Lemon Yellow", "Butter Yellow", "Military Green", "Sunshine Yellow", "Golden Blue", "Silver Red", "Silver Purple", "Golden Purple", "Golden Green", "Golden Orange", "Silver Teal", "Jade", "Lime Green", "Bottle Green", "Flamingo Pink", "Shell Pink", "Violet", "Pansy Purple", "Pumpkin Orange", "Sunset Orange", "Tiger Lily Orange", "Mocha Brown", "Coffee Brown", "Bronze Green", "Cinnamon Yellow", "Caramel Orange", "Burnt Red", "Caramel Yellow", "Hazel Gray", "Charcoal Gray", "Mellow Yellow", "Smoke Gray", "Cocoa Brown" ]; } function backgroundColours() public pure returns (string[30] memory) { return [ "FF0294", "02FF6A", "EE740D", "EE0D0D", "00C0D0", "0056F6", "C600F6", "F60091", "CA215C", "DA9708", "5EDA08", "DA801A", "771ADA", "1A6EDA", "1AC6DA", "18B144", "7E18B1", "A533DE", "A8DE33", "D9DE33", "DE7C33", "E36100", "E300BA", "731F64", "66D83F", "3FB5D8", "000000", "3B289B", "9B285E", "3ACFA4" ]; } function lines() public pure returns (string[33] memory) { return [ "Angular", "Fringe", "Quiff", "Chemise", "Bretelles", "Embroidery", "Drop Waist", "Peplum", "Bowl Cut", "Jagged", "Princess Line", "Yolk Line", "Crossover Line", "Hand Stitch", "Lock Stitch", "Gimp", "Multi-Thread Stitch", "Over Edge Stitch", "Blanket Stitch", "Running Stitch", "Satin Stitch", "French Knot Stitch", "Lazy Daisy Stitch", "Herringbone Stitch", "Seed Stitch", "Bullion Knot", "Buttonhole Stitch", "Shell Tuck Stitch", "Square Knot", "Water Knot", "Rolling Hitch", "Blood Knot", "Tripod Lashing" ]; } function shapes() public pure returns (string[39] memory) { return [ "Spiral", "Maxi", "Empire", "Asymmetrical", "A-line", "Hourglass", "Bell", "Mermaid", "Trumpet", "Squiggle", "Ruffle", "Lemniscate", "Mobius Strip", "Squircle", "Heptagram", "Butterfly Curve", "Inverted Bell", "Golden Ratio", "Cos", "Sine", "S Curve", "Deltoid", "Cassini Oval", "Spline", "B\xC3\xA9zier Triangle", "Roulette", "Cone", "Torus", "Honeycomb", "Star", "Broken", "Obtuse", "Straight", "Wavy", "Diagonal", "Prism", "Ring", "ZigZag", "Mangled" ]; } function forms() public pure returns (string[23] memory) { return [ "Antifragile", "Fragile", "Shifting", "Temporal", "Terrestrial", "Ephemeral", "Transient", "Intense", "Flimsy", "Reliable", "Fading", "Bright", "Repaired", "Renewed", "Over Extended", "Retracted", "Halted", "Short Form", "Long Form", "Kintsugi", "Downforce", "Melting", "Quenched" ]; } function elements() public pure returns (string[113] memory) { return [ "Hydrogen", "Helium", "Lithium", "Beryllium", "Boron", "Carbon", "Nitrogen", "Oxygen", "Fluorine", "Neon", "Sodium", "Magnesium", "Aluminum", "Silicon", "Phosphorus", "Sulfur", "Chlorine", "Argon", "Potassium", "Calcium", "Scandium", "Titanium", "Vanadium", "Chromium", "Manganese", "Iron", "Cobalt", "Nickel", "Copper", "Zinc", "Gallium", "Germanium", "Arsenic", "Selenium", "Bromine", "Krypton", "Rubidium", "Strontium", "Yttrium", "Zirconium", "Niobium", "Molybdenum", "Technetium", "Ruthenium", "Rhodium", "Palladium", "Silver", "Cadmium", "Indium", "Tin", "Antimony", "Tellurium", "Iodine", "Xenon", "Cesium", "Barium", "Lanthanum", "Cerium", "Praseodymium", "Neodymium", "Promethium", "Samarium", "Europium", "Gadolinium", "Terbium", "Dysprosium", "Holmium", "Erbium", "Thulium", "Ytterbium", "Lutetium", "Hafnium", "Tantalum", "Tungsten", "Rhenium", "Osmium", "Iridium", "Platinum", "Gold", "Mercury", "Thallium", "Lead", "Bismuth", "Polonium", "Astatine", "Radon", "Francium", "Radium", "Actinium", "Thorium", "Protactinium", "Uranium", "Neptunium", "Plutonium", "Americium", "Curium", "Berkelium", "Californium", "Einsteinium", "Fermium", "Mendelevium", "Nobelium", "Lawrencium", "Rutherfordium", "Dubnium", "Seaborgium", "Bohrium", "Hassium", "Meitnerium", "Darmstadtium", "Roentgenium", "Ununbiium", "Ununquadium" ]; } } library LOOKLogic { function prefixCommon() public pure returns (string[15] memory) { return [ "Angel\xE2\x80\x99s", "Chimera\xE2\x80\x99s", "Demon\xE2\x80\x99s", "Dragon\xE2\x80\x99s", "Hydra\xE2\x80\x99s", "Aphrodite\xE2\x80\x99s", "Goblin", "Muses\xE2\x80\x99", "Phoenix\xE2\x80\x99s", "Pixie", "Trolls\xE2\x80\x99", "Vampire", "Amaterasu\xE2\x80\x99s", "Inari\xE2\x80\x99s", "Ebisu\xE2\x80\x99s" ]; } function prefixSemirare() public pure returns (string[24] memory) { return [ "Izanagi\xE2\x80\x99s", "Osiris\xE2\x80\x99s", "Horus\xE2\x80\x99", "Anubis\xE2\x80\x99s", "Zeus\xE2\x80\x99s", "Artemis\xE2\x80\x99s", "Apollo\xE2\x80\x99s", "Athena\xE2\x80\x99s", "Venus\xE2\x80\x99s", "Poseidon\xE2\x80\x99s", "Winter\xE2\x80\x99s", "Summer\xE2\x80\x99s", "Autumn\xE2\x80\x99s", "Eclectic\xE2\x80\x99s", "Pluto\xE2\x80\x99s", "Solar\xE2\x80\x99s", "King\xE2\x80\x99s", "Queen\xE2\x80\x99s", "Prince\xE2\x80\x99s", "Princess\xE2\x80\x99s", "Elve\xE2\x80\x99s", "Fairies\xE2\x80\x99", "Firebird\xE2\x80\x99s", "Cupid\xE2\x80\x99s" ]; } function prefixExclusive() public pure returns (string[27] memory) { return [ "Edgy", "Magical", "Charming", "Ambitious", "Bold", "Brave", "Daring", "Bright", "Audacious", "Courageous", "Fearless", "Pawned", "Dashing", "Dapper", "Gallant", "Funky", "Sophisticated", "Graceful", "Voguish", "Majestic", "Enchanting", "Elegant", "Saucy", "Sassy", "Roaring", "Vintage", "Honest" ]; } function pickSuffixCategories(uint256 rand, uint256 tokenId) public pure returns (uint256[6] memory categoryIds){ // Need to draw for the category that will be randomnly selected uint256 randCategory = random(string(abi.encodePacked("SuffixCategory", toString(rand)))); uint256 selection = (randCategory + tokenId ) % 7; // Pick one suffix to omit uint256 counter = 0; // First add category ids in but omit one suffix category for(uint256 i = 0; i< 7; i++){ if(i == selection){ continue; } categoryIds[counter] = i; counter = counter + 1; } // Then remix these ids and get with rarity as well for( uint256 j = 0; j < 6; j++){ // Just make some rarity uint256 randRarity = random(string(abi.encodePacked("SuffixRarity", toString(tokenId)))); uint256 finalRarityResult = randRarity % 21; uint256 rarity = 0; if (finalRarityResult > 14){ rarity = 1; } if (finalRarityResult > 19){ rarity = 2; } categoryIds[j] = rarity + (categoryIds[j] * 3); // Suffix arrays -> 0,1,2 then 3,4,5 then 6,7,8 etc } // Now that we have selected categories, now we need to randomize the order more // Fisher Yates type Shuffle // Shuffle 10 times for(uint256 k= 1; k < 10; k++){ for (uint256 i = 5; i == 0; i--) { // This next line is just a random code to try and get some shuffling in uint256 randomSelect = ((random(string(abi.encodePacked("FisherYates", rand))) * random(string(abi.encodePacked("RandomString"))) / random (string(abi.encodePacked(toString(tokenId))))) + (tokenId + (tokenId * k) * 234983)) % 6; uint256 x = categoryIds[i]; categoryIds[i] = categoryIds[randomSelect]; categoryIds[randomSelect] = x; } } return categoryIds; } function pickPrefix(uint256 rand, uint256 tokenId) public pure returns (string memory prefix1, string memory prefix2){ // Need to draw for uint256 randRarity1Full = random(string(abi.encodePacked("PrefixRarityOne", toString(rand)))) + tokenId; uint256 randRarity2Full = random(string(abi.encodePacked("PrefixRarityTwo", toString(rand)))) + tokenId + 1; uint256 randRarity3Full = random(string(abi.encodePacked("PrefixRarityThree3", toString(rand)))) + tokenId + 2; uint256 randRarity1 = randRarity1Full % 21; uint256 randRarity2 = randRarity2Full % 21; uint256 randRarity3 = randRarity3Full % 21; prefix1 = prefixCommon()[randRarity1Full % prefixCommon().length]; if (randRarity1 > 15){ prefix1 = prefixSemirare()[randRarity1Full % prefixSemirare().length]; } if(randRarity1 > 19){ prefix1 = prefixExclusive()[randRarity1Full % prefixExclusive().length]; } prefix2 = prefixCommon()[randRarity2Full % prefixCommon().length]; if (randRarity2 > 15){ prefix2 = prefixSemirare()[randRarity2Full % prefixSemirare().length]; } if(randRarity2 > 19){ prefix2 = prefixExclusive()[randRarity2Full % prefixExclusive().length]; } if(keccak256(bytes(prefix1)) == keccak256(bytes(prefix2))){ // Redraw once to try and prevent duplicates prefix2 = prefixCommon()[randRarity3Full % prefixCommon().length]; if (randRarity3 > 15){ prefix2 = prefixSemirare()[randRarity3Full % prefixSemirare().length]; if(randRarity3 > 19) prefix2 = prefixExclusive()[randRarity3Full % prefixExclusive().length]; } } return (prefix1, prefix2); } function random(string memory input) public pure returns (uint256) { return uint256(keccak256(abi.encodePacked(input))); } function toString(uint256 value) public pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT license // 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); } } library LOOKSuffix{ function socksSuffixCommon() public pure returns (string[3] memory) { return [ "Casual Socks", "Sport Socks", "Grip Socks" ]; } function socksSuffixSemirare() public pure returns (string[3] memory) { return [ "Winter Socks", "Crew Length Socks", "Split Toe Socks" ]; } function socksSuffixExclusive() public pure returns (string[3] memory) { return [ "Dress Socks", "Novelty Print Socks", "Knee High Socks" ]; } function sunglassSuffixCommon() public pure returns (string[4] memory) { return [ "Round Sunglasses", "Square Sunglasses", "Semi-Rimless Sunglasses", "Browline Sunglasses" ]; } function sunglassSuffixSemirare() public pure returns (string[4] memory) { return [ "Keyhole Sunglasses", "Brow Bar Sunglasses", "Wayfarer Sunglasses", "Club Master Sunglasses" ]; } function sunglassSuffixExclusive() public pure returns (string[4] memory) { return [ "Cat Eye Sunglasses", "Aviator Sunglasses", "Retro Square Sunglasses", "3D Glasses" ]; } function shoeSuffixCommon() public pure returns (string[8] memory) { return [ "Sandals", "High Top Sneakers", "Wedge Sneakers", "Gladiators", "Gum Shoes", "Army Boots", "Mary Jane Shoes", "Combat Boots" ]; } function shoeSuffixSemirare() public pure returns (string[9] memory) { return [ "Stiletto", "Platforms", "Slip Ons", "Peep Toe", "Ankle Strap", "Flats", "Ballerina Slippers", "Hiking Boots", "Buck Shoes" ]; } function shoeSuffixExclusive() public pure returns (string[7] memory) { return [ "Loafers", "Boat Shoes", "Brogue Shoes", "Snow Boots", "High Boots", "Oxfords", "Ankle Boots" ]; } function accessorySuffixCommon() public pure returns (string[18] memory) { return [ "Clip-on Earrings", "Jacket Earrings", "Festoon", "Negligee", "Cartilage Earrings", "Snap Belt", "Reversible Belt", "Athletic Belt", "Apron Necktie", "Ascot Tie", "Clip-on Tie", "Bolo/Bola Tie", "Cravat Necktie", "Sailor Tie", "String Tie", "Ribbon Sash", "Bullet Back Cufflink", "Whale Back Cufflink" ]; } function accessorySuffixSemirare() public pure returns (string[17] memory) { return [ "Mismatched Earrings", "Drop Earrings", "Teardrop Earrings", "Tassel Earrings", "Military Belt", "Leather Belt", "Metallic Belt", "Woven Belt", "Wide Belt", "Elastic Belt", "Sash Belt", "Corset Belt", "Studded Belt", "Cutout Gloves", "Cutout Mittens", "Fixed Back Cufflink", "Chain Link Cufflink" ]; } function accessorySuffixExclusive() public pure returns (string[29] memory) { return [ "Zipper Gloves", "Fine Textured Mittens", "Fur Lined Mittens", "Evening Gloves", "Gauntlet Gloves", "Lace Gloves", "Lace Mittens", "Ball Return Cufflink", "Locking Cufflink", "Knotted Cufflink", "Faux Leather", "Dress Belt", "Casual Belt", "Braided Belt", "7-Fold Tie", "Bowtie", "Kipper Tie", "Skinny Tie", "Western Bow-Tie", "Diamond Stud Earrings", "Pearl Earrings", "Hoop Earrings", "Chandelier Earrings", "Ear Cuff Earrings", "Ball Earrings", "Streamlined Hoops", "Pendant Necklace", "Collar Necklace", "Multi-Charmed Bracelet" ]; } function swimmerSuffixCommon() public pure returns (string[3] memory) { return [ "Front Tie Bikini Top", "Tori Bandeau Bikini Top", "Swim Briefs" ]; } function swimmerSuffixSemirare() public pure returns (string[3] memory) { return [ "Square Cut Board Shorts", "Crinkle Frill Bottom", "Terracotta One Piece" ]; } function swimmerSuffixExclusive() public pure returns (string[4] memory) { return [ "Mesh Rhinestone Swimwear", "Knotted-Front Swim Crop Top", "Mesh Bikini Top", "Steamer Wetsuit" ]; } function outfitSuffixCommon() public pure returns (string[24] memory) { return [ "Aline Dress", "Tent Dress", "Yoke Dress", "Shift Dress", "Dirndl Dress", "Tunic Dress", "Blouson Dress", "Shirtwaist Dress", "Wrap around Dress", "Baby doll Dress", "Body con Dress", "Cocktail Dress", "Debutante Dress", "Skater Dress", "Camisole Dress", "Pinafore Dress", "Harem Dress", "Apron Dress", "Patch Pocket Suit", "Flap Pocket Suit", "Jetted Pocket Suit", "Basic Overalls", "Old Fashioned Overalls", "Casual Overalls" ]; } function outfitSuffixSemirare() public pure returns (string[24] memory) { return [ "Sweater Dress", "Swing Dress", "Tutu Dress", "Sun Dress", "Little Black Dress", "Coat Dress", "Corset Dress", "Balloon Dress", "Bouffant Dress", "Paneled Dress", "Handkerchief Hem Dress", "Gathered Dress", "Kaftan Dress", "Pillowcase Dress", "Slip Dress", "Shirt Dress", "Ball Gown", "Party Dress", "Single Vent Suit", "Double Vent Suit", "No Vent Suit", "One-Button Suit", "Two-Button Suit", "Three-Button Suit" ]; } function outfitSuffixExclusive() public pure returns (string[21] memory) { return [ "Off Shoulder Dress", "One Shoulder Dress", "Strapless Dress", "Halterneck Dress", "Draped Dress", "Xray Dress", "Fit and Flare Dress", "Cape Dress", "Sheath Dress", "Slim Fit Suit", "Classic Fit Suit", "Modern Fit Suit", "Notch Lapel Suit", "Shawl Lapel Suit", "Peak Lapel Suit", "Single Breasted Suit", "Double Breasted Suit", "American Cut Suit", "British Cut Suit", "Italian Cut Suit", "Tuxedo" ]; } function topBottomSuffixCommon() public pure returns (string[19] memory) { return [ "Jersey shirt", "Night Shirt", "Western shirt", "Polo shirts", "Sweatshirt", "T-shirt", "Tunic shirt", "Tuxedo shirt", "Undershirt", "Chinos", "Cords", "Drawstring Trousers", "Slim-Fit Trousers", "Wool Trousers", "Relaxed Leg Trousers", "Cropped Trousers", "Cargo Pants", "Pleated Trousers", "Tracksuit Bottoms" ]; } function topBottomSuffixSemirare() public pure returns (string[19] memory) { return [ "Aloha Shirt", "Baseball Shirt", "Camp Shirt", "Casual Shirt", "Epaulette Shirt", "Flannel Shirt", "Lumberjack Shirt", "Golf Shirt", "Henley Shirt", "Ivy league Shirt", "Leggings", "Palazzo", "Pegged Pants", "Trousers", "Sailor Pants", "Straight Pants", "Stirrup Pants", "Stove Pipe Pants", "Toreador Pants" ]; } function topBottomSuffixExclusive() public pure returns (string[19] memory) { return [ "Baggy Pants", "Culottes", "Fatigue Trousers", "Jeans", "Harem Pants", "Hot Pants", "Jodhpurs", "Oxford Button-Down Shirt", "Dress Shirt", "Cuban Collar Shirt", "Overshirt", "Flannel Shirt", "Office Shirt", "Chambray Shirt", "Denim Shirt", "Linen Shirt", "Polo Shirt", "Unstructured Blazer", "Patch Pocket Blazer" ]; } } /** * @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); } /** * @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; } /** * @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); } } /* * @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; } } /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } /** * @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); } /** * @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); } /** * @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); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private 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); } } } } /** * @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; } } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} } /** * @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); } /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } } // LOOK Content was designed by Emma Jane MacKinnon Lee, CEO DIGITALAX // LOOK Contract was forked from LOOTProject.com and re-built by @vvictor, Blockchain Lead DIGITALAX // All rights reserved, 2021 contract Look is ERC721Enumerable, ReentrancyGuard, Ownable { mapping (uint256 => string[]) indexToSuffixCategory; uint256 public randomMultiplier; uint256 public uriSwap; mapping (address => bool) public whitelistAddress; function getPattern(uint256 tokenId) public view returns (string memory) { return pluck(tokenId, "PATTERN"); } function getTexture(uint256 tokenId) public view returns (string memory) { return pluck(tokenId, "TEXTURE"); } function getColour(uint256 tokenId) public view returns (string memory) { return pluck(tokenId, "COLOUR"); } function getBackgroundColour(uint256 tokenId) public view returns (string memory) { return pluck(tokenId, "BACKGROUND"); } function getLine(uint256 tokenId) public view returns (string memory) { return pluck(tokenId, "LINE"); } function getFlare(uint256 tokenId) public view returns (string memory) { return pluck(tokenId, "FLARE"); } function getShape(uint256 tokenId) public view returns (string memory) { return pluck(tokenId, "SHAPE"); } function getForm(uint256 tokenId) public view returns (string memory) { return pluck(tokenId, "FORM"); } function getElement(uint256 tokenId) public view returns (string memory) { return pluck(tokenId, "ELEMENT"); } function pluck(uint256 tokenId, string memory keyPrefix) internal view returns (string memory) { uint256 rand = LOOKLogic.random(string(abi.encodePacked(LOOKLogic.toString(tokenId * randomMultiplier), LOOKLogic.toString(tokenId), tokenId * randomMultiplier))) + randomMultiplier + tokenId; uint256 randomPrefix = LOOKLogic.random(string(abi.encodePacked("PREFIXRANDOM", LOOKLogic.toString(tokenId + randomMultiplier)))); uint256 randomSuffix = LOOKLogic.random(string(abi.encodePacked("SUFFIX", LOOKLogic.toString(tokenId + randomMultiplier)))); string memory output; uint256[6] memory mixUpValues = [uint256(0),uint256(1),uint256(2),uint256(3),uint256(4),uint256(5)]; uint256 mixUpSuffix = rand % 6; if(mixUpSuffix == 1) { mixUpValues = [uint256(1),uint256(2),uint256(3),uint256(4),uint256(5),uint256(0)]; } else if (mixUpSuffix == 2){ mixUpValues = [uint256(2),uint256(3),uint256(4),uint256(5),uint256(0),uint256(1)]; } else if (mixUpSuffix == 3){ mixUpValues = [uint256(3),uint256(4),uint256(5),uint256(0),uint256(1),uint256(2)]; } else if (mixUpSuffix == 4){ mixUpValues = [uint256(4),uint256(5),uint256(0),uint256(1),uint256(2),uint256(3)]; } else if (mixUpSuffix == 5){ mixUpValues = [uint256(5),uint256(0),uint256(1),uint256(2),uint256(3),uint256(4)]; } if (keccak256(bytes(keyPrefix)) == keccak256(bytes("TEXTURE"))) { output = LOOKLib.textures()[rand % LOOKLib.textures().length]; string[] memory suffixes = indexToSuffixCategory[LOOKLogic.pickSuffixCategories(randomSuffix, tokenId)[mixUpValues[0]]]; output = string(abi.encodePacked(output, " ", suffixes[rand % suffixes.length])); } else if (keccak256(bytes(keyPrefix)) == keccak256(bytes("COLOUR"))){ output = LOOKLib.colours()[rand % LOOKLib.colours().length]; string[] memory suffixes = indexToSuffixCategory[LOOKLogic.pickSuffixCategories(randomSuffix, tokenId)[mixUpValues[1]]]; output = string(abi.encodePacked(output, " ", suffixes[rand % suffixes.length])); } else if( keccak256(bytes(keyPrefix)) == keccak256(bytes("SHAPE"))){ output = LOOKLib.shapes()[rand % LOOKLib.shapes().length]; string[] memory suffixes = indexToSuffixCategory[LOOKLogic.pickSuffixCategories(randomSuffix, tokenId)[mixUpValues[2]]]; output = string(abi.encodePacked(output, " ", suffixes[rand % suffixes.length])); } else if (keccak256(bytes(keyPrefix)) == keccak256(bytes("ELEMENT"))){ output = LOOKLib.elements()[rand % LOOKLib.elements().length]; string[] memory suffixes = indexToSuffixCategory[LOOKLogic.pickSuffixCategories(randomSuffix, tokenId)[mixUpValues[3]]]; output = string(abi.encodePacked(output, " ", suffixes[rand % suffixes.length])); } else if (keccak256(bytes(keyPrefix)) == keccak256(bytes("LINE"))){ output = LOOKLib.lines()[rand % LOOKLib.lines().length]; string[] memory suffixes = indexToSuffixCategory[LOOKLogic.pickSuffixCategories(randomSuffix, tokenId)[mixUpValues[4]]]; (string memory prefix1,) = LOOKLogic.pickPrefix(randomPrefix, tokenId); output = string(abi.encodePacked(prefix1, " ", output, " ", suffixes[rand % suffixes.length])); } else if (keccak256(bytes(keyPrefix)) == keccak256(bytes("FORM"))){ output = LOOKLib.forms()[rand % LOOKLib.forms().length]; string[] memory suffixes = indexToSuffixCategory[LOOKLogic.pickSuffixCategories(randomSuffix, tokenId)[mixUpValues[5]]]; (, string memory prefix2) = LOOKLogic.pickPrefix(randomPrefix, tokenId); output = string(abi.encodePacked(prefix2, " ", output, " ", suffixes[rand % suffixes.length])); } else if (keccak256(bytes(keyPrefix)) == keccak256(bytes("FLARE"))){ output = LOOKLib.flares()[rand % LOOKLib.flares().length]; } else if(keccak256(bytes(keyPrefix)) == keccak256(bytes("PATTERN"))){ output = string(abi.encodePacked("DXM #", LOOKLogic.toString((rand % 177) + 100013))); } else { output = LOOKLib.backgroundColours()[rand % LOOKLib.backgroundColours().length]; } // else {} // Background colour return output; } function tokenURI(uint256 tokenId) override public view returns (string memory) { if(totalSupply() < uriSwap){ string[7] memory partsOfPreClaim; partsOfPreClaim[0] = '<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet" viewBox="0 0 350 350"><style>@import url("https://fonts.googleapis.com/css?family=Inknut+Antiqua:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900,900italic"); .base { fill: white; font-family: Inknut Antiqua; font-size: 10px; font-weight:bold; }</style><rect width="100%" height="100%" fill="black'; partsOfPreClaim[2] = '" /><text x="245" y="20" class="base"> LookBook #'; partsOfPreClaim[3] = LOOKLogic.toString(tokenId); partsOfPreClaim[4] = '</text><text x="10" y="60" class="base"> There are '; partsOfPreClaim[5] = LOOKLogic.toString(3000 - totalSupply()); partsOfPreClaim[6] = ' remaining to be claimed!</text><text x="10" y="80" class="base"> Go get your LOOKs before its too late!</text><text x="10" y="100" class="base">When every LOOK is claimed, the random number will be drawn</text><text x="10" y="120" class="base"> Once we draw randomness, LOOKs will appear</text></svg>'; string memory outputPreClaim = string(abi.encodePacked(partsOfPreClaim[0], partsOfPreClaim[1], partsOfPreClaim[2], partsOfPreClaim[3], partsOfPreClaim[4], partsOfPreClaim[5], partsOfPreClaim[6])); string memory jsonPreclaim = Base64.encode(bytes(string(abi.encodePacked('{"name": "LookBook #', LOOKLogic.toString(tokenId), '", "description": "LOOK: Composable, open source metaverse fashion. A web3 fashion derivative of the Loot project", "image": "data:image/svg+xml;base64,', Base64.encode(bytes(outputPreClaim)), '"}')))); outputPreClaim = string(abi.encodePacked('data:application/json;base64,', jsonPreclaim)); return outputPreClaim; } string[21] memory parts; parts[0] = '<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet" viewBox="0 0 350 350"><style>@import url("https://fonts.googleapis.com/css?family=Inknut+Antiqua:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900,900italic"); .base { fill: white; font-family: Inknut Antiqua; font-size: 10.8px; font-weight:bold; }</style><rect width="100%" height="100%" fill="#'; parts[1] = getBackgroundColour(tokenId); parts[2] = '" /><text x="245" y="20" class="base"> LookBook #'; parts[3] = LOOKLogic.toString(tokenId); parts[4] = '</text><text x="10" y="60" class="base">'; parts[5] = getPattern(tokenId); parts[6] = '</text><text x="10" y="80" class="base">'; parts[7] = getTexture(tokenId); parts[8] = '</text><text x="10" y="100" class="base">'; parts[9] = getColour(tokenId); parts[10] = '</text><text x="10" y="120" class="base">'; parts[11] = getLine(tokenId); parts[12] = '</text><text x="10" y="140" class="base">'; parts[13] = getFlare(tokenId); parts[14] = '</text><text x="10" y="160" class="base">'; parts[15] = getShape(tokenId); parts[16] = '</text><text x="10" y="180" class="base">'; parts[17] = getForm(tokenId); parts[18] = '</text><text x="10" y="200" class="base">'; parts[19] = getElement(tokenId); parts[20] = '</text></svg>'; string memory output = string(abi.encodePacked(parts[0], parts[1], parts[2], parts[3], parts[4], parts[5], parts[6], parts[7], parts[8])); output = string(abi.encodePacked(output, parts[9], parts[10], parts[11], parts[12], parts[13], parts[14], parts[15], parts[16])); output = string(abi.encodePacked(output, parts[17], parts[18], parts[19], parts[20])); string memory json = Base64.encode(bytes(string(abi.encodePacked('{"name": "LookBook #', LOOKLogic.toString(tokenId), '", "description": "LOOK: Composable, open source metaverse fashion. A web3 fashion derivative of the Loot project", "image": "data:image/svg+xml;base64,', Base64.encode(bytes(output)), '"}')))); output = string(abi.encodePacked('data:application/json;base64,', json)); return output; } function claim(uint256 tokenId) public nonReentrant{ require(tokenId > 0 && tokenId < 3001, "Token ID invalid"); require(whitelistAddress[msg.sender], "Address not whitelisted"); _safeMint(msg.sender, tokenId); } // FOR TESTING PURPOSES function setRandomMultiplier(uint256 _random) public onlyOwner { randomMultiplier = _random; } function setUriSwap(uint256 _uriSwap) public onlyOwner { uriSwap = _uriSwap; } function addWhitelisted(address[] memory whitelisted) external onlyOwner { for( uint256 i = 0; i < whitelisted.length; i++){ whitelistAddress[whitelisted[i]] = true; } } function removeWhitelisted(address[] memory whitelisted) external onlyOwner { for( uint256 i = 0; i < whitelisted.length; i++){ whitelistAddress[whitelisted[i]] = false; } } constructor() ERC721("Look", "LOOK") Ownable() { randomMultiplier = 564564564; uriSwap = 3001; indexToSuffixCategory[0] = LOOKSuffix.socksSuffixCommon(); indexToSuffixCategory[1] = LOOKSuffix.socksSuffixSemirare(); indexToSuffixCategory[2] = LOOKSuffix.socksSuffixExclusive(); indexToSuffixCategory[3] = LOOKSuffix.accessorySuffixCommon(); indexToSuffixCategory[4] = LOOKSuffix.accessorySuffixSemirare(); indexToSuffixCategory[5] = LOOKSuffix.accessorySuffixExclusive(); indexToSuffixCategory[6] = LOOKSuffix.shoeSuffixCommon(); indexToSuffixCategory[7] = LOOKSuffix.shoeSuffixSemirare(); indexToSuffixCategory[8] = LOOKSuffix.shoeSuffixExclusive(); indexToSuffixCategory[9] = LOOKSuffix.swimmerSuffixCommon(); indexToSuffixCategory[10] = LOOKSuffix.swimmerSuffixSemirare(); indexToSuffixCategory[11] = LOOKSuffix.swimmerSuffixExclusive(); indexToSuffixCategory[12] = LOOKSuffix.sunglassSuffixCommon(); indexToSuffixCategory[13] = LOOKSuffix.sunglassSuffixSemirare(); indexToSuffixCategory[14] = LOOKSuffix.sunglassSuffixExclusive(); indexToSuffixCategory[15] = LOOKSuffix.outfitSuffixCommon(); indexToSuffixCategory[16] = LOOKSuffix.outfitSuffixSemirare(); indexToSuffixCategory[17] = LOOKSuffix.outfitSuffixExclusive(); indexToSuffixCategory[18] = LOOKSuffix.topBottomSuffixCommon(); indexToSuffixCategory[19] = LOOKSuffix.topBottomSuffixSemirare(); indexToSuffixCategory[20] = LOOKSuffix.topBottomSuffixExclusive(); } } /// [MIT License] /// @title Base64 /// @notice Provides a function for encoding some bytes in base64 /// @author Brecht Devos <[email protected]> library Base64 { bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /// @notice Encodes some bytes to the base64 representation function encode(bytes memory data) internal pure returns (string memory) { uint256 len = data.length; if (len == 0) return ""; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((len + 2) / 3); // Add some extra buffer at the end bytes memory result = new bytes(encodedLen + 32); bytes memory table = TABLE; assembly { let tablePtr := add(table, 1) let resultPtr := add(result, 32) for { let i := 0 } lt(i, len) { } { i := add(i, 3) let input := and(mload(add(data, i)), 0xffffff) let out := mload(add(tablePtr, and(shr(18, input), 0x3F))) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF)) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF)) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF)) out := shl(224, out) mstore(resultPtr, out) resultPtr := add(resultPtr, 4) } switch mod(len, 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } mstore(result, encodedLen) } return string(result); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"rand","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"pickPrefix","outputs":[{"internalType":"string","name":"prefix1","type":"string"},{"internalType":"string","name":"prefix2","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"rand","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"pickSuffixCategories","outputs":[{"internalType":"uint256[6]","name":"categoryIds","type":"uint256[6]"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"prefixCommon","outputs":[{"internalType":"string[15]","name":"","type":"string[15]"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"prefixExclusive","outputs":[{"internalType":"string[27]","name":"","type":"string[27]"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"prefixSemirare","outputs":[{"internalType":"string[24]","name":"","type":"string[24]"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"string","name":"input","type":"string"}],"name":"random","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"toString","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"}]
Contract Creation Code
61169b61003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100875760003560e01c80636900a3ae116100655780636900a3ae146100dc57806398e52222146100fc5780639b81d6ae14610111578063c3e56ab71461013257600080fd5b806322b8d0441461008c578063275e64ae146100b257806339af5818146100c7575b600080fd5b61009f61009a3660046111b1565b610152565b6040519081526020015b60405180910390f35b6100ba610183565b6040516100a99190611438565b6100cf6104e5565b6040516100a991906113ea565b6100ef6100ea366004611262565b6106fe565b6040516100a991906114ed565b610104610804565b6040516100a9919061147a565b61012461011f36600461127b565b610b8a565b6040516100a9929190611507565b61014561014036600461127b565b610e8e565b6040516100a991906114bc565b60008160405160200161016591906112c9565b60408051601f19818403018152919052805160209091012092915050565b61018b611135565b506040805161034081018252600b61030082018181526a497a616e616769e280997360a81b610320840152825282518084018452600a808252694f7369726973e280997360b01b6020838101919091528085019290925284518086018652600880825267486f727573e2809960c01b82850152858701919091528551808701875282815269416e75626973e280997360b01b81850152606086015285518087018752818152675a657573e280997360c01b818501526080860152855180870187529384526a417274656d6973e280997360a81b8484015260a0850193909352845180860186528181526941706f6c6c6fe280997360b01b8184015260c08501528451808601865281815269417468656e61e280997360b01b8184015260e08501528451808601865260098082526856656e7573e280997360b81b8285015261010086019190915285518087018752600c8082526b506f736569646f6ee280997360a01b82860152610120870191909152865180880188528381526957696e746572e280997360b01b81860152610140870152865180880188528381526953756d6d6572e280997360b01b818601526101608701528651808801885283815269417574756d6ee280997360b01b81860152610180870152865180880188528181526b45636c6563746963e280997360a01b818601526101a08701528651808801885282815268506c75746fe280997360b81b818601526101c08701528651808801885282815268536f6c6172e280997360b81b818601526101e087015286518088018852858152674b696e67e280997360c01b818601526102008701528651808801885282815268517565656ee280997360b81b8186015261022087015286518088018852838152695072696e6365e280997360b01b81860152610240870152865180880188528181526b5072696e63657373e280997360a01b818601526102608701528651808801885294855267456c7665e280997360c01b85850152610280860194909452855180870187529182526946616972696573e2809960b01b828401526102a0850191909152845180860186529283526b4669726562697264e280997360a01b838301526102c08401929092528351808501909452908352684375706964e280997360b81b908301526102e081019190915290565b6104ed61115d565b50604080516102208101825260096101e0820181815268416e67656ce280997360b81b610200840152825282518084018452600b8082526a4368696d657261e280997360a81b60208381019190915280850192909252845180860186528381526844656d6f6ee280997360b81b818401528486015284518086018652600a815269447261676f6ee280997360b01b81840152606085015284518086018652838152684879647261e280997360b81b81840152608085015284518086018652600d8082526c417068726f64697465e280997360981b8285015260a086019190915285518087018752600681526523b7b13634b760d11b8185015260c08601528551808701875260088152674d75736573e2809960c01b8185015260e0860152855180870187529182526a50686f656e6978e280997360a81b82840152610100850191909152845180860186526005815264506978696560d81b81840152610120850152845180860186528381526854726f6c6c73e2809960b81b8184015261014085015284518086018652600781526656616d7069726560c81b81840152610160850152845180860186529081526c416d61746572617375e280997360981b818301526101808401528351808501855282815268496e617269e280997360b81b818301526101a08401528351808501909452908352684562697375e280997360b81b908301526101c081019190915290565b6060816107225750506040805180820190915260018152600360fc1b602082015290565b8160005b811561074c5780610736816115de565b91506107459050600a8361154d565b9150610726565b60008167ffffffffffffffff8111156107675761076761164f565b6040519080825280601f01601f191660200182016040528015610791576020820181803683370190505b5090505b84156107fc576107a6600183611580565b91506107b3600a866115f9565b6107be906030611535565b60f81b8183815181106107d3576107d3611639565b60200101906001600160f81b031916908160001a9053506107f5600a8661154d565b9450610795565b949350505050565b61080c611178565b50604080516103a08101825260046103608201818152634564677960e01b610380840152825282518084018452600780825266135859da58d85b60ca1b6020838101919091528085019290925284518086018652600880825267436861726d696e6760c01b828501528587019190915285518087018752600980825268416d626974696f757360b81b8286015260608701919091528651808801885294855263109bdb1960e21b85850152608086019490945285518087018752600580825264427261766560d81b8286015260a087019190915286518088018852600680825265446172696e6760d01b8287015260c08801919091528751808901895281815265109c9a59da1d60d21b8187015260e088015287518089018952958652684175646163696f757360b81b8686015261010087019590955286518088018852600a80825269436f75726167656f757360b01b828701526101208801919091528751808901895283815267466561726c65737360c01b81870152610140880152875180890189528681526514185ddb995960d21b81870152610160880152875180890189528481526644617368696e6760c81b8187015261018088015287518089018952868152652230b83832b960d11b818701526101a0880152875180890189528481526611d85b1b185b9d60ca1b818701526101c0880152875180890189528281526446756e6b7960d81b818701526101e088015287518089018952600d81526c14dbdc1a1a5cdd1a58d85d1959609a1b81870152610200880152875180890189528381526711dc9858d9599d5b60c21b8187015261022088015287518089018952848152660acdeceead2e6d60cb1b8187015261024088015287518089018952928352674d616a657374696360c01b838601526102608701929092528651808801885291825269456e6368616e74696e6760b01b828501526102808601919091528551808701875282815266115b1959d85b9d60ca1b818501526102a08601528551808701875281815264536175637960d81b818501526102c08601528551808701875290815264536173737960d81b818401526102e08501528451808601865281815266526f6172696e6760c81b81840152610300850152845180860186529081526656696e7461676560c81b81830152610320840152835180850190945290835265121bdb995cdd60d21b9083015261034081019190915290565b606080600083610bc0610b9c876106fe565b604051602001610bac919061131c565b604051602081830303815290604052610152565b610bca9190611535565b9050600084610beb610bdb886106fe565b604051602001610bac91906112e5565b610bf59190611535565b610c00906001611535565b9050600085610c21610c11896106fe565b604051602001610bac91906113b0565b610c2b9190611535565b610c36906002611535565b90506000610c456015856115f9565b90506000610c546015856115f9565b90506000610c636015856115f9565b9050610c6d6104e5565b610c756104e5565b50610c81600f886115f9565b600f8110610c9157610c91611639565b60200201519750600f831115610cd557610ca9610183565b610cb1610183565b50610cbd6018886115f9565b60188110610ccd57610ccd611639565b602002015197505b6013831115610d1257610ce6610804565b610cee610804565b50610cfa601b886115f9565b601b8110610d0a57610d0a611639565b602002015197505b610d1a6104e5565b610d226104e5565b50610d2e600f876115f9565b600f8110610d3e57610d3e611639565b60200201519650600f821115610d8257610d56610183565b610d5e610183565b50610d6a6018876115f9565b60188110610d7a57610d7a611639565b602002015196505b6013821115610dbf57610d93610804565b610d9b610804565b50610da7601b876115f9565b601b8110610db757610db7611639565b602002015196505b868051906020012088805190602001201415610e8157610ddd6104e5565b610de56104e5565b50610df1600f866115f9565b600f8110610e0157610e01611639565b60200201519650600f811115610e8157610e19610183565b610e21610183565b50610e2d6018866115f9565b60188110610e3d57610e3d611639565b602002015196506013811115610e8157610e55610804565b610e5d610804565b50610e69601b866115f9565b601b8110610e7957610e79611639565b602002015196505b5050505050509250929050565b610e96611193565b6000610eb4610ea4856106fe565b604051602001610bac919061137a565b905060006007610ec48584611535565b610ece91906115f9565b90506000805b6007811015610f225782811415610eea57610f10565b80858360068110610efd57610efd611639565b6020020152610f0d826001611535565b91505b80610f1a816115de565b915050610ed4565b5060005b6006811015610fd4576000610f4d610f3d886106fe565b604051602001610bac9190611346565b90506000610f5c6015836115f9565b90506000600e821115610f6d575060015b6013821115610f7a575060025b878460068110610f8c57610f8c611639565b6020020151610f9c906003611561565b610fa69082611535565b888560068110610fb857610fb8611639565b602002015250829150610fcc9050816115de565b915050610f26565b5060015b600a81101561112b5760055b806111185760006006610ff7848a611561565b61100490620395e7611561565b61100e908a611535565b61102a61101a8b6106fe565b604051602001610bac91906112c9565b6040516b52616e646f6d537472696e6760a01b602082015261104e90602c01610bac565b6040516a466973686572596174657360a81b6020820152602b81018e905261107890604b01610bac565b6110829190611561565b61108c919061154d565b6110969190611535565b6110a091906115f9565b905060008783600681106110b6576110b6611639565b602002015190508782600681106110cf576110cf611639565b60200201518884600681106110e6576110e6611639565b6020020152808883600681106110fe576110fe611639565b602002015250819050611110816115c7565b915050610fe4565b5080611123816115de565b915050610fd8565b5050505092915050565b6040518061030001604052806018905b60608152602001906001900390816111455790505090565b604080516101e0810190915260608152600e60208201611145565b60408051610360810190915260608152601a60208201611145565b6040518060c001604052806006906020820280368337509192915050565b6000602082840312156111c357600080fd5b813567ffffffffffffffff808211156111db57600080fd5b818401915084601f8301126111ef57600080fd5b8135818111156112015761120161164f565b604051601f8201601f19908116603f011681019083821181831017156112295761122961164f565b8160405282815287602084870101111561124257600080fd5b826020860160208301376000928101602001929092525095945050505050565b60006020828403121561127457600080fd5b5035919050565b6000806040838503121561128e57600080fd5b50508035926020909101359150565b600081518084526112b5816020860160208601611597565b601f01601f19169290920160200192915050565b600082516112db818460208701611597565b9190910192915050565b6e50726566697852617269747954776f60881b81526000825161130f81600f850160208701611597565b91909101600f0192915050565b6e5072656669785261726974794f6e6560881b81526000825161130f81600f850160208701611597565b6b53756666697852617269747960a01b81526000825161136d81600c850160208701611597565b91909101600c0192915050565b6d53756666697843617465676f727960901b8152600082516113a381600e850160208701611597565b91909101600e0192915050565b7150726566697852617269747954687265653360701b8152600082516113dd816012850160208701611597565b9190910160120192915050565b6020808252600090610200830183820185845b600f81101561142c57601f1987850301835261141a84835161129d565b935091840191908401906001016113fd565b50919695505050505050565b6020808252600090610320830183820185845b601881101561142c57601f1987850301835261146884835161129d565b9350918401919084019060010161144b565b6020808252600090610380830183820185845b601b81101561142c57601f198785030183526114aa84835161129d565b9350918401919084019060010161148d565b60c08101818360005b60068110156114e45781518352602092830192909101906001016114c5565b50505092915050565b602081526000611500602083018461129d565b9392505050565b60408152600061151a604083018561129d565b828103602084015261152c818561129d565b95945050505050565b600082198211156115485761154861160d565b500190565b60008261155c5761155c611623565b500490565b600081600019048311821515161561157b5761157b61160d565b500290565b6000828210156115925761159261160d565b500390565b60005b838110156115b257818101518382015260200161159a565b838111156115c1576000848401525b50505050565b6000816115d6576115d661160d565b506000190190565b60006000198214156115f2576115f261160d565b5060010190565b60008261160857611608611623565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfea264697066735822122001171d66d77c29576d57101482ca45ea5e3a6083aa2748300d0164b8acbd4bf964736f6c63430008070033
Deployed Bytecode
0x73ee0b5f24d4b2cf80e3e54e9e5ff8acb9aff1f8a430146080604052600436106100875760003560e01c80636900a3ae116100655780636900a3ae146100dc57806398e52222146100fc5780639b81d6ae14610111578063c3e56ab71461013257600080fd5b806322b8d0441461008c578063275e64ae146100b257806339af5818146100c7575b600080fd5b61009f61009a3660046111b1565b610152565b6040519081526020015b60405180910390f35b6100ba610183565b6040516100a99190611438565b6100cf6104e5565b6040516100a991906113ea565b6100ef6100ea366004611262565b6106fe565b6040516100a991906114ed565b610104610804565b6040516100a9919061147a565b61012461011f36600461127b565b610b8a565b6040516100a9929190611507565b61014561014036600461127b565b610e8e565b6040516100a991906114bc565b60008160405160200161016591906112c9565b60408051601f19818403018152919052805160209091012092915050565b61018b611135565b506040805161034081018252600b61030082018181526a497a616e616769e280997360a81b610320840152825282518084018452600a808252694f7369726973e280997360b01b6020838101919091528085019290925284518086018652600880825267486f727573e2809960c01b82850152858701919091528551808701875282815269416e75626973e280997360b01b81850152606086015285518087018752818152675a657573e280997360c01b818501526080860152855180870187529384526a417274656d6973e280997360a81b8484015260a0850193909352845180860186528181526941706f6c6c6fe280997360b01b8184015260c08501528451808601865281815269417468656e61e280997360b01b8184015260e08501528451808601865260098082526856656e7573e280997360b81b8285015261010086019190915285518087018752600c8082526b506f736569646f6ee280997360a01b82860152610120870191909152865180880188528381526957696e746572e280997360b01b81860152610140870152865180880188528381526953756d6d6572e280997360b01b818601526101608701528651808801885283815269417574756d6ee280997360b01b81860152610180870152865180880188528181526b45636c6563746963e280997360a01b818601526101a08701528651808801885282815268506c75746fe280997360b81b818601526101c08701528651808801885282815268536f6c6172e280997360b81b818601526101e087015286518088018852858152674b696e67e280997360c01b818601526102008701528651808801885282815268517565656ee280997360b81b8186015261022087015286518088018852838152695072696e6365e280997360b01b81860152610240870152865180880188528181526b5072696e63657373e280997360a01b818601526102608701528651808801885294855267456c7665e280997360c01b85850152610280860194909452855180870187529182526946616972696573e2809960b01b828401526102a0850191909152845180860186529283526b4669726562697264e280997360a01b838301526102c08401929092528351808501909452908352684375706964e280997360b81b908301526102e081019190915290565b6104ed61115d565b50604080516102208101825260096101e0820181815268416e67656ce280997360b81b610200840152825282518084018452600b8082526a4368696d657261e280997360a81b60208381019190915280850192909252845180860186528381526844656d6f6ee280997360b81b818401528486015284518086018652600a815269447261676f6ee280997360b01b81840152606085015284518086018652838152684879647261e280997360b81b81840152608085015284518086018652600d8082526c417068726f64697465e280997360981b8285015260a086019190915285518087018752600681526523b7b13634b760d11b8185015260c08601528551808701875260088152674d75736573e2809960c01b8185015260e0860152855180870187529182526a50686f656e6978e280997360a81b82840152610100850191909152845180860186526005815264506978696560d81b81840152610120850152845180860186528381526854726f6c6c73e2809960b81b8184015261014085015284518086018652600781526656616d7069726560c81b81840152610160850152845180860186529081526c416d61746572617375e280997360981b818301526101808401528351808501855282815268496e617269e280997360b81b818301526101a08401528351808501909452908352684562697375e280997360b81b908301526101c081019190915290565b6060816107225750506040805180820190915260018152600360fc1b602082015290565b8160005b811561074c5780610736816115de565b91506107459050600a8361154d565b9150610726565b60008167ffffffffffffffff8111156107675761076761164f565b6040519080825280601f01601f191660200182016040528015610791576020820181803683370190505b5090505b84156107fc576107a6600183611580565b91506107b3600a866115f9565b6107be906030611535565b60f81b8183815181106107d3576107d3611639565b60200101906001600160f81b031916908160001a9053506107f5600a8661154d565b9450610795565b949350505050565b61080c611178565b50604080516103a08101825260046103608201818152634564677960e01b610380840152825282518084018452600780825266135859da58d85b60ca1b6020838101919091528085019290925284518086018652600880825267436861726d696e6760c01b828501528587019190915285518087018752600980825268416d626974696f757360b81b8286015260608701919091528651808801885294855263109bdb1960e21b85850152608086019490945285518087018752600580825264427261766560d81b8286015260a087019190915286518088018852600680825265446172696e6760d01b8287015260c08801919091528751808901895281815265109c9a59da1d60d21b8187015260e088015287518089018952958652684175646163696f757360b81b8686015261010087019590955286518088018852600a80825269436f75726167656f757360b01b828701526101208801919091528751808901895283815267466561726c65737360c01b81870152610140880152875180890189528681526514185ddb995960d21b81870152610160880152875180890189528481526644617368696e6760c81b8187015261018088015287518089018952868152652230b83832b960d11b818701526101a0880152875180890189528481526611d85b1b185b9d60ca1b818701526101c0880152875180890189528281526446756e6b7960d81b818701526101e088015287518089018952600d81526c14dbdc1a1a5cdd1a58d85d1959609a1b81870152610200880152875180890189528381526711dc9858d9599d5b60c21b8187015261022088015287518089018952848152660acdeceead2e6d60cb1b8187015261024088015287518089018952928352674d616a657374696360c01b838601526102608701929092528651808801885291825269456e6368616e74696e6760b01b828501526102808601919091528551808701875282815266115b1959d85b9d60ca1b818501526102a08601528551808701875281815264536175637960d81b818501526102c08601528551808701875290815264536173737960d81b818401526102e08501528451808601865281815266526f6172696e6760c81b81840152610300850152845180860186529081526656696e7461676560c81b81830152610320840152835180850190945290835265121bdb995cdd60d21b9083015261034081019190915290565b606080600083610bc0610b9c876106fe565b604051602001610bac919061131c565b604051602081830303815290604052610152565b610bca9190611535565b9050600084610beb610bdb886106fe565b604051602001610bac91906112e5565b610bf59190611535565b610c00906001611535565b9050600085610c21610c11896106fe565b604051602001610bac91906113b0565b610c2b9190611535565b610c36906002611535565b90506000610c456015856115f9565b90506000610c546015856115f9565b90506000610c636015856115f9565b9050610c6d6104e5565b610c756104e5565b50610c81600f886115f9565b600f8110610c9157610c91611639565b60200201519750600f831115610cd557610ca9610183565b610cb1610183565b50610cbd6018886115f9565b60188110610ccd57610ccd611639565b602002015197505b6013831115610d1257610ce6610804565b610cee610804565b50610cfa601b886115f9565b601b8110610d0a57610d0a611639565b602002015197505b610d1a6104e5565b610d226104e5565b50610d2e600f876115f9565b600f8110610d3e57610d3e611639565b60200201519650600f821115610d8257610d56610183565b610d5e610183565b50610d6a6018876115f9565b60188110610d7a57610d7a611639565b602002015196505b6013821115610dbf57610d93610804565b610d9b610804565b50610da7601b876115f9565b601b8110610db757610db7611639565b602002015196505b868051906020012088805190602001201415610e8157610ddd6104e5565b610de56104e5565b50610df1600f866115f9565b600f8110610e0157610e01611639565b60200201519650600f811115610e8157610e19610183565b610e21610183565b50610e2d6018866115f9565b60188110610e3d57610e3d611639565b602002015196506013811115610e8157610e55610804565b610e5d610804565b50610e69601b866115f9565b601b8110610e7957610e79611639565b602002015196505b5050505050509250929050565b610e96611193565b6000610eb4610ea4856106fe565b604051602001610bac919061137a565b905060006007610ec48584611535565b610ece91906115f9565b90506000805b6007811015610f225782811415610eea57610f10565b80858360068110610efd57610efd611639565b6020020152610f0d826001611535565b91505b80610f1a816115de565b915050610ed4565b5060005b6006811015610fd4576000610f4d610f3d886106fe565b604051602001610bac9190611346565b90506000610f5c6015836115f9565b90506000600e821115610f6d575060015b6013821115610f7a575060025b878460068110610f8c57610f8c611639565b6020020151610f9c906003611561565b610fa69082611535565b888560068110610fb857610fb8611639565b602002015250829150610fcc9050816115de565b915050610f26565b5060015b600a81101561112b5760055b806111185760006006610ff7848a611561565b61100490620395e7611561565b61100e908a611535565b61102a61101a8b6106fe565b604051602001610bac91906112c9565b6040516b52616e646f6d537472696e6760a01b602082015261104e90602c01610bac565b6040516a466973686572596174657360a81b6020820152602b81018e905261107890604b01610bac565b6110829190611561565b61108c919061154d565b6110969190611535565b6110a091906115f9565b905060008783600681106110b6576110b6611639565b602002015190508782600681106110cf576110cf611639565b60200201518884600681106110e6576110e6611639565b6020020152808883600681106110fe576110fe611639565b602002015250819050611110816115c7565b915050610fe4565b5080611123816115de565b915050610fd8565b5050505092915050565b6040518061030001604052806018905b60608152602001906001900390816111455790505090565b604080516101e0810190915260608152600e60208201611145565b60408051610360810190915260608152601a60208201611145565b6040518060c001604052806006906020820280368337509192915050565b6000602082840312156111c357600080fd5b813567ffffffffffffffff808211156111db57600080fd5b818401915084601f8301126111ef57600080fd5b8135818111156112015761120161164f565b604051601f8201601f19908116603f011681019083821181831017156112295761122961164f565b8160405282815287602084870101111561124257600080fd5b826020860160208301376000928101602001929092525095945050505050565b60006020828403121561127457600080fd5b5035919050565b6000806040838503121561128e57600080fd5b50508035926020909101359150565b600081518084526112b5816020860160208601611597565b601f01601f19169290920160200192915050565b600082516112db818460208701611597565b9190910192915050565b6e50726566697852617269747954776f60881b81526000825161130f81600f850160208701611597565b91909101600f0192915050565b6e5072656669785261726974794f6e6560881b81526000825161130f81600f850160208701611597565b6b53756666697852617269747960a01b81526000825161136d81600c850160208701611597565b91909101600c0192915050565b6d53756666697843617465676f727960901b8152600082516113a381600e850160208701611597565b91909101600e0192915050565b7150726566697852617269747954687265653360701b8152600082516113dd816012850160208701611597565b9190910160120192915050565b6020808252600090610200830183820185845b600f81101561142c57601f1987850301835261141a84835161129d565b935091840191908401906001016113fd565b50919695505050505050565b6020808252600090610320830183820185845b601881101561142c57601f1987850301835261146884835161129d565b9350918401919084019060010161144b565b6020808252600090610380830183820185845b601b81101561142c57601f198785030183526114aa84835161129d565b9350918401919084019060010161148d565b60c08101818360005b60068110156114e45781518352602092830192909101906001016114c5565b50505092915050565b602081526000611500602083018461129d565b9392505050565b60408152600061151a604083018561129d565b828103602084015261152c818561129d565b95945050505050565b600082198211156115485761154861160d565b500190565b60008261155c5761155c611623565b500490565b600081600019048311821515161561157b5761157b61160d565b500290565b6000828210156115925761159261160d565b500390565b60005b838110156115b257818101518382015260200161159a565b838111156115c1576000848401525b50505050565b6000816115d6576115d661160d565b506000190190565b60006000198214156115f2576115f261160d565b5060010190565b60008261160857611608611623565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfea264697066735822122001171d66d77c29576d57101482ca45ea5e3a6083aa2748300d0164b8acbd4bf964736f6c63430008070033
Deployed Bytecode Sourcemap
9815:6966:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15907:136;;;;;;:::i;:::-;;:::i;:::-;;;8120:25:1;;;8108:2;8093:18;15907:136:0;;;;;;;;10390:868;;;:::i;:::-;;;;;;;:::i;9840:542::-;;;:::i;:::-;;;;;;;:::i;16053:721::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;11266:645::-;;;:::i;:::-;;;;;;;:::i;14038:1861::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;11919:2111::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;15907:136::-;15965:7;16027:5;16010:23;;;;;;;;:::i;:::-;;;;-1:-1:-1;;16010:23:0;;;;;;;;;16000:34;;16010:23;16000:34;;;;;15907:136;-1:-1:-1;;15907:136:0:o;10390:868::-;10437:17;;:::i;:::-;-1:-1:-1;10467:783:0;;;;;;;;;;;;;;;-1:-1:-1;;;10467:783:0;;;;;;;;;;;;;;;;;-1:-1:-1;;;10467:783:0;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10467:783:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10467:783:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10467:783:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10467:783:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10467:783:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10467:783:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10467:783:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10467:783:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10467:783:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10467:783:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10467:783:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10467:783:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10467:783:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10467:783:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10467:783:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10467:783:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10467:783:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10467:783:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10467:783:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10467:783:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10467:783:0;;;;-1:-1:-1;;;10467:783:0;;;;;;;;;;;;;;;-1:-1:-1;;;10467:783:0;;;;-1:-1:-1;;;10467:783:0;;;;;10390:868::o;9840:542::-;9885:17;;:::i;:::-;-1:-1:-1;9915:459:0;;;;;;;;;;;;;;;-1:-1:-1;;;9915:459:0;;;;;;;;;;;;;;;;;-1:-1:-1;;;9915:459:0;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;9915:459:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;9915:459:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;9915:459:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;9915:459:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;9915:459:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;9915:459:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;9915:459:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;9915:459:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;9915:459:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;9915:459:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;9915:459:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;9915:459:0;;;;-1:-1:-1;;;9915:459:0;;;;;;;;;;;;-1:-1:-1;;;9915:459:0;;;;-1:-1:-1;;;9915:459:0;;;;;9840:542::o;16053:721::-;16107:13;16328:10;16324:53;;-1:-1:-1;;16355:10:0;;;;;;;;;;;;-1:-1:-1;;;16355:10:0;;;;;16053:721::o;16324:53::-;16402:5;16387:12;16443:78;16450:9;;16443:78;;16476:8;;;;:::i;:::-;;-1:-1:-1;16499:10:0;;-1:-1:-1;16507:2:0;16499:10;;:::i;:::-;;;16443:78;;;16531:19;16563:6;16553:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;16553:17:0;;16531:39;;16581:154;16588:10;;16581:154;;16615:11;16625:1;16615:11;;:::i;:::-;;-1:-1:-1;16684:10:0;16692:2;16684:5;:10;:::i;:::-;16671:24;;:2;:24;:::i;:::-;16658:39;;16641:6;16648;16641:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;16641:56:0;;;;;;;;-1:-1:-1;16712:11:0;16721:2;16712:11;;:::i;:::-;;;16581:154;;;16759:6;16053:721;-1:-1:-1;;;;16053:721:0:o;11266:645::-;11314:17;;:::i;:::-;-1:-1:-1;11344:559:0;;;;;;;;;;;;;;;-1:-1:-1;;;11344:559:0;;;;;;;;;;;;;;;;;-1:-1:-1;;;11344:559:0;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11344:559:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11344:559:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11344:559:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11344:559:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11344:559:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11344:559:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11344:559:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11344:559:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11344:559:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11344:559:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11344:559:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11344:559:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11344:559:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11344:559:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11344:559:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11344:559:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11344:559:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11344:559:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11344:559:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11344:559:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11344:559:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11344:559:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11344:559:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11344:559:0;;;;-1:-1:-1;;;11344:559:0;;;;;;;;;;;;-1:-1:-1;;;11344:559:0;;;;-1:-1:-1;;;11344:559:0;;;;;11266:645::o;14038:1861::-;14110:21;14133;14195:23;14291:7;14221:67;14271:14;14280:4;14271:8;:14::i;:::-;14235:51;;;;;;;;:::i;:::-;;;;;;;;;;;;;14221:6;:67::i;:::-;:77;;;;:::i;:::-;14195:103;;14309:23;14405:7;14335:67;14385:14;14394:4;14385:8;:14::i;:::-;14349:51;;;;;;;;:::i;14335:67::-;:77;;;;:::i;:::-;:81;;14415:1;14335:81;:::i;:::-;14309:107;;14427:23;14526:7;14453:70;14506:14;14515:4;14506:8;:14::i;:::-;14467:54;;;;;;;;:::i;14453:70::-;:80;;;;:::i;:::-;:84;;14536:1;14453:84;:::i;:::-;14427:110;-1:-1:-1;14550:19:0;14572:20;14590:2;14572:15;:20;:::i;:::-;14550:42;-1:-1:-1;14603:19:0;14625:20;14643:2;14625:15;:20;:::i;:::-;14603:42;-1:-1:-1;14656:19:0;14678:20;14696:2;14678:15;:20;:::i;:::-;14656:42;;14721:14;:12;:14::i;:::-;14754;:12;:14::i;:::-;-1:-1:-1;14736:39:0;14754:21;14736:15;:39;:::i;:::-;14721:55;;;;;;;:::i;:::-;;;;;14711:65;;14805:2;14791:11;:16;14787:117;;;14833:16;:14;:16::i;:::-;14868;:14;:16::i;:::-;-1:-1:-1;14850:41:0;14868:23;14850:15;:41;:::i;:::-;14833:59;;;;;;;:::i;:::-;;;;;14823:69;;14787:117;14931:2;14917:11;:16;14914:118;;;14959:17;:15;:17::i;:::-;14995;:15;:17::i;:::-;-1:-1:-1;14977:42:0;14995:24;14977:15;:42;:::i;:::-;14959:61;;;;;;;:::i;:::-;;;;;14949:71;;14914:118;15054:14;:12;:14::i;:::-;15087;:12;:14::i;:::-;-1:-1:-1;15069:39:0;15087:21;15069:15;:39;:::i;:::-;15054:55;;;;;;;:::i;:::-;;;;;15044:65;;15138:2;15124:11;:16;15120:117;;;15166:16;:14;:16::i;:::-;15201;:14;:16::i;:::-;-1:-1:-1;15183:41:0;15201:23;15183:15;:41;:::i;:::-;15166:59;;;;;;;:::i;:::-;;;;;15156:69;;15120:117;15264:2;15250:11;:16;15247:118;;;15292:17;:15;:17::i;:::-;15328;:15;:17::i;:::-;-1:-1:-1;15310:42:0;15328:24;15310:15;:42;:::i;:::-;15292:61;;;;;;;:::i;:::-;;;;;15282:71;;15247:118;15425:7;15409:25;;;;;;15396:7;15380:25;;;;;;:54;15377:479;;;15518:14;:12;:14::i;:::-;15551;:12;:14::i;:::-;-1:-1:-1;15533:39:0;15551:21;15533:15;:39;:::i;:::-;15518:55;;;;;;;:::i;:::-;;;;;15508:65;;15606:2;15592:11;:16;15588:257;;;15638:16;:14;:16::i;:::-;15673;:14;:16::i;:::-;-1:-1:-1;15655:41:0;15673:23;15655:15;:41;:::i;:::-;15638:59;;;;;;;:::i;:::-;;;;;15628:69;;15733:2;15719:11;:16;15716:113;;;15768:17;:15;:17::i;:::-;15804;:15;:17::i;:::-;-1:-1:-1;15786:42:0;15804:24;15786:15;:42;:::i;:::-;15768:61;;;;;;;:::i;:::-;;;;;15758:71;;15716:113;15866:25;;;;;;14038:1861;;;;;:::o;11919:2111::-;12001:29;;:::i;:::-;12116:20;12139:66;12188:14;12197:4;12188:8;:14::i;:::-;12153:50;;;;;;;;:::i;12139:66::-;12116:89;-1:-1:-1;12216:17:0;12264:1;12237:22;12252:7;12116:89;12237:22;:::i;:::-;12236:29;;;;:::i;:::-;12216:49;;12305:15;12406:9;12402:191;12424:1;12421;:4;12402:191;;;12454:9;12449:1;:14;12446:61;;;12483:8;;12446:61;12544:1;12521:11;12533:7;12521:20;;;;;;;:::i;:::-;;;;:24;12570:11;:7;12580:1;12570:11;:::i;:::-;12560:21;;12402:191;12427:3;;;;:::i;:::-;;;;12402:191;;;;12671:9;12666:562;12690:1;12686;:5;12666:562;;;12752:18;12773:67;12820:17;12829:7;12820:8;:17::i;:::-;12787:51;;;;;;;;:::i;12773:67::-;12752:88;-1:-1:-1;12855:25:0;12883:15;12896:2;12752:88;12883:15;:::i;:::-;12855:43;;12913:14;12970:2;12950:17;:22;12946:72;;;-1:-1:-1;13001:1:0;12946:72;13056:2;13036:17;:22;13032:72;;;-1:-1:-1;13087:1:0;13032:72;13145:11;13157:1;13145:14;;;;;;;:::i;:::-;;;;;:18;;13162:1;13145:18;:::i;:::-;13135:29;;:6;:29;:::i;:::-;13118:11;13130:1;13118:14;;;;;;;:::i;:::-;;;;:46;-1:-1:-1;12693:3:0;;-1:-1:-1;12693:3:0;;-1:-1:-1;12693:3:0;;:::i;:::-;;;;12666:562;;;-1:-1:-1;13412:1:0;13397:595;13419:2;13415:1;:6;13397:595;;;13459:1;13442:539;13462:6;13442:539;;13584:20;13810:1;13784:11;13794:1;13784:7;:11;:::i;:::-;13783:22;;13799:6;13783:22;:::i;:::-;13773:32;;:7;:32;:::i;:::-;13716:52;13748:17;13757:7;13748:8;:17::i;:::-;13731:35;;;;;;;;:::i;13716:52::-;13679:32;;-1:-1:-1;;;13679:32:0;;;2896:27:1;13665:48:0;;2939:12:1;;13679:32:0;2694:263:1;13665:48:0;13623:37;;-1:-1:-1;;;13623:37:0;;;2153:26:1;2195:12;;;2188:28;;;13609:53:0;;2232:12:1;;13623:37:0;1923:327:1;13609:53:0;:104;;;;:::i;:::-;:159;;;;:::i;:::-;13608:198;;;;:::i;:::-;13607:204;;;;:::i;:::-;13584:227;;13830:9;13842:11;13854:1;13842:14;;;;;;;:::i;:::-;;;;;13830:26;;13892:11;13904:12;13892:25;;;;;;;:::i;:::-;;;;;13875:11;13887:1;13875:14;;;;;;;:::i;:::-;;;;:42;13964:1;13936:11;13948:12;13936:25;;;;;;;:::i;:::-;;;;:29;-1:-1:-1;13470:3:0;;-1:-1:-1;13470:3:0;;;:::i;:::-;;;;13442:539;;;-1:-1:-1;13423:3:0;;;;:::i;:::-;;;;13397:595;;;;14004:18;;;11919:2111;;;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;14:922:1:-;83:6;136:2;124:9;115:7;111:23;107:32;104:52;;;152:1;149;142:12;104:52;192:9;179:23;221:18;262:2;254:6;251:14;248:34;;;278:1;275;268:12;248:34;316:6;305:9;301:22;291:32;;361:7;354:4;350:2;346:13;342:27;332:55;;383:1;380;373:12;332:55;419:2;406:16;441:2;437;434:10;431:36;;;447:18;;:::i;:::-;522:2;516:9;490:2;576:13;;-1:-1:-1;;572:22:1;;;596:2;568:31;564:40;552:53;;;620:18;;;640:22;;;617:46;614:72;;;666:18;;:::i;:::-;706:10;702:2;695:22;741:2;733:6;726:18;781:7;776:2;771;767;763:11;759:20;756:33;753:53;;;802:1;799;792:12;753:53;858:2;853;849;845:11;840:2;832:6;828:15;815:46;903:1;881:15;;;898:2;877:24;870:35;;;;-1:-1:-1;885:6:1;14:922;-1:-1:-1;;;;;14:922:1:o;941:180::-;1000:6;1053:2;1041:9;1032:7;1028:23;1024:32;1021:52;;;1069:1;1066;1059:12;1021:52;-1:-1:-1;1092:23:1;;941:180;-1:-1:-1;941:180:1:o;1126:248::-;1194:6;1202;1255:2;1243:9;1234:7;1230:23;1226:32;1223:52;;;1271:1;1268;1261:12;1223:52;-1:-1:-1;;1294:23:1;;;1364:2;1349:18;;;1336:32;;-1:-1:-1;1126:248:1:o;1379:258::-;1421:3;1459:5;1453:12;1486:6;1481:3;1474:19;1502:63;1558:6;1551:4;1546:3;1542:14;1535:4;1528:5;1524:16;1502:63;:::i;:::-;1619:2;1598:15;-1:-1:-1;;1594:29:1;1585:39;;;;1626:4;1581:50;;1379:258;-1:-1:-1;;1379:258:1:o;1642:276::-;1773:3;1811:6;1805:13;1827:53;1873:6;1868:3;1861:4;1853:6;1849:17;1827:53;:::i;:::-;1896:16;;;;;1642:276;-1:-1:-1;;1642:276:1:o;2255:434::-;-1:-1:-1;;;2512:3:1;2505:30;2487:3;2564:6;2558:13;2580:62;2635:6;2630:2;2625:3;2621:12;2614:4;2606:6;2602:17;2580:62;:::i;:::-;2662:16;;;;2680:2;2658:25;;2255:434;-1:-1:-1;;2255:434:1:o;2962:::-;-1:-1:-1;;;3219:3:1;3212:30;3194:3;3271:6;3265:13;3287:62;3342:6;3337:2;3332:3;3328:12;3321:4;3313:6;3309:17;3287:62;:::i;3401:431::-;-1:-1:-1;;;3658:3:1;3651:27;3633:3;3707:6;3701:13;3723:62;3778:6;3773:2;3768:3;3764:12;3757:4;3749:6;3745:17;3723:62;:::i;:::-;3805:16;;;;3823:2;3801:25;;3401:431;-1:-1:-1;;3401:431:1:o;3837:433::-;-1:-1:-1;;;4094:3:1;4087:29;4069:3;4145:6;4139:13;4161:62;4216:6;4211:2;4206:3;4202:12;4195:4;4187:6;4183:17;4161:62;:::i;:::-;4243:16;;;;4261:2;4239:25;;3837:433;-1:-1:-1;;3837:433:1:o;4275:437::-;-1:-1:-1;;;4532:3:1;4525:33;4507:3;4587:6;4581:13;4603:62;4658:6;4653:2;4648:3;4644:12;4637:4;4629:6;4625:17;4603:62;:::i;:::-;4685:16;;;;4703:2;4681:25;;4275:437;-1:-1:-1;;4275:437:1:o;4717:699::-;4914:2;4966:21;;;4885:4;;5073:3;5058:19;;4939:18;;;5100:6;4885:4;5134:253;5148:4;5145:1;5142:11;5134:253;;;5239:2;5235:7;5223:9;5215:6;5211:22;5207:36;5202:3;5195:49;5267:40;5300:6;5291;5285:13;5267:40;:::i;:::-;5257:50;-1:-1:-1;5365:12:1;;;;5330:15;;;;5168:1;5161:9;5134:253;;;-1:-1:-1;5404:6:1;;4717:699;-1:-1:-1;;;;;;4717:699:1:o;5421:::-;5618:2;5670:21;;;5589:4;;5777:3;5762:19;;5643:18;;;5804:6;5589:4;5838:253;5852:4;5849:1;5846:11;5838:253;;;5943:2;5939:7;5927:9;5919:6;5915:22;5911:36;5906:3;5899:49;5971:40;6004:6;5995;5989:13;5971:40;:::i;:::-;5961:50;-1:-1:-1;6069:12:1;;;;6034:15;;;;5872:1;5865:9;5838:253;;6125:699;6322:2;6374:21;;;6293:4;;6481:3;6466:19;;6347:18;;;6508:6;6293:4;6542:253;6556:4;6553:1;6550:11;6542:253;;;6647:2;6643:7;6631:9;6623:6;6619:22;6615:36;6610:3;6603:49;6675:40;6708:6;6699;6693:13;6675:40;:::i;:::-;6665:50;-1:-1:-1;6773:12:1;;;;6738:15;;;;6576:1;6569:9;6542:253;;6829:503;7017:3;7002:19;;7006:9;7098:6;6975:4;7132:194;7146:4;7143:1;7140:11;7132:194;;;7205:13;;7193:26;;7242:4;7266:12;;;;7301:15;;;;7166:1;7159:9;7132:194;;;7136:3;;;6829:503;;;;:::o;7337:228::-;7494:2;7483:9;7476:21;7457:4;7514:45;7555:2;7544:9;7540:18;7532:6;7514:45;:::i;:::-;7506:53;7337:228;-1:-1:-1;;;7337:228:1:o;7570:391::-;7775:2;7764:9;7757:21;7738:4;7801:45;7842:2;7831:9;7827:18;7819:6;7801:45;:::i;:::-;7894:9;7886:6;7882:22;7877:2;7866:9;7862:18;7855:50;7922:33;7948:6;7940;7922:33;:::i;:::-;7914:41;7570:391;-1:-1:-1;;;;;7570:391:1:o;8156:128::-;8196:3;8227:1;8223:6;8220:1;8217:13;8214:39;;;8233:18;;:::i;:::-;-1:-1:-1;8269:9:1;;8156:128::o;8289:120::-;8329:1;8355;8345:35;;8360:18;;:::i;:::-;-1:-1:-1;8394:9:1;;8289:120::o;8414:168::-;8454:7;8520:1;8516;8512:6;8508:14;8505:1;8502:21;8497:1;8490:9;8483:17;8479:45;8476:71;;;8527:18;;:::i;:::-;-1:-1:-1;8567:9:1;;8414:168::o;8587:125::-;8627:4;8655:1;8652;8649:8;8646:34;;;8660:18;;:::i;:::-;-1:-1:-1;8697:9:1;;8587:125::o;8717:258::-;8789:1;8799:113;8813:6;8810:1;8807:13;8799:113;;;8889:11;;;8883:18;8870:11;;;8863:39;8835:2;8828:10;8799:113;;;8930:6;8927:1;8924:13;8921:48;;;8965:1;8956:6;8951:3;8947:16;8940:27;8921:48;;8717:258;;;:::o;8980:136::-;9019:3;9047:5;9037:39;;9056:18;;:::i;:::-;-1:-1:-1;;;9092:18:1;;8980:136::o;9121:135::-;9160:3;-1:-1:-1;;9181:17:1;;9178:43;;;9201:18;;:::i;:::-;-1:-1:-1;9248:1:1;9237:13;;9121:135::o;9261:112::-;9293:1;9319;9309:35;;9324:18;;:::i;:::-;-1:-1:-1;9358:9:1;;9261:112::o;9378:127::-;9439:10;9434:3;9430:20;9427:1;9420:31;9470:4;9467:1;9460:15;9494:4;9491:1;9484:15;9510:127;9571:10;9566:3;9562:20;9559:1;9552:31;9602:4;9599:1;9592:15;9626:4;9623:1;9616:15;9642:127;9703:10;9698:3;9694:20;9691:1;9684:31;9734:4;9731:1;9724:15;9758:4;9755:1;9748:15;9774:127;9835:10;9830:3;9826:20;9823:1;9816:31;9866:4;9863:1;9856:15;9890:4;9887:1;9880:15
Swarm Source
ipfs://01171d66d77c29576d57101482ca45ea5e3a6083aa2748300d0164b8acbd4bf9
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.