ERC-721
Overview
Max Total Supply
9,342 FPB
Holders
3,884
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 FPBLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
FluffyPolarBears
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // ______ _ __ __ _____ _ ____ // | ____| | / _|/ _| | __ \ | | | _ \ // | |__ | |_ _| |_| |_ _ _ | |__) |__ | | __ _ _ __ | |_) | ___ __ _ _ __ ___ // | __| | | | | | _| _| | | | | ___/ _ \| |/ _` | '__| | _ < / _ \/ _` | '__/ __| // | | | | |_| | | | | | |_| | | | | (_) | | (_| | | | |_) | __/ (_| | | \__ \ // |_| |_|\__,_|_| |_| \__, | |_| \___/|_|\__,_|_| |____/ \___|\__,_|_| |___/ // __/ | // |___/ // // Fluffy Polar Bears ERC-1155 Contract // “Ice to meet you, this contract is smart and fluffy.” /// @creator: FluffyPolarBears /// @author: kodbilen.eth - twitter.com/kodbilenadam /// @contributor: peker.eth – twitter.com/MehmetAliCode pragma solidity ^0.8.7; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./FluffyCore.sol"; import "./Library.sol"; contract FluffyPolarBears is ERC721, ERC721Enumerable, ERC721URIStorage, Pausable, Ownable, FluffyCore, IERC721Receiver { using Counters for Counters.Counter; address public constant CONTRACT_DEVELOPER_ADDRESS = 0x16eFE37c0c557D4B1D8EB76d11E13616d2b52eAF; address public constant ARTIST_ADDRESS = 0xAD4dcA5A70b4b2467301879B83484dFB550698c6; address public constant POOL_ADDRESS = 0x084C29a614e0F40a01dD028E1eE2Fb5046585316; address public constant WEB_DEVELOPER_ADDRESS = 0x09D5b72677F42caa0Caa68519CdFC679cc6c24C0; address public constant COMMUNITY_MANAGER_ADDRESS = 0xc1b17d7Cb355FE015E29C3575B12DF722D764959; address public constant SHAREHOLDER_ADDRESS = 0x9E650ef13d0893A8729B3685285Fbc918b4850C6; address public constant CHARITY_ADDRESS = 0x336353B2BfeFeB6d4241bC3E2009eC4D18cBdD74; uint public CONTRACT_DEVELOPER_FEE = 3; uint public ARTIST_FEE = 25; uint public POOL_FEE = 12; uint public WEB_DEVELOPER_FEE = 7; uint public COMMUNITY_MANAGER_FEE = 24; uint public SHAREHOLDER_FEE = 24; uint public CHARITY_FEE = 5; uint constant SHARE_SUM = 100; uint constant TOTAL_SUPPLY = 9999; uint256 public REROLL_PRICE = 0.033 ether; address private _ERC1155BURNADDRESS; bool public isMintingActive = false; bool public isRerollActive = false; string IMAGE_URL; string[][100] attributeIdsToNames; string[] attributeCategoryIdToName = ["Background", "Costume", "Eye", "Head", "Nose"]; string[] legendaryIdToName = ["Vanilla Bear", "Golden Bear", "Puzzled Bear", "3D Bear", "Polar Lisa", "The Scream", "Vincent Polar Gogh", "Great Wave", "Bearida Kahlo", "Pablo Polarsco", "Bearet Mondriaan", "Salvador Fluffy", "Gm Bear", "Shakespeare", "Amabearus Mozart", "Crossword Fluffy", "Frankicetein", "Crazy Wizard", "Count Bearacula", "Fluffy Witch", "Zombear", "Evil Fluffy Robot", "Mummy Bear", "Cave Bear", "Fluffy Unicorn", "Fluffy Cowboy", "Astronaut Bear", "Desert Bear", "Bipolar", "Super Fluffy", "Fluffy Punk", "Purple Punk", "Ninja Bear", "Fluffy Pilot", "Pirate Captain", "Exhausted Bear", "Fluffy Painter", "Left Looking Bear", "Pink Bear", "Fluffy Bandit", "Ducky", "Chick", "Office Bear", "Fluffy Warrior", "Mcbear's", "Ethbeary", "Hodl Bear", "Frozen Fluffy", "Beauty Bear", "Intern Viking", "Shiny", "Tattooed Bear", "Silhouette Bear", "Ski Bear", "Fluffy Neo", "Robear Hood", "Bearlie Chaplin", "Obear Wan", "Bearlock Holmes", "Sad Sailor", "Fluffy Captain", "Miss Fluffy Sunshine", "Chief Redbird", "Diver Bear", "Rainbow Bear", "Albear Icetein", "Galileo Fluffio", "Iceac Newton", "Niclaw Tesla", "Fluffy Marie Curie", "Fluffy Santa", "Fluffy Holiday", "Stormy", "Narcissist Bear", "Seally Bear", "Fluffy Knight", "Princess Aurora", "Karate Bear", "Fluffy Lighthouse", "Party Bear", "Rainy", "Igloo Bear", "Fluffy Panda", "Fluffy Fall", "Pizza Chef", "Stoned Bear", "Sharky", "The Goat", "Fluffy Pharaoh", "Art Bear", "Manga Bear", "Fluffy Hipster", "Lucky", "Bearly Bear", "The Ice King", "Yeti", "Coder Bear", "Fluffy Arctic Wolf", "Baby Bear"]; string public metadataProvenance; constructor(address SketchAddress) ERC721("Fluffy Polar Bears", "FPB") { _ERC1155BURNADDRESS = SketchAddress; attributeIdsToNames[0] = ["Pink", "Orange", "Blue", "Purple", "Yellow", "Fuchsia", "Green", "Rose", "Electric Pink", "Light Green"]; attributeIdsToNames[1] = ["Yellow T-shirt", "Casual T-shirt", "Red Shirt", "Purple Polo", "Party Dress", "Purple Hoodie", "Purple Waistcoat", "Blue Scarf", "Pirate", "Blue Shirt&Tie", "White Shirt&Tie", "Suit", "Yellow Puffer", "Pink Scarf", "Pink Dress", "Caveman", "Karate", "Rock T-shirt", "Punk Jacket", "Explorer", "Trenchcoat", "Hawaiian Shirt", "Fur Coat", "Viking", "Yellow Sweater", "Red Sweater", "Warrior", "Wizard", "Sailor", "Cowboy", "Pilot", "Pink Blouse", "Painter", "Princess", "Craftsman", "Chef", "Aristocrat", "King", "Clown", "Pharaoh", "Red Hoodie", "Hodl Hoodie", "Captain", "Aviator", "Admiral", "Blue Bathrobe", "Pink Towel", "Denim Jacket", "Black Suit", "Plaid Shirt", "Poncho", "Prisoner", "Bikini", "Yellow Raincoat", "Hawaaian", "ETH Sweater", "ETH Hoodie", "Gold Chain", "Straitjacket", "FPB Chain", "Ski Coat", "Snow", "FPB T-shirt", "Santa", "Life Jacket", "Knight", "Legionnaire", "Roman", "Gold Medal", "Robin", "Tribal", "Gardener", "Vampire", "Super Bear", "Astronaut", "Hipster", "Tattoo", "Xmas Lights", "Jersey", "Snow Sweatshirt", "Jedi", "Detective", "Polka Dot Bikini", "Witch"]; attributeIdsToNames[2] = ["Straight", "Left", "Calm", "Thinker", "Angry", "Wobbly", "Embarassed", "Sad", "Tired", "Innocent", "Heart Glasses", "Cool", "Dizzy", "Sunglasses", "Blue Glasses", "Retro Glasses", "Pirate", "In Love", "3D", "Sneaky", "Triple", "Confused", "Winky", "Cunning", "Flower Glasses", "Crossed", "Crying", "Punk", "Starry", "Thug Life", "Ski Goggles", "Condescending", "Super Hero", "Cute", "Furious", "Cucumber", "Purple Glasses", "Manga Eyes", "Steampunk", "Red Glasses", "Hipster Glasses", "Green Laser", "Red Laser", "Dreamer", "Fragile", "Lol", "Shiny", "Masquerade"]; attributeIdsToNames[3] = ["Santa", "Fish", "Purple Beanie", "Frog Beanie", "Wizard", "Crab", "Pirate", "Viking", "Pink Hat", "Fedora Hat", "Punk", "Purple Hair", "Blue Cap", "Navy Cap", "Admiral", "Paper Boat", "Bandana", "Party Hat", "Lighthouse", "Reverse Cap", "Graduated", "Top Hat", "Emo", "Blonde", "Karate Bandana", "Punk Cap", "Explorer", "Rice Hat", "Sailor", "Seagull", "Cowboy", "Devil", "Frog", "Motorbike Helmet", "Pilot", "Mushroom", "Manga Hair", "Painter", "Princess", "Safety Helmet", "Chef", "Wig", "Gold Crown", "Clown", "Polar Bear Beanie", "Red Bow", "Pharaoh", "Igloo", "Captain", "Aviator", "Towel", "Duck", "Hodl Cap", "Ice Crown", "Caveman", "Sombrero", "Prisoner", "Ice-Cream", "Unicorn", "Coffee", "Straw Hat", "Rain Hat", "Bowler Hat", "Flowers", "Toilet Paper", "Funnel", "FPB Cap", "Pompom", "Propeller Hat", "Knight", "Legionnaire", "Civic Crown", "Cooking Pot", "Shark", "Robin", "Feather Headband", "Vampire", "Hero", "Hipster", "Basketball", "Chicken", "Traffic Cone", "Curly", "Witch", "Detective", "Pony Tail", "McBear", "Headphones"]; attributeIdsToNames[4] = ["Neutral", "Smiling", "Laughing", "Sweet", "Sad", "Tongue Out", "Teeth", "Crooked Teeth", "Smirky", "Playful", "Doubt", "Cool", "Fickle", "Bucktoothed", "Two Teeth", "Mmm", "Puzzled", "Lipstick", "Exhausted", "Whistling", "Goofy", "Frozen", "Romantic", "Vampire", "Content", "Manga Mouth", "Disco", "Moustache", "Runny Nose", "Crazy", "Satisfied", "Hodl"]; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC721Enumerable) returns (bool) { return interfaceId == type(IERC721Receiver).interfaceId || interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId); } function safeMint() public onlyOwner { uint256 current = _tokenIdCounter.current(); require(current < TOTAL_SUPPLY, "Purchase would exceed max tokens"); _safeMint(msg.sender, current); super.setMetadata(current); tokenIds.push(current); _tokenIdCounter.increment(); } function updateERC1155BurnAddress(address erc1155BurnAddress) external onlyOwner { _ERC1155BURNADDRESS = erc1155BurnAddress; } /** * @dev Start the minting process */ function startMintingProcess() public onlyOwner { isMintingActive = true; } /** * @dev Pause the public sale */ function pauseMintingProcess() public onlyOwner { isMintingActive = false; } /** * @dev Start the reroll */ function startRerollProcess() public onlyOwner { isRerollActive = true; } /** * @dev Pause the reroll */ function pauseRerollProcess() public onlyOwner { isRerollActive = false; } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } function reroll(uint256 tokenId) external payable { require(isRerollActive, "Reroll not active"); require(msg.sender == ownerOf(tokenId), "Only owner can reroll."); require(REROLL_PRICE <= msg.value, "Ether value sent is not correct"); super.setMetadata(tokenId); } function setImageUrl(string memory _imageUrl) onlyOwner public { IMAGE_URL = _imageUrl; } function generateMetadata(uint256 _tokenId) public view returns (string memory) { string memory metadataString; Token memory token = tokens[_tokenId]; if (token.isLegendary) { metadataString = string( abi.encodePacked( metadataString, '{"trait_type":"Legendary","value":"', legendaryIdToName[token.legendaryId], '"}' ) ); } else { uint8[5] memory attributes = [token.bg, token.costume, token.eyes, token.head, token.nose]; for (uint8 i = 0; i < attributes.length; i++) { uint256 value = attributes[i]; metadataString = string( abi.encodePacked( metadataString, '{"trait_type":"', attributeCategoryIdToName[i], '","value":"', attributeIdsToNames[i][value - 1], '"}' ) ); if (i != attributes.length - 1) metadataString = string(abi.encodePacked(metadataString, ",")); } } return string(abi.encodePacked("[", metadataString, "]")); } function tokenURI(uint256 _tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) { require(tokens[_tokenId].isExists); return string( abi.encodePacked( "data:application/json;base64,", Library.encode( bytes( string( abi.encodePacked( '{"name": "Fluffy Polar Bears #', Library.toString(_tokenId), '", "description": "After a very harsh ice age, polar bears were the only species that survived. Now, they need to explore the world, create inventions and a world of polar bears - cold, funky and definitely interesting! Fluffy Polar Bears are a collection of 9,999 randomly and fully On-Chain generated NFTs that exist on the Ethereum Blockchain.", "image": "', IMAGE_URL, Library.toString(_tokenId), '","external_url":"https://polarbearsnft.com/token/', Library.toString(_tokenId), '","attributes":', generateMetadata(_tokenId), "}" ) ) ) ) ) ); } function tokensOfOwner(address _owner) external view returns(uint256[] memory ) { uint256 tokenCount = balanceOf(_owner); if (tokenCount == 0) { return new uint256[](0); } else { uint256[] memory result = new uint256[](tokenCount); uint256 index; for (index = 0; index < tokenCount; index++) { result[index] = tokenOfOwnerByIndex(_owner, index); } return result; } } /** * @dev See {IERC721Receiver-onERC721Received}. */ function onERC721Received(address, address from, uint256 id, bytes calldata data) public virtual override returns (bytes4) { require(msg.sender == _ERC1155BURNADDRESS && id == 1, "Invalid NFT"); require(isMintingActive, "Minting is not active yet."); uint256 current = _tokenIdCounter.current(); require(current + 1 <= TOTAL_SUPPLY, "Purchase would exceed max tokens"); // Burn it try ERC1155Burnable(msg.sender).burn(address(this), id, 1) { } catch Error(string memory reason) { emit ErrorHandled(reason); revert("Burn failure"); } catch (bytes memory lowLevelData) { emit ErrorNotHandled(lowLevelData); revert("Burn failure"); } for (uint i = 0; i < 1; i++) { uint256 current = _tokenIdCounter.current(); require(current < TOTAL_SUPPLY, "Purchase would exceed max tokens"); _safeMint(from, current); super.setMetadata(current); tokenIds.push(current); _tokenIdCounter.increment(); } return this.onERC721Received.selector; } function onERC1155Received( address, address from, uint256 id, uint256 value, bytes calldata data ) external returns(bytes4) { _onERC1155Received(from, id, value, data); return this.onERC1155Received.selector; } function onERC1155BatchReceived( address, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns(bytes4) { require(ids.length == values.length, "Invalid input"); for (uint i = 0; i < ids.length; i++) { _onERC1155Received(from, ids[i], values[i], data); } return this.onERC1155BatchReceived.selector; } event ErrorHandled(string reason); event ErrorNotHandled(bytes reason); function _onERC1155Received(address from, uint256 id, uint256 value, bytes calldata data) private { require(msg.sender == _ERC1155BURNADDRESS && id == 1, "Invalid NFT"); require(isMintingActive, "Minting is not active yet."); uint256 current = _tokenIdCounter.current(); require(current + value <= TOTAL_SUPPLY, "Purchase would exceed max tokens"); // Burn it try ERC1155Burnable(msg.sender).burn(address(this), id, value) { } catch Error(string memory reason) { emit ErrorHandled(reason); revert("Burn failure"); } catch (bytes memory lowLevelData) { emit ErrorNotHandled(lowLevelData); revert("Burn failure"); } for (uint i = 0; i < value; i++) { uint256 current = _tokenIdCounter.current(); require(current < TOTAL_SUPPLY, "Purchase would exceed max tokens"); _safeMint(from, current); super.setMetadata(current); tokenIds.push(current); _tokenIdCounter.increment(); } } mapping (address => bool) isBlacklisted; function addToBlacklist(address[] memory _addresses, bool _value) onlyOwner public { for (uint i = 0; i < _addresses.length; i++) { isBlacklisted[_addresses[i]] = _value; } } function setTokenAsLegendary (uint256 tokenId, uint8 id, uint16[] memory tokenIdMap, uint16 tokenCount) private { // Convert cleanedTokenId to actual token id tokenId = tokenIdMap[tokenId]; if (tokens[tokenId].isLegendary) { uint256 random = uint256(keccak256(abi.encode(tokenId, randomResult))) % tokenCount; setTokenAsLegendary(random, id, tokenIdMap, tokenCount); } else { Token memory _token = tokens[tokenId]; _token.isLegendary = true; _token.legendaryId = id; tokens[tokenId] = _token; emit TokenInfoChanged(_token); } } function _setLegendaries(uint256[] memory _legendaries, uint16[] memory tokenIdMap, uint16 tokenCount) private { uint256 len = _legendaries.length; for (uint8 i = 0; i < len; i++) { uint256 token = _legendaries[i]; setTokenAsLegendary(token, i, tokenIdMap, tokenCount); } } function setLegendaries() public onlyOwner { uint currentSupply = _tokenIdCounter.current(); // 9999 uint16 cleanedTokenIdCounter = 0; uint16[] memory cleanedTokensToActualTokenIds = new uint16[](currentSupply); for (uint16 tokenId = 0; tokenId < currentSupply; tokenId++) { address owner = this.ownerOf(tokenId); if(isBlacklisted[owner] != true) { cleanedTokensToActualTokenIds[cleanedTokenIdCounter] = tokenId; cleanedTokenIdCounter += 1; } } uint256[] memory luckyTokens = expand(randomResult, 99, cleanedTokenIdCounter); _setLegendaries(luckyTokens, cleanedTokensToActualTokenIds, cleanedTokenIdCounter); } function expand(uint256 randomValue, uint256 n, uint256 tokenCount) private pure returns (uint256[] memory expandedValues) { expandedValues = new uint256[](n); for (uint256 i = 0; i < n; i++) { expandedValues[i] = uint256(keccak256(abi.encode(randomValue, i))) % tokenCount; } return expandedValues; } function setMetadataProvenance(string memory _hash) onlyOwner public { metadataProvenance = _hash; } /** * @dev Withdraw and distribute the ether. */ function withdrawAll() public payable onlyOwner { uint256 balance = address(this).balance; uint toContractDeveloper = (balance * CONTRACT_DEVELOPER_FEE) / SHARE_SUM; uint toArtist = (balance * ARTIST_FEE) / SHARE_SUM; uint toWebDeveloper = (balance * WEB_DEVELOPER_FEE) / SHARE_SUM; uint toCommmunityManager = (balance * COMMUNITY_MANAGER_FEE) / SHARE_SUM; uint toShareholder = (balance * SHAREHOLDER_FEE) / SHARE_SUM; uint toCharity = (balance * CHARITY_FEE) / SHARE_SUM; uint toPool = (balance * POOL_FEE) / SHARE_SUM; payable(CONTRACT_DEVELOPER_ADDRESS).transfer(toContractDeveloper); payable(ARTIST_ADDRESS).transfer(toArtist); payable(WEB_DEVELOPER_ADDRESS).transfer(toWebDeveloper); payable(COMMUNITY_MANAGER_ADDRESS).transfer(toCommmunityManager); payable(SHAREHOLDER_ADDRESS).transfer(toShareholder); payable(CHARITY_ADDRESS).transfer(toCharity); payable(POOL_ADDRESS).transfer(toPool); uint toOwner = balance - (toContractDeveloper + toArtist + toWebDeveloper + toCommmunityManager + toShareholder + toCharity + toPool); payable(msg.sender).transfer(toOwner); } // The following functions are overrides required by Solidity. function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal whenNotPaused override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) { super._burn(tokenId); } }
// SPDX-License-Identifier: MIT // ______ _ __ __ _____ _ ____ // | ____| | / _|/ _| | __ \ | | | _ \ // | |__ | |_ _| |_| |_ _ _ | |__) |__ | | __ _ _ __ | |_) | ___ __ _ _ __ ___ // | __| | | | | | _| _| | | | | ___/ _ \| |/ _` | '__| | _ < / _ \/ _` | '__/ __| // | | | | |_| | | | | | |_| | | | | (_) | | (_| | | | |_) | __/ (_| | | \__ \ // |_| |_|\__,_|_| |_| \__, | |_| \___/|_|\__,_|_| |____/ \___|\__,_|_| |___/ // __/ | // |___/ // // Fluffy Polar Bears ERC-1155 Contract // “Ice to meet you, this contract is smart and fluffy.” /// @creator: FluffyPolarBears /// @author: kodbilen.eth - twitter.com/kodbilenadam /// @contributor: peker.eth – twitter.com/MehmetAliCode pragma solidity ^0.8.2; library Library { string internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; function encode(bytes memory data) internal pure returns (string memory) { if (data.length == 0) return ""; // load the table into memory string memory table = TABLE; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((data.length + 2) / 3); // add some extra buffer at the end required for the writing string memory result = new string(encodedLen + 32); assembly { // set the actual output length mstore(result, encodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 3 bytes at a time for { } lt(dataPtr, endPtr) { } { dataPtr := add(dataPtr, 3) // read 3 bytes let input := mload(dataPtr) // write 4 characters mstore( resultPtr, shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F)))) ) resultPtr := add(resultPtr, 1) mstore( resultPtr, shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F)))) ) resultPtr := add(resultPtr, 1) mstore( resultPtr, shl(248, mload(add(tablePtr, and(shr(6, input), 0x3F)))) ) resultPtr := add(resultPtr, 1) mstore( resultPtr, shl(248, mload(add(tablePtr, and(input, 0x3F)))) ) resultPtr := add(resultPtr, 1) } // padding with '=' switch mod(mload(data), 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } } return result; } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { 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); } function parseInt(string memory _a) internal pure returns (uint8 _parsedInt) { bytes memory bresult = bytes(_a); uint8 mint = 0; for (uint8 i = 0; i < bresult.length; i++) { if ( (uint8(uint8(bresult[i])) >= 48) && (uint8(uint8(bresult[i])) <= 57) ) { mint *= 10; mint += uint8(bresult[i]) - 48; } } return mint; } function substring( string memory str, uint256 startIndex, uint256 endIndex ) internal pure returns (string memory) { bytes memory strBytes = bytes(str); bytes memory result = new bytes(endIndex - startIndex); for (uint256 i = startIndex; i < endIndex; i++) { result[i - startIndex] = strBytes[i]; } return string(result); } 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; } }
// SPDX-License-Identifier: MIT // ______ _ __ __ _____ _ ____ // | ____| | / _|/ _| | __ \ | | | _ \ // | |__ | |_ _| |_| |_ _ _ | |__) |__ | | __ _ _ __ | |_) | ___ __ _ _ __ ___ // | __| | | | | | _| _| | | | | ___/ _ \| |/ _` | '__| | _ < / _ \/ _` | '__/ __| // | | | | |_| | | | | | |_| | | | | (_) | | (_| | | | |_) | __/ (_| | | \__ \ // |_| |_|\__,_|_| |_| \__, | |_| \___/|_|\__,_|_| |____/ \___|\__,_|_| |___/ // __/ | // |___/ // // Fluffy Polar Bears ERC-1155 Contract // “Ice to meet you, this contract is smart and fluffy.” /// @creator: FluffyPolarBears /// @author: kodbilen.eth - twitter.com/kodbilenadam /// @contributor: peker.eth – twitter.com/MehmetAliCode pragma solidity ^0.8.7; import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; contract FluffyCore is VRFConsumerBase, Ownable { using Counters for Counters.Counter; Counters.Counter public _tokenIdCounter; bytes32 internal keyHash; uint256 internal fee; uint256 public randomResult; struct Token { uint256 tokenId; uint8 bg; uint8 costume; uint8 eyes; uint8 head; uint8 nose; uint8 legendaryId; bool isExists; bool isLegendary; } event TokenInfoChanged( Token token ); mapping(uint256 => Token) tokens; uint256[] tokenIds; uint8 BGS = 9; uint8 COSTUMES = 83; uint8 EYES = 46; uint8 HEADS = 87; uint8 NOSES = 32; constructor() VRFConsumerBase( 0xf0d54349aDdcf704F77AE15b96510dEA15cb7952, 0x514910771AF9Ca656af840dff83E8264EcF986CA ) { keyHash = 0xAA77729D3466CA35AE8D28B3BBAC7CC36A5031EFDC430821C02BC31A238AF445; fee = 2 * 10 ** 18; } /** * Requests randomness */ function getRandomNumber() onlyOwner public returns (bytes32 requestId) { require(LINK.balanceOf(address(this)) >= fee, "Not enough LINK - fill contract with faucet"); return requestRandomness(keyHash, fee); } function getToken(uint256 _id) public view returns (Token memory token) { return tokens[_id]; } /** * Callback function used by VRF Coordinator */ function fulfillRandomness(bytes32 requestId, uint256 randomness) internal override { randomResult = randomness; } function convert8 (uint256 _a) internal pure returns (uint8) { return uint8(_a); } function setMetadata(uint256 tokenId) internal { uint256 random = uint256(keccak256(abi.encode(tokenId, randomResult, msg.sender, block.number, block.timestamp, blockhash(block.number - 1)))); uint8 bg = convert8(random % BGS) + 1; uint8 costume = convert8(random % COSTUMES) + 1; uint8 eye = convert8(random % EYES) + 1; uint8 head = convert8(random % HEADS) + 1; uint8 nose = convert8(random % NOSES) + 1; Token memory _token = Token(tokenId, bg, costume, eye, head, nose, 0, true, false); tokens[tokenId] = _token; emit TokenInfoChanged(_token); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC1155.sol"; /** * @dev Extension of {ERC1155} that allows token holders to destroy both their * own tokens and those that they have been approved to use. * * _Available since v3.1._ */ abstract contract ERC1155Burnable is ERC1155 { function burn( address account, uint256 id, uint256 value ) public virtual { require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not owner nor approved" ); _burn(account, id, value); } function burnBatch( address account, uint256[] memory ids, uint256[] memory values ) public virtual { require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not owner nor approved" ); _burnBatch(account, ids, values); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). @param operator The address which initiated the transfer (i.e. msg.sender) @param from The address which previously owned the token @param id The ID of the token being transferred @param value The amount of tokens being transferred @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** @dev Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../security/Pausable.sol"; /** * @dev ERC721 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */ abstract contract ERC721Pausable is ERC721, Pausable { /** * @dev See {ERC721-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); require(!paused(), "ERC721Pausable: token transfer while paused"); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @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 override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./interfaces/LinkTokenInterface.sol"; import "./VRFRequestIDBase.sol"; /** **************************************************************************** * @notice Interface for contracts using VRF randomness * ***************************************************************************** * @dev PURPOSE * * @dev Reggie the Random Oracle (not his real job) wants to provide randomness * @dev to Vera the verifier in such a way that Vera can be sure he's not * @dev making his output up to suit himself. Reggie provides Vera a public key * @dev to which he knows the secret key. Each time Vera provides a seed to * @dev Reggie, he gives back a value which is computed completely * @dev deterministically from the seed and the secret key. * * @dev Reggie provides a proof by which Vera can verify that the output was * @dev correctly computed once Reggie tells it to her, but without that proof, * @dev the output is indistinguishable to her from a uniform random sample * @dev from the output space. * * @dev The purpose of this contract is to make it easy for unrelated contracts * @dev to talk to Vera the verifier about the work Reggie is doing, to provide * @dev simple access to a verifiable source of randomness. * ***************************************************************************** * @dev USAGE * * @dev Calling contracts must inherit from VRFConsumerBase, and can * @dev initialize VRFConsumerBase's attributes in their constructor as * @dev shown: * * @dev contract VRFConsumer { * @dev constuctor(<other arguments>, address _vrfCoordinator, address _link) * @dev VRFConsumerBase(_vrfCoordinator, _link) public { * @dev <initialization with other arguments goes here> * @dev } * @dev } * * @dev The oracle will have given you an ID for the VRF keypair they have * @dev committed to (let's call it keyHash), and have told you the minimum LINK * @dev price for VRF service. Make sure your contract has sufficient LINK, and * @dev call requestRandomness(keyHash, fee, seed), where seed is the input you * @dev want to generate randomness from. * * @dev Once the VRFCoordinator has received and validated the oracle's response * @dev to your request, it will call your contract's fulfillRandomness method. * * @dev The randomness argument to fulfillRandomness is the actual random value * @dev generated from your seed. * * @dev The requestId argument is generated from the keyHash and the seed by * @dev makeRequestId(keyHash, seed). If your contract could have concurrent * @dev requests open, you can use the requestId to track which seed is * @dev associated with which randomness. See VRFRequestIDBase.sol for more * @dev details. (See "SECURITY CONSIDERATIONS" for principles to keep in mind, * @dev if your contract could have multiple requests in flight simultaneously.) * * @dev Colliding `requestId`s are cryptographically impossible as long as seeds * @dev differ. (Which is critical to making unpredictable randomness! See the * @dev next section.) * * ***************************************************************************** * @dev SECURITY CONSIDERATIONS * * @dev A method with the ability to call your fulfillRandomness method directly * @dev could spoof a VRF response with any random value, so it's critical that * @dev it cannot be directly called by anything other than this base contract * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method). * * @dev For your users to trust that your contract's random behavior is free * @dev from malicious interference, it's best if you can write it so that all * @dev behaviors implied by a VRF response are executed *during* your * @dev fulfillRandomness method. If your contract must store the response (or * @dev anything derived from it) and use it later, you must ensure that any * @dev user-significant behavior which depends on that stored value cannot be * @dev manipulated by a subsequent VRF request. * * @dev Similarly, both miners and the VRF oracle itself have some influence * @dev over the order in which VRF responses appear on the blockchain, so if * @dev your contract could have multiple VRF requests in flight simultaneously, * @dev you must ensure that the order in which the VRF responses arrive cannot * @dev be used to manipulate your contract's user-significant behavior. * * @dev Since the ultimate input to the VRF is mixed with the block hash of the * @dev block in which the request is made, user-provided seeds have no impact * @dev on its economic security properties. They are only included for API * @dev compatability with previous versions of this contract. * * @dev Since the block hash of the block which contains the requestRandomness * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful * @dev miner could, in principle, fork the blockchain to evict the block * @dev containing the request, forcing the request to be included in a * @dev different block with a different hash, and therefore a different input * @dev to the VRF. However, such an attack would incur a substantial economic * @dev cost. This cost scales with the number of blocks the VRF oracle waits * @dev until it calls responds to a request. */ abstract contract VRFConsumerBase is VRFRequestIDBase { /** * @notice fulfillRandomness handles the VRF response. Your contract must * @notice implement it. See "SECURITY CONSIDERATIONS" above for important * @notice principles to keep in mind when implementing your fulfillRandomness * @notice method. * * @dev VRFConsumerBase expects its subcontracts to have a method with this * @dev signature, and will call it once it has verified the proof * @dev associated with the randomness. (It is triggered via a call to * @dev rawFulfillRandomness, below.) * * @param requestId The Id initially returned by requestRandomness * @param randomness the VRF output */ function fulfillRandomness( bytes32 requestId, uint256 randomness ) internal virtual; /** * @dev In order to keep backwards compatibility we have kept the user * seed field around. We remove the use of it because given that the blockhash * enters later, it overrides whatever randomness the used seed provides. * Given that it adds no security, and can easily lead to misunderstandings, * we have removed it from usage and can now provide a simpler API. */ uint256 constant private USER_SEED_PLACEHOLDER = 0; /** * @notice requestRandomness initiates a request for VRF output given _seed * * @dev The fulfillRandomness method receives the output, once it's provided * @dev by the Oracle, and verified by the vrfCoordinator. * * @dev The _keyHash must already be registered with the VRFCoordinator, and * @dev the _fee must exceed the fee specified during registration of the * @dev _keyHash. * * @dev The _seed parameter is vestigial, and is kept only for API * @dev compatibility with older versions. It can't *hurt* to mix in some of * @dev your own randomness, here, but it's not necessary because the VRF * @dev oracle will mix the hash of the block containing your request into the * @dev VRF seed it ultimately uses. * * @param _keyHash ID of public key against which randomness is generated * @param _fee The amount of LINK to send with the request * * @return requestId unique ID for this request * * @dev The returned requestId can be used to distinguish responses to * @dev concurrent requests. It is passed as the first argument to * @dev fulfillRandomness. */ function requestRandomness( bytes32 _keyHash, uint256 _fee ) internal returns ( bytes32 requestId ) { LINK.transferAndCall(vrfCoordinator, _fee, abi.encode(_keyHash, USER_SEED_PLACEHOLDER)); // This is the seed passed to VRFCoordinator. The oracle will mix this with // the hash of the block containing this request to obtain the seed/input // which is finally passed to the VRF cryptographic machinery. uint256 vRFSeed = makeVRFInputSeed(_keyHash, USER_SEED_PLACEHOLDER, address(this), nonces[_keyHash]); // nonces[_keyHash] must stay in sync with // VRFCoordinator.nonces[_keyHash][this], which was incremented by the above // successful LINK.transferAndCall (in VRFCoordinator.randomnessRequest). // This provides protection against the user repeating their input seed, // which would result in a predictable/duplicate output, if multiple such // requests appeared in the same block. nonces[_keyHash] = nonces[_keyHash] + 1; return makeRequestId(_keyHash, vRFSeed); } LinkTokenInterface immutable internal LINK; address immutable private vrfCoordinator; // Nonces for each VRF key from which randomness has been requested. // // Must stay in sync with VRFCoordinator[_keyHash][this] mapping(bytes32 /* keyHash */ => uint256 /* nonce */) private nonces; /** * @param _vrfCoordinator address of VRFCoordinator contract * @param _link address of LINK token contract * * @dev https://docs.chain.link/docs/link-token-contracts */ constructor( address _vrfCoordinator, address _link ) { vrfCoordinator = _vrfCoordinator; LINK = LinkTokenInterface(_link); } // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF // proof. rawFulfillRandomness then calls fulfillRandomness, after validating // the origin of the call function rawFulfillRandomness( bytes32 requestId, uint256 randomness ) external { require(msg.sender == vrfCoordinator, "Only VRFCoordinator can fulfill"); fulfillRandomness(requestId, randomness); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(_msgSender() != operator, "ERC1155: setting approval status for self"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`. * * Emits a {TransferSingle} event. * * Requirements: * * - `account` cannot be the zero address. * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address account, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(account != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][account] += amount; emit TransferSingle(operator, address(0), account, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `account` * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens of token type `id`. */ function _burn( address account, uint256 id, uint256 amount ) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); uint256 accountBalance = _balances[id][account]; require(accountBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][account] = accountBalance - amount; } emit TransferSingle(operator, account, address(0), id, amount); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address account, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 accountBalance = _balances[id][account]; require(accountBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][account] = accountBalance - amount; } } emit TransferBatch(operator, account, address(0), ids, amounts); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract VRFRequestIDBase { /** * @notice returns the seed which is actually input to the VRF coordinator * * @dev To prevent repetition of VRF output due to repetition of the * @dev user-supplied seed, that seed is combined in a hash with the * @dev user-specific nonce, and the address of the consuming contract. The * @dev risk of repetition is mostly mitigated by inclusion of a blockhash in * @dev the final seed, but the nonce does protect against repetition in * @dev requests which are included in a single block. * * @param _userSeed VRF seed input provided by user * @param _requester Address of the requesting contract * @param _nonce User-specific nonce at the time of the request */ function makeVRFInputSeed( bytes32 _keyHash, uint256 _userSeed, address _requester, uint256 _nonce ) internal pure returns ( uint256 ) { return uint256(keccak256(abi.encode(_keyHash, _userSeed, _requester, _nonce))); } /** * @notice Returns the id for this request * @param _keyHash The serviceAgreement ID to be used for this request * @param _vRFInputSeed The seed to be passed directly to the VRF * @return The id for this request * * @dev Note that _vRFInputSeed is not the seed passed by the consuming * @dev contract, but the one generated by makeVRFInputSeed */ function makeRequestId( bytes32 _keyHash, uint256 _vRFInputSeed ) internal pure returns ( bytes32 ) { return keccak256(abi.encodePacked(_keyHash, _vRFInputSeed)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface LinkTokenInterface { function allowance( address owner, address spender ) external view returns ( uint256 remaining ); function approve( address spender, uint256 value ) external returns ( bool success ); function balanceOf( address owner ) external view returns ( uint256 balance ); function decimals() external view returns ( uint8 decimalPlaces ); function decreaseApproval( address spender, uint256 addedValue ) external returns ( bool success ); function increaseApproval( address spender, uint256 subtractedValue ) external; function name() external view returns ( string memory tokenName ); function symbol() external view returns ( string memory tokenSymbol ); function totalSupply() external view returns ( uint256 totalTokensIssued ); function transfer( address to, uint256 value ) external returns ( bool success ); function transferAndCall( address to, uint256 value, bytes calldata data ) external returns ( bool success ); function transferFrom( address from, address to, uint256 value ) external returns ( bool success ); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"SketchAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"reason","type":"string"}],"name":"ErrorHandled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"reason","type":"bytes"}],"name":"ErrorNotHandled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint8","name":"bg","type":"uint8"},{"internalType":"uint8","name":"costume","type":"uint8"},{"internalType":"uint8","name":"eyes","type":"uint8"},{"internalType":"uint8","name":"head","type":"uint8"},{"internalType":"uint8","name":"nose","type":"uint8"},{"internalType":"uint8","name":"legendaryId","type":"uint8"},{"internalType":"bool","name":"isExists","type":"bool"},{"internalType":"bool","name":"isLegendary","type":"bool"}],"indexed":false,"internalType":"struct FluffyCore.Token","name":"token","type":"tuple"}],"name":"TokenInfoChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"ARTIST_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ARTIST_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CHARITY_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CHARITY_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"COMMUNITY_MANAGER_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"COMMUNITY_MANAGER_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CONTRACT_DEVELOPER_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CONTRACT_DEVELOPER_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"POOL_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"POOL_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REROLL_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SHAREHOLDER_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SHAREHOLDER_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WEB_DEVELOPER_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WEB_DEVELOPER_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_tokenIdCounter","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"bool","name":"_value","type":"bool"}],"name":"addToBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"generateMetadata","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRandomNumber","outputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getToken","outputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint8","name":"bg","type":"uint8"},{"internalType":"uint8","name":"costume","type":"uint8"},{"internalType":"uint8","name":"eyes","type":"uint8"},{"internalType":"uint8","name":"head","type":"uint8"},{"internalType":"uint8","name":"nose","type":"uint8"},{"internalType":"uint8","name":"legendaryId","type":"uint8"},{"internalType":"bool","name":"isExists","type":"bool"},{"internalType":"bool","name":"isLegendary","type":"bool"}],"internalType":"struct FluffyCore.Token","name":"token","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMintingActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRerollActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataProvenance","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pauseMintingProcess","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pauseRerollProcess","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"randomResult","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"reroll","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"safeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_imageUrl","type":"string"}],"name":"setImageUrl","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setLegendaries","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_hash","type":"string"}],"name":"setMetadataProvenance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startMintingProcess","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startRerollProcess","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"erc1155BurnAddress","type":"address"}],"name":"updateERC1155BurnAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
6013805464ffffffffff19166420572e53091790556003601481905560196015819055600c6016556007601781905560188080559091556005601a81905566753d533d968000601b55601c805461ffff60a01b19169055600a61016090815269109858dad9dc9bdd5b9960b21b6101805260c09081526101a092835266436f7374756d6560c81b6101c05260e0929092526101e09283526245796560e81b61020052610100929092526004610220818152631219585960e21b61024052610120526102a0604052610260908152634e6f736560e01b6102805261014052620000eb91608291906200372b565b5060405180610c6001604052806040518060400160405280600c81526020016b2b30b734b63630902132b0b960a11b81525081526020016040518060400160405280600b81526020016a23b7b63232b7102132b0b960a91b81525081526020016040518060400160405280600c81526020016b283abd3d3632b2102132b0b960a11b81525081526020016040518060400160405280600781526020016619a2102132b0b960c91b81525081526020016040518060400160405280600a815260200169506f6c6172204c69736160b01b81525081526020016040518060400160405280600a8152602001695468652053637265616d60b01b8152508152602001604051806040016040528060128152602001710acd2dcc6cadce840a0ded8c2e4408edeced60731b81525081526020016040518060400160405280600a8152602001694772656174205761766560b01b81525081526020016040518060400160405280600d81526020016c42656172696461204b61686c6f60981b81525081526020016040518060400160405280600e81526020016d5061626c6f20506f6c617273636f60901b81525081526020016040518060400160405280601081526020016f2132b0b932ba1026b7b7323934b0b0b760811b81525081526020016040518060400160405280600f81526020016e53616c7661646f7220466c7566667960881b81525081526020016040518060400160405280600781526020016623b6902132b0b960c91b81525081526020016040518060400160405280600b81526020016a5368616b6573706561726560a81b81525081526020016040518060400160405280601081526020016f105b585899585c9d5cc8135bde985c9d60821b81525081526020016040518060400160405280601081526020016f43726f7373776f726420466c7566667960801b81525081526020016040518060400160405280600c81526020016b233930b735b4b1b2ba32b4b760a11b81525081526020016040518060400160405280600c81526020016b10dc985e9e4815da5e985c9960a21b81525081526020016040518060400160405280600f81526020016e436f756e7420426561726163756c6160881b81525081526020016040518060400160405280600c81526020016b08cd8eaccccf240aed2e8c6d60a31b8152508152602001604051806040016040528060078152602001662d37b6b132b0b960c91b815250815260200160405180604001604052806011815260200170115d9a5b08119b1d59999e48149bd89bdd607a1b81525081526020016040518060400160405280600a81526020016926bab6b6bc902132b0b960b11b81525081526020016040518060400160405280600981526020016821b0bb32902132b0b960b91b81525081526020016040518060400160405280600e81526020016d23363ab3333c902ab734b1b7b93760911b81525081526020016040518060400160405280600d81526020016c466c7566667920436f77626f7960981b81525081526020016040518060400160405280600e81526020016d20b9ba3937b730baba102132b0b960911b81525081526020016040518060400160405280600b81526020016a2232b9b2b93a102132b0b960a91b8152508152602001604051806040016040528060078152602001662134b837b630b960c91b81525081526020016040518060400160405280600c81526020016b537570657220466c7566667960a01b81525081526020016040518060400160405280600b81526020016a466c756666792050756e6b60a81b81525081526020016040518060400160405280600b81526020016a507572706c652050756e6b60a81b81525081526020016040518060400160405280600a8152602001692734b73530902132b0b960b11b81525081526020016040518060400160405280600c81526020016b119b1d59999e48141a5b1bdd60a21b81525081526020016040518060400160405280600e81526020016d2834b930ba329021b0b83a30b4b760911b81525081526020016040518060400160405280600e81526020016d22bc3430bab9ba32b2102132b0b960911b81525081526020016040518060400160405280600e81526020016d23363ab3333c902830b4b73a32b960911b8152508152602001604051806040016040528060118152602001702632b33a102637b7b5b4b733902132b0b960791b8152508152602001604051806040016040528060098152602001682834b735902132b0b960b91b81525081526020016040518060400160405280600d81526020016c119b1d59999e4810985b991a5d609a1b8152508152602001604051806040016040528060058152602001644475636b7960d81b815250815260200160405180604001604052806005815260200164436869636b60d81b81525081526020016040518060400160405280600b81526020016a27b33334b1b2902132b0b960a91b81525081526020016040518060400160405280600e81526020016d23363ab3333c902bb0b93934b7b960911b8152508152602001604051806040016040528060088152602001674d6362656172277360c01b815250815260200160405180604001604052806008815260200167457468626561727960c01b8152508152602001604051806040016040528060098152602001682437b236102132b0b960b91b81525081526020016040518060400160405280600d81526020016c46726f7a656e20466c7566667960981b81525081526020016040518060400160405280600b81526020016a2132b0baba3c902132b0b960a91b81525081526020016040518060400160405280600d81526020016c496e7465726e2056696b696e6760981b8152508152602001604051806040016040528060058152602001645368696e7960d81b81525081526020016040518060400160405280600d81526020016c2a30ba3a37b7b2b2102132b0b960991b81525081526020016040518060400160405280600f81526020016e29b4b63437bab2ba3a32902132b0b960891b81525081526020016040518060400160405280600881526020016729b5b4902132b0b960c11b81525081526020016040518060400160405280600a815260200169466c75666679204e656f60b01b81525081526020016040518060400160405280600b81526020016a149bd899585c88121bdbd960aa1b81525081526020016040518060400160405280600f81526020016e2132b0b93634b29021b430b83634b760891b81525081526020016040518060400160405280600981526020016827b132b0b9102bb0b760b91b81525081526020016040518060400160405280600f81526020016e426561726c6f636b20486f6c6d657360881b81525081526020016040518060400160405280600a81526020016929b0b21029b0b4b637b960b11b81525081526020016040518060400160405280600e81526020016d23363ab3333c9021b0b83a30b4b760911b81525081526020016040518060400160405280601481526020017f4d69737320466c756666792053756e7368696e6500000000000000000000000081525081526020016040518060400160405280600d81526020016c10da1a595988149959189a5c99609a1b81525081526020016040518060400160405280600a8152602001692234bb32b9102132b0b960b11b81525081526020016040518060400160405280600c81526020016b2930b4b73137bb902132b0b960a11b81525081526020016040518060400160405280600e81526020016d20b63132b0b91024b1b2ba32b4b760911b81525081526020016040518060400160405280600f81526020016e47616c696c656f20466c756666696f60881b81525081526020016040518060400160405280600c81526020016b24b1b2b0b1902732bbba37b760a11b81525081526020016040518060400160405280600c81526020016b4e69636c6177205465736c6160a01b815250815260200160405180604001604052806012815260200171466c75666679204d6172696520437572696560701b81525081526020016040518060400160405280600c81526020016b466c756666792053616e746160a01b81525081526020016040518060400160405280600e81526020016d466c7566667920486f6c6964617960901b81525081526020016040518060400160405280600681526020016553746f726d7960d01b81525081526020016040518060400160405280600f81526020016e2730b931b4b9b9b4b9ba102132b0b960891b81525081526020016040518060400160405280600b81526020016a29b2b0b6363c902132b0b960a91b81525081526020016040518060400160405280600d81526020016c119b1d59999e4812db9a59da1d609a1b81525081526020016040518060400160405280600f81526020016e5072696e63657373204175726f726160881b81525081526020016040518060400160405280600b81526020016a25b0b930ba32902132b0b960a91b815250815260200160405180604001604052806011815260200170466c75666679204c69676874686f75736560781b81525081526020016040518060400160405280600a8152602001692830b93a3c902132b0b960b11b8152508152602001604051806040016040528060058152602001645261696e7960d81b81525081526020016040518060400160405280600a81526020016924b3b637b7902132b0b960b11b81525081526020016040518060400160405280600c81526020016b466c756666792050616e646160a01b81525081526020016040518060400160405280600b81526020016a119b1d59999e4811985b1b60aa1b81525081526020016040518060400160405280600a8152602001692834bd3d309021b432b360b11b81525081526020016040518060400160405280600b81526020016a29ba37b732b2102132b0b960a91b815250815260200160405180604001604052806006815260200165536861726b7960d01b815250815260200160405180604001604052806008815260200167151a194811dbd85d60c21b81525081526020016040518060400160405280600e81526020016d08cd8eaccccf240a0d0c2e4c2ded60931b81525081526020016040518060400160405280600881526020016720b93a102132b0b960c11b81525081526020016040518060400160405280600a81526020016926b0b733b0902132b0b960b11b81525081526020016040518060400160405280600e81526020016d23363ab3333c902434b839ba32b960911b8152508152602001604051806040016040528060058152602001644c75636b7960d81b81525081526020016040518060400160405280600b81526020016a2132b0b9363c902132b0b960a91b81525081526020016040518060400160405280600c81526020016b54686520496365204b696e6760a01b8152508152602001604051806040016040528060048152602001635965746960e01b81525081526020016040518060400160405280600a81526020016921b7b232b9102132b0b960b11b81525081526020016040518060400160405280601281526020017123363ab3333c9020b931ba34b1902bb7b63360711b8152508152602001604051806040016040528060098152602001682130b13c902132b0b960b91b8152508152506083906063620011279291906200378f565b503480156200113557600080fd5b5060405162008aac38038062008aac833981016040819052620011589162003a80565b6040805180820182526012815271466c7566667920506f6c617220426561727360701b60208083019182528351808501909452600384526223282160e91b908401527ff0d54349addcf704f77ae15b96510dea15cb795200000000000000000000000060a0527f514910771af9ca656af840dff83e8264ecf986ca0000000000000000000000006080528151919291620011f591600191620037e1565b5080516200120b906002906020840190620037e1565b5050600c805460ff19169055506200122333620036d1565b7faa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445600e55671bc16d674ec80000600f55601c80546001600160a01b0319166001600160a01b0383161790556040805161018081018252600461014082018181526350696e6b60e01b6101608401528252825180840184526006808252654f72616e676560d01b602080840191909152808501929092528451808601865283815263426c756560e01b81840152848601528451808601865281815265507572706c6560d01b818401526060850152845180860186529081526559656c6c6f7760d01b8183015260808401528351808501855260078152664675636873696160c81b8183015260a084015283518085018552600581526423b932b2b760d91b8183015260c08401528351808501855291825263526f736560e01b8282015260e083019190915282518084018452600d81526c456c6563747269632050696e6b60981b818301526101008301528251808401909352600b83526a2634b3b43a1023b932b2b760a91b90830152610120810191909152620013c590601e90600a6200386c565b5060405180610a8001604052806040518060400160405280600e81526020016d16595b1b1bddc8150b5cda1a5c9d60921b81525081526020016040518060400160405280600e81526020016d10d85cdd585b08150b5cda1a5c9d60921b8152508152602001604051806040016040528060098152602001681499590814da1a5c9d60ba1b81525081526020016040518060400160405280600b81526020016a507572706c6520506f6c6f60a81b81525081526020016040518060400160405280600b81526020016a506172747920447265737360a81b81525081526020016040518060400160405280600d81526020016c507572706c6520486f6f64696560981b81525081526020016040518060400160405280601081526020016f141d5c9c1b194815d85a5cdd18dbd85d60821b81525081526020016040518060400160405280600a81526020016921363ab29029b1b0b93360b11b81525081526020016040518060400160405280600681526020016550697261746560d01b81525081526020016040518060400160405280600e81526020016d426c75652053686972742654696560901b81525081526020016040518060400160405280600f81526020016e57686974652053686972742654696560881b81525081526020016040518060400160405280600481526020016314dd5a5d60e21b81525081526020016040518060400160405280600d81526020016c2cb2b63637bb90283ab33332b960991b81525081526020016040518060400160405280600a8152602001692834b7359029b1b0b93360b11b81525081526020016040518060400160405280600a81526020016950696e6b20447265737360b01b81525081526020016040518060400160405280600781526020016621b0bb32b6b0b760c91b8152508152602001604051806040016040528060068152602001654b617261746560d01b81525081526020016040518060400160405280600c81526020016b149bd8dac8150b5cda1a5c9d60a21b81525081526020016040518060400160405280600b81526020016a141d5b9ac8129858dad95d60aa1b81525081526020016040518060400160405280600881526020016722bc383637b932b960c11b81525081526020016040518060400160405280600a815260200169151c995b98da18dbd85d60b21b81525081526020016040518060400160405280600e81526020016d12185dd85a5a585b8814da1a5c9d60921b815250815260200160405180604001604052806008815260200167119d5c8810dbd85d60c21b81525081526020016040518060400160405280600681526020016556696b696e6760d01b81525081526020016040518060400160405280600e81526020016d2cb2b63637bb9029bbb2b0ba32b960911b81525081526020016040518060400160405280600b81526020016a2932b21029bbb2b0ba32b960a91b8152508152602001604051806040016040528060078152602001662bb0b93934b7b960c91b81525081526020016040518060400160405280600681526020016515da5e985c9960d21b81525081526020016040518060400160405280600681526020016529b0b4b637b960d11b815250815260200160405180604001604052806006815260200165436f77626f7960d01b815250815260200160405180604001604052806005815260200164141a5b1bdd60da1b81525081526020016040518060400160405280600b81526020016a50696e6b20426c6f75736560a81b8152508152602001604051806040016040528060078152602001662830b4b73a32b960c91b8152508152602001604051806040016040528060088152602001675072696e6365737360c01b81525081526020016040518060400160405280600981526020016821b930b33a39b6b0b760b91b81525081526020016040518060400160405280600481526020016321b432b360e11b81525081526020016040518060400160405280600a815260200169105c9a5cdd1bd8dc985d60b21b8152508152602001604051806040016040528060048152602001634b696e6760e01b81525081526020016040518060400160405280600581526020016421b637bbb760d91b8152508152602001604051806040016040528060078152602001660a0d0c2e4c2ded60cb1b81525081526020016040518060400160405280600a81526020016952656420486f6f64696560b01b81525081526020016040518060400160405280600b81526020016a486f646c20486f6f64696560a81b81525081526020016040518060400160405280600781526020016621b0b83a30b4b760c91b81525081526020016040518060400160405280600781526020016620bb34b0ba37b960c91b81525081526020016040518060400160405280600781526020016610591b5a5c985b60ca1b81525081526020016040518060400160405280600d81526020016c426c75652042617468726f626560981b81525081526020016040518060400160405280600a815260200169141a5b9ac8151bddd95b60b21b81525081526020016040518060400160405280600c81526020016b11195b9a5b48129858dad95d60a21b81525081526020016040518060400160405280600a815260200169109b1858dac814dd5a5d60b21b81525081526020016040518060400160405280600b81526020016a141b185a590814da1a5c9d60aa1b815250815260200160405180604001604052806006815260200165506f6e63686f60d01b815250815260200160405180604001604052806008815260200167283934b9b7b732b960c11b81525081526020016040518060400160405280600681526020016542696b696e6960d01b81525081526020016040518060400160405280600f81526020016e16595b1b1bddc814985a5b98dbd85d608a1b8152508152602001604051806040016040528060088152602001672430bbb0b0b4b0b760c11b81525081526020016040518060400160405280600b81526020016a22aa241029bbb2b0ba32b960a91b81525081526020016040518060400160405280600a81526020016945544820486f6f64696560b01b81525081526020016040518060400160405280600a81526020016923b7b6321021b430b4b760b11b81525081526020016040518060400160405280600c81526020016b14dd1c985a5d1a9858dad95d60a21b8152508152602001604051806040016040528060098152602001682328211021b430b4b760b91b81525081526020016040518060400160405280600881526020016714dada4810dbd85d60c21b815250815260200160405180604001604052806004815260200163536e6f7760e01b81525081526020016040518060400160405280600b81526020016a11941088150b5cda1a5c9d60aa1b81525081526020016040518060400160405280600581526020016453616e746160d81b81525081526020016040518060400160405280600b81526020016a131a599948129858dad95d60aa1b81525081526020016040518060400160405280600681526020016512db9a59da1d60d21b81525081526020016040518060400160405280600b81526020016a4c6567696f6e6e6169726560a81b8152508152602001604051806040016040528060058152602001642937b6b0b760d91b81525081526020016040518060400160405280600a81526020016911dbdb1908135959185b60b21b8152508152602001604051806040016040528060058152602001642937b134b760d91b815250815260200160405180604001604052806006815260200165151c9a58985b60d21b81525081526020016040518060400160405280600881526020016723b0b93232b732b960c11b81525081526020016040518060400160405280600781526020016656616d7069726560c81b81525081526020016040518060400160405280600a81526020016929bab832b9102132b0b960b11b815250815260200160405180604001604052806009815260200168105cdd1c9bdb985d5d60ba1b8152508152602001604051806040016040528060078152602001662434b839ba32b960c91b815250815260200160405180604001604052806006815260200165546174746f6f60d01b81525081526020016040518060400160405280600b81526020016a586d6173204c696768747360a81b8152508152602001604051806040016040528060068152602001654a657273657960d01b81525081526020016040518060400160405280600f81526020016e14db9bddc814ddd9585d1cda1a5c9d608a1b8152508152602001604051806040016040528060048152602001634a65646960e01b81525081526020016040518060400160405280600981526020016844657465637469766560b81b81525081526020016040518060400160405280601081526020016f506f6c6b6120446f742042696b696e6960801b8152508152602001604051806040016040528060058152602001640aed2e8c6d60db1b815250815250601e600160648110620020b757620020b762003aef565b620020c7929101906054620038be565b506040805161064081018252600861060082018181526714dd1c985a59da1d60c21b6106208401528252825180840184526004808252631319599d60e21b60208084019190915280850192909252845180860186528181526343616c6d60e01b8184015284860152845180860186526007808252662a3434b735b2b960c91b82850152606086019190915285518087018752600580825264416e67727960d81b82860152608087019190915286518088018852600680825265576f62626c7960d01b8287015260a088019190915287518089018952600a80825269115b58985c985cdcd95960b21b8288015260c08901919091528851808a018a5260038082526214d85960ea1b8289015260e08a01919091528951808b018b5284815264151a5c995960da1b818901526101008a01528951808b018b5288815267125b9b9bd8d95b9d60c21b818901526101208a01528951808b018b52600d8082526c486561727420476c617373657360981b828a01526101408b01919091528a51808c018c528781526310dbdbdb60e21b818a01526101608b01528a51808c018c528581526444697a7a7960d81b818a01526101808b01528a51808c018c528381526953756e676c617373657360b01b818a01526101a08b01528a51808c018c52600c81526b426c756520476c617373657360a01b818a01526101c08b01528a51808c018c528181526c526574726f20476c617373657360981b818a01526101e08b01528a51808c018c528481526550697261746560d01b818a01526102008b01528a51808c018c5286815266496e204c6f766560c81b818a01526102208b01528a51808c018c5260028152610cd160f21b818a01526102408b01528a51808c018c5284815265536e65616b7960d01b818a01526102608b01528a51808c018c5284815265547269706c6560d01b818a01526102808b01528a51808c018c528981526710dbdb999d5cd95960c21b818a01526102a08b01528a51808c018c528581526457696e6b7960d81b818a01526102c08b01528a51808c018c528681526643756e6e696e6760c81b818a01526102e08b01528a51808c018c52600e8082526d466c6f77657220476c617373657360901b828b01526103008c01919091528b51808d018d528781526610dc9bdcdcd95960ca1b818b01526103208c01528b51808d018d5285815265437279696e6760d01b818b01526103408c01528b51808d018d528881526350756e6b60e01b818b01526103608c01528b51808d018d529485526553746172727960d01b858a01526103808b01949094528a51808c018c5260098082526854687567204c69666560b81b828b01526103a08c01919091528b51808d018d52600b8082526a536b6920476f67676c657360a81b828c01526103c08d01919091528c51808e018e529283526c436f6e64657363656e64696e6760981b838b01526103e08c01929092528b51808d018d52848152695375706572204865726f60b01b818b01526104008c01528b51808d018d52978852634375746560e01b888a01526104208b01979097528a51808c018c5286815266467572696f757360c81b818a01526104408b01528a51808c018c529889526721bab1bab6b132b960c11b898901526104608a01989098528951808b018b529283526d507572706c6520476c617373657360901b838801526104808901929092528851808a018a52818152694d616e6761204579657360b01b818801526104a08901528851808a018a5285815268537465616d70756e6b60b81b818801526104c08901528851808a018a528781526a52656420476c617373657360a81b818801526104e08901528851808a018a52600f81526e4869707374657220476c617373657360881b818801526105008901528851808a018a529687526a23b932b2b7102630b9b2b960a91b8787015261052088019690965287518089018952938452682932b2102630b9b2b960b91b848601526105408701939093528651808801885282815266223932b0b6b2b960c91b81860152610560870152865180880188529182526646726167696c6560c81b828501526105808601919091528551808701875291825262131bdb60ea1b828401526105a085019190915284518086018652908152645368696e7960d81b818301526105c08401528351808501909452908352694d61737175657261646560b01b838201526105e0820192909252620027259190603062003910565b5060408051610b40810182526005610b0082018181526453616e746160d81b610b2084015282528251808401845260048082526308cd2e6d60e31b6020808401919091528085019290925284518086018652600d8082526c507572706c65204265616e696560981b828501528587019190915285518087018752600b8082526a46726f67204265616e696560a81b8286015260608701919091528651808801885260068082526515da5e985c9960d21b828701526080880191909152875180890189528481526321b930b160e11b8187015260a0880152875180890189528181526550697261746560d01b8187015260c0880152875180890189528181526556696b696e6760d01b8187015260e088015287518089018952600880825267141a5b9ac812185d60c21b828801526101008901919091528851808a018a52600a808252691199591bdc984812185d60b21b828901526101208a01919091528951808b018b528681526350756e6b60e01b818901526101408a01528951808b018b528481526a283ab9383632902430b4b960a91b818901526101608a01528951808b018b52828152670426c7565204361760c41b818901526101808a01528951808b018b528281526704e617679204361760c41b818901526101a08a01528951808b018b5260078082526610591b5a5c985b60ca1b828a01526101c08b01919091528a51808c018c528281526914185c195c88109bd85d60b21b818a01526101e08b01528a51808c018c528181526642616e64616e6160c81b818a01526102008b01528a51808c018c5260098082526814185c9d1e4812185d60ba1b828b01526102208c01919091528b51808d018d52838152694c69676874686f75736560b01b818b01526102408c01528b51808d018d528681526a052657665727365204361760ac1b818b01526102608c01528b51808d018d528181526811dc98591d585d195960ba1b818b01526102808c01528b51808d018d5282815266151bdc0812185d60ca1b818b01526102a08c01528b51808d018d52600380825262456d6f60e81b828c01526102c08d01919091528c51808e018e5286815265426c6f6e646560d01b818c01526102e08d01528c51808e018e52600e81526d4b61726174652042616e64616e6160901b818c01526103008d01528c51808e018e5285815267050756e6b204361760c41b818c01526103208d01528c51808e018e528581526722bc383637b932b960c11b818c01526103408d01528c51808e018e5285815267149a58d94812185d60c21b818c01526103608d01528c51808e018e528681526529b0b4b637b960d11b818c01526103808d01528c51808e018e528381526614d95859dd5b1b60ca1b818c01526103a08d01528c51808e018e5286815265436f77626f7960d01b818c01526103c08d01528c51808e018e528b81526411195d9a5b60da1b818c01526103e08d01528c51808e018e528981526346726f6760e01b818c01526104008d01528c51808e018e5260108082526f135bdd1bdc989a5ad94812195b1b595d60821b828d01526104208e01919091528d51808f018f528c815264141a5b1bdd60da1b818d01526104408e01528d51808f018f52868152674d757368726f6f6d60c01b818d01526104608e01528d51808f018f528581526926b0b733b0902430b4b960b11b818d01526104808e01528d51808f018f52848152662830b4b73a32b960c91b818d01526104a08e01528d51808f018f52868152675072696e6365737360c01b818d01526104c08e01528d51808f018f528981526c14d859995d1e4812195b1b595d609a1b818d01526104e08e01528d51808f018f528a81526321b432b360e11b818d01526105008e01528d51808f018f529182526257696760e81b828c01526105208d01919091528c51808e018e528481526923b7b6321021b937bbb760b11b818c01526105408d01528c51808e018e528b81526421b637bbb760d91b818c01526105608d01528c51808e018e526011815270506f6c61722042656172204265616e696560781b818c01526105808d01528c51808e018e528381526652656420426f7760c81b818c01526105a08d01528c51808e018e52838152660a0d0c2e4c2ded60cb1b818c01526105c08d01528c51808e018e528b81526449676c6f6f60d81b818c01526105e08d01528c51808e018e528381526621b0b83a30b4b760c91b818c01526106008d01528c51808e018e528381526620bb34b0ba37b960c91b818c01526106208d01528c51808e018e528b815264151bddd95b60da1b818c01526106408d01528c51808e018e52898152634475636b60e01b818c01526106608d01528c51808e018e52858152670486f646c204361760c41b818c01526106808d01528c51808e018e528281526824b1b29021b937bbb760b91b818c01526106a08d01528c51808e018e528381526621b0bb32b6b0b760c91b818c01526106c08d01528c51808e018e5285815267536f6d627265726f60c01b818c01526106e08d01528c51808e018e5285815267283934b9b7b732b960c11b818c01526107008d01528c51808e018e52828152684963652d437265616d60b81b818c01526107208d01528c51808e018e52838152662ab734b1b7b93760c91b818c01526107408d01528c51808e018e5286815265436f6666656560d01b818c01526107608d01528c51808e018e528281526814dd1c985dc812185d60ba1b818c01526107808d01528c51808e018e529485526714985a5b8812185d60c21b858b01526107a08c01949094528b51808d018d5283815269109bdddb195c8812185d60b21b818b01526107c08c01528b51808d018d5282815266466c6f7765727360c81b818b01526107e08c01528b51808d018d52600c8082526b2a37b4b632ba102830b832b960a11b828c01526108008d01919091528c51808e018e5286815265119d5b9b995b60d21b818c01526108208d01528c51808e018e52838152660465042204361760cc1b818c01526108408d01528c51808e018e5286815265506f6d706f6d60d01b818c01526108608d01528c51808e018e529788526c141c9bdc195b1b195c8812185d609a1b888b01526108808c01979097528b51808d018d528581526512db9a59da1d60d21b818b01526108a08c01528b51808d018d528681526a4c6567696f6e6e6169726560a81b818b01526108c08c01528b51808d018d528681526a21b4bb34b19021b937bbb760a91b818b01526108e08c01528b51808d018d529586526a10dbdbdada5b99c8141bdd60aa1b868a01526109008b01959095528a51808c018c5289815264536861726b60d81b818a01526109208b01528a51808c018c52898152642937b134b760d91b818a01526109408b01528a51808c018c529283526f1199585d1a195c881219585918985b9960821b838901526109608a01929092528951808b018b528281526656616d7069726560c81b818901526109808a01528951808b018b52958652634865726f60e01b868801526109a08901959095528851808a018a52818152662434b839ba32b960c91b818801526109c08901528851808a018a528581526910985cdad95d18985b1b60b21b818801526109e08901528851808a018a529081526621b434b1b5b2b760c91b81870152610a00880152875180890189529283526b5472616666696320436f6e6560a01b83860152610a2087019290925286518088018852858152644375726c7960d81b81860152610a4087015286518088018852948552640aed2e8c6d60db1b85850152610a60860194909452855180870187528481526844657465637469766560b81b81850152610a808601528551808701875293845268141bdb9e4815185a5b60ba1b84840152610aa0850193909352845180860186529283526526b1a132b0b960d11b83830152610ac08401929092528351808501909452908352694865616470686f6e657360b01b90830152610ae08101919091526200328b90602190605862003962565b506040805161044081018252600761040082018181526613995d5d1c985b60ca1b61042084015282528251808401845281815266536d696c696e6760c81b60208083019190915280840191909152835180850185526008808252674c61756768696e6760c01b82840152848601919091528451808601865260058082526414ddd9595d60da1b8285015260608601919091528551808701875260038082526214d85960ea1b82860152608087019190915286518088018852600a80825269151bdb99dd594813dd5d60b21b8287015260a088019190915287518089018952838152640a8cacae8d60db1b8187015260c088015287518089018952600d81526c086e4deded6cac840a8cacae8d609b1b8187015260e088015287518089018952600680825265536d69726b7960d01b828801526101008901919091528851808a018a5287815266141b185e599d5b60ca1b818801526101208901528851808a018a5284815264111bdd589d60da1b818801526101408901528851808a018a5260048082526310dbdbdb60e21b828901526101608a01919091528951808b018b52828152654669636b6c6560d01b818901526101808a01528951808b018b52600b8082526a109d58dadd1bdbdd1a195960aa1b828a01526101a08b01919091528a51808c018c526009808252680a8eede40a8cacae8d60bb1b828b01526101c08c01919091528b51808d018d52958652624d6d6d60e81b868a01526101e08b01959095528a51808c018c5289815266141d5e9e9b195960ca1b818a01526102008b01528a51808c018c52878152674c6970737469636b60c01b818a01526102208b01528a51808c018c5285815268115e1a185d5cdd195960ba1b818a01526102408b01528a51808c018c528581526857686973746c696e6760b81b818a01526102608b01528a51808c018c5286815264476f6f667960d81b818a01526102808b01528a51808c018c5292835265233937bd32b760d11b838901526102a08a01929092528951808b018b5295865267526f6d616e74696360c01b868801526102c08901959095528851808a018a528781526656616d7069726560c81b818801526102e08901528851808a018a529687526610dbdb9d195b9d60ca1b87870152610300880196909652875180890189529586526a09ac2dccec2409adeeae8d60ab1b868601526103208701959095528651808801885282815264446973636f60d81b8186015261034087015286518088018852818152684d6f7573746163686560b81b81860152610360870152865180880188529485526952756e6e79204e6f736560b01b8585015261038086019490945285518087018752908152644372617a7960d81b818401526103a0850152845180860186529283526814d85d1a5cd99a595960ba1b838301526103c0840192909252835180850190945290835263121bd91b60e21b838201526103e0820192909252620036c99160229190620039b4565b505062003b05565b600c80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280548282559060005260206000209081019282156200377d579160200282015b828111156200377d57825180516200376c918491602090910190620037e1565b50916020019190600101906200374c565b506200378b92915062003a06565b5090565b8280548282559060005260206000209081019282156200377d579160200282015b828111156200377d5782518051620037d0918491602090910190620037e1565b5091602001919060010190620037b0565b828054620037ef9062003ab2565b90600052602060002090601f0160209004810192826200381357600085556200385e565b82601f106200382e57805160ff19168380011785556200385e565b828001600101855582156200385e579182015b828111156200385e57825182559160200191906001019062003841565b506200378b92915062003a27565b8280548282559060005260206000209081019282156200377d579160200282015b828111156200377d5782518051620038ad918491602090910190620037e1565b50916020019190600101906200388d565b8280548282559060005260206000209081019282156200377d579160200282015b828111156200377d5782518051620038ff918491602090910190620037e1565b5091602001919060010190620038df565b8280548282559060005260206000209081019282156200377d579160200282015b828111156200377d578251805162003951918491602090910190620037e1565b509160200191906001019062003931565b8280548282559060005260206000209081019282156200377d579160200282015b828111156200377d5782518051620039a3918491602090910190620037e1565b509160200191906001019062003983565b8280548282559060005260206000209081019282156200377d579160200282015b828111156200377d5782518051620039f5918491602090910190620037e1565b5091602001919060010190620039d5565b808211156200378b57600062003a1d828262003a3e565b5060010162003a06565b5b808211156200378b576000815560010162003a28565b50805462003a4c9062003ab2565b6000825580601f1062003a5d575050565b601f01602090049060005260206000209081019062003a7d919062003a27565b50565b60006020828403121562003a9357600080fd5b81516001600160a01b038116811462003aab57600080fd5b9392505050565b600181811c9082168062003ac757607f821691505b6020821081141562003ae957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b60805160601c60a05160601c614f6d62003b3f60003960008181611e5e01526134050152600081816123ac01526133d60152614f6d6000f3fe6080604052600436106103ad5760003560e01c806383ae7660116101e7578063bc197c811161010d578063deb0116b116100a0578063f23a6e611161006f578063f23a6e6114610b80578063f2fde38b14610ba0578063f8656fe414610bc0578063fe94df8814610be857600080fd5b8063deb0116b146109f0578063e4b50cb814610a05578063e985e9c514610b17578063ea3c27c914610b6057600080fd5b8063c9330fdc116100dc578063c9330fdc14610987578063d3f9397b146109af578063dbdff2c1146109c5578063dd1b9c4a146109da57600080fd5b8063bc197c8114610912578063c1cec76014610932578063c83d875d14610947578063c87b56dd1461096757600080fd5b806395d89b4111610185578063a22cb46511610154578063a22cb465146108a6578063ab0046ab146108c6578063b88d4fde146108dc578063bb244fa5146108fc57600080fd5b806395d89b411461083e578063962309e814610853578063970a756a1461087b5780639f51758e1461089057600080fd5b806384c4bd4b116101c157806384c4bd4b146107dc578063853828b6146107f35780638da5cb5b146107fb57806394985ddd1461081e57600080fd5b806383ae7660146107795780638456cb591461079a5780638462151c146107af57600080fd5b80632abff1f2116102d75780636352211e1161026a57806370a082311161023957806370a0823114610706578063715018a614610726578063752f9a3d1461073b5780637cc9ebfe1461076357600080fd5b80636352211e146106905780636478de58146106b05780636871ee40146106d05780636ac437b0146106e557600080fd5b806342842e0e116102a657806342842e0e146106225780634f6ccce7146106425780635c975abb146106625780635f8a43471461067a57600080fd5b80632abff1f2146105b75780632f745c59146105d75780633f4ba83a146105f757806342619f661461060c57600080fd5b8063095ea7b31161034f5780631c19c2151161031e5780631c19c215146105345780631d1711a9146105475780632099eaa71461056f57806323b872dd1461059757600080fd5b8063095ea7b3146104b15780630cdcca0e146104d1578063150b7a02146104e657806318160ddd1461051f57600080fd5b806305bb20211161038b57806305bb20211461043857806306fdde031461044f578063081812fc1461046457806308cf9b7c1461049c57600080fd5b8063012bbb1f146103b2578063015e1a0b146103db57806301ffc9a714610408575b600080fd5b3480156103be57600080fd5b506103c860155481565b6040519081526020015b60405180910390f35b3480156103e757600080fd5b506103fb6103f636600461446f565b610c10565b6040516103d29190614a41565b34801561041457600080fd5b506104286104233660046143ed565b610e8d565b60405190151581526020016103d2565b34801561044457600080fd5b5061044d610ed3565b005b34801561045b57600080fd5b506103fb610f1b565b34801561047057600080fd5b5061048461047f36600461446f565b610fad565b6040516001600160a01b0390911681526020016103d2565b3480156104a857600080fd5b5061044d611042565b3480156104bd57600080fd5b5061044d6104cc3660046142b4565b611081565b3480156104dd57600080fd5b5061044d611197565b3480156104f257600080fd5b5061050661050136600461411a565b6111dc565b6040516001600160e01b031990911681526020016103d2565b34801561052b57600080fd5b506009546103c8565b61044d61054236600461446f565b6114ce565b34801561055357600080fd5b506104847309d5b72677f42caa0caa68519cdfc679cc6c24c081565b34801561057b57600080fd5b5061048473ad4dca5a70b4b2467301879b83484dfb550698c681565b3480156105a357600080fd5b5061044d6105b23660046140d9565b6115db565b3480156105c357600080fd5b5061044d6105d2366004614427565b61160c565b3480156105e357600080fd5b506103c86105f23660046142b4565b611653565b34801561060357600080fd5b5061044d6116e9565b34801561061857600080fd5b506103c860105481565b34801561062e57600080fd5b5061044d61063d3660046140d9565b611723565b34801561064e57600080fd5b506103c861065d36600461446f565b61173e565b34801561066e57600080fd5b50600c5460ff16610428565b34801561068657600080fd5b506103c860195481565b34801561069c57600080fd5b506104846106ab36600461446f565b6117d1565b3480156106bc57600080fd5b5061044d6106cb366004614427565b611848565b3480156106dc57600080fd5b5061044d61188b565b3480156106f157600080fd5b50601c5461042890600160a01b900460ff1681565b34801561071257600080fd5b506103c8610721366004613fa1565b61193f565b34801561073257600080fd5b5061044d6119c6565b34801561074757600080fd5b50610484739e650ef13d0893a8729b3685285fbc918b4850c681565b34801561076f57600080fd5b506103c860185481565b34801561078557600080fd5b50601c5461042890600160a81b900460ff1681565b3480156107a657600080fd5b5061044d611a00565b3480156107bb57600080fd5b506107cf6107ca366004613fa1565b611a38565b6040516103d291906149fd565b3480156107e857600080fd5b50600d546103c89081565b61044d611af6565b34801561080757600080fd5b50600c5461010090046001600160a01b0316610484565b34801561082a57600080fd5b5061044d6108393660046143cb565b611e53565b34801561084a57600080fd5b506103fb611ed1565b34801561085f57600080fd5b5061048473c1b17d7cb355fe015e29c3575b12df722d76495981565b34801561088757600080fd5b5061044d611ee0565b34801561089c57600080fd5b506103c8601b5481565b3480156108b257600080fd5b5061044d6108c1366004614286565b611f25565b3480156108d257600080fd5b506103c8601a5481565b3480156108e857600080fd5b5061044d6108f736600461418c565b611fea565b34801561090857600080fd5b506103c860175481565b34801561091e57600080fd5b5061050661092d36600461401b565b612022565b34801561093e57600080fd5b5061044d6120d3565b34801561095357600080fd5b5061044d610962366004613fa1565b612270565b34801561097357600080fd5b506103fb61098236600461446f565b6122c2565b34801561099357600080fd5b5061048473336353b2bfefeb6d4241bc3e2009ec4d18cbdd7481565b3480156109bb57600080fd5b506103c860145481565b3480156109d157600080fd5b506103c8612361565b3480156109e657600080fd5b506103c860165481565b3480156109fc57600080fd5b506103fb6124a4565b348015610a1157600080fd5b50610b0a610a2036600461446f565b6040805161012081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810191909152506000908152601160209081526040918290208251610120810184528154815260019091015460ff808216938301939093526101008082048416948301949094526201000081048316606083015263010000008104831660808301526401000000008104831660a0830152650100000000008104831660c0830152600160301b81048316151560e0830152600160381b900490911615159181019190915290565b6040516103d29190614b61565b348015610b2357600080fd5b50610428610b32366004613fe2565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610b6c57600080fd5b5061044d610b7b3660046142e0565b612532565b348015610b8c57600080fd5b50610506610b9b36600461420b565b6125c9565b348015610bac57600080fd5b5061044d610bbb366004613fa1565b6125eb565b348015610bcc57600080fd5b506104847316efe37c0c557d4b1d8eb76d11e13616d2b52eaf81565b348015610bf457600080fd5b5061048473084c29a614e0f40a01dd028e1ee2fb504658531681565b6000818152601160209081526040918290208251610120810184528154815260019091015460ff80821693830193909352610100808204841694830194909452620100008104831660608381019190915263010000008204841660808401526401000000008204841660a0840152650100000000008204841660c0840152600160301b82048416151560e0840152600160381b909104909216158015938201939093529091829190610d08578160838260c0015160ff1681548110610cd757610cd7614dee565b90600052602060002001604051602001610cf2929190614615565b6040516020818303038152906040529150610e64565b60006040518060a00160405280836020015160ff1660ff168152602001836040015160ff1660ff168152602001836060015160ff1660ff168152602001836080015160ff1660ff1681526020018360a0015160ff1660ff16815250905060005b60058160ff161015610e61576000828260ff1660058110610d8b57610d8b614dee565b602002015160ff1690508460828360ff1681548110610dac57610dac614dee565b90600052602060002001601e8460ff1660648110610dcc57610dcc614dee565b01610dd8600185614c97565b81548110610de857610de8614dee565b90600052602060002001604051602001610e04939291906145a8565b60408051601f198184030181529190529450610e2260016005614c97565b8260ff1614610e4e5784604051602001610e3c9190614583565b60405160208183030381529060405294505b5080610e5981614d78565b915050610d68565b50505b81604051602001610e75919061467b565b60405160208183030381529060405292505050919050565b60006001600160e01b03198216630a85bd0160e11b1480610ebe57506001600160e01b03198216630271189760e51b145b80610ecd5750610ecd82612689565b92915050565b600c546001600160a01b03610100909104163314610f0c5760405162461bcd60e51b8152600401610f0390614adb565b60405180910390fd5b601c805460ff60a01b19169055565b606060018054610f2a90614cda565b80601f0160208091040260200160405190810160405280929190818152602001828054610f5690614cda565b8015610fa35780601f10610f7857610100808354040283529160200191610fa3565b820191906000526020600020905b815481529060010190602001808311610f8657829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b03166110265760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610f03565b506000908152600560205260409020546001600160a01b031690565b600c546001600160a01b036101009091041633146110725760405162461bcd60e51b8152600401610f0390614adb565b601c805460ff60a81b19169055565b600061108c826117d1565b9050806001600160a01b0316836001600160a01b031614156110fa5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610f03565b336001600160a01b038216148061111657506111168133610b32565b6111885760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610f03565b61119283836126ae565b505050565b600c546001600160a01b036101009091041633146111c75760405162461bcd60e51b8152600401610f0390614adb565b601c805460ff60a01b1916600160a01b179055565b601c546000906001600160a01b0316331480156111f95750836001145b6112335760405162461bcd60e51b815260206004820152600b60248201526a125b9d985b1a590813919560aa1b6044820152606401610f03565b601c54600160a01b900460ff1661128c5760405162461bcd60e51b815260206004820152601a60248201527f4d696e74696e67206973206e6f7420616374697665207965742e0000000000006044820152606401610f03565b6000611297600d5490565b905061270f6112a7826001614c27565b11156112c55760405162461bcd60e51b8152600401610f0390614aa6565b604051637a94c56560e11b81523060048201526024810186905260016044820152339063f5298aca90606401600060405180830381600087803b15801561130b57600080fd5b505af192505050801561131c575060015b61141757611328614e1a565b806308c379a014156113b6575061133d614e35565b8061134857506113b8565b7f4f17d5cf0427b4fe5e5649c407d3021315cfaa7216c9e58c369ef3937c40801a816040516113779190614a41565b60405180910390a160405162461bcd60e51b815260206004820152600c60248201526b4275726e206661696c75726560a01b6044820152606401610f03565b505b3d8080156113e2576040519150601f19603f3d011682016040523d82523d6000602084013e6113e7565b606091505b507f59505209f9dd2c55cb5070cab446e24b1b16ebd1501e22c0a709da0102527361816040516113779190614a41565b60005b60018110156114ba57600061142e600d5490565b905061270f81106114515760405162461bcd60e51b8152600401610f0390614aa6565b61145b888261271c565b61146481612736565b601280546001810182556000919091527fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec3444018190556114a7600d80546001019055565b50806114b281614d5d565b91505061141a565b50630a85bd0160e11b979650505050505050565b601c54600160a81b900460ff1661151b5760405162461bcd60e51b81526020600482015260116024820152705265726f6c6c206e6f742061637469766560781b6044820152606401610f03565b611524816117d1565b6001600160a01b0316336001600160a01b03161461157d5760405162461bcd60e51b815260206004820152601660248201527527b7363c9037bbb732b91031b0b7103932b937b6361760511b6044820152606401610f03565b34601b5411156115cf5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610f03565b6115d881612736565b50565b6115e53382612a34565b6116015760405162461bcd60e51b8152600401610f0390614b10565b611192838383612b2b565b600c546001600160a01b0361010090910416331461163c5760405162461bcd60e51b8152600401610f0390614adb565b805161164f90601d906020840190613e0f565b5050565b600061165e8361193f565b82106116c05760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610f03565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b600c546001600160a01b036101009091041633146117195760405162461bcd60e51b8152600401610f0390614adb565b611721612cd6565b565b61119283838360405180602001604052806000815250611fea565b600061174960095490565b82106117ac5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610f03565b600982815481106117bf576117bf614dee565b90600052602060002001549050919050565b6000818152600360205260408120546001600160a01b031680610ecd5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610f03565b600c546001600160a01b036101009091041633146118785760405162461bcd60e51b8152600401610f0390614adb565b805161164f906084906020840190613e0f565b600c546001600160a01b036101009091041633146118bb5760405162461bcd60e51b8152600401610f0390614adb565b60006118c6600d5490565b905061270f81106118e95760405162461bcd60e51b8152600401610f0390614aa6565b6118f3338261271c565b6118fc81612736565b601280546001810182556000919091527fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec3444018190556115d8600d80546001019055565b60006001600160a01b0382166119aa5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610f03565b506001600160a01b031660009081526004602052604090205490565b600c546001600160a01b036101009091041633146119f65760405162461bcd60e51b8152600401610f0390614adb565b6117216000612d69565b600c546001600160a01b03610100909104163314611a305760405162461bcd60e51b8152600401610f0390614adb565b611721612dc3565b60606000611a458361193f565b905080611a665760408051600080825260208201909252905b509392505050565b6000816001600160401b03811115611a8057611a80614e04565b604051908082528060200260200182016040528015611aa9578160200160208202803683370190505b50905060005b82811015611a5e57611ac18582611653565b828281518110611ad357611ad3614dee565b602090810291909101015280611ae881614d5d565b915050611aaf565b50919050565b600c546001600160a01b03610100909104163314611b265760405162461bcd60e51b8152600401610f0390614adb565b6014544790600090606490611b3b9084614c78565b611b459190614c64565b90506000606460155484611b599190614c78565b611b639190614c64565b90506000606460175485611b779190614c78565b611b819190614c64565b90506000606460185486611b959190614c78565b611b9f9190614c64565b90506000606460195487611bb39190614c78565b611bbd9190614c64565b905060006064601a5488611bd19190614c78565b611bdb9190614c64565b90506000606460165489611bef9190614c78565b611bf99190614c64565b6040519091507316efe37c0c557d4b1d8eb76d11e13616d2b52eaf9088156108fc029089906000818181858888f19350505050158015611c3d573d6000803e3d6000fd5b5060405173ad4dca5a70b4b2467301879b83484dfb550698c69087156108fc029088906000818181858888f19350505050158015611c7f573d6000803e3d6000fd5b506040517309d5b72677f42caa0caa68519cdfc679cc6c24c09086156108fc029087906000818181858888f19350505050158015611cc1573d6000803e3d6000fd5b5060405173c1b17d7cb355fe015e29c3575b12df722d7649599085156108fc029086906000818181858888f19350505050158015611d03573d6000803e3d6000fd5b50604051739e650ef13d0893a8729b3685285fbc918b4850c69084156108fc029085906000818181858888f19350505050158015611d45573d6000803e3d6000fd5b5060405173336353b2bfefeb6d4241bc3e2009ec4d18cbdd749083156108fc029084906000818181858888f19350505050158015611d87573d6000803e3d6000fd5b5060405173084c29a614e0f40a01dd028e1ee2fb50465853169082156108fc029083906000818181858888f19350505050158015611dc9573d6000803e3d6000fd5b5060008183858789611ddb8c8e614c27565b611de59190614c27565b611def9190614c27565b611df99190614c27565b611e039190614c27565b611e0d9190614c27565b611e17908a614c97565b604051909150339082156108fc029083906000818181858888f19350505050158015611e47573d6000803e3d6000fd5b50505050505050505050565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614611ecb5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610f03565b60105550565b606060028054610f2a90614cda565b600c546001600160a01b03610100909104163314611f105760405162461bcd60e51b8152600401610f0390614adb565b601c805460ff60a81b1916600160a81b179055565b6001600160a01b038216331415611f7e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610f03565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611ff43383612a34565b6120105760405162461bcd60e51b8152600401610f0390614b10565b61201c84848484612e3e565b50505050565b60008584146120635760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081a5b9c1d5d609a1b6044820152606401610f03565b60005b868110156120bd576120ab8989898481811061208457612084614dee565b9050602002013588888581811061209d5761209d614dee565b905060200201358787612e71565b806120b581614d5d565b915050612066565b5063bc197c8160e01b9998505050505050505050565b600c546001600160a01b036101009091041633146121035760405162461bcd60e51b8152600401610f0390614adb565b600061210e600d5490565b9050600080826001600160401b0381111561212b5761212b614e04565b604051908082528060200260200182016040528015612154578160200160208202803683370190505b50905060005b838161ffff16101561224e576040516331a9108f60e11b815261ffff821660048201526000903090636352211e9060240160206040518083038186803b1580156121a357600080fd5b505afa1580156121b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121db9190613fc5565b6001600160a01b03811660009081526085602052604090205490915060ff16151560011461223b5781838561ffff168151811061221a5761221a614dee565b61ffff90921660209283029190910190910152612238600185614c01565b93505b508061224681614d3b565b91505061215a565b50600061226360105460638561ffff16613064565b905061201c818385613117565b600c546001600160a01b036101009091041633146122a05760405162461bcd60e51b8152600401610f0390614adb565b601c80546001600160a01b0319166001600160a01b0392909216919091179055565b600081815260116020526040902060010154606090600160301b900460ff166122ea57600080fd5b61233b6122f68361316e565b601d6123018561316e565b61230a8661316e565b61231387610c10565b6040516020016123279594939291906146f4565b60405160208183030381529060405261326b565b60405160200161234b91906146af565b6040516020818303038152906040529050919050565b600c546000906001600160a01b036101009091041633146123945760405162461bcd60e51b8152600401610f0390614adb565b600f546040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b1580156123f657600080fd5b505afa15801561240a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061242e9190614488565b10156124905760405162461bcd60e51b815260206004820152602b60248201527f4e6f7420656e6f756768204c494e4b202d2066696c6c20636f6e74726163742060448201526a1dda5d1a0819985d58d95d60aa1b6064820152608401610f03565b61249e600e54600f546133d2565b90505b90565b608480546124b190614cda565b80601f01602080910402602001604051908101604052809291908181526020018280546124dd90614cda565b801561252a5780601f106124ff5761010080835404028352916020019161252a565b820191906000526020600020905b81548152906001019060200180831161250d57829003601f168201915b505050505081565b600c546001600160a01b036101009091041633146125625760405162461bcd60e51b8152600401610f0390614adb565b60005b825181101561119257816085600085848151811061258557612585614dee565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055806125c181614d5d565b915050612565565b60006125d88686868686612e71565b5063f23a6e6160e01b9695505050505050565b600c546001600160a01b0361010090910416331461261b5760405162461bcd60e51b8152600401610f0390614adb565b6001600160a01b0381166126805760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610f03565b6115d881612d69565b60006001600160e01b0319821663780e9d6360e01b1480610ecd5750610ecd82613558565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906126e3826117d1565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61164f8282604051806020016040528060008152506135a8565b60008160105433434260014361274c9190614c97565b6040805160208101979097528601949094526001600160a01b039092166060850152608084015260a08301524060c082015260e00160408051601f1981840301815291905280516020909101206013549091506000906127b3906124a19060ff1684614d98565b6127be906001614c3f565b6013549091506000906127dd906124a190610100900460ff1685614d98565b6127e8906001614c3f565b601354909150600090612808906124a19062010000900460ff1686614d98565b612813906001614c3f565b601354909150600090612834906124a1906301000000900460ff1687614d98565b61283f906001614c3f565b601354909150600090612861906124a190640100000000900460ff1688614d98565b61286c906001614c3f565b905060006040518061012001604052808981526020018760ff1681526020018660ff1681526020018560ff1681526020018460ff1681526020018360ff168152602001600060ff16815260200160011515815260200160001515815250905080601160008a81526020019081526020016000206000820151816000015560208201518160010160006101000a81548160ff021916908360ff16021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548160ff021916908360ff16021790555060808201518160010160036101000a81548160ff021916908360ff16021790555060a08201518160010160046101000a81548160ff021916908360ff16021790555060c08201518160010160056101000a81548160ff021916908360ff16021790555060e08201518160010160066101000a81548160ff0219169083151502179055506101008201518160010160076101000a81548160ff0219169083151502179055509050507f381472c34ca0d6c86b49aee80aefc3b85baf0acd714ca0a92b64fd9c5acc9f8e81604051612a229190614b61565b60405180910390a15050505050505050565b6000818152600360205260408120546001600160a01b0316612aad5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610f03565b6000612ab8836117d1565b9050806001600160a01b0316846001600160a01b03161480612af35750836001600160a01b0316612ae884610fad565b6001600160a01b0316145b80612b2357506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612b3e826117d1565b6001600160a01b031614612ba65760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610f03565b6001600160a01b038216612c085760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610f03565b612c138383836135db565b612c1e6000826126ae565b6001600160a01b0383166000908152600460205260408120805460019290612c47908490614c97565b90915550506001600160a01b0382166000908152600460205260408120805460019290612c75908490614c27565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600c5460ff16612d1f5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610f03565b600c805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600c80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600c5460ff1615612e095760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610f03565b600c805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612d4c3390565b612e49848484612b2b565b612e558484848461362c565b61201c5760405162461bcd60e51b8152600401610f0390614a54565b601c546001600160a01b031633148015612e8b5750836001145b612ec55760405162461bcd60e51b815260206004820152600b60248201526a125b9d985b1a590813919560aa1b6044820152606401610f03565b601c54600160a01b900460ff16612f1e5760405162461bcd60e51b815260206004820152601a60248201527f4d696e74696e67206973206e6f7420616374697665207965742e0000000000006044820152606401610f03565b6000612f29600d5490565b905061270f612f388583614c27565b1115612f565760405162461bcd60e51b8152600401610f0390614aa6565b604051637a94c56560e11b81523060048201526024810186905260448101859052339063f5298aca90606401600060405180830381600087803b158015612f9c57600080fd5b505af1925050508015612fad575060015b612fb957611328614e1a565b60005b8481101561305b576000612fcf600d5490565b905061270f8110612ff25760405162461bcd60e51b8152600401610f0390614aa6565b612ffc888261271c565b61300581612736565b601280546001810182556000919091527fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec344401819055613048600d80546001019055565b508061305381614d5d565b915050612fbc565b50505050505050565b6060826001600160401b0381111561307e5761307e614e04565b6040519080825280602002602001820160405280156130a7578160200160208202803683370190505b50905060005b83811015611a5e57604080516020808201889052818301849052825180830384018152606090920190925280519101206130e8908490614d98565b8282815181106130fa576130fa614dee565b60209081029190910101528061310f81614d5d565b9150506130ad565b825160005b818160ff161015613167576000858260ff168151811061313e5761313e614dee565b6020026020010151905061315481838787613739565b508061315f81614d78565b91505061311c565b5050505050565b6060816131925750506040805180820190915260018152600360fc1b602082015290565b8160005b81156131bc57806131a681614d5d565b91506131b59050600a83614c64565b9150613196565b6000816001600160401b038111156131d6576131d6614e04565b6040519080825280601f01601f191660200182016040528015613200576020820181803683370190505b5090505b8415612b2357613215600183614c97565b9150613222600a86614d98565b61322d906030614c27565b60f81b81838151811061324257613242614dee565b60200101906001600160f81b031916908160001a905350613264600a86614c64565b9450613204565b606081516000141561328b57505060408051602081019091526000815290565b6000604051806060016040528060408152602001614ef860409139905060006003845160026132ba9190614c27565b6132c49190614c64565b6132cf906004614c78565b905060006132de826020614c27565b6001600160401b038111156132f5576132f5614e04565b6040519080825280601f01601f19166020018201604052801561331f576020820181803683370190505b509050818152600183018586518101602084015b8183101561338d5760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b93820193909352600401613333565b6003895106600181146133a757600281146133b8576133c4565b613d3d60f01b6001198301526133c4565b603d60f81b6000198301525b509398975050505050505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f000000000000000000000000000000000000000000000000000000000000000084866000604051602001613442929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161346f939291906149cd565b602060405180830381600087803b15801561348957600080fd5b505af115801561349d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134c191906143ae565b5060008381526020818152604080832054815180840188905280830185905230606082015260808082018390528351808303909101815260a09091019092528151918301919091208684529290915261351b906001614c27565b6000858152602081815260409182902092909255805180830187905280820184905281518082038301815260609091019091528051910120612b23565b60006001600160e01b031982166380ac58cd60e01b148061358957506001600160e01b03198216635b5e139f60e01b145b80610ecd57506301ffc9a760e01b6001600160e01b0319831614610ecd565b6135b28383613a79565b6135bf600084848461362c565b6111925760405162461bcd60e51b8152600401610f0390614a54565b600c5460ff16156136215760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610f03565b611192838383613bc7565b60006001600160a01b0384163b1561372e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613670903390899088908890600401614990565b602060405180830381600087803b15801561368a57600080fd5b505af19250505080156136ba575060408051601f3d908101601f191682019092526136b79181019061440a565b60015b613714573d8080156136e8576040519150601f19603f3d011682016040523d82523d6000602084013e6136ed565b606091505b50805161370c5760405162461bcd60e51b8152600401610f0390614a54565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612b23565b506001949350505050565b81848151811061374b5761374b614dee565b602002602001015161ffff1693506011600085815260200190815260200160002060010160079054906101000a900460ff16156137de5760008161ffff16856010546040516020016137a7929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c6137ca9190614d98565b90506137d881858585613739565b5061201c565b60006011600086815260200190815260200160002060405180610120016040529081600082015481526020016001820160009054906101000a900460ff1660ff1660ff1681526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900460ff1660ff1660ff1681526020016001820160039054906101000a900460ff1660ff1660ff1681526020016001820160049054906101000a900460ff1660ff1660ff1681526020016001820160059054906101000a900460ff1660ff1660ff1681526020016001820160069054906101000a900460ff161515151581526020016001820160079054906101000a900460ff1615151515815250509050600181610100019015159081151581525050838160c0019060ff16908160ff168152505080601160008781526020019081526020016000206000820151816000015560208201518160010160006101000a81548160ff021916908360ff16021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548160ff021916908360ff16021790555060808201518160010160036101000a81548160ff021916908360ff16021790555060a08201518160010160046101000a81548160ff021916908360ff16021790555060c08201518160010160056101000a81548160ff021916908360ff16021790555060e08201518160010160066101000a81548160ff0219169083151502179055506101008201518160010160076101000a81548160ff0219169083151502179055509050507f381472c34ca0d6c86b49aee80aefc3b85baf0acd714ca0a92b64fd9c5acc9f8e81604051613a6a9190614b61565b60405180910390a15050505050565b6001600160a01b038216613acf5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610f03565b6000818152600360205260409020546001600160a01b031615613b345760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610f03565b613b40600083836135db565b6001600160a01b0382166000908152600460205260408120805460019290613b69908490614c27565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b038316613c2257613c1d81600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b613c45565b816001600160a01b0316836001600160a01b031614613c4557613c458382613c7f565b6001600160a01b038216613c5c5761119281613d1c565b826001600160a01b0316826001600160a01b031614611192576111928282613dcb565b60006001613c8c8461193f565b613c969190614c97565b600083815260086020526040902054909150808214613ce9576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090613d2e90600190614c97565b6000838152600a602052604081205460098054939450909284908110613d5657613d56614dee565b906000526020600020015490508060098381548110613d7757613d77614dee565b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480613daf57613daf614dd8565b6001900381819060005260206000200160009055905550505050565b6000613dd68361193f565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b828054613e1b90614cda565b90600052602060002090601f016020900481019282613e3d5760008555613e83565b82601f10613e5657805160ff1916838001178555613e83565b82800160010185558215613e83579182015b82811115613e83578251825591602001919060010190613e68565b50613e8f929150613e93565b5090565b5b80821115613e8f5760008155600101613e94565b60006001600160401b03831115613ec157613ec1614e04565b604051613ed8601f8501601f191660200182614d0f565b809150838152848484011115613eed57600080fd5b83836020830137600060208583010152509392505050565b60008083601f840112613f1757600080fd5b5081356001600160401b03811115613f2e57600080fd5b6020830191508360208260051b8501011115613f4957600080fd5b9250929050565b8035613f5b81614ed3565b919050565b60008083601f840112613f7257600080fd5b5081356001600160401b03811115613f8957600080fd5b602083019150836020828501011115613f4957600080fd5b600060208284031215613fb357600080fd5b8135613fbe81614ebe565b9392505050565b600060208284031215613fd757600080fd5b8151613fbe81614ebe565b60008060408385031215613ff557600080fd5b823561400081614ebe565b9150602083013561401081614ebe565b809150509250929050565b60008060008060008060008060a0898b03121561403757600080fd5b883561404281614ebe565b9750602089013561405281614ebe565b965060408901356001600160401b038082111561406e57600080fd5b61407a8c838d01613f05565b909850965060608b013591508082111561409357600080fd5b61409f8c838d01613f05565b909650945060808b01359150808211156140b857600080fd5b506140c58b828c01613f60565b999c989b5096995094979396929594505050565b6000806000606084860312156140ee57600080fd5b83356140f981614ebe565b9250602084013561410981614ebe565b929592945050506040919091013590565b60008060008060006080868803121561413257600080fd5b853561413d81614ebe565b9450602086013561414d81614ebe565b93506040860135925060608601356001600160401b0381111561416f57600080fd5b61417b88828901613f60565b969995985093965092949392505050565b600080600080608085870312156141a257600080fd5b84356141ad81614ebe565b935060208501356141bd81614ebe565b92506040850135915060608501356001600160401b038111156141df57600080fd5b8501601f810187136141f057600080fd5b6141ff87823560208401613ea8565b91505092959194509250565b60008060008060008060a0878903121561422457600080fd5b863561422f81614ebe565b9550602087013561423f81614ebe565b9450604087013593506060870135925060808701356001600160401b0381111561426857600080fd5b61427489828a01613f60565b979a9699509497509295939492505050565b6000806040838503121561429957600080fd5b82356142a481614ebe565b9150602083013561401081614ed3565b600080604083850312156142c757600080fd5b82356142d281614ebe565b946020939093013593505050565b600080604083850312156142f357600080fd5b82356001600160401b038082111561430a57600080fd5b818501915085601f83011261431e57600080fd5b813560208282111561433257614332614e04565b8160051b925060405161434782850182614d0f565b82815281810185830185870184018b101561436157600080fd5b600096505b84871015614390578035955061437b86614ebe565b85825260019690960195908301908301614366565b5050809650506143a1818801613f50565b9450505050509250929050565b6000602082840312156143c057600080fd5b8151613fbe81614ed3565b600080604083850312156143de57600080fd5b50508035926020909101359150565b6000602082840312156143ff57600080fd5b8135613fbe81614ee1565b60006020828403121561441c57600080fd5b8151613fbe81614ee1565b60006020828403121561443957600080fd5b81356001600160401b0381111561444f57600080fd5b8201601f8101841361446057600080fd5b612b2384823560208401613ea8565b60006020828403121561448157600080fd5b5035919050565b60006020828403121561449a57600080fd5b5051919050565b600081518084526144b9816020860160208601614cae565b601f01601f19169290920160200192915050565b600081516144df818560208601614cae565b9290920192915050565b8054600090600181811c908083168061450357607f831692505b602080841082141561452557634e487b7160e01b600052602260045260246000fd5b818015614539576001811461454a57614577565b60ff19861689528489019650614577565b60008881526020902060005b8681101561456f5781548b820152908501908301614556565b505084890196505b50505050505092915050565b60008251614595818460208701614cae565b600b60fa1b920191825250600101919050565b600084516145ba818460208901614cae565b6e3d913a3930b4ba2fba3cb832911d1160891b9083019081526145e0600f8201866144e9565b6a1116113b30b63ab2911d1160a91b81529050614600600b8201856144e9565b61227d60f01b81526002019695505050505050565b60008351614627818460208801614cae565b7f7b2274726169745f74797065223a224c6567656e64617279222c2276616c756590830190815262111d1160e91b602082015261466760238201856144e9565b61227d60f01b815260020195945050505050565b605b60f81b815260008251614697816001850160208701614cae565b605d60f81b6001939091019283015250600201919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516146e781601d850160208701614cae565b91909101601d0192915050565b7f7b226e616d65223a2022466c7566667920506f6c61722042656172732023000081526000865161472c81601e850160208b01614cae565b7f222c20226465736372697074696f6e223a202241667465722061207665727920601e918401918201527f686172736820696365206167652c20706f6c6172206265617273207765726520603e8201527f746865206f6e6c79207370656369657320746861742073757276697665642e20605e8201527f4e6f772c2074686579206e65656420746f206578706c6f72652074686520776f607e8201527f726c642c2063726561746520696e76656e74696f6e7320616e64206120776f72609e8201527f6c64206f6620706f6c6172206265617273202d20636f6c642c2066756e6b792060be8201527f616e6420646566696e6974656c7920696e746572657374696e672120466c756660de8201527f667920506f6c617220426561727320617265206120636f6c6c656374696f6e2060fe8201527f6f6620392c3939392072616e646f6d6c7920616e642066756c6c79204f6e2d4361011e8201527f6861696e2067656e657261746564204e4654732074686174206578697374206f61013e8201527f6e2074686520457468657265756d20426c6f636b636861696e2e222c2022696d61015e8201526630b3b2911d101160c91b61017e82015261498461497761497161495661495061490c61490661018588018e6144e9565b8c6144cd565b7f222c2265787465726e616c5f75726c223a2268747470733a2f2f706f6c617262815271656172736e66742e636f6d2f746f6b656e2f60701b602082015260320190565b896144cd565b6e11161130ba3a3934b13aba32b9911d60891b8152600f0190565b866144cd565b607d60f81b815260010190565b98975050505050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906149c3908301846144a1565b9695505050505050565b60018060a01b03841681528260208201526060604082015260006149f460608301846144a1565b95945050505050565b6020808252825182820181905260009190848201906040850190845b81811015614a3557835183529284019291840191600101614a19565b50909695505050505050565b602081526000613fbe60208301846144a1565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f507572636861736520776f756c6420657863656564206d617820746f6b656e73604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000610120820190508251825260ff602084015116602083015260ff60408401511660408301526060830151614b9c606084018260ff169052565b506080830151614bb1608084018260ff169052565b5060a0830151614bc660a084018260ff169052565b5060c0830151614bdb60c084018260ff169052565b5060e0830151614bef60e084018215159052565b50610100928301511515919092015290565b600061ffff808316818516808303821115614c1e57614c1e614dac565b01949350505050565b60008219821115614c3a57614c3a614dac565b500190565b600060ff821660ff84168060ff03821115614c5c57614c5c614dac565b019392505050565b600082614c7357614c73614dc2565b500490565b6000816000190483118215151615614c9257614c92614dac565b500290565b600082821015614ca957614ca9614dac565b500390565b60005b83811015614cc9578181015183820152602001614cb1565b8381111561201c5750506000910152565b600181811c90821680614cee57607f821691505b60208210811415611af057634e487b7160e01b600052602260045260246000fd5b601f8201601f191681016001600160401b0381118282101715614d3457614d34614e04565b6040525050565b600061ffff80831681811415614d5357614d53614dac565b6001019392505050565b6000600019821415614d7157614d71614dac565b5060010190565b600060ff821660ff811415614d8f57614d8f614dac565b60010192915050565b600082614da757614da7614dc2565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156124a15760046000803e5060005160e01c90565b600060443d1015614e435790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715614e7257505050505090565b8285019150815181811115614e8a5750505050505090565b843d8701016020828501011115614ea45750505050505090565b614eb360208286010187614d0f565b509095945050505050565b6001600160a01b03811681146115d857600080fd5b80151581146115d857600080fd5b6001600160e01b0319811681146115d857600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122009abba14c6fb0632e4df8ee146a4dc3bc5ab90f7879a8115a642b4193254845364736f6c634300080700330000000000000000000000004dab23c0a529d1caf86f7a902d5340959d170c1e
Deployed Bytecode
0x6080604052600436106103ad5760003560e01c806383ae7660116101e7578063bc197c811161010d578063deb0116b116100a0578063f23a6e611161006f578063f23a6e6114610b80578063f2fde38b14610ba0578063f8656fe414610bc0578063fe94df8814610be857600080fd5b8063deb0116b146109f0578063e4b50cb814610a05578063e985e9c514610b17578063ea3c27c914610b6057600080fd5b8063c9330fdc116100dc578063c9330fdc14610987578063d3f9397b146109af578063dbdff2c1146109c5578063dd1b9c4a146109da57600080fd5b8063bc197c8114610912578063c1cec76014610932578063c83d875d14610947578063c87b56dd1461096757600080fd5b806395d89b4111610185578063a22cb46511610154578063a22cb465146108a6578063ab0046ab146108c6578063b88d4fde146108dc578063bb244fa5146108fc57600080fd5b806395d89b411461083e578063962309e814610853578063970a756a1461087b5780639f51758e1461089057600080fd5b806384c4bd4b116101c157806384c4bd4b146107dc578063853828b6146107f35780638da5cb5b146107fb57806394985ddd1461081e57600080fd5b806383ae7660146107795780638456cb591461079a5780638462151c146107af57600080fd5b80632abff1f2116102d75780636352211e1161026a57806370a082311161023957806370a0823114610706578063715018a614610726578063752f9a3d1461073b5780637cc9ebfe1461076357600080fd5b80636352211e146106905780636478de58146106b05780636871ee40146106d05780636ac437b0146106e557600080fd5b806342842e0e116102a657806342842e0e146106225780634f6ccce7146106425780635c975abb146106625780635f8a43471461067a57600080fd5b80632abff1f2146105b75780632f745c59146105d75780633f4ba83a146105f757806342619f661461060c57600080fd5b8063095ea7b31161034f5780631c19c2151161031e5780631c19c215146105345780631d1711a9146105475780632099eaa71461056f57806323b872dd1461059757600080fd5b8063095ea7b3146104b15780630cdcca0e146104d1578063150b7a02146104e657806318160ddd1461051f57600080fd5b806305bb20211161038b57806305bb20211461043857806306fdde031461044f578063081812fc1461046457806308cf9b7c1461049c57600080fd5b8063012bbb1f146103b2578063015e1a0b146103db57806301ffc9a714610408575b600080fd5b3480156103be57600080fd5b506103c860155481565b6040519081526020015b60405180910390f35b3480156103e757600080fd5b506103fb6103f636600461446f565b610c10565b6040516103d29190614a41565b34801561041457600080fd5b506104286104233660046143ed565b610e8d565b60405190151581526020016103d2565b34801561044457600080fd5b5061044d610ed3565b005b34801561045b57600080fd5b506103fb610f1b565b34801561047057600080fd5b5061048461047f36600461446f565b610fad565b6040516001600160a01b0390911681526020016103d2565b3480156104a857600080fd5b5061044d611042565b3480156104bd57600080fd5b5061044d6104cc3660046142b4565b611081565b3480156104dd57600080fd5b5061044d611197565b3480156104f257600080fd5b5061050661050136600461411a565b6111dc565b6040516001600160e01b031990911681526020016103d2565b34801561052b57600080fd5b506009546103c8565b61044d61054236600461446f565b6114ce565b34801561055357600080fd5b506104847309d5b72677f42caa0caa68519cdfc679cc6c24c081565b34801561057b57600080fd5b5061048473ad4dca5a70b4b2467301879b83484dfb550698c681565b3480156105a357600080fd5b5061044d6105b23660046140d9565b6115db565b3480156105c357600080fd5b5061044d6105d2366004614427565b61160c565b3480156105e357600080fd5b506103c86105f23660046142b4565b611653565b34801561060357600080fd5b5061044d6116e9565b34801561061857600080fd5b506103c860105481565b34801561062e57600080fd5b5061044d61063d3660046140d9565b611723565b34801561064e57600080fd5b506103c861065d36600461446f565b61173e565b34801561066e57600080fd5b50600c5460ff16610428565b34801561068657600080fd5b506103c860195481565b34801561069c57600080fd5b506104846106ab36600461446f565b6117d1565b3480156106bc57600080fd5b5061044d6106cb366004614427565b611848565b3480156106dc57600080fd5b5061044d61188b565b3480156106f157600080fd5b50601c5461042890600160a01b900460ff1681565b34801561071257600080fd5b506103c8610721366004613fa1565b61193f565b34801561073257600080fd5b5061044d6119c6565b34801561074757600080fd5b50610484739e650ef13d0893a8729b3685285fbc918b4850c681565b34801561076f57600080fd5b506103c860185481565b34801561078557600080fd5b50601c5461042890600160a81b900460ff1681565b3480156107a657600080fd5b5061044d611a00565b3480156107bb57600080fd5b506107cf6107ca366004613fa1565b611a38565b6040516103d291906149fd565b3480156107e857600080fd5b50600d546103c89081565b61044d611af6565b34801561080757600080fd5b50600c5461010090046001600160a01b0316610484565b34801561082a57600080fd5b5061044d6108393660046143cb565b611e53565b34801561084a57600080fd5b506103fb611ed1565b34801561085f57600080fd5b5061048473c1b17d7cb355fe015e29c3575b12df722d76495981565b34801561088757600080fd5b5061044d611ee0565b34801561089c57600080fd5b506103c8601b5481565b3480156108b257600080fd5b5061044d6108c1366004614286565b611f25565b3480156108d257600080fd5b506103c8601a5481565b3480156108e857600080fd5b5061044d6108f736600461418c565b611fea565b34801561090857600080fd5b506103c860175481565b34801561091e57600080fd5b5061050661092d36600461401b565b612022565b34801561093e57600080fd5b5061044d6120d3565b34801561095357600080fd5b5061044d610962366004613fa1565b612270565b34801561097357600080fd5b506103fb61098236600461446f565b6122c2565b34801561099357600080fd5b5061048473336353b2bfefeb6d4241bc3e2009ec4d18cbdd7481565b3480156109bb57600080fd5b506103c860145481565b3480156109d157600080fd5b506103c8612361565b3480156109e657600080fd5b506103c860165481565b3480156109fc57600080fd5b506103fb6124a4565b348015610a1157600080fd5b50610b0a610a2036600461446f565b6040805161012081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810191909152506000908152601160209081526040918290208251610120810184528154815260019091015460ff808216938301939093526101008082048416948301949094526201000081048316606083015263010000008104831660808301526401000000008104831660a0830152650100000000008104831660c0830152600160301b81048316151560e0830152600160381b900490911615159181019190915290565b6040516103d29190614b61565b348015610b2357600080fd5b50610428610b32366004613fe2565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610b6c57600080fd5b5061044d610b7b3660046142e0565b612532565b348015610b8c57600080fd5b50610506610b9b36600461420b565b6125c9565b348015610bac57600080fd5b5061044d610bbb366004613fa1565b6125eb565b348015610bcc57600080fd5b506104847316efe37c0c557d4b1d8eb76d11e13616d2b52eaf81565b348015610bf457600080fd5b5061048473084c29a614e0f40a01dd028e1ee2fb504658531681565b6000818152601160209081526040918290208251610120810184528154815260019091015460ff80821693830193909352610100808204841694830194909452620100008104831660608381019190915263010000008204841660808401526401000000008204841660a0840152650100000000008204841660c0840152600160301b82048416151560e0840152600160381b909104909216158015938201939093529091829190610d08578160838260c0015160ff1681548110610cd757610cd7614dee565b90600052602060002001604051602001610cf2929190614615565b6040516020818303038152906040529150610e64565b60006040518060a00160405280836020015160ff1660ff168152602001836040015160ff1660ff168152602001836060015160ff1660ff168152602001836080015160ff1660ff1681526020018360a0015160ff1660ff16815250905060005b60058160ff161015610e61576000828260ff1660058110610d8b57610d8b614dee565b602002015160ff1690508460828360ff1681548110610dac57610dac614dee565b90600052602060002001601e8460ff1660648110610dcc57610dcc614dee565b01610dd8600185614c97565b81548110610de857610de8614dee565b90600052602060002001604051602001610e04939291906145a8565b60408051601f198184030181529190529450610e2260016005614c97565b8260ff1614610e4e5784604051602001610e3c9190614583565b60405160208183030381529060405294505b5080610e5981614d78565b915050610d68565b50505b81604051602001610e75919061467b565b60405160208183030381529060405292505050919050565b60006001600160e01b03198216630a85bd0160e11b1480610ebe57506001600160e01b03198216630271189760e51b145b80610ecd5750610ecd82612689565b92915050565b600c546001600160a01b03610100909104163314610f0c5760405162461bcd60e51b8152600401610f0390614adb565b60405180910390fd5b601c805460ff60a01b19169055565b606060018054610f2a90614cda565b80601f0160208091040260200160405190810160405280929190818152602001828054610f5690614cda565b8015610fa35780601f10610f7857610100808354040283529160200191610fa3565b820191906000526020600020905b815481529060010190602001808311610f8657829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b03166110265760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610f03565b506000908152600560205260409020546001600160a01b031690565b600c546001600160a01b036101009091041633146110725760405162461bcd60e51b8152600401610f0390614adb565b601c805460ff60a81b19169055565b600061108c826117d1565b9050806001600160a01b0316836001600160a01b031614156110fa5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610f03565b336001600160a01b038216148061111657506111168133610b32565b6111885760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610f03565b61119283836126ae565b505050565b600c546001600160a01b036101009091041633146111c75760405162461bcd60e51b8152600401610f0390614adb565b601c805460ff60a01b1916600160a01b179055565b601c546000906001600160a01b0316331480156111f95750836001145b6112335760405162461bcd60e51b815260206004820152600b60248201526a125b9d985b1a590813919560aa1b6044820152606401610f03565b601c54600160a01b900460ff1661128c5760405162461bcd60e51b815260206004820152601a60248201527f4d696e74696e67206973206e6f7420616374697665207965742e0000000000006044820152606401610f03565b6000611297600d5490565b905061270f6112a7826001614c27565b11156112c55760405162461bcd60e51b8152600401610f0390614aa6565b604051637a94c56560e11b81523060048201526024810186905260016044820152339063f5298aca90606401600060405180830381600087803b15801561130b57600080fd5b505af192505050801561131c575060015b61141757611328614e1a565b806308c379a014156113b6575061133d614e35565b8061134857506113b8565b7f4f17d5cf0427b4fe5e5649c407d3021315cfaa7216c9e58c369ef3937c40801a816040516113779190614a41565b60405180910390a160405162461bcd60e51b815260206004820152600c60248201526b4275726e206661696c75726560a01b6044820152606401610f03565b505b3d8080156113e2576040519150601f19603f3d011682016040523d82523d6000602084013e6113e7565b606091505b507f59505209f9dd2c55cb5070cab446e24b1b16ebd1501e22c0a709da0102527361816040516113779190614a41565b60005b60018110156114ba57600061142e600d5490565b905061270f81106114515760405162461bcd60e51b8152600401610f0390614aa6565b61145b888261271c565b61146481612736565b601280546001810182556000919091527fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec3444018190556114a7600d80546001019055565b50806114b281614d5d565b91505061141a565b50630a85bd0160e11b979650505050505050565b601c54600160a81b900460ff1661151b5760405162461bcd60e51b81526020600482015260116024820152705265726f6c6c206e6f742061637469766560781b6044820152606401610f03565b611524816117d1565b6001600160a01b0316336001600160a01b03161461157d5760405162461bcd60e51b815260206004820152601660248201527527b7363c9037bbb732b91031b0b7103932b937b6361760511b6044820152606401610f03565b34601b5411156115cf5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610f03565b6115d881612736565b50565b6115e53382612a34565b6116015760405162461bcd60e51b8152600401610f0390614b10565b611192838383612b2b565b600c546001600160a01b0361010090910416331461163c5760405162461bcd60e51b8152600401610f0390614adb565b805161164f90601d906020840190613e0f565b5050565b600061165e8361193f565b82106116c05760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610f03565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b600c546001600160a01b036101009091041633146117195760405162461bcd60e51b8152600401610f0390614adb565b611721612cd6565b565b61119283838360405180602001604052806000815250611fea565b600061174960095490565b82106117ac5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610f03565b600982815481106117bf576117bf614dee565b90600052602060002001549050919050565b6000818152600360205260408120546001600160a01b031680610ecd5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610f03565b600c546001600160a01b036101009091041633146118785760405162461bcd60e51b8152600401610f0390614adb565b805161164f906084906020840190613e0f565b600c546001600160a01b036101009091041633146118bb5760405162461bcd60e51b8152600401610f0390614adb565b60006118c6600d5490565b905061270f81106118e95760405162461bcd60e51b8152600401610f0390614aa6565b6118f3338261271c565b6118fc81612736565b601280546001810182556000919091527fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec3444018190556115d8600d80546001019055565b60006001600160a01b0382166119aa5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610f03565b506001600160a01b031660009081526004602052604090205490565b600c546001600160a01b036101009091041633146119f65760405162461bcd60e51b8152600401610f0390614adb565b6117216000612d69565b600c546001600160a01b03610100909104163314611a305760405162461bcd60e51b8152600401610f0390614adb565b611721612dc3565b60606000611a458361193f565b905080611a665760408051600080825260208201909252905b509392505050565b6000816001600160401b03811115611a8057611a80614e04565b604051908082528060200260200182016040528015611aa9578160200160208202803683370190505b50905060005b82811015611a5e57611ac18582611653565b828281518110611ad357611ad3614dee565b602090810291909101015280611ae881614d5d565b915050611aaf565b50919050565b600c546001600160a01b03610100909104163314611b265760405162461bcd60e51b8152600401610f0390614adb565b6014544790600090606490611b3b9084614c78565b611b459190614c64565b90506000606460155484611b599190614c78565b611b639190614c64565b90506000606460175485611b779190614c78565b611b819190614c64565b90506000606460185486611b959190614c78565b611b9f9190614c64565b90506000606460195487611bb39190614c78565b611bbd9190614c64565b905060006064601a5488611bd19190614c78565b611bdb9190614c64565b90506000606460165489611bef9190614c78565b611bf99190614c64565b6040519091507316efe37c0c557d4b1d8eb76d11e13616d2b52eaf9088156108fc029089906000818181858888f19350505050158015611c3d573d6000803e3d6000fd5b5060405173ad4dca5a70b4b2467301879b83484dfb550698c69087156108fc029088906000818181858888f19350505050158015611c7f573d6000803e3d6000fd5b506040517309d5b72677f42caa0caa68519cdfc679cc6c24c09086156108fc029087906000818181858888f19350505050158015611cc1573d6000803e3d6000fd5b5060405173c1b17d7cb355fe015e29c3575b12df722d7649599085156108fc029086906000818181858888f19350505050158015611d03573d6000803e3d6000fd5b50604051739e650ef13d0893a8729b3685285fbc918b4850c69084156108fc029085906000818181858888f19350505050158015611d45573d6000803e3d6000fd5b5060405173336353b2bfefeb6d4241bc3e2009ec4d18cbdd749083156108fc029084906000818181858888f19350505050158015611d87573d6000803e3d6000fd5b5060405173084c29a614e0f40a01dd028e1ee2fb50465853169082156108fc029083906000818181858888f19350505050158015611dc9573d6000803e3d6000fd5b5060008183858789611ddb8c8e614c27565b611de59190614c27565b611def9190614c27565b611df99190614c27565b611e039190614c27565b611e0d9190614c27565b611e17908a614c97565b604051909150339082156108fc029083906000818181858888f19350505050158015611e47573d6000803e3d6000fd5b50505050505050505050565b336001600160a01b037f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb79521614611ecb5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610f03565b60105550565b606060028054610f2a90614cda565b600c546001600160a01b03610100909104163314611f105760405162461bcd60e51b8152600401610f0390614adb565b601c805460ff60a81b1916600160a81b179055565b6001600160a01b038216331415611f7e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610f03565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611ff43383612a34565b6120105760405162461bcd60e51b8152600401610f0390614b10565b61201c84848484612e3e565b50505050565b60008584146120635760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081a5b9c1d5d609a1b6044820152606401610f03565b60005b868110156120bd576120ab8989898481811061208457612084614dee565b9050602002013588888581811061209d5761209d614dee565b905060200201358787612e71565b806120b581614d5d565b915050612066565b5063bc197c8160e01b9998505050505050505050565b600c546001600160a01b036101009091041633146121035760405162461bcd60e51b8152600401610f0390614adb565b600061210e600d5490565b9050600080826001600160401b0381111561212b5761212b614e04565b604051908082528060200260200182016040528015612154578160200160208202803683370190505b50905060005b838161ffff16101561224e576040516331a9108f60e11b815261ffff821660048201526000903090636352211e9060240160206040518083038186803b1580156121a357600080fd5b505afa1580156121b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121db9190613fc5565b6001600160a01b03811660009081526085602052604090205490915060ff16151560011461223b5781838561ffff168151811061221a5761221a614dee565b61ffff90921660209283029190910190910152612238600185614c01565b93505b508061224681614d3b565b91505061215a565b50600061226360105460638561ffff16613064565b905061201c818385613117565b600c546001600160a01b036101009091041633146122a05760405162461bcd60e51b8152600401610f0390614adb565b601c80546001600160a01b0319166001600160a01b0392909216919091179055565b600081815260116020526040902060010154606090600160301b900460ff166122ea57600080fd5b61233b6122f68361316e565b601d6123018561316e565b61230a8661316e565b61231387610c10565b6040516020016123279594939291906146f4565b60405160208183030381529060405261326b565b60405160200161234b91906146af565b6040516020818303038152906040529050919050565b600c546000906001600160a01b036101009091041633146123945760405162461bcd60e51b8152600401610f0390614adb565b600f546040516370a0823160e01b81523060048201527f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316906370a082319060240160206040518083038186803b1580156123f657600080fd5b505afa15801561240a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061242e9190614488565b10156124905760405162461bcd60e51b815260206004820152602b60248201527f4e6f7420656e6f756768204c494e4b202d2066696c6c20636f6e74726163742060448201526a1dda5d1a0819985d58d95d60aa1b6064820152608401610f03565b61249e600e54600f546133d2565b90505b90565b608480546124b190614cda565b80601f01602080910402602001604051908101604052809291908181526020018280546124dd90614cda565b801561252a5780601f106124ff5761010080835404028352916020019161252a565b820191906000526020600020905b81548152906001019060200180831161250d57829003601f168201915b505050505081565b600c546001600160a01b036101009091041633146125625760405162461bcd60e51b8152600401610f0390614adb565b60005b825181101561119257816085600085848151811061258557612585614dee565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055806125c181614d5d565b915050612565565b60006125d88686868686612e71565b5063f23a6e6160e01b9695505050505050565b600c546001600160a01b0361010090910416331461261b5760405162461bcd60e51b8152600401610f0390614adb565b6001600160a01b0381166126805760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610f03565b6115d881612d69565b60006001600160e01b0319821663780e9d6360e01b1480610ecd5750610ecd82613558565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906126e3826117d1565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61164f8282604051806020016040528060008152506135a8565b60008160105433434260014361274c9190614c97565b6040805160208101979097528601949094526001600160a01b039092166060850152608084015260a08301524060c082015260e00160408051601f1981840301815291905280516020909101206013549091506000906127b3906124a19060ff1684614d98565b6127be906001614c3f565b6013549091506000906127dd906124a190610100900460ff1685614d98565b6127e8906001614c3f565b601354909150600090612808906124a19062010000900460ff1686614d98565b612813906001614c3f565b601354909150600090612834906124a1906301000000900460ff1687614d98565b61283f906001614c3f565b601354909150600090612861906124a190640100000000900460ff1688614d98565b61286c906001614c3f565b905060006040518061012001604052808981526020018760ff1681526020018660ff1681526020018560ff1681526020018460ff1681526020018360ff168152602001600060ff16815260200160011515815260200160001515815250905080601160008a81526020019081526020016000206000820151816000015560208201518160010160006101000a81548160ff021916908360ff16021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548160ff021916908360ff16021790555060808201518160010160036101000a81548160ff021916908360ff16021790555060a08201518160010160046101000a81548160ff021916908360ff16021790555060c08201518160010160056101000a81548160ff021916908360ff16021790555060e08201518160010160066101000a81548160ff0219169083151502179055506101008201518160010160076101000a81548160ff0219169083151502179055509050507f381472c34ca0d6c86b49aee80aefc3b85baf0acd714ca0a92b64fd9c5acc9f8e81604051612a229190614b61565b60405180910390a15050505050505050565b6000818152600360205260408120546001600160a01b0316612aad5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610f03565b6000612ab8836117d1565b9050806001600160a01b0316846001600160a01b03161480612af35750836001600160a01b0316612ae884610fad565b6001600160a01b0316145b80612b2357506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612b3e826117d1565b6001600160a01b031614612ba65760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610f03565b6001600160a01b038216612c085760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610f03565b612c138383836135db565b612c1e6000826126ae565b6001600160a01b0383166000908152600460205260408120805460019290612c47908490614c97565b90915550506001600160a01b0382166000908152600460205260408120805460019290612c75908490614c27565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600c5460ff16612d1f5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610f03565b600c805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600c80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600c5460ff1615612e095760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610f03565b600c805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612d4c3390565b612e49848484612b2b565b612e558484848461362c565b61201c5760405162461bcd60e51b8152600401610f0390614a54565b601c546001600160a01b031633148015612e8b5750836001145b612ec55760405162461bcd60e51b815260206004820152600b60248201526a125b9d985b1a590813919560aa1b6044820152606401610f03565b601c54600160a01b900460ff16612f1e5760405162461bcd60e51b815260206004820152601a60248201527f4d696e74696e67206973206e6f7420616374697665207965742e0000000000006044820152606401610f03565b6000612f29600d5490565b905061270f612f388583614c27565b1115612f565760405162461bcd60e51b8152600401610f0390614aa6565b604051637a94c56560e11b81523060048201526024810186905260448101859052339063f5298aca90606401600060405180830381600087803b158015612f9c57600080fd5b505af1925050508015612fad575060015b612fb957611328614e1a565b60005b8481101561305b576000612fcf600d5490565b905061270f8110612ff25760405162461bcd60e51b8152600401610f0390614aa6565b612ffc888261271c565b61300581612736565b601280546001810182556000919091527fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec344401819055613048600d80546001019055565b508061305381614d5d565b915050612fbc565b50505050505050565b6060826001600160401b0381111561307e5761307e614e04565b6040519080825280602002602001820160405280156130a7578160200160208202803683370190505b50905060005b83811015611a5e57604080516020808201889052818301849052825180830384018152606090920190925280519101206130e8908490614d98565b8282815181106130fa576130fa614dee565b60209081029190910101528061310f81614d5d565b9150506130ad565b825160005b818160ff161015613167576000858260ff168151811061313e5761313e614dee565b6020026020010151905061315481838787613739565b508061315f81614d78565b91505061311c565b5050505050565b6060816131925750506040805180820190915260018152600360fc1b602082015290565b8160005b81156131bc57806131a681614d5d565b91506131b59050600a83614c64565b9150613196565b6000816001600160401b038111156131d6576131d6614e04565b6040519080825280601f01601f191660200182016040528015613200576020820181803683370190505b5090505b8415612b2357613215600183614c97565b9150613222600a86614d98565b61322d906030614c27565b60f81b81838151811061324257613242614dee565b60200101906001600160f81b031916908160001a905350613264600a86614c64565b9450613204565b606081516000141561328b57505060408051602081019091526000815290565b6000604051806060016040528060408152602001614ef860409139905060006003845160026132ba9190614c27565b6132c49190614c64565b6132cf906004614c78565b905060006132de826020614c27565b6001600160401b038111156132f5576132f5614e04565b6040519080825280601f01601f19166020018201604052801561331f576020820181803683370190505b509050818152600183018586518101602084015b8183101561338d5760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b93820193909352600401613333565b6003895106600181146133a757600281146133b8576133c4565b613d3d60f01b6001198301526133c4565b603d60f81b6000198301525b509398975050505050505050565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795284866000604051602001613442929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161346f939291906149cd565b602060405180830381600087803b15801561348957600080fd5b505af115801561349d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134c191906143ae565b5060008381526020818152604080832054815180840188905280830185905230606082015260808082018390528351808303909101815260a09091019092528151918301919091208684529290915261351b906001614c27565b6000858152602081815260409182902092909255805180830187905280820184905281518082038301815260609091019091528051910120612b23565b60006001600160e01b031982166380ac58cd60e01b148061358957506001600160e01b03198216635b5e139f60e01b145b80610ecd57506301ffc9a760e01b6001600160e01b0319831614610ecd565b6135b28383613a79565b6135bf600084848461362c565b6111925760405162461bcd60e51b8152600401610f0390614a54565b600c5460ff16156136215760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610f03565b611192838383613bc7565b60006001600160a01b0384163b1561372e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613670903390899088908890600401614990565b602060405180830381600087803b15801561368a57600080fd5b505af19250505080156136ba575060408051601f3d908101601f191682019092526136b79181019061440a565b60015b613714573d8080156136e8576040519150601f19603f3d011682016040523d82523d6000602084013e6136ed565b606091505b50805161370c5760405162461bcd60e51b8152600401610f0390614a54565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612b23565b506001949350505050565b81848151811061374b5761374b614dee565b602002602001015161ffff1693506011600085815260200190815260200160002060010160079054906101000a900460ff16156137de5760008161ffff16856010546040516020016137a7929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c6137ca9190614d98565b90506137d881858585613739565b5061201c565b60006011600086815260200190815260200160002060405180610120016040529081600082015481526020016001820160009054906101000a900460ff1660ff1660ff1681526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900460ff1660ff1660ff1681526020016001820160039054906101000a900460ff1660ff1660ff1681526020016001820160049054906101000a900460ff1660ff1660ff1681526020016001820160059054906101000a900460ff1660ff1660ff1681526020016001820160069054906101000a900460ff161515151581526020016001820160079054906101000a900460ff1615151515815250509050600181610100019015159081151581525050838160c0019060ff16908160ff168152505080601160008781526020019081526020016000206000820151816000015560208201518160010160006101000a81548160ff021916908360ff16021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548160ff021916908360ff16021790555060808201518160010160036101000a81548160ff021916908360ff16021790555060a08201518160010160046101000a81548160ff021916908360ff16021790555060c08201518160010160056101000a81548160ff021916908360ff16021790555060e08201518160010160066101000a81548160ff0219169083151502179055506101008201518160010160076101000a81548160ff0219169083151502179055509050507f381472c34ca0d6c86b49aee80aefc3b85baf0acd714ca0a92b64fd9c5acc9f8e81604051613a6a9190614b61565b60405180910390a15050505050565b6001600160a01b038216613acf5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610f03565b6000818152600360205260409020546001600160a01b031615613b345760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610f03565b613b40600083836135db565b6001600160a01b0382166000908152600460205260408120805460019290613b69908490614c27565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b038316613c2257613c1d81600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b613c45565b816001600160a01b0316836001600160a01b031614613c4557613c458382613c7f565b6001600160a01b038216613c5c5761119281613d1c565b826001600160a01b0316826001600160a01b031614611192576111928282613dcb565b60006001613c8c8461193f565b613c969190614c97565b600083815260086020526040902054909150808214613ce9576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090613d2e90600190614c97565b6000838152600a602052604081205460098054939450909284908110613d5657613d56614dee565b906000526020600020015490508060098381548110613d7757613d77614dee565b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480613daf57613daf614dd8565b6001900381819060005260206000200160009055905550505050565b6000613dd68361193f565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b828054613e1b90614cda565b90600052602060002090601f016020900481019282613e3d5760008555613e83565b82601f10613e5657805160ff1916838001178555613e83565b82800160010185558215613e83579182015b82811115613e83578251825591602001919060010190613e68565b50613e8f929150613e93565b5090565b5b80821115613e8f5760008155600101613e94565b60006001600160401b03831115613ec157613ec1614e04565b604051613ed8601f8501601f191660200182614d0f565b809150838152848484011115613eed57600080fd5b83836020830137600060208583010152509392505050565b60008083601f840112613f1757600080fd5b5081356001600160401b03811115613f2e57600080fd5b6020830191508360208260051b8501011115613f4957600080fd5b9250929050565b8035613f5b81614ed3565b919050565b60008083601f840112613f7257600080fd5b5081356001600160401b03811115613f8957600080fd5b602083019150836020828501011115613f4957600080fd5b600060208284031215613fb357600080fd5b8135613fbe81614ebe565b9392505050565b600060208284031215613fd757600080fd5b8151613fbe81614ebe565b60008060408385031215613ff557600080fd5b823561400081614ebe565b9150602083013561401081614ebe565b809150509250929050565b60008060008060008060008060a0898b03121561403757600080fd5b883561404281614ebe565b9750602089013561405281614ebe565b965060408901356001600160401b038082111561406e57600080fd5b61407a8c838d01613f05565b909850965060608b013591508082111561409357600080fd5b61409f8c838d01613f05565b909650945060808b01359150808211156140b857600080fd5b506140c58b828c01613f60565b999c989b5096995094979396929594505050565b6000806000606084860312156140ee57600080fd5b83356140f981614ebe565b9250602084013561410981614ebe565b929592945050506040919091013590565b60008060008060006080868803121561413257600080fd5b853561413d81614ebe565b9450602086013561414d81614ebe565b93506040860135925060608601356001600160401b0381111561416f57600080fd5b61417b88828901613f60565b969995985093965092949392505050565b600080600080608085870312156141a257600080fd5b84356141ad81614ebe565b935060208501356141bd81614ebe565b92506040850135915060608501356001600160401b038111156141df57600080fd5b8501601f810187136141f057600080fd5b6141ff87823560208401613ea8565b91505092959194509250565b60008060008060008060a0878903121561422457600080fd5b863561422f81614ebe565b9550602087013561423f81614ebe565b9450604087013593506060870135925060808701356001600160401b0381111561426857600080fd5b61427489828a01613f60565b979a9699509497509295939492505050565b6000806040838503121561429957600080fd5b82356142a481614ebe565b9150602083013561401081614ed3565b600080604083850312156142c757600080fd5b82356142d281614ebe565b946020939093013593505050565b600080604083850312156142f357600080fd5b82356001600160401b038082111561430a57600080fd5b818501915085601f83011261431e57600080fd5b813560208282111561433257614332614e04565b8160051b925060405161434782850182614d0f565b82815281810185830185870184018b101561436157600080fd5b600096505b84871015614390578035955061437b86614ebe565b85825260019690960195908301908301614366565b5050809650506143a1818801613f50565b9450505050509250929050565b6000602082840312156143c057600080fd5b8151613fbe81614ed3565b600080604083850312156143de57600080fd5b50508035926020909101359150565b6000602082840312156143ff57600080fd5b8135613fbe81614ee1565b60006020828403121561441c57600080fd5b8151613fbe81614ee1565b60006020828403121561443957600080fd5b81356001600160401b0381111561444f57600080fd5b8201601f8101841361446057600080fd5b612b2384823560208401613ea8565b60006020828403121561448157600080fd5b5035919050565b60006020828403121561449a57600080fd5b5051919050565b600081518084526144b9816020860160208601614cae565b601f01601f19169290920160200192915050565b600081516144df818560208601614cae565b9290920192915050565b8054600090600181811c908083168061450357607f831692505b602080841082141561452557634e487b7160e01b600052602260045260246000fd5b818015614539576001811461454a57614577565b60ff19861689528489019650614577565b60008881526020902060005b8681101561456f5781548b820152908501908301614556565b505084890196505b50505050505092915050565b60008251614595818460208701614cae565b600b60fa1b920191825250600101919050565b600084516145ba818460208901614cae565b6e3d913a3930b4ba2fba3cb832911d1160891b9083019081526145e0600f8201866144e9565b6a1116113b30b63ab2911d1160a91b81529050614600600b8201856144e9565b61227d60f01b81526002019695505050505050565b60008351614627818460208801614cae565b7f7b2274726169745f74797065223a224c6567656e64617279222c2276616c756590830190815262111d1160e91b602082015261466760238201856144e9565b61227d60f01b815260020195945050505050565b605b60f81b815260008251614697816001850160208701614cae565b605d60f81b6001939091019283015250600201919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516146e781601d850160208701614cae565b91909101601d0192915050565b7f7b226e616d65223a2022466c7566667920506f6c61722042656172732023000081526000865161472c81601e850160208b01614cae565b7f222c20226465736372697074696f6e223a202241667465722061207665727920601e918401918201527f686172736820696365206167652c20706f6c6172206265617273207765726520603e8201527f746865206f6e6c79207370656369657320746861742073757276697665642e20605e8201527f4e6f772c2074686579206e65656420746f206578706c6f72652074686520776f607e8201527f726c642c2063726561746520696e76656e74696f6e7320616e64206120776f72609e8201527f6c64206f6620706f6c6172206265617273202d20636f6c642c2066756e6b792060be8201527f616e6420646566696e6974656c7920696e746572657374696e672120466c756660de8201527f667920506f6c617220426561727320617265206120636f6c6c656374696f6e2060fe8201527f6f6620392c3939392072616e646f6d6c7920616e642066756c6c79204f6e2d4361011e8201527f6861696e2067656e657261746564204e4654732074686174206578697374206f61013e8201527f6e2074686520457468657265756d20426c6f636b636861696e2e222c2022696d61015e8201526630b3b2911d101160c91b61017e82015261498461497761497161495661495061490c61490661018588018e6144e9565b8c6144cd565b7f222c2265787465726e616c5f75726c223a2268747470733a2f2f706f6c617262815271656172736e66742e636f6d2f746f6b656e2f60701b602082015260320190565b896144cd565b6e11161130ba3a3934b13aba32b9911d60891b8152600f0190565b866144cd565b607d60f81b815260010190565b98975050505050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906149c3908301846144a1565b9695505050505050565b60018060a01b03841681528260208201526060604082015260006149f460608301846144a1565b95945050505050565b6020808252825182820181905260009190848201906040850190845b81811015614a3557835183529284019291840191600101614a19565b50909695505050505050565b602081526000613fbe60208301846144a1565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f507572636861736520776f756c6420657863656564206d617820746f6b656e73604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000610120820190508251825260ff602084015116602083015260ff60408401511660408301526060830151614b9c606084018260ff169052565b506080830151614bb1608084018260ff169052565b5060a0830151614bc660a084018260ff169052565b5060c0830151614bdb60c084018260ff169052565b5060e0830151614bef60e084018215159052565b50610100928301511515919092015290565b600061ffff808316818516808303821115614c1e57614c1e614dac565b01949350505050565b60008219821115614c3a57614c3a614dac565b500190565b600060ff821660ff84168060ff03821115614c5c57614c5c614dac565b019392505050565b600082614c7357614c73614dc2565b500490565b6000816000190483118215151615614c9257614c92614dac565b500290565b600082821015614ca957614ca9614dac565b500390565b60005b83811015614cc9578181015183820152602001614cb1565b8381111561201c5750506000910152565b600181811c90821680614cee57607f821691505b60208210811415611af057634e487b7160e01b600052602260045260246000fd5b601f8201601f191681016001600160401b0381118282101715614d3457614d34614e04565b6040525050565b600061ffff80831681811415614d5357614d53614dac565b6001019392505050565b6000600019821415614d7157614d71614dac565b5060010190565b600060ff821660ff811415614d8f57614d8f614dac565b60010192915050565b600082614da757614da7614dc2565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156124a15760046000803e5060005160e01c90565b600060443d1015614e435790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715614e7257505050505090565b8285019150815181811115614e8a5750505050505090565b843d8701016020828501011115614ea45750505050505090565b614eb360208286010187614d0f565b509095945050505050565b6001600160a01b03811681146115d857600080fd5b80151581146115d857600080fd5b6001600160e01b0319811681146115d857600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122009abba14c6fb0632e4df8ee146a4dc3bc5ab90f7879a8115a642b4193254845364736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004dab23c0a529d1caf86f7a902d5340959d170c1e
-----Decoded View---------------
Arg [0] : SketchAddress (address): 0x4DaB23C0a529d1Caf86f7a902D5340959D170c1e
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000004dab23c0a529d1caf86f7a902d5340959d170c1e
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.