Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
1,699 TWT
Holders
384
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 TWTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TinyWingedTurtlez
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT /* ████████╗██╗███╗ ██╗██╗ ██╗ ╚══██╔══╝██║████╗ ██║╚██╗ ██╔╝ ██║ ██║██╔██╗ ██║ ╚████╔╝ ██║ ██║██║╚██╗██║ ╚██╔╝ ██║ ██║██║ ╚████║ ██║ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═╝ ██╗ ██╗██╗███╗ ██╗ ██████╗ ███████╗██████╗ ██║ ██║██║████╗ ██║██╔════╝ ██╔════╝██╔══██╗ ██║ █╗ ██║██║██╔██╗ ██║██║ ███╗█████╗ ██║ ██║ ██║███╗██║██║██║╚██╗██║██║ ██║██╔══╝ ██║ ██║ ╚███╔███╔╝██║██║ ╚████║╚██████╔╝███████╗██████╔╝ ╚══╝╚══╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚══════╝╚═════╝ ████████╗██╗ ██╗██████╗ ████████╗██╗ ███████╗███████╗ ╚══██╔══╝██║ ██║██╔══██╗╚══██╔══╝██║ ██╔════╝╚══███╔╝ ██║ ██║ ██║██████╔╝ ██║ ██║ █████╗ ███╔╝ ██║ ██║ ██║██╔══██╗ ██║ ██║ ██╔══╝ ███╔╝ ██║ ╚██████╔╝██║ ██║ ██║ ███████╗███████╗███████╗ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝ */ // @title Tiny Winged Turtlez // @author @tom_hirst pragma solidity ^0.8.9; import '@openzeppelin/contracts/token/ERC721/ERC721.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/utils/Counters.sol'; import './TinyWingedTurtlezLibrary.sol'; import './Base64.sol'; contract OwnableDelegateProxy {} contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } contract TinyWingedTurtlez is ERC721, Ownable { using Counters for Counters.Counter; Counters.Counter private _nextTokenId; uint256 public freeTurtlez = 1000; uint256 public maxSupply = 5000; uint256 public turtlePrice = 0.02 ether; bool public claimActive; bool public mintActive; struct Turtle { uint16 backgroundColor; uint16 wingColor; uint16 wingType; bool bandana; uint16 bandanaColor; bool boots; uint16 bootsColor; uint16 pupil; bool tongue; bool tail; uint16 turtleType; } struct Coordinates { string x; string y; } struct Color { string hexCode; string name; } struct TurtleType { string name; string lightHexCode; string darkHexCode; string pupilHexCode; string detailX; string detailY; } mapping(uint256 => Turtle) private tokenIdTurtle; Color[] private backgroundColors; Color[] private accessoryColors; Color[] private wingColors; Coordinates[] private pupils; Coordinates[][8] private wingTypes; TurtleType[] private turtleTypes; string[] private wingTypeValues = [ 'Regular', 'Long', 'Tall', 'Spiky', 'Ruffled', 'Loose Feathers', 'Sparkly', 'Claw' ]; string[] private pupilValues = ['Mindful', 'Positive', 'Reserved', 'Focused']; uint16[][6] private traitWeights; address public immutable proxyRegistryAddress; bool public openSeaProxyActive; mapping(address => bool) public proxyToApproved; function setPupils(Coordinates[4] memory coordinates) private { for (uint8 i = 0; i < coordinates.length; i++) { pupils.push(coordinates[i]); } } function setWingType(uint48 wingTypeIndex, Coordinates[3] memory coordinates) private { for (uint8 i = 0; i < coordinates.length; i++) { wingTypes[wingTypeIndex].push(coordinates[i]); } } function setBackgroundColors(Color[8] memory colors) private { for (uint8 i = 0; i < colors.length; i++) { backgroundColors.push(colors[i]); } } function setAccessoryColors(Color[5] memory colors) private { for (uint8 i = 0; i < colors.length; i++) { accessoryColors.push(colors[i]); } } function setWingColors(Color[4] memory colors) private { for (uint8 i = 0; i < colors.length; i++) { wingColors.push(colors[i]); } } function setTurtleTypes(TurtleType[4] memory types) private { for (uint8 i = 0; i < types.length; i++) { turtleTypes.push(types[i]); } } function toggleOpenSeaProxy() public onlyOwner { openSeaProxyActive = !openSeaProxyActive; } function toggleProxy(address proxyAddress) public onlyOwner { proxyToApproved[proxyAddress] = !proxyToApproved[proxyAddress]; } constructor(address _proxyRegistryAddress) ERC721('Tiny Winged Turtlez', 'TWT') { // Start at token 1 _nextTokenId.increment(); // Wing type rarity traitWeights[0] = [1248, 986, 842, 724, 569, 371, 209, 51]; // Wing color rarity traitWeights[1] = [3200, 1200, 500, 100]; // Boots rarity traitWeights[2] = [1622, 3378]; // Bandana rarity traitWeights[3] = [1587, 3413]; // Tongue rarity traitWeights[4] = [3579, 1421]; // Turtle type rarity traitWeights[5] = [4752, 141, 79, 28]; // OpenSea proxy contract proxyRegistryAddress = _proxyRegistryAddress; // Background colors setBackgroundColors( [ Color({ hexCode: '#bcdfb9', name: 'Green' }), Color({ hexCode: '#d5bada', name: 'Purple' }), Color({ hexCode: '#ecc1db', name: 'Pink' }), Color({ hexCode: '#e3c29e', name: 'Orange' }), Color({ hexCode: '#9cd7d5', name: 'Turquoise' }), Color({ hexCode: '#faf185', name: 'Yellow' }), Color({ hexCode: '#b0d9f4', name: 'Blue' }), Color({ hexCode: '#333333', name: 'Black' }) ] ); // Accessory colors setAccessoryColors( [ Color({ hexCode: '#c52035', name: 'Red' }), Color({ hexCode: '#67489d', name: 'Purple' }), Color({ hexCode: '#1475bc', name: 'Blue' }), Color({ hexCode: '#cc5927', name: 'Orange' }), Color({ hexCode: '#e31c79', name: 'Pink' }) ] ); // Wing colors setWingColors( [ Color({ hexCode: '#ffffff', name: 'White' }), Color({ hexCode: '#af8d56', name: 'Bronze' }), Color({ hexCode: '#afafaf', name: 'Silver' }), Color({ hexCode: '#d4af34', name: 'Gold' }) ] ); // Pupils setPupils( [ Coordinates({ x: '16', y: '10' }), Coordinates({ x: '17', y: '10' }), Coordinates({ x: '16', y: '11' }), Coordinates({ x: '17', y: '11' }) ] ); // Regular setWingType( 0, [Coordinates({ x: '0', y: '0' }), Coordinates({ x: '0', y: '0' }), Coordinates({ x: '0', y: '0' })] ); // Long setWingType( 1, [Coordinates({ x: '3', y: '8' }), Coordinates({ x: '4', y: '8' }), Coordinates({ x: '5', y: '8' })] ); // Tall setWingType( 2, [Coordinates({ x: '5', y: '8' }), Coordinates({ x: '5', y: '7' }), Coordinates({ x: '5', y: '6' })] ); // Spiky setWingType( 3, [Coordinates({ x: '4', y: '7' }), Coordinates({ x: '6', y: '7' }), Coordinates({ x: '8', y: '7' })] ); // Ruffled setWingType( 4, [Coordinates({ x: '6', y: '7' }), Coordinates({ x: '9', y: '7' }), Coordinates({ x: '10', y: '6' })] ); // Loose setWingType( 5, [Coordinates({ x: '8', y: '12' }), Coordinates({ x: '10', y: '12' }), Coordinates({ x: '12', y: '12' })] ); // Sparkly setWingType( 6, [Coordinates({ x: '4', y: '6' }), Coordinates({ x: '2', y: '7' }), Coordinates({ x: '3', y: '8' })] ); // Claw setWingType( 7, [Coordinates({ x: '4', y: '9' }), Coordinates({ x: '3', y: '10' }), Coordinates({ x: '5', y: '10' })] ); // Turtle Types setTurtleTypes( [ TurtleType({ name: 'Normal', lightHexCode: '#65bc48', darkHexCode: '#567e39', pupilHexCode: '#000000', detailX: '7', detailY: '12' }), TurtleType({ name: 'Zombie', lightHexCode: '#7ea26b', darkHexCode: '#4c6141', pupilHexCode: '#ff0005', detailX: '17', detailY: '13' }), TurtleType({ name: 'Droid', lightHexCode: '#d4af34', darkHexCode: '#a07e2d', pupilHexCode: '#4d3311', detailX: '16', detailY: '7' }), TurtleType({ name: 'Alien', lightHexCode: '#8cb0b0', darkHexCode: '#578888', pupilHexCode: '#027287', detailX: '16', detailY: '12' }) ] ); } function totalSupply() public view returns (uint256) { return _nextTokenId.current() - 1; } function weightedRarityGenerator(uint16 pseudoRandomNumber, uint8 trait) private view returns (uint16) { uint16 lowerBound = 0; for (uint8 i = 0; i < traitWeights[trait].length; i++) { uint16 weight = traitWeights[trait][i]; if (pseudoRandomNumber >= lowerBound && pseudoRandomNumber < lowerBound + weight) { return i; } lowerBound = lowerBound + weight; } revert(); } function createTokenIdTurtle(uint256 tokenId) public view returns (Turtle memory) { uint256 pseudoRandomBase = uint256(keccak256(abi.encodePacked(blockhash(block.number - 1), tokenId))); return Turtle({ backgroundColor: uint16(uint16(pseudoRandomBase) % 8), wingType: weightedRarityGenerator(uint16(uint16(pseudoRandomBase >> 1) % maxSupply), 0), wingColor: weightedRarityGenerator(uint16(uint16(pseudoRandomBase >> 2) % maxSupply), 1), bandana: weightedRarityGenerator(uint16(uint16(pseudoRandomBase >> 3) % maxSupply), 2) == 1, bandanaColor: uint16(uint16(pseudoRandomBase >> 4) % 5), boots: weightedRarityGenerator(uint16(uint16(pseudoRandomBase >> 5) % maxSupply), 3) == 1, bootsColor: uint16(uint16(pseudoRandomBase >> 6) % 5), pupil: uint16(uint16(pseudoRandomBase >> 7) % 4), tongue: weightedRarityGenerator(uint16(uint16(pseudoRandomBase >> 8) % maxSupply), 4) == 1, tail: uint16(uint16(pseudoRandomBase >> 9) % 2) == 1, turtleType: weightedRarityGenerator(uint16(uint16(pseudoRandomBase >> 10) % maxSupply), 5) }); } function getTurtleBase(Turtle memory turtle) private view returns (string memory turtleBase) { return string( abi.encodePacked( "<rect fill='", backgroundColors[turtle.backgroundColor].hexCode, "' height='24' width='24' />", "<rect fill='", turtleTypes[turtle.turtleType].lightHexCode, "' height='1' width='3' x='15' y='9' />", "<rect fill='", turtleTypes[turtle.turtleType].lightHexCode, "' height='3' width='4' x='15' y='10' />", "<rect fill='", turtleTypes[turtle.turtleType].lightHexCode, "' height='1' width='3' x='15' y='13' />", "<rect fill='", turtleTypes[turtle.turtleType].lightHexCode, "' height='1' width='8' x='7' y='14' />", "<rect fill='", turtleTypes[turtle.turtleType].lightHexCode, "' height='1' width='2' x='7' y='15' />", "<rect fill='", turtleTypes[turtle.turtleType].lightHexCode, "' height='1' width='2' x='13' y='15' />", "<rect fill='", turtleTypes[turtle.turtleType].darkHexCode, "' height='1' width='4' x='9' y='9' />", "<rect fill='", turtleTypes[turtle.turtleType].darkHexCode, "' height='1' width='6' x='8' y='10' />", "<rect fill='", turtleTypes[turtle.turtleType].darkHexCode, "' height='3' width='8' x='7' y='11' />", "<rect fill='#ffffff' height='2' width='2' x='16' y='10' />" ) ); } function getTurtleWings(Turtle memory turtle) private view returns (string memory turtleWings) { turtleWings = string( abi.encodePacked( "<rect fill='", wingColors[turtle.wingColor].hexCode, "' height='1' width='6' x='5' y='8' />", "<rect fill='", wingColors[turtle.wingColor].hexCode, "' height='1' width='4' x='7' y='9' />", "<rect fill='", wingColors[turtle.wingColor].hexCode, "' height='1' width='2' x='9' y='10' />" ) ); // Regular wings don't need detail if (turtle.wingType != 0) { for (uint8 i = 0; i < wingTypes[turtle.wingType].length; i++) { turtleWings = string( abi.encodePacked( turtleWings, "<rect fill='", wingColors[turtle.wingColor].hexCode, "' height='1' width='1' x='", wingTypes[turtle.wingType][i].x, "' y='", wingTypes[turtle.wingType][i].y, "' />" ) ); } } return turtleWings; } function getTurtlePupil(Turtle memory turtle) private view returns (string memory turtlePupil) { return string( abi.encodePacked( "<rect fill='", turtleTypes[turtle.turtleType].pupilHexCode, "' height='1' width='1' x='", pupils[turtle.pupil].x, "' y='", pupils[turtle.pupil].y, "' />" ) ); } function getTurtleDetail(Turtle memory turtle) private view returns (string memory turtleDetail) { return string( abi.encodePacked( "<rect fill='", turtleTypes[turtle.turtleType].darkHexCode, "' height='2' width='1' x='", turtleTypes[turtle.turtleType].detailX, "' y='", turtleTypes[turtle.turtleType].detailY, "' />" ) ); } function getTurtleBoots(Turtle memory turtle) private view returns (string memory turtleBoots) { return string( abi.encodePacked( "<rect fill='", accessoryColors[turtle.bootsColor].hexCode, "' height='1' width='2' x='7' y='15' /><rect fill='", accessoryColors[turtle.bootsColor].hexCode, "' height='1' width='2' x='13' y='15' />" ) ); } function getTurtleBandana(Turtle memory turtle) private view returns (string memory turtleBandana) { return string( abi.encodePacked( "<rect fill='", accessoryColors[turtle.bandanaColor].hexCode, "' height='1' width='1' x='14' y='8' /><rect fill='", accessoryColors[turtle.bandanaColor].hexCode, "' height='1' width='3' x='15' y='9' />" ) ); } function getTurtleTongue() private pure returns (string memory turtleTongue) { return string(abi.encodePacked("<rect fill='#ed2024' height='1' width='1' x='18' y='13' />")); } function getTurtleTail(Turtle memory turtle) private view returns (string memory turtleTail) { string memory tailY = turtle.tail ? '12' : '14'; return string( abi.encodePacked( "<rect fill='", turtleTypes[turtle.turtleType].lightHexCode, "' height='1' width='1' x='6' y='13' />", "<rect fill='", turtleTypes[turtle.turtleType].lightHexCode, "' height='1' width='1' x='5' y='", tailY, "' />" ) ); } function getTokenIdTurtleSvg(Turtle memory turtle) public view returns (string memory svg) { svg = string( abi.encodePacked( getTurtleBase(turtle), getTurtleWings(turtle), getTurtlePupil(turtle), getTurtleDetail(turtle), getTurtleTail(turtle) ) ); if (turtle.boots) { svg = string(abi.encodePacked(svg, getTurtleBoots(turtle))); } // Droids can't have a bandana if (turtle.bandana && turtle.turtleType != 2) { svg = string(abi.encodePacked(svg, getTurtleBandana(turtle))); } // Zombies can't have a tongue if (turtle.tongue && turtle.turtleType != 1) { svg = string(abi.encodePacked(svg, getTurtleTongue())); } return string( abi.encodePacked( "<svg id='tiny-winged-turtle' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMinYMin meet' viewBox='0 0 24 24'>", svg, '<style>#tiny-winged-turtle{shape-rendering:crispedges;}</style></svg>' ) ); } function getTokenIdTurtleMetadata(Turtle memory turtle) public view returns (string memory metadata) { metadata = string( abi.encodePacked( metadata, '{"trait_type":"Background", "value":"', backgroundColors[turtle.backgroundColor].name, '"},', '{"trait_type":"Type", "value":"', turtleTypes[turtle.turtleType].name, '"},', '{"trait_type":"Wings", "value":"', wingTypeValues[turtle.wingType], '"},', '{"trait_type":"Wing Color", "value":"', wingColors[turtle.wingColor].name, '"},', '{"trait_type":"Eyes", "value":"', pupilValues[turtle.pupil], '"}' ) ); if (turtle.boots) { metadata = string( abi.encodePacked( metadata, ',{"trait_type":"Boots", "value":"', accessoryColors[turtle.bootsColor].name, '"}' ) ); } // Droids can't have a bandana if (turtle.bandana && turtle.turtleType != 2) { metadata = string( abi.encodePacked( metadata, ',{"trait_type":"Bandana", "value":"', accessoryColors[turtle.bandanaColor].name, '"}' ) ); } // Zombies can't have a tongue if (turtle.tongue && turtle.turtleType != 1) { metadata = string(abi.encodePacked(metadata, ',{"trait_type":"Tongue", "value":"True"}')); } if (turtle.tail) { metadata = string(abi.encodePacked(metadata, ',{"trait_type":"Tail", "value":"Up"}')); } else { metadata = string(abi.encodePacked(metadata, ',{"trait_type":"Tail", "value":"Down"}')); } return string(abi.encodePacked('[', metadata, ']')); } function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId)); Turtle memory turtle = tokenIdTurtle[tokenId]; return string( abi.encodePacked( 'data:application/json;base64,', Base64.encode( bytes( string( abi.encodePacked( '{"name": "Tiny Winged Turtle #', TinyWingedTurtlezLibrary.toString(tokenId), '", "description": "Tiny Winged Turtlez are a collection of fully on-chain, randomly generated, small turtles with wings.", "image": "data:image/svg+xml;base64,', Base64.encode(bytes(getTokenIdTurtleSvg(turtle))), '","attributes":', getTokenIdTurtleMetadata(turtle), '}' ) ) ) ) ) ); } function internalMint(uint256 numberOfTokens) private { require(numberOfTokens > 0, 'Quantity must be greater than 0.'); require(numberOfTokens < 11, 'Exceeds max per mint.'); require(totalSupply() + numberOfTokens <= maxSupply, 'Exceeds max supply.'); for (uint256 i = 0; i < numberOfTokens; i++) { uint256 tokenId = _nextTokenId.current(); tokenIdTurtle[tokenId] = createTokenIdTurtle(tokenId); _safeMint(msg.sender, tokenId); _nextTokenId.increment(); } } function ownerClaim(uint256 numberOfTokens) external onlyOwner { internalMint(numberOfTokens); } function claim(uint256 numberOfTokens) external { require(claimActive, 'Claiming not active yet.'); require(totalSupply() + numberOfTokens <= freeTurtlez, 'Exceeds claim supply.'); internalMint(numberOfTokens); } function mint(uint256 numberOfTokens) external payable { require(mintActive, 'Mint not active yet.'); require(msg.value >= numberOfTokens * turtlePrice, 'Wrong ETH value sent.'); internalMint(numberOfTokens); } function setFreeTurtlez(uint256 newFreeTurtlez) external onlyOwner { require(newFreeTurtlez <= maxSupply, 'Would increase max supply.'); freeTurtlez = newFreeTurtlez; } function setTurtlePrice(uint256 newTurtlePrice) external onlyOwner { turtlePrice = newTurtlePrice; } function toggleClaim() external onlyOwner { claimActive = !claimActive; } function toggleMint() external onlyOwner { mintActive = !mintActive; } function isApprovedForAll(address owner, address operator) public view override returns (bool) { // Allow OpenSea proxy contract ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); if (address(proxyRegistry.proxies(owner)) == operator) { return openSeaProxyActive; } // Allow future contracts if (proxyToApproved[operator]) { return true; } return super.isApprovedForAll(owner, operator); } function reduceSupply() external onlyOwner { require(totalSupply() < maxSupply, 'All minted.'); maxSupply = totalSupply(); } function withdraw() external onlyOwner { payable(owner()).transfer(address(this).balance); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be 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 { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || 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 Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) 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 /* ████████╗██╗███╗ ██╗██╗ ██╗ ╚══██╔══╝██║████╗ ██║╚██╗ ██╔╝ ██║ ██║██╔██╗ ██║ ╚████╔╝ ██║ ██║██║╚██╗██║ ╚██╔╝ ██║ ██║██║ ╚████║ ██║ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═╝ ██╗ ██╗██╗███╗ ██╗ ██████╗ ███████╗██████╗ ██║ ██║██║████╗ ██║██╔════╝ ██╔════╝██╔══██╗ ██║ █╗ ██║██║██╔██╗ ██║██║ ███╗█████╗ ██║ ██║ ██║███╗██║██║██║╚██╗██║██║ ██║██╔══╝ ██║ ██║ ╚███╔███╔╝██║██║ ╚████║╚██████╔╝███████╗██████╔╝ ╚══╝╚══╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚══════╝╚═════╝ ████████╗██╗ ██╗██████╗ ████████╗██╗ ███████╗███████╗ ╚══██╔══╝██║ ██║██╔══██╗╚══██╔══╝██║ ██╔════╝╚══███╔╝ ██║ ██║ ██║██████╔╝ ██║ ██║ █████╗ ███╔╝ ██║ ██║ ██║██╔══██╗ ██║ ██║ ██╔══╝ ███╔╝ ██║ ╚██████╔╝██║ ██║ ██║ ███████╗███████╗███████╗ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝ */ // @title Tiny Winged Turtlez Library // @author @tom_hirst pragma solidity ^0.8.9; library TinyWingedTurtlezLibrary { /** * @dev Inspired by OraclizeAPI's implementation - MIT license * @dev https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol */ 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); } }
// SPDX-License-Identifier: MIT /// @title Base64 /// @notice Provides a function for encoding some bytes in base64 /// @author Brecht Devos <[email protected]> pragma solidity ^0.8.9; library Base64 { bytes internal constant TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; /// @notice Encodes some bytes to the base64 representation function encode(bytes memory data) internal pure returns (string memory) { uint256 len = data.length; if (len == 0) return ''; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((len + 2) / 3); // Add some extra buffer at the end bytes memory result = new bytes(encodedLen + 32); bytes memory table = TABLE; assembly { let tablePtr := add(table, 1) let resultPtr := add(result, 32) for { let i := 0 } lt(i, len) { } { i := add(i, 3) let input := and(mload(add(data, i)), 0xffffff) let out := mload(add(tablePtr, and(shr(18, input), 0x3F))) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF)) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF)) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF)) out := shl(224, out) mstore(resultPtr, out) resultPtr := add(resultPtr, 4) } switch mod(len, 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } mstore(result, encodedLen) } return string(result); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200, "details": { "yul": false } }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"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":"numberOfTokens","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"createTokenIdTurtle","outputs":[{"components":[{"internalType":"uint16","name":"backgroundColor","type":"uint16"},{"internalType":"uint16","name":"wingColor","type":"uint16"},{"internalType":"uint16","name":"wingType","type":"uint16"},{"internalType":"bool","name":"bandana","type":"bool"},{"internalType":"uint16","name":"bandanaColor","type":"uint16"},{"internalType":"bool","name":"boots","type":"bool"},{"internalType":"uint16","name":"bootsColor","type":"uint16"},{"internalType":"uint16","name":"pupil","type":"uint16"},{"internalType":"bool","name":"tongue","type":"bool"},{"internalType":"bool","name":"tail","type":"bool"},{"internalType":"uint16","name":"turtleType","type":"uint16"}],"internalType":"struct TinyWingedTurtlez.Turtle","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeTurtlez","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint16","name":"backgroundColor","type":"uint16"},{"internalType":"uint16","name":"wingColor","type":"uint16"},{"internalType":"uint16","name":"wingType","type":"uint16"},{"internalType":"bool","name":"bandana","type":"bool"},{"internalType":"uint16","name":"bandanaColor","type":"uint16"},{"internalType":"bool","name":"boots","type":"bool"},{"internalType":"uint16","name":"bootsColor","type":"uint16"},{"internalType":"uint16","name":"pupil","type":"uint16"},{"internalType":"bool","name":"tongue","type":"bool"},{"internalType":"bool","name":"tail","type":"bool"},{"internalType":"uint16","name":"turtleType","type":"uint16"}],"internalType":"struct TinyWingedTurtlez.Turtle","name":"turtle","type":"tuple"}],"name":"getTokenIdTurtleMetadata","outputs":[{"internalType":"string","name":"metadata","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint16","name":"backgroundColor","type":"uint16"},{"internalType":"uint16","name":"wingColor","type":"uint16"},{"internalType":"uint16","name":"wingType","type":"uint16"},{"internalType":"bool","name":"bandana","type":"bool"},{"internalType":"uint16","name":"bandanaColor","type":"uint16"},{"internalType":"bool","name":"boots","type":"bool"},{"internalType":"uint16","name":"bootsColor","type":"uint16"},{"internalType":"uint16","name":"pupil","type":"uint16"},{"internalType":"bool","name":"tongue","type":"bool"},{"internalType":"bool","name":"tail","type":"bool"},{"internalType":"uint16","name":"turtleType","type":"uint16"}],"internalType":"struct TinyWingedTurtlez.Turtle","name":"turtle","type":"tuple"}],"name":"getTokenIdTurtleSvg","outputs":[{"internalType":"string","name":"svg","type":"string"}],"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":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openSeaProxyActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"ownerClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyRegistryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"proxyToApproved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reduceSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newFreeTurtlez","type":"uint256"}],"name":"setFreeTurtlez","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newTurtlePrice","type":"uint256"}],"name":"setTurtlePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleOpenSeaProxy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"proxyAddress","type":"address"}],"name":"toggleProxy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"turtlePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6103e8600890815561138860095566470de4df820000600a5560076101a0818152662932b3bab630b960c91b6101c05260a090815260046101e0818152634c6f6e6760e01b6102005260c0526102208181526315185b1b60e21b6102405260e0526005610260908152645370696b7960d81b61028052610100526102a083815266149d59999b195960ca1b6102c05261012052600e6102e09081526d4c6f6f736520466561746865727360901b610300526101405261032092835266537061726b6c7960c81b61034052610160929092526103a060405261036091825263436c617760e01b6103805261018091909152620000fe91601a91906200183b565b506040805160c08101825260076080820181815266135a5b99199d5b60ca1b60a0840152825282518084018452600880825267506f73697469766560c01b60208381019190915280850192909252845180860186529081526714995cd95c9d995960c21b8183015283850152835180850190945290835266119bd8dd5cd95960ca1b9083015260608101919091526200019c90601b9060046200189f565b50348015620001aa57600080fd5b506040516200626838038062006268833981016040819052620001cd9162001ad8565b604080518082018252601381527f54696e792057696e67656420547572746c657a000000000000000000000000006020808301918252835180850190945260038452621515d560ea1b9084015281519192916200022d91600091620018f1565b50805162000243906001906020840190620018f1565b505050620002606200025a620013b460201b60201c565b620013b8565b6200027760076200140a60201b620015fa1760201c565b60408051610100810182526104e081526103da602082015261034a918101919091526102d46060820152610239608082015261017360a082015260d160c0820152603360e0820152620002cf90601c9060086200197c565b5060408051608081018252610c8081526104b060208201526101f491810191909152606460608201526200030890601d9060046200197c565b50604080518082019091526106568152610d3260208201526200033090601e9060026200197c565b50604080518082019091526106338152610d5560208201526200035890601f9060026200197c565b5060408051808201909152610dfb815261058d602080830191909152620003819160026200197c565b50604080516080810182526112908152608d6020820152604f91810191909152601c6060820152620003b89060219060046200197c565b506001600160a01b0381166080908152604080516101808101825260076101408201818152662362636466623960c81b61016084015261010083019081528351808501855260058082526423b932b2b760d91b60208381019190915261012086019290925291845284518087018652808601848152662364356261646160c81b60608381019190915290825286518088018852600680825265507572706c6560d01b828601528385019190915283870192909252865180890188528088018681526611b2b1b198b23160c91b8284015281528751808901895260048082526350696e6b60e01b8287015282860191909152878901919091528751808a018952808901878152662365336332396560c81b8285015281528851808a018a52848152654f72616e676560d01b8187015281860152828801528751808a018952808901878152662339636437643560c81b8285015281528851808a018a52600981526854757271756f69736560b81b8187015281860152878a01528751808a018952808901878152662366616631383560c81b8285015281528851808a018a529384526559656c6c6f7760d01b848601528085019390935260a0870192909252865180890188528088018681526608d88c190e598d60ca1b8284015281528751808901895292835263426c756560e01b838501528084019290925260c086019190915285519687018652868601938452662333333333333360c81b908701529185528351808501909452835264426c61636b60d81b8382015283019190915260e0810191909152620006079062001413565b6040805161012081018252600760e08201818152662363353230333560c81b61010084015260a0830190815283518085018552600381526214995960ea1b60208281019190915260c08501919091529083528351608080820186528186018481526608cd8dcd0e0e5960ca1b60608481019190915290835286518088018852600680825265507572706c6560d01b82870152848601919091528487019390935286518083018852808801868152662331343735626360c81b82840152815287518089018952600480825263426c756560e01b82880152828701919091528789019190915287518084018952808901878152662363633539323760c81b8285015281528851808a018a52948552654f72616e676560d01b85870152808601949094528187019390935286518083018852808801958652662365333163373960c81b9181019190915293845285518087019096529085526350696e6b60e01b8583015290820193909352918101919091526200078190620014ae565b6040805161010081018252600760c082018181526611b3333333333360c91b60e08401526080808401918252845180860186526005815264576869746560d81b60208281019190915260a0860191909152918452845180820186528086018481526611b0b31c321a9b60c91b6060838101919091529082528651808801885260068082526542726f6e7a6560d01b828701528386019190915284870192909252865180840188528088018681526611b0b330b330b360c91b828401528152875180890189529283526529b4b63b32b960d11b838601528085019290925285870191909152855191820186528186019384526608d90d18598ccd60ca1b828201529281528451808601909552600485526311dbdb1960e21b8583015290810193909352810191909152620008b49062001545565b62000a056040518060800160405280604051806040016040528060405180604001604052806002815260200161189b60f11b815250815260200160405180604001604052806002815260200161031360f41b8152508152508152602001604051806040016040528060405180604001604052806002815260200161313760f01b815250815260200160405180604001604052806002815260200161031360f41b8152508152508152602001604051806040016040528060405180604001604052806002815260200161189b60f11b815250815260200160405180604001604052806002815260200161313160f01b8152508152508152602001604051806040016040528060405180604001604052806002815260200161313760f01b815250815260200160405180604001604052806002815260200161313160f01b815250815250815250620015dc60201b60201c565b6040805160e081018252600160a08201818152600360fc1b60c084018190526060808501928352855180870187528481526020818101849052608080880192909252938652865180820188528088018681528184018590528152875180890189528681528086018590528186015284870152865190810187528087018581529181018390529081528551808701875293845283830191909152908101919091529181019190915262000aba9060009062001673565b6040805160e081018252600160a08201818152603360f81b60c0840152606080840191825284518086018652838152600760fb1b602082810182905260808088019390935293865286518083018852808801868152600d60fa1b82860152815287518089018952868152808601839052818601528487015286519182018752818701858152603560f81b938301939093529181528551808701875284815280840192909252918201529282019290925262000b76919062001673565b6040805160e081018252600160a08201818152603560f81b60c08401819052606080850192835285518087018752848152600760fb1b60208281019190915260808088019290925293865286518082018852808801868152818401859052815287518089018952868152603760f81b8187015281860152848701528651908101875280870185815291810192909252815284518086018652928352601b60f91b83830152908101919091529181019190915262000c369060029062001673565b6040805160e081018252600160a08201818152600d60fa1b60c0840152606080840191825284518086018652838152603760f81b602082810182905260808088019390935293865286518083018852808801868152601b60f91b82860152815287518089018952868152808601839052818601528487015286519182018752818701858152600760fb1b938301939093529181528551808701875293845283830191909152908101919091529181019190915262000cf79060039062001673565b6040805160e081018252600160a08201818152601b60f91b60c08401819052606080850192835285518087018752848152603760f81b602082810182905260808089019390935294875287518083018952808901878152603960f81b8286015281528851808a018a5287815280870192909252808601919091528487015286519081018752600281880190815261031360f41b928201929092529081528551808701875293845283830191909152908101919091529181019190915262000dc19060049062001673565b6040805160e081018252600160a08201908152600760fb1b60c0830152606080830191825283518085018552600280825261189960f11b60208381018290526080808801949094529486528651808401885280880183815261031360f41b828701528152875180890189528381528087018390528187015285870152865192830187528287018281529383018190529282528551808701875290815280840192909252918201529181019190915262000e7d9060059062001673565b6040805160e081018252600160a08201818152600d60fa1b60c0840152606080840191825284518086018652838152601b60f91b60208281019190915260808087019290925292855285518082018752808701858152601960f91b82850152815286518088018852858152603760f81b81860152818501528386015285519081018652808601848152603360f81b9282019290925290815284518086018652928352600760fb1b83830152908101919091529181019190915262000f449060069062001673565b6040805160e081018252600160a08201818152600d60fa1b60c0840152606080840191825284518086018652838152603960f81b60208281019190915260808087019290925292855285518082018752808701858152603360f81b82850152815286518088018852600280825261031360f41b828701819052838701929092528588019290925287519283018852828801958652603560f81b9383019390935293815285518087018752938452838301919091529081019190915291810191909152620010149060079062001673565b620013ad60405180608001604052806040518060c0016040528060405180604001604052806006815260200165139bdc9b585b60d21b8152508152602001604051806040016040528060078152602001660466c6ac4c668760cb1b8152508152602001604051806040016040528060078152602001662335363765333960c81b8152508152602001604051806040016040528060078152602001660233030303030360cc1b8152508152602001604051806040016040528060018152602001603760f81b815250815260200160405180604001604052806002815260200161189960f11b81525081525081526020016040518060c00160405280604051806040016040528060068152602001655a6f6d62696560d01b815250815260200160405180604001604052806007815260200166119bb2b0991b3160c91b8152508152602001604051806040016040528060078152602001662334633631343160c81b8152508152602001604051806040016040528060078152602001662366663030303560c81b815250815260200160405180604001604052806002815260200161313760f01b815250815260200160405180604001604052806002815260200161313360f01b81525081525081526020016040518060c0016040528060405180604001604052806005815260200164111c9bda5960da1b81525081526020016040518060400160405280600781526020016608d90d18598ccd60ca1b81525081526020016040518060400160405280600781526020016608d84c0dd94c9960ca1b8152508152602001604051806040016040528060078152602001662334643333313160c81b815250815260200160405180604001604052806002815260200161189b60f11b8152508152602001604051806040016040528060018152602001603760f81b81525081525081526020016040518060c001604052806040518060400160405280600581526020016420b634b2b760d91b8152508152602001604051806040016040528060078152602001660233863623062360cc1b8152508152602001604051806040016040528060078152602001660466a6e707070760cb1b8152508152602001604051806040016040528060078152602001662330323732383760c81b815250815260200160405180604001604052806002815260200161189b60f11b815250815260200160405180604001604052806002815260200161189960f11b8152508152508152506200172c60201b60201c565b5062001b9b565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80546001019055565b60005b60088160ff161015620014aa57600d828260ff16600881106200143d576200143d62001b05565b602090810291909101518254600181018455600093845292829020815180519294600202909101926200147692849290910190620018f1565b506020828101518051620014919260018501920190620018f1565b5050508080620014a19062001b31565b91505062001416565b5050565b60005b60058160ff161015620014aa57600e828260ff1660058110620014d857620014d862001b05565b602090810291909101518254600181018455600093845292829020815180519294600202909101926200151192849290910190620018f1565b5060208281015180516200152c9260018501920190620018f1565b50505080806200153c9062001b31565b915050620014b1565b60005b60048160ff161015620014aa57600f828260ff16600481106200156f576200156f62001b05565b60209081029190910151825460018101845560009384529282902081518051929460020290910192620015a892849290910190620018f1565b506020828101518051620015c39260018501920190620018f1565b5050508080620015d39062001b31565b91505062001548565b60005b60048160ff161015620014aa576010828260ff166004811062001606576200160662001b05565b602090810291909101518254600181018455600093845292829020815180519294600202909101926200163f92849290910190620018f1565b5060208281015180516200165a9260018501920190620018f1565b50505080806200166a9062001b31565b915050620015df565b60005b60038160ff161015620017275760118365ffffffffffff1660088110620016a157620016a162001b05565b01828260ff1660038110620016ba57620016ba62001b05565b60209081029190910151825460018101845560009384529282902081518051929460020290910192620016f392849290910190620018f1565b5060208281015180516200170e9260018501920190620018f1565b50505080806200171e9062001b31565b91505062001676565b505050565b60005b60048160ff161015620014aa576019828260ff166004811062001756576200175662001b05565b602090810291909101518254600181018455600093845292829020815180519294600602909101926200178f92849290910190620018f1565b506020828101518051620017aa9260018501920190620018f1565b5060408201518051620017c8916002840191602090910190620018f1565b5060608201518051620017e6916003840191602090910190620018f1565b506080820151805162001804916004840191602090910190620018f1565b5060a0820151805162001822916005840191602090910190620018f1565b5050508080620018329062001b31565b9150506200172f565b8280548282559060005260206000209081019282156200188d579160200282015b828111156200188d57825180516200187c918491602090910190620018f1565b50916020019190600101906200185c565b506200189b92915062001a27565b5090565b8280548282559060005260206000209081019282156200188d579160200282015b828111156200188d5782518051620018e0918491602090910190620018f1565b5091602001919060010190620018c0565b828054620018ff9062001b6a565b90600052602060002090601f0160209004810192826200192357600085556200196e565b82601f106200193e57805160ff19168380011785556200196e565b828001600101855582156200196e579182015b828111156200196e57825182559160200191906001019062001951565b506200189b92915062001a48565b82805482825590600052602060002090600f016010900481019282156200196e5791602002820160005b83821115620019e857835183826101000a81548161ffff021916908361ffff1602179055509260200192600201602081600101049283019260010302620019a6565b801562001a185782816101000a81549061ffff0219169055600201602081600101049283019260010302620019e8565b50506200189b92915062001a48565b808211156200189b57600062001a3e828262001a5f565b5060010162001a27565b5b808211156200189b576000815560010162001a49565b50805462001a6d9062001b6a565b6000825580601f1062001a7e575050565b601f01602090049060005260206000209081019062001a9e919062001a48565b50565b60006001600160a01b0382165b92915050565b62001abf8162001aa1565b811462001a9e57600080fd5b805162001aae8162001ab4565b60006020828403121562001aef5762001aef600080fd5b600062001afd848462001acb565b949350505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060ff8216915060ff82141562001b4d5762001b4d62001b1b565b5060010190565b634e487b7160e01b600052602260045260246000fd5b60028104600182168062001b7f57607f821691505b6020821081141562001b955762001b9562001b54565b50919050565b6080516146aa62001bbe600039600081816105a1015261144101526146aa6000f3fe6080604052600436106102305760003560e01c80638e6a1d671161012e578063d1129745116100ab578063d7aa75da1161006f578063d7aa75da14610653578063e104f60c14610673578063e985e9c514610688578063f29ffdc3146106a8578063f2fde38b146106c857600080fd5b8063d1129745146105d9578063d3dd5fe0146105ee578063d4a6a2fd14610603578063d5abeb011461061d578063d7188a701461063357600080fd5b8063ac631b6d116100f2578063ac631b6d1461053a578063b88d4fde1461054f578063c87b56dd1461056f578063cd7c03261461058f578063cfb6b6fc146105c357600080fd5b80638e6a1d67146104ac57806395d89b41146104c25780639dc38c7d146104d7578063a0712d6814610507578063a22cb4651461051a57600080fd5b80633ccfd60b116101bc5780636352211e116101805780636352211e1461041957806370a0823114610439578063715018a6146104595780637cd2c64e1461046e5780638da5cb5b1461048e57600080fd5b80633ccfd60b1461037757806342842e0e1461038c578063434f48c4146103ac578063456e2603146103cc5780635cd7a7b2146103ec57600080fd5b806318160ddd1161020357806318160ddd146102dc5780631fd60fd8146102fe57806323b872dd1461031857806325fd90f314610338578063379607f51461035757600080fd5b806301ffc9a71461023557806306fdde031461026b578063081812fc1461028d578063095ea7b3146102ba575b600080fd5b34801561024157600080fd5b506102556102503660046127c3565b6106e8565b60405161026291906127ee565b60405180910390f35b34801561027757600080fd5b5061028061073a565b604051610262919061285a565b34801561029957600080fd5b506102ad6102a8366004612883565b6107cc565b60405161026291906128be565b3480156102c657600080fd5b506102da6102d53660046128e0565b610825565b005b3480156102e857600080fd5b506102f16108ab565b6040516102629190612923565b34801561030a57600080fd5b506022546102559060ff1681565b34801561032457600080fd5b506102da610333366004612931565b6108c7565b34801561034457600080fd5b50600b5461025590610100900460ff1681565b34801561036357600080fd5b506102da610372366004612883565b6108f8565b34801561038357600080fd5b506102da61095a565b34801561039857600080fd5b506102da6103a7366004612931565b6109bd565b3480156103b857600080fd5b506102da6103c7366004612883565b6109d8565b3480156103d857600080fd5b506102806103e7366004612b09565b610a02565b3480156103f857600080fd5b5061040c610407366004612883565b610c84565b6040516102629190612c0b565b34801561042557600080fd5b506102ad610434366004612883565b610e9a565b34801561044557600080fd5b506102f1610454366004612c1a565b610ecf565b34801561046557600080fd5b506102da610f13565b34801561047a57600080fd5b506102da610489366004612883565b610f49565b34801561049a57600080fd5b506006546001600160a01b03166102ad565b3480156104b857600080fd5b506102f160085481565b3480156104ce57600080fd5b50610280610f9a565b3480156104e357600080fd5b506102556104f2366004612c1a565b60236020526000908152604090205460ff1681565b6102da610515366004612883565b610fa9565b34801561052657600080fd5b506102da610535366004612c3b565b610ffc565b34801561054657600080fd5b506102da61100b565b34801561055b57600080fd5b506102da61056a366004612d0a565b611049565b34801561057b57600080fd5b5061028061058a366004612883565b611081565b34801561059b57600080fd5b506102ad7f000000000000000000000000000000000000000000000000000000000000000081565b3480156105cf57600080fd5b506102f1600a5481565b3480156105e557600080fd5b506102da6111e6565b3480156105fa57600080fd5b506102da611224565b34801561060f57600080fd5b50600b546102559060ff1681565b34801561062957600080fd5b506102f160095481565b34801561063f57600080fd5b5061028061064e366004612b09565b61126b565b34801561065f57600080fd5b506102da61066e366004612883565b6113a1565b34801561067f57600080fd5b506102da6113d0565b34801561069457600080fd5b506102556106a3366004612d89565b61142f565b3480156106b457600080fd5b506102da6106c3366004612c1a565b61154e565b3480156106d457600080fd5b506102da6106e3366004612c1a565b6115a1565b60006001600160e01b031982166380ac58cd60e01b148061071957506001600160e01b03198216635b5e139f60e01b145b8061073457506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461074990612dd2565b80601f016020809104026020016040519081016040528092919081815260200182805461077590612dd2565b80156107c25780601f10610797576101008083540402835291602001916107c2565b820191906000526020600020905b8154815290600101906020018083116107a557829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108095760405162461bcd60e51b815260040161080090612e45565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061083082610e9a565b9050806001600160a01b0316836001600160a01b031614156108645760405162461bcd60e51b815260040161080090612e93565b336001600160a01b03821614806108805750610880813361142f565b61089c5760405162461bcd60e51b815260040161080090612efd565b6108a68383611603565b505050565b600060016108b860075490565b6108c29190612f23565b905090565b6108d13382611671565b6108ed5760405162461bcd60e51b815260040161080090612f88565b6108a68383836116fb565b600b5460ff1661091a5760405162461bcd60e51b815260040161080090612fcf565b600854816109266108ab565b6109309190612fdf565b111561094e5760405162461bcd60e51b815260040161080090613023565b6109578161181d565b50565b6006546001600160a01b031633146109845760405162461bcd60e51b815260040161080090613065565b6006546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610957573d6000803e3d6000fd5b6108a683838360405180602001604052806000815250611049565b6006546001600160a01b0316331461094e5760405162461bcd60e51b815260040161080090613065565b606080600d836000015161ffff1681548110610a2057610a20613075565b9060005260206000209060020201600101601984610140015161ffff1681548110610a4d57610a4d613075565b9060005260206000209060060201600001601a856040015161ffff1681548110610a7957610a79613075565b90600052602060002001600f866020015161ffff1681548110610a9e57610a9e613075565b9060005260206000209060020201600101601b8760e0015161ffff1681548110610aca57610aca613075565b90600052602060002001604051602001610ae99695949392919061320f565b60405160208183030381529060405290508160a0015115610b545780600e8360c0015161ffff1681548110610b2057610b20613075565b9060005260206000209060020201600101604051602001610b429291906132d5565b60405160208183030381529060405290505b81606001518015610b6f575081610140015161ffff16600214155b15610bc45780600e836080015161ffff1681548110610b9057610b90613075565b9060005260206000209060020201600101604051602001610bb2929190613334565b60405160208183030381529060405290505b8161010001518015610be0575081610140015161ffff16600114155b15610c085780604051602001610bf6919061337a565b60405160208183030381529060405290505b81610120015115610c3a5780604051602001610c2491906133c5565b6040516020818303038152906040529050610c5d565b80604051602001610c4b9190613448565b60405160208183030381529060405290505b80604051602001610c6e919061347e565b6040516020818303038152906040529050919050565b6040805161016081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e0810182905261010081018290526101208101829052610140810182905290610ce8600143612f23565b4083604051602001610cfb9291906134a0565b60408051601f1981840301815282825280516020909101206101608301909152915080610d296008846134dc565b61ffff168152602001610d52600954600285901c61ffff16610d4b91906134ff565b6001611a6b565b61ffff168152602001610d7b600954600185901c61ffff16610d7491906134ff565b6000611a6b565b61ffff168152602001610da4600954600385901c61ffff16610d9d91906134ff565b6002611a6b565b61ffff166001148152602001610dbf6005600485901c6134dc565b61ffff168152602001610de8600954600585901c61ffff16610de191906134ff565b6003611a6b565b61ffff166001148152602001610e036005600685901c6134dc565b61ffff168152602001610e1b6004600785901c6134dc565b61ffff168152602001610e44600954600885901c61ffff16610e3d91906134ff565b6004611a6b565b61ffff166001148152602001610e5f6002600985901c6134dc565b61ffff1660011415158152602001610e8d600954600a85901c61ffff16610e8691906134ff565b6005611a6b565b61ffff1690529392505050565b6000818152600260205260408120546001600160a01b0316806107345760405162461bcd60e51b81526004016108009061354d565b60006001600160a01b038216610ef75760405162461bcd60e51b8152600401610800906135a4565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610f3d5760405162461bcd60e51b815260040161080090613065565b610f476000611b45565b565b6006546001600160a01b03163314610f735760405162461bcd60e51b815260040161080090613065565b600954811115610f955760405162461bcd60e51b8152600401610800906135e8565b600855565b60606001805461074990612dd2565b600b54610100900460ff16610fd05760405162461bcd60e51b815260040161080090613623565b600a54610fdd9082613633565b34101561094e5760405162461bcd60e51b81526004016108009061367e565b611007338383611b97565b5050565b6006546001600160a01b031633146110355760405162461bcd60e51b815260040161080090613065565b6022805460ff19811660ff90911615179055565b6110533383611671565b61106f5760405162461bcd60e51b815260040161080090612f88565b61107b84848484611c3a565b50505050565b6000818152600260205260409020546060906001600160a01b03166110a557600080fd5b6000828152600c6020908152604091829020825161016081018452905461ffff8082168352620100008204811693830193909352640100000000810483169382019390935260ff66010000000000008404811615156060830152670100000000000000840483166080830152690100000000000000000084048116151560a0830152600160501b8404831660c0830152600160601b8404831660e0830152600160701b840481161515610100830152600160781b8404161515610120820152600160801b909204166101408201526111bf61117f84611c6d565b61119061118b8461126b565b611d6b565b61119984610a02565b6040516020016111ab9392919061369c565b604051602081830303815290604052611d6b565b6040516020016111cf91906137d0565b604051602081830303815290604052915050919050565b6006546001600160a01b031633146112105760405162461bcd60e51b815260040161080090613065565b600b805460ff19811660ff90911615179055565b6006546001600160a01b0316331461124e5760405162461bcd60e51b815260040161080090613065565b600b805461ff001981166101009182900460ff1615909102179055565b606061127682611ed1565b61127f836120ad565b6112888461227d565b61129185612316565b61129a866123b1565b6040516020016112ae959493929190613802565b60405160208183030381529060405290508160a00151156112f657806112d38361246a565b6040516020016112e4929190613849565b60405160208183030381529060405290505b81606001518015611311575081610140015161ffff16600214155b156113435780611320836124d5565b604051602001611331929190613849565b60405160208183030381529060405290505b816101000151801561135f575081610140015161ffff16600114155b15611390578061136d612540565b60405160200161137e929190613849565b60405160208183030381529060405290505b80604051602001610c6e9190613861565b6006546001600160a01b031633146113cb5760405162461bcd60e51b815260040161080090613065565b600a55565b6006546001600160a01b031633146113fa5760405162461bcd60e51b815260040161080090613065565b6009546114056108ab565b106114225760405162461bcd60e51b815260040161080090613989565b61142a6108ab565b600955565b60405163c455279160e01b81526000907f0000000000000000000000000000000000000000000000000000000000000000906001600160a01b03808516919083169063c4552791906114859088906004016128be565b60206040518083038186803b15801561149d57600080fd5b505afa1580156114b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d591906139b8565b6001600160a01b031614156114f157505060225460ff16610734565b6001600160a01b03831660009081526023602052604090205460ff161561151c576001915050610734565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b6006546001600160a01b031633146115785760405162461bcd60e51b815260040161080090613065565b6001600160a01b03166000908152602360205260409020805460ff19811660ff90911615179055565b6006546001600160a01b031633146115cb5760405162461bcd60e51b815260040161080090613065565b6001600160a01b0381166115f15760405162461bcd60e51b815260040161080090613a1c565b61095781611b45565b80546001019055565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061163882610e9a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166116a55760405162461bcd60e51b815260040161080090613a75565b60006116b083610e9a565b9050806001600160a01b0316846001600160a01b031614806116eb5750836001600160a01b03166116e0846107cc565b6001600160a01b0316145b806115465750611546818561142f565b826001600160a01b031661170e82610e9a565b6001600160a01b0316146117345760405162461bcd60e51b815260040161080090613acb565b6001600160a01b03821661175a5760405162461bcd60e51b815260040161080090613b1c565b611765600082611603565b6001600160a01b038316600090815260036020526040812080546001929061178e908490612f23565b90915550506001600160a01b03821660009081526003602052604081208054600192906117bc908490612fdf565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000811161183d5760405162461bcd60e51b815260040161080090613b5e565b600b811061185d5760405162461bcd60e51b815260040161080090613b9a565b600954816118696108ab565b6118739190612fdf565b11156118915760405162461bcd60e51b815260040161080090613bd4565b60005b818110156110075760006118a760075490565b90506118b281610c84565b600c600083815260200190815260200160002060008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160000160026101000a81548161ffff021916908361ffff16021790555060408201518160000160046101000a81548161ffff021916908361ffff16021790555060608201518160000160066101000a81548160ff02191690831515021790555060808201518160000160076101000a81548161ffff021916908361ffff16021790555060a08201518160000160096101000a81548160ff02191690831515021790555060c082015181600001600a6101000a81548161ffff021916908361ffff16021790555060e082015181600001600c6101000a81548161ffff021916908361ffff16021790555061010082015181600001600e6101000a81548160ff02191690831515021790555061012082015181600001600f6101000a81548160ff0219169083151502179055506101408201518160000160106101000a81548161ffff021916908361ffff160217905550905050611a4a3382612565565b611a58600780546001019055565b5080611a6381613be4565b915050611894565b600080805b601c8460ff1660068110611a8657611a86613075565b015460ff82161015611b3f576000601c8560ff1660068110611aaa57611aaa613075565b018260ff1681548110611abf57611abf613075565b90600052602060002090601091828204019190066002029054906101000a900461ffff1690508261ffff168661ffff1610158015611b0d5750611b028184613bf8565b61ffff168661ffff16105b15611b1f575060ff1691506107349050565b611b298184613bf8565b9250508080611b3790613c1c565b915050611a70565b50600080fd5b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611bc95760405162461bcd60e51b815260040161080090613c69565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611c2d9085906127ee565b60405180910390a3505050565b611c458484846116fb565b611c518484848461257f565b61107b5760405162461bcd60e51b815260040161080090613cc8565b606081611c915750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611cbb5780611ca581613be4565b9150611cb49050600a83613cd8565b9150611c95565b60008167ffffffffffffffff811115611cd657611cd6612981565b6040519080825280601f01601f191660200182016040528015611d00576020820181803683370190505b5090505b841561154657611d15600183612f23565b9150611d22600a866134ff565b611d2d906030612fdf565b60f81b818381518110611d4257611d42613075565b60200101906001600160f81b031916908160001a905350611d64600a86613cd8565b9450611d04565b805160609080611d8b575050604080516020810190915260008152919050565b60006003611d9a836002612fdf565b611da49190613cd8565b611daf906004613633565b90506000611dbe826020612fdf565b67ffffffffffffffff811115611dd657611dd6612981565b6040519080825280601f01601f191660200182016040528015611e00576020820181803683370190505b5090506000604051806060016040528060408152602001614635604091399050600181016020830160005b86811015611e8c576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101611e2b565b506003860660018114611ea65760028114611eb757611ec3565b613d3d60f01b600119830152611ec3565b603d60f81b6000198301525b505050918152949350505050565b6060600d826000015161ffff1681548110611eee57611eee613075565b9060005260206000209060020201600001601983610140015161ffff1681548110611f1b57611f1b613075565b9060005260206000209060060201600101601984610140015161ffff1681548110611f4857611f48613075565b9060005260206000209060060201600101601985610140015161ffff1681548110611f7557611f75613075565b9060005260206000209060060201600101601986610140015161ffff1681548110611fa257611fa2613075565b9060005260206000209060060201600101601987610140015161ffff1681548110611fcf57611fcf613075565b9060005260206000209060060201600101601988610140015161ffff1681548110611ffc57611ffc613075565b9060005260206000209060060201600101601989610140015161ffff168154811061202957612029613075565b906000526020600020906006020160020160198a610140015161ffff168154811061205657612056613075565b906000526020600020906006020160020160198b610140015161ffff168154811061208357612083613075565b9060005260206000209060060201600201604051602001610c6e9a99989796959493929190613f5d565b6060600f826020015161ffff16815481106120ca576120ca613075565b9060005260206000209060020201600001600f836020015161ffff16815481106120f6576120f6613075565b9060005260206000209060020201600001600f846020015161ffff168154811061212257612122613075565b906000526020600020906002020160000160405160200161214593929190614190565b6040516020818303038152906040529050816040015161ffff166000146122785760005b6011836040015161ffff166008811061218457612184613075565b015460ff821610156122765781600f846020015161ffff16815481106121ac576121ac613075565b90600052602060002090600202016000016011856040015161ffff16600881106121d8576121d8613075565b018360ff16815481106121ed576121ed613075565b90600052602060002090600202016000016011866040015161ffff166008811061221957612219613075565b018460ff168154811061222e5761222e613075565b90600052602060002090600202016001016040516020016122529493929190614223565b6040516020818303038152906040529150808061226e90613c1c565b915050612169565b505b919050565b6060601982610140015161ffff168154811061229b5761229b613075565b906000526020600020906006020160030160108360e0015161ffff16815481106122c7576122c7613075565b906000526020600020906002020160000160108460e0015161ffff16815481106122f3576122f3613075565b9060005260206000209060020201600101604051602001610c6e93929190614292565b6060601982610140015161ffff168154811061233457612334613075565b9060005260206000209060060201600201601983610140015161ffff168154811061236157612361613075565b9060005260206000209060060201600401601984610140015161ffff168154811061238e5761238e613075565b9060005260206000209060060201600501604051602001610c6e93929190614319565b606060008261012001516123df57604051806040016040528060028152602001610c4d60f21b8152506123fb565b60405180604001604052806002815260200161189960f11b8152505b9050601983610140015161ffff168154811061241957612419613075565b9060005260206000209060060201600101601984610140015161ffff168154811061244657612446613075565b9060005260206000209060060201600101826040516020016111cf9392919061439e565b6060600e8260c0015161ffff168154811061248757612487613075565b9060005260206000209060020201600001600e8360c0015161ffff16815481106124b3576124b3613075565b9060005260206000209060020201600001604051602001610c6e929190614436565b6060600e826080015161ffff16815481106124f2576124f2613075565b9060005260206000209060020201600001600e836080015161ffff168154811061251e5761251e613075565b9060005260206000209060020201600001604051602001610c6e9291906144b4565b60606040516020016125519061453d565b604051602081830303815290604052905090565b61100782826040518060200160405280600081525061268c565b60006001600160a01b0384163b1561268157604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906125c3903390899088908890600401614548565b602060405180830381600087803b1580156125dd57600080fd5b505af192505050801561260d575060408051601f3d908101601f1916820190925261260a9181019061458d565b60015b612667573d80801561263b576040519150601f19603f3d011682016040523d82523d6000602084013e612640565b606091505b50805161265f5760405162461bcd60e51b815260040161080090613cc8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611546565b506001949350505050565b61269683836126bf565b6126a3600084848461257f565b6108a65760405162461bcd60e51b815260040161080090613cc8565b6001600160a01b0382166126e55760405162461bcd60e51b8152600401610800906145e0565b6000818152600260205260409020546001600160a01b03161561271a5760405162461bcd60e51b815260040161080090614624565b6001600160a01b0382166000908152600360205260408120805460019290612743908490612fdf565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b031981165b811461095757600080fd5b8035610734816127a1565b6000602082840312156127d8576127d8600080fd5b600061154684846127b8565b8015155b82525050565b6020810161073482846127e4565b60005b838110156128175781810151838201526020016127ff565b8381111561107b5750506000910152565b6000612832825190565b8084526020840193506128498185602086016127fc565b601f01601f19169290920192915050565b6020808252810161286b8184612828565b9392505050565b806127ad565b803561073481612872565b60006020828403121561289857612898600080fd5b60006115468484612878565b60006001600160a01b038216610734565b6127e8816128a4565b6020810161073482846128b5565b6127ad816128a4565b8035610734816128cc565b600080604083850312156128f6576128f6600080fd5b600061290285856128d5565b925050602061291385828601612878565b9150509250929050565b806127e8565b60208101610734828461291d565b60008060006060848603121561294957612949600080fd5b600061295586866128d5565b9350506020612966868287016128d5565b925050604061297786828701612878565b9150509250925092565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff821117156129bd576129bd612981565b6040525050565b60006129cf60405190565b90506122788282612997565b61ffff81166127ad565b8035610734816129db565b8015156127ad565b8035610734816129f0565b60006101608284031215612a1957612a19600080fd5b612a246101606129c4565b90506000612a3284846129e5565b8252506020612a43848483016129e5565b6020830152506040612a57848285016129e5565b6040830152506060612a6b848285016129f8565b6060830152506080612a7f848285016129e5565b60808301525060a0612a93848285016129f8565b60a08301525060c0612aa7848285016129e5565b60c08301525060e0612abb848285016129e5565b60e083015250610100612ad0848285016129f8565b61010083015250610120612ae6848285016129f8565b61012083015250610140612afc848285016129e5565b6101408301525092915050565b60006101608284031215612b1f57612b1f600080fd5b60006115468484612a03565b61ffff81166127e8565b8051610160830190612b478482612b2b565b506020820151612b5a6020850182612b2b565b506040820151612b6d6040850182612b2b565b506060820151612b8060608501826127e4565b506080820151612b936080850182612b2b565b5060a0820151612ba660a08501826127e4565b5060c0820151612bb960c0850182612b2b565b5060e0820151612bcc60e0850182612b2b565b50610100820151612be16101008501826127e4565b50610120820151612bf66101208501826127e4565b5061014082015161107b610140850182612b2b565b61016081016107348284612b35565b600060208284031215612c2f57612c2f600080fd5b600061154684846128d5565b60008060408385031215612c5157612c51600080fd5b6000612c5d85856128d5565b9250506020612913858286016129f8565b600067ffffffffffffffff821115612c8857612c88612981565b601f19601f83011660200192915050565b82818337506000910152565b6000612cb8612cb384612c6e565b6129c4565b905082815260208101848484011115612cd357612cd3600080fd5b612cde848285612c99565b509392505050565b600082601f830112612cfa57612cfa600080fd5b8135611546848260208601612ca5565b60008060008060808587031215612d2357612d23600080fd5b6000612d2f87876128d5565b9450506020612d40878288016128d5565b9350506040612d5187828801612878565b925050606085013567ffffffffffffffff811115612d7157612d71600080fd5b612d7d87828801612ce6565b91505092959194509250565b60008060408385031215612d9f57612d9f600080fd5b6000612dab85856128d5565b9250506020612913858286016128d5565b634e487b7160e01b600052602260045260246000fd5b600281046001821680612de657607f821691505b6020821081141561227657612276612dbc565b602c81526000602082017f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015291505b5060400190565b6020808252810161073481612df9565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b60208201529150612e3e565b6020808252810161073481612e55565b603881526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060208201529150612e3e565b6020808252810161073481612ea3565b634e487b7160e01b600052601160045260246000fd5b600082821015612f3557612f35612f0d565b500390565b603181526000602082017f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b60208201529150612e3e565b6020808252810161073481612f3a565b601881526000602082017f436c61696d696e67206e6f7420616374697665207965742e0000000000000000815291505b5060200190565b6020808252810161073481612f98565b60008219821115612ff257612ff2612f0d565b500190565b601581526000602082017422bc31b2b2b2399031b630b4b69039bab838363c9760591b81529150612fc8565b6020808252810161073481612ff7565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000612fc8565b6020808252810161073481613033565b634e487b7160e01b600052603260045260246000fd5b6000613095825190565b6130a38185602086016127fc565b9290920192915050565b7f7b2274726169745f74797065223a224261636b67726f756e64222c202276616c8152643ab2911d1160d91b602082015260005b5060250190565b600081546130f581612dd2565b60018216801561310c576001811461311d5761314d565b60ff1983168652818601935061314d565b60008581526020902060005b8381101561314557815488820152600190910190602001613129565b838801955050505b50505092915050565b7f7b2274726169745f74797065223a2254797065222c202276616c7565223a2200815260005b50601f0190565b7f7b2274726169745f74797065223a2257696e6773222c202276616c7565223a2281526000612fc8565b7f7b2274726169745f74797065223a2257696e6720436f6c6f72222c202276616c8152643ab2911d1160d91b602082015260006130e1565b7f7b2274726169745f74797065223a2245796573222c202276616c7565223a22008152600061317c565b600061321b828961308b565b9150613226826130ad565b915061323282886130e8565b62089f4b60ea1b8152600301915061324982613156565b915061325582876130e8565b62089f4b60ea1b8152600301915061326c82613183565b915061327882866130e8565b62089f4b60ea1b8152600301915061328f826131ad565b915061329b82856130e8565b62089f4b60ea1b815260030191506132b2826131e5565b91506132be82846130e8565b61227d60f01b815260020198975050505050505050565b60006132e1828561308b565b7f2c7b2274726169745f74797065223a22426f6f7473222c202276616c7565223a8152601160f91b60208201529150602182015b915061332182846130e8565b61227d60f01b8152915060028201611546565b6000613340828561308b565b7f2c7b2274726169745f74797065223a2242616e64616e61222c202276616c7565815262111d1160e91b6020820152915060238201613315565b6000613386828461308b565b7f2c7b2274726169745f74797065223a22546f6e677565222c202276616c7565228152673a2254727565227d60c01b602082015291506028820161286b565b60006133d1828461308b565b7f2c7b2274726169745f74797065223a225461696c222c202276616c7565223a228152635570227d60e01b602082015291506024820161286b565b7f2c7b2274726169745f74797065223a225461696c222c202276616c7565223a22815265446f776e227d60d01b602082015260005b5060260190565b6000613454828461308b565b915061286b8261340c565b605b60f81b815260005b5060010190565b605d60f81b81526000613469565b60006134898261345f565b9150613495828461308b565b915061286b82613470565b60006134ac828561291d565b6020820191506134bc828461291d565b5060200192915050565b634e487b7160e01b600052601260045260246000fd5b600061ffff8216915061ffff83165b9250826134fa576134fa6134c6565b500690565b6000826134eb565b602981526000602082017f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b60208201529150612e3e565b6020808252810161073481613507565b602a81526000602082017f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b60208201529150612e3e565b602080825281016107348161355d565b601a81526000602082017f576f756c6420696e637265617365206d617820737570706c792e00000000000081529150612fc8565b60208082528101610734816135b4565b601481526000602082017326b4b73a103737ba1030b1ba34bb32903cb2ba1760611b81529150612fc8565b60208082528101610734816135f8565b600081600019048311821515161561364d5761364d612f0d565b500290565b60158152600060208201742bb937b7339022aa24103b30b63ab29039b2b73a1760591b81529150612fc8565b6020808252810161073481613652565b607d60f81b81526000613469565b7f7b226e616d65223a202254696e792057696e67656420547572746c65202300008152601e0160006136ce828661308b565b7f222c20226465736372697074696f6e223a202254696e792057696e676564205481527f7572746c657a20617265206120636f6c6c656374696f6e206f662066756c6c7960208201527f206f6e2d636861696e2c2072616e646f6d6c792067656e6572617465642c207360408201527f6d616c6c20747572746c657320776974682077696e67732e222c2022696d616760608201527f65223a2022646174613a696d6167652f7376672b786d6c3b6261736536342c006080820152609f019150613798828561308b565b6e11161130ba3a3934b13aba32b9911d60891b8152600f0191506137bc828461308b565b91506137c78261368e565b95945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152601d01600061286b828461308b565b600061380e828861308b565b915061381a828761308b565b9150613826828661308b565b9150613832828561308b565b915061383e828461308b565b979650505050505050565b6000613855828561308b565b9150611546828461308b565b7f3c7376672069643d2774696e792d77696e6765642d747572746c652720786d6c81527f6e733d27687474703a2f2f7777772e77332e6f72672f323030302f737667272060208201527f7072657365727665417370656374526174696f3d27784d696e594d696e206d6560408201527f6574272076696577426f783d27302030203234203234273e000000000000000060608201526078016000613905828461308b565b7f3c7374796c653e2374696e792d77696e6765642d747572746c657b736861706581527f2d72656e646572696e673a637269737065646765733b7d3c2f7374796c653e3c60208201526417b9bb339f60d91b604082015291506045820161286b565b600b81526000602082016a20b6361036b4b73a32b21760a91b81529150612fc8565b6020808252810161073481613967565b6000610734826128a4565b6127ad81613999565b8051610734816139a4565b6000602082840312156139cd576139cd600080fd5b600061154684846139ad565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b60208201529150612e3e565b60208082528101610734816139d9565b602c81526000602082017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b60208201529150612e3e565b6020808252810161073481613a2c565b602981526000602082017f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981526839903737ba1037bbb760b91b60208201529150612e3e565b6020808252810161073481613a85565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b60208201529150612e3e565b6020808252810161073481613adb565b60208082527f5175616e74697479206d7573742062652067726561746572207468616e20302e91019081526000612fc8565b6020808252810161073481613b2c565b601581526000602082017422bc31b2b2b2399036b0bc103832b91036b4b73a1760591b81529150612fc8565b6020808252810161073481613b6e565b601381526000602082017222bc31b2b2b2399036b0bc1039bab838363c9760691b81529150612fc8565b6020808252810161073481613baa565b600060001982141561346957613469612f0d565b600061ffff8216915061ffff831692508261ffff03821115612ff257612ff2612f0d565b600060ff8216915060ff82141561346957613469612f0d565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529150612fc8565b6020808252810161073481613c35565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60208201529150612e3e565b6020808252810161073481613c79565b600082613ce757613ce76134c6565b500490565b6b3c726563742066696c6c3d2760a01b8152600c0190565b7f27206865696768743d2731272077696474683d27332720783d2731352720793d815265139c9390179f60d11b60208201526000613441565b7f27206865696768743d2733272077696474683d27342720783d2731352720793d8152661398981390179f60c91b602082015260005b5060270190565b7f27206865696768743d2731272077696474683d27332720783d2731352720793d8152661398999390179f60c91b60208201526000613d73565b7f27206865696768743d2731272077696474683d27382720783d27372720793d27815265189a1390179f60d11b60208201526000613441565b7f27206865696768743d2731272077696474683d27322720783d27372720793d27815265189a9390179f60d11b60208201526000613441565b7f27206865696768743d2731272077696474683d27322720783d2731332720793d81526613989a9390179f60c91b60208201526000613d73565b7f27206865696768743d2731272077696474683d27342720783d27392720793d278152641c9390179f60d91b602082015260006130e1565b7f27206865696768743d2731272077696474683d27362720783d27382720793d2781526518981390179f60d11b60208201526000613441565b7f27206865696768743d2733272077696474683d27382720783d27372720793d2781526518989390179f60d11b60208201526000613441565b7f3c726563742066696c6c3d272366666666666627206865696768743d2732272081527f77696474683d27322720783d2731362720793d27313027202f3e000000000000602082015260005b50603a0190565b6000613f6882613cec565b9150613f74828d6130e8565b7f27206865696768743d273234272077696474683d27323427202f3e00000000008152601b019150613fa582613cec565b9150613fb1828c6130e8565b9150613fbc82613d04565b9150613fc782613cec565b9150613fd3828b6130e8565b9150613fde82613d3d565b9150613fe982613cec565b9150613ff5828a6130e8565b915061400082613d7a565b915061400b82613cec565b915061401782896130e8565b915061402282613db4565b915061402d82613cec565b915061403982886130e8565b915061404482613ded565b915061404f82613cec565b915061405b82876130e8565b915061406682613e26565b915061407182613cec565b915061407d82866130e8565b915061408882613e60565b915061409382613cec565b915061409f82856130e8565b91506140aa82613e98565b91506140b582613cec565b91506140c182846130e8565b91506140cc82613ed1565b91506140d782613f0a565b9c9b505050505050505050505050565b7f27206865696768743d2731272077696474683d27362720783d27352720793d278152641c1390179f60d91b602082015260006130e1565b7f27206865696768743d2731272077696474683d27342720783d27372720793d278152641c9390179f60d91b602082015260006130e1565b7f27206865696768743d2731272077696474683d27322720783d27392720793d2781526518981390179f60d11b60208201526000613441565b600061419b82613cec565b91506141a782866130e8565b91506141b2826140e7565b91506141bd82613cec565b91506141c982856130e8565b91506141d48261411f565b91506141df82613cec565b91506141eb82846130e8565b91506137c782614157565b7f27206865696768743d2731272077696474683d27312720783d27000000000000815260005b50601a0190565b600061422f828761308b565b915061423a82613cec565b915061424682866130e8565b9150614251826141f6565b915061425d82856130e8565b642720793d2760d81b8152600501915061427782846130e8565b631390179f60e11b81529150600482015b9695505050505050565b600061429d82613cec565b91506142a982866130e8565b91506142b4826141f6565b91506142c082856130e8565b642720793d2760d81b815260050191506142da82846130e8565b631390179f60e11b81529150600482016137c7565b7f27206865696768743d2732272077696474683d27312720783d270000000000008152600061421c565b600061432482613cec565b915061433082866130e8565b91506142b4826142ef565b7f27206865696768743d2731272077696474683d27312720783d27362720793d2781526518999390179f60d11b60208201526000613441565b7f27206865696768743d2731272077696474683d27312720783d27352720793d2781526000612fc8565b60006143a982613cec565b91506143b582866130e8565b91506143c08261433b565b91506143cb82613cec565b91506143d782856130e8565b91506143e282614374565b91506142da828461308b565b7f27206865696768743d2731272077696474683d27322720783d27372720793d27815271313527202f3e3c726563742066696c6c3d2760701b602082015260005b5060320190565b600061444182613cec565b915061444d82856130e8565b9150614458826143ee565b915061446482846130e8565b915061154682613e26565b7f27206865696768743d2731272077696474683d27312720783d2731342720793d815271273827202f3e3c726563742066696c6c3d2760701b6020820152600061442f565b60006144bf82613cec565b91506144cb82856130e8565b91506144d68261446f565b91506144e282846130e8565b915061154682613d04565b7f3c726563742066696c6c3d272365643230323427206865696768743d2731272081527f77696474683d27312720783d2731382720793d27313327202f3e00000000000060208201526000613f56565b6000610734826144ed565b6080810161455682876128b5565b61456360208301866128b5565b614570604083018561291d565b81810360608301526142888184612828565b8051610734816127a1565b6000602082840312156145a2576145a2600080fd5b60006115468484614582565b60208082527f4552433732313a206d696e7420746f20746865207a65726f206164647265737391019081526000612fc8565b60208082528101610734816145ae565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081529150612fc8565b60208082528101610734816145f056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212202174d33816a589e000e10cdaa571b6a50d6b338d9317377b1d1deb6adadec21c64736f6c63430008090033000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Deployed Bytecode
0x6080604052600436106102305760003560e01c80638e6a1d671161012e578063d1129745116100ab578063d7aa75da1161006f578063d7aa75da14610653578063e104f60c14610673578063e985e9c514610688578063f29ffdc3146106a8578063f2fde38b146106c857600080fd5b8063d1129745146105d9578063d3dd5fe0146105ee578063d4a6a2fd14610603578063d5abeb011461061d578063d7188a701461063357600080fd5b8063ac631b6d116100f2578063ac631b6d1461053a578063b88d4fde1461054f578063c87b56dd1461056f578063cd7c03261461058f578063cfb6b6fc146105c357600080fd5b80638e6a1d67146104ac57806395d89b41146104c25780639dc38c7d146104d7578063a0712d6814610507578063a22cb4651461051a57600080fd5b80633ccfd60b116101bc5780636352211e116101805780636352211e1461041957806370a0823114610439578063715018a6146104595780637cd2c64e1461046e5780638da5cb5b1461048e57600080fd5b80633ccfd60b1461037757806342842e0e1461038c578063434f48c4146103ac578063456e2603146103cc5780635cd7a7b2146103ec57600080fd5b806318160ddd1161020357806318160ddd146102dc5780631fd60fd8146102fe57806323b872dd1461031857806325fd90f314610338578063379607f51461035757600080fd5b806301ffc9a71461023557806306fdde031461026b578063081812fc1461028d578063095ea7b3146102ba575b600080fd5b34801561024157600080fd5b506102556102503660046127c3565b6106e8565b60405161026291906127ee565b60405180910390f35b34801561027757600080fd5b5061028061073a565b604051610262919061285a565b34801561029957600080fd5b506102ad6102a8366004612883565b6107cc565b60405161026291906128be565b3480156102c657600080fd5b506102da6102d53660046128e0565b610825565b005b3480156102e857600080fd5b506102f16108ab565b6040516102629190612923565b34801561030a57600080fd5b506022546102559060ff1681565b34801561032457600080fd5b506102da610333366004612931565b6108c7565b34801561034457600080fd5b50600b5461025590610100900460ff1681565b34801561036357600080fd5b506102da610372366004612883565b6108f8565b34801561038357600080fd5b506102da61095a565b34801561039857600080fd5b506102da6103a7366004612931565b6109bd565b3480156103b857600080fd5b506102da6103c7366004612883565b6109d8565b3480156103d857600080fd5b506102806103e7366004612b09565b610a02565b3480156103f857600080fd5b5061040c610407366004612883565b610c84565b6040516102629190612c0b565b34801561042557600080fd5b506102ad610434366004612883565b610e9a565b34801561044557600080fd5b506102f1610454366004612c1a565b610ecf565b34801561046557600080fd5b506102da610f13565b34801561047a57600080fd5b506102da610489366004612883565b610f49565b34801561049a57600080fd5b506006546001600160a01b03166102ad565b3480156104b857600080fd5b506102f160085481565b3480156104ce57600080fd5b50610280610f9a565b3480156104e357600080fd5b506102556104f2366004612c1a565b60236020526000908152604090205460ff1681565b6102da610515366004612883565b610fa9565b34801561052657600080fd5b506102da610535366004612c3b565b610ffc565b34801561054657600080fd5b506102da61100b565b34801561055b57600080fd5b506102da61056a366004612d0a565b611049565b34801561057b57600080fd5b5061028061058a366004612883565b611081565b34801561059b57600080fd5b506102ad7f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c181565b3480156105cf57600080fd5b506102f1600a5481565b3480156105e557600080fd5b506102da6111e6565b3480156105fa57600080fd5b506102da611224565b34801561060f57600080fd5b50600b546102559060ff1681565b34801561062957600080fd5b506102f160095481565b34801561063f57600080fd5b5061028061064e366004612b09565b61126b565b34801561065f57600080fd5b506102da61066e366004612883565b6113a1565b34801561067f57600080fd5b506102da6113d0565b34801561069457600080fd5b506102556106a3366004612d89565b61142f565b3480156106b457600080fd5b506102da6106c3366004612c1a565b61154e565b3480156106d457600080fd5b506102da6106e3366004612c1a565b6115a1565b60006001600160e01b031982166380ac58cd60e01b148061071957506001600160e01b03198216635b5e139f60e01b145b8061073457506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461074990612dd2565b80601f016020809104026020016040519081016040528092919081815260200182805461077590612dd2565b80156107c25780601f10610797576101008083540402835291602001916107c2565b820191906000526020600020905b8154815290600101906020018083116107a557829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108095760405162461bcd60e51b815260040161080090612e45565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061083082610e9a565b9050806001600160a01b0316836001600160a01b031614156108645760405162461bcd60e51b815260040161080090612e93565b336001600160a01b03821614806108805750610880813361142f565b61089c5760405162461bcd60e51b815260040161080090612efd565b6108a68383611603565b505050565b600060016108b860075490565b6108c29190612f23565b905090565b6108d13382611671565b6108ed5760405162461bcd60e51b815260040161080090612f88565b6108a68383836116fb565b600b5460ff1661091a5760405162461bcd60e51b815260040161080090612fcf565b600854816109266108ab565b6109309190612fdf565b111561094e5760405162461bcd60e51b815260040161080090613023565b6109578161181d565b50565b6006546001600160a01b031633146109845760405162461bcd60e51b815260040161080090613065565b6006546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610957573d6000803e3d6000fd5b6108a683838360405180602001604052806000815250611049565b6006546001600160a01b0316331461094e5760405162461bcd60e51b815260040161080090613065565b606080600d836000015161ffff1681548110610a2057610a20613075565b9060005260206000209060020201600101601984610140015161ffff1681548110610a4d57610a4d613075565b9060005260206000209060060201600001601a856040015161ffff1681548110610a7957610a79613075565b90600052602060002001600f866020015161ffff1681548110610a9e57610a9e613075565b9060005260206000209060020201600101601b8760e0015161ffff1681548110610aca57610aca613075565b90600052602060002001604051602001610ae99695949392919061320f565b60405160208183030381529060405290508160a0015115610b545780600e8360c0015161ffff1681548110610b2057610b20613075565b9060005260206000209060020201600101604051602001610b429291906132d5565b60405160208183030381529060405290505b81606001518015610b6f575081610140015161ffff16600214155b15610bc45780600e836080015161ffff1681548110610b9057610b90613075565b9060005260206000209060020201600101604051602001610bb2929190613334565b60405160208183030381529060405290505b8161010001518015610be0575081610140015161ffff16600114155b15610c085780604051602001610bf6919061337a565b60405160208183030381529060405290505b81610120015115610c3a5780604051602001610c2491906133c5565b6040516020818303038152906040529050610c5d565b80604051602001610c4b9190613448565b60405160208183030381529060405290505b80604051602001610c6e919061347e565b6040516020818303038152906040529050919050565b6040805161016081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e0810182905261010081018290526101208101829052610140810182905290610ce8600143612f23565b4083604051602001610cfb9291906134a0565b60408051601f1981840301815282825280516020909101206101608301909152915080610d296008846134dc565b61ffff168152602001610d52600954600285901c61ffff16610d4b91906134ff565b6001611a6b565b61ffff168152602001610d7b600954600185901c61ffff16610d7491906134ff565b6000611a6b565b61ffff168152602001610da4600954600385901c61ffff16610d9d91906134ff565b6002611a6b565b61ffff166001148152602001610dbf6005600485901c6134dc565b61ffff168152602001610de8600954600585901c61ffff16610de191906134ff565b6003611a6b565b61ffff166001148152602001610e036005600685901c6134dc565b61ffff168152602001610e1b6004600785901c6134dc565b61ffff168152602001610e44600954600885901c61ffff16610e3d91906134ff565b6004611a6b565b61ffff166001148152602001610e5f6002600985901c6134dc565b61ffff1660011415158152602001610e8d600954600a85901c61ffff16610e8691906134ff565b6005611a6b565b61ffff1690529392505050565b6000818152600260205260408120546001600160a01b0316806107345760405162461bcd60e51b81526004016108009061354d565b60006001600160a01b038216610ef75760405162461bcd60e51b8152600401610800906135a4565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610f3d5760405162461bcd60e51b815260040161080090613065565b610f476000611b45565b565b6006546001600160a01b03163314610f735760405162461bcd60e51b815260040161080090613065565b600954811115610f955760405162461bcd60e51b8152600401610800906135e8565b600855565b60606001805461074990612dd2565b600b54610100900460ff16610fd05760405162461bcd60e51b815260040161080090613623565b600a54610fdd9082613633565b34101561094e5760405162461bcd60e51b81526004016108009061367e565b611007338383611b97565b5050565b6006546001600160a01b031633146110355760405162461bcd60e51b815260040161080090613065565b6022805460ff19811660ff90911615179055565b6110533383611671565b61106f5760405162461bcd60e51b815260040161080090612f88565b61107b84848484611c3a565b50505050565b6000818152600260205260409020546060906001600160a01b03166110a557600080fd5b6000828152600c6020908152604091829020825161016081018452905461ffff8082168352620100008204811693830193909352640100000000810483169382019390935260ff66010000000000008404811615156060830152670100000000000000840483166080830152690100000000000000000084048116151560a0830152600160501b8404831660c0830152600160601b8404831660e0830152600160701b840481161515610100830152600160781b8404161515610120820152600160801b909204166101408201526111bf61117f84611c6d565b61119061118b8461126b565b611d6b565b61119984610a02565b6040516020016111ab9392919061369c565b604051602081830303815290604052611d6b565b6040516020016111cf91906137d0565b604051602081830303815290604052915050919050565b6006546001600160a01b031633146112105760405162461bcd60e51b815260040161080090613065565b600b805460ff19811660ff90911615179055565b6006546001600160a01b0316331461124e5760405162461bcd60e51b815260040161080090613065565b600b805461ff001981166101009182900460ff1615909102179055565b606061127682611ed1565b61127f836120ad565b6112888461227d565b61129185612316565b61129a866123b1565b6040516020016112ae959493929190613802565b60405160208183030381529060405290508160a00151156112f657806112d38361246a565b6040516020016112e4929190613849565b60405160208183030381529060405290505b81606001518015611311575081610140015161ffff16600214155b156113435780611320836124d5565b604051602001611331929190613849565b60405160208183030381529060405290505b816101000151801561135f575081610140015161ffff16600114155b15611390578061136d612540565b60405160200161137e929190613849565b60405160208183030381529060405290505b80604051602001610c6e9190613861565b6006546001600160a01b031633146113cb5760405162461bcd60e51b815260040161080090613065565b600a55565b6006546001600160a01b031633146113fa5760405162461bcd60e51b815260040161080090613065565b6009546114056108ab565b106114225760405162461bcd60e51b815260040161080090613989565b61142a6108ab565b600955565b60405163c455279160e01b81526000907f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1906001600160a01b03808516919083169063c4552791906114859088906004016128be565b60206040518083038186803b15801561149d57600080fd5b505afa1580156114b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d591906139b8565b6001600160a01b031614156114f157505060225460ff16610734565b6001600160a01b03831660009081526023602052604090205460ff161561151c576001915050610734565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b6006546001600160a01b031633146115785760405162461bcd60e51b815260040161080090613065565b6001600160a01b03166000908152602360205260409020805460ff19811660ff90911615179055565b6006546001600160a01b031633146115cb5760405162461bcd60e51b815260040161080090613065565b6001600160a01b0381166115f15760405162461bcd60e51b815260040161080090613a1c565b61095781611b45565b80546001019055565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061163882610e9a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166116a55760405162461bcd60e51b815260040161080090613a75565b60006116b083610e9a565b9050806001600160a01b0316846001600160a01b031614806116eb5750836001600160a01b03166116e0846107cc565b6001600160a01b0316145b806115465750611546818561142f565b826001600160a01b031661170e82610e9a565b6001600160a01b0316146117345760405162461bcd60e51b815260040161080090613acb565b6001600160a01b03821661175a5760405162461bcd60e51b815260040161080090613b1c565b611765600082611603565b6001600160a01b038316600090815260036020526040812080546001929061178e908490612f23565b90915550506001600160a01b03821660009081526003602052604081208054600192906117bc908490612fdf565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000811161183d5760405162461bcd60e51b815260040161080090613b5e565b600b811061185d5760405162461bcd60e51b815260040161080090613b9a565b600954816118696108ab565b6118739190612fdf565b11156118915760405162461bcd60e51b815260040161080090613bd4565b60005b818110156110075760006118a760075490565b90506118b281610c84565b600c600083815260200190815260200160002060008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160000160026101000a81548161ffff021916908361ffff16021790555060408201518160000160046101000a81548161ffff021916908361ffff16021790555060608201518160000160066101000a81548160ff02191690831515021790555060808201518160000160076101000a81548161ffff021916908361ffff16021790555060a08201518160000160096101000a81548160ff02191690831515021790555060c082015181600001600a6101000a81548161ffff021916908361ffff16021790555060e082015181600001600c6101000a81548161ffff021916908361ffff16021790555061010082015181600001600e6101000a81548160ff02191690831515021790555061012082015181600001600f6101000a81548160ff0219169083151502179055506101408201518160000160106101000a81548161ffff021916908361ffff160217905550905050611a4a3382612565565b611a58600780546001019055565b5080611a6381613be4565b915050611894565b600080805b601c8460ff1660068110611a8657611a86613075565b015460ff82161015611b3f576000601c8560ff1660068110611aaa57611aaa613075565b018260ff1681548110611abf57611abf613075565b90600052602060002090601091828204019190066002029054906101000a900461ffff1690508261ffff168661ffff1610158015611b0d5750611b028184613bf8565b61ffff168661ffff16105b15611b1f575060ff1691506107349050565b611b298184613bf8565b9250508080611b3790613c1c565b915050611a70565b50600080fd5b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611bc95760405162461bcd60e51b815260040161080090613c69565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611c2d9085906127ee565b60405180910390a3505050565b611c458484846116fb565b611c518484848461257f565b61107b5760405162461bcd60e51b815260040161080090613cc8565b606081611c915750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611cbb5780611ca581613be4565b9150611cb49050600a83613cd8565b9150611c95565b60008167ffffffffffffffff811115611cd657611cd6612981565b6040519080825280601f01601f191660200182016040528015611d00576020820181803683370190505b5090505b841561154657611d15600183612f23565b9150611d22600a866134ff565b611d2d906030612fdf565b60f81b818381518110611d4257611d42613075565b60200101906001600160f81b031916908160001a905350611d64600a86613cd8565b9450611d04565b805160609080611d8b575050604080516020810190915260008152919050565b60006003611d9a836002612fdf565b611da49190613cd8565b611daf906004613633565b90506000611dbe826020612fdf565b67ffffffffffffffff811115611dd657611dd6612981565b6040519080825280601f01601f191660200182016040528015611e00576020820181803683370190505b5090506000604051806060016040528060408152602001614635604091399050600181016020830160005b86811015611e8c576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101611e2b565b506003860660018114611ea65760028114611eb757611ec3565b613d3d60f01b600119830152611ec3565b603d60f81b6000198301525b505050918152949350505050565b6060600d826000015161ffff1681548110611eee57611eee613075565b9060005260206000209060020201600001601983610140015161ffff1681548110611f1b57611f1b613075565b9060005260206000209060060201600101601984610140015161ffff1681548110611f4857611f48613075565b9060005260206000209060060201600101601985610140015161ffff1681548110611f7557611f75613075565b9060005260206000209060060201600101601986610140015161ffff1681548110611fa257611fa2613075565b9060005260206000209060060201600101601987610140015161ffff1681548110611fcf57611fcf613075565b9060005260206000209060060201600101601988610140015161ffff1681548110611ffc57611ffc613075565b9060005260206000209060060201600101601989610140015161ffff168154811061202957612029613075565b906000526020600020906006020160020160198a610140015161ffff168154811061205657612056613075565b906000526020600020906006020160020160198b610140015161ffff168154811061208357612083613075565b9060005260206000209060060201600201604051602001610c6e9a99989796959493929190613f5d565b6060600f826020015161ffff16815481106120ca576120ca613075565b9060005260206000209060020201600001600f836020015161ffff16815481106120f6576120f6613075565b9060005260206000209060020201600001600f846020015161ffff168154811061212257612122613075565b906000526020600020906002020160000160405160200161214593929190614190565b6040516020818303038152906040529050816040015161ffff166000146122785760005b6011836040015161ffff166008811061218457612184613075565b015460ff821610156122765781600f846020015161ffff16815481106121ac576121ac613075565b90600052602060002090600202016000016011856040015161ffff16600881106121d8576121d8613075565b018360ff16815481106121ed576121ed613075565b90600052602060002090600202016000016011866040015161ffff166008811061221957612219613075565b018460ff168154811061222e5761222e613075565b90600052602060002090600202016001016040516020016122529493929190614223565b6040516020818303038152906040529150808061226e90613c1c565b915050612169565b505b919050565b6060601982610140015161ffff168154811061229b5761229b613075565b906000526020600020906006020160030160108360e0015161ffff16815481106122c7576122c7613075565b906000526020600020906002020160000160108460e0015161ffff16815481106122f3576122f3613075565b9060005260206000209060020201600101604051602001610c6e93929190614292565b6060601982610140015161ffff168154811061233457612334613075565b9060005260206000209060060201600201601983610140015161ffff168154811061236157612361613075565b9060005260206000209060060201600401601984610140015161ffff168154811061238e5761238e613075565b9060005260206000209060060201600501604051602001610c6e93929190614319565b606060008261012001516123df57604051806040016040528060028152602001610c4d60f21b8152506123fb565b60405180604001604052806002815260200161189960f11b8152505b9050601983610140015161ffff168154811061241957612419613075565b9060005260206000209060060201600101601984610140015161ffff168154811061244657612446613075565b9060005260206000209060060201600101826040516020016111cf9392919061439e565b6060600e8260c0015161ffff168154811061248757612487613075565b9060005260206000209060020201600001600e8360c0015161ffff16815481106124b3576124b3613075565b9060005260206000209060020201600001604051602001610c6e929190614436565b6060600e826080015161ffff16815481106124f2576124f2613075565b9060005260206000209060020201600001600e836080015161ffff168154811061251e5761251e613075565b9060005260206000209060020201600001604051602001610c6e9291906144b4565b60606040516020016125519061453d565b604051602081830303815290604052905090565b61100782826040518060200160405280600081525061268c565b60006001600160a01b0384163b1561268157604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906125c3903390899088908890600401614548565b602060405180830381600087803b1580156125dd57600080fd5b505af192505050801561260d575060408051601f3d908101601f1916820190925261260a9181019061458d565b60015b612667573d80801561263b576040519150601f19603f3d011682016040523d82523d6000602084013e612640565b606091505b50805161265f5760405162461bcd60e51b815260040161080090613cc8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611546565b506001949350505050565b61269683836126bf565b6126a3600084848461257f565b6108a65760405162461bcd60e51b815260040161080090613cc8565b6001600160a01b0382166126e55760405162461bcd60e51b8152600401610800906145e0565b6000818152600260205260409020546001600160a01b03161561271a5760405162461bcd60e51b815260040161080090614624565b6001600160a01b0382166000908152600360205260408120805460019290612743908490612fdf565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b031981165b811461095757600080fd5b8035610734816127a1565b6000602082840312156127d8576127d8600080fd5b600061154684846127b8565b8015155b82525050565b6020810161073482846127e4565b60005b838110156128175781810151838201526020016127ff565b8381111561107b5750506000910152565b6000612832825190565b8084526020840193506128498185602086016127fc565b601f01601f19169290920192915050565b6020808252810161286b8184612828565b9392505050565b806127ad565b803561073481612872565b60006020828403121561289857612898600080fd5b60006115468484612878565b60006001600160a01b038216610734565b6127e8816128a4565b6020810161073482846128b5565b6127ad816128a4565b8035610734816128cc565b600080604083850312156128f6576128f6600080fd5b600061290285856128d5565b925050602061291385828601612878565b9150509250929050565b806127e8565b60208101610734828461291d565b60008060006060848603121561294957612949600080fd5b600061295586866128d5565b9350506020612966868287016128d5565b925050604061297786828701612878565b9150509250925092565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff821117156129bd576129bd612981565b6040525050565b60006129cf60405190565b90506122788282612997565b61ffff81166127ad565b8035610734816129db565b8015156127ad565b8035610734816129f0565b60006101608284031215612a1957612a19600080fd5b612a246101606129c4565b90506000612a3284846129e5565b8252506020612a43848483016129e5565b6020830152506040612a57848285016129e5565b6040830152506060612a6b848285016129f8565b6060830152506080612a7f848285016129e5565b60808301525060a0612a93848285016129f8565b60a08301525060c0612aa7848285016129e5565b60c08301525060e0612abb848285016129e5565b60e083015250610100612ad0848285016129f8565b61010083015250610120612ae6848285016129f8565b61012083015250610140612afc848285016129e5565b6101408301525092915050565b60006101608284031215612b1f57612b1f600080fd5b60006115468484612a03565b61ffff81166127e8565b8051610160830190612b478482612b2b565b506020820151612b5a6020850182612b2b565b506040820151612b6d6040850182612b2b565b506060820151612b8060608501826127e4565b506080820151612b936080850182612b2b565b5060a0820151612ba660a08501826127e4565b5060c0820151612bb960c0850182612b2b565b5060e0820151612bcc60e0850182612b2b565b50610100820151612be16101008501826127e4565b50610120820151612bf66101208501826127e4565b5061014082015161107b610140850182612b2b565b61016081016107348284612b35565b600060208284031215612c2f57612c2f600080fd5b600061154684846128d5565b60008060408385031215612c5157612c51600080fd5b6000612c5d85856128d5565b9250506020612913858286016129f8565b600067ffffffffffffffff821115612c8857612c88612981565b601f19601f83011660200192915050565b82818337506000910152565b6000612cb8612cb384612c6e565b6129c4565b905082815260208101848484011115612cd357612cd3600080fd5b612cde848285612c99565b509392505050565b600082601f830112612cfa57612cfa600080fd5b8135611546848260208601612ca5565b60008060008060808587031215612d2357612d23600080fd5b6000612d2f87876128d5565b9450506020612d40878288016128d5565b9350506040612d5187828801612878565b925050606085013567ffffffffffffffff811115612d7157612d71600080fd5b612d7d87828801612ce6565b91505092959194509250565b60008060408385031215612d9f57612d9f600080fd5b6000612dab85856128d5565b9250506020612913858286016128d5565b634e487b7160e01b600052602260045260246000fd5b600281046001821680612de657607f821691505b6020821081141561227657612276612dbc565b602c81526000602082017f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015291505b5060400190565b6020808252810161073481612df9565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b60208201529150612e3e565b6020808252810161073481612e55565b603881526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060208201529150612e3e565b6020808252810161073481612ea3565b634e487b7160e01b600052601160045260246000fd5b600082821015612f3557612f35612f0d565b500390565b603181526000602082017f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b60208201529150612e3e565b6020808252810161073481612f3a565b601881526000602082017f436c61696d696e67206e6f7420616374697665207965742e0000000000000000815291505b5060200190565b6020808252810161073481612f98565b60008219821115612ff257612ff2612f0d565b500190565b601581526000602082017422bc31b2b2b2399031b630b4b69039bab838363c9760591b81529150612fc8565b6020808252810161073481612ff7565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000612fc8565b6020808252810161073481613033565b634e487b7160e01b600052603260045260246000fd5b6000613095825190565b6130a38185602086016127fc565b9290920192915050565b7f7b2274726169745f74797065223a224261636b67726f756e64222c202276616c8152643ab2911d1160d91b602082015260005b5060250190565b600081546130f581612dd2565b60018216801561310c576001811461311d5761314d565b60ff1983168652818601935061314d565b60008581526020902060005b8381101561314557815488820152600190910190602001613129565b838801955050505b50505092915050565b7f7b2274726169745f74797065223a2254797065222c202276616c7565223a2200815260005b50601f0190565b7f7b2274726169745f74797065223a2257696e6773222c202276616c7565223a2281526000612fc8565b7f7b2274726169745f74797065223a2257696e6720436f6c6f72222c202276616c8152643ab2911d1160d91b602082015260006130e1565b7f7b2274726169745f74797065223a2245796573222c202276616c7565223a22008152600061317c565b600061321b828961308b565b9150613226826130ad565b915061323282886130e8565b62089f4b60ea1b8152600301915061324982613156565b915061325582876130e8565b62089f4b60ea1b8152600301915061326c82613183565b915061327882866130e8565b62089f4b60ea1b8152600301915061328f826131ad565b915061329b82856130e8565b62089f4b60ea1b815260030191506132b2826131e5565b91506132be82846130e8565b61227d60f01b815260020198975050505050505050565b60006132e1828561308b565b7f2c7b2274726169745f74797065223a22426f6f7473222c202276616c7565223a8152601160f91b60208201529150602182015b915061332182846130e8565b61227d60f01b8152915060028201611546565b6000613340828561308b565b7f2c7b2274726169745f74797065223a2242616e64616e61222c202276616c7565815262111d1160e91b6020820152915060238201613315565b6000613386828461308b565b7f2c7b2274726169745f74797065223a22546f6e677565222c202276616c7565228152673a2254727565227d60c01b602082015291506028820161286b565b60006133d1828461308b565b7f2c7b2274726169745f74797065223a225461696c222c202276616c7565223a228152635570227d60e01b602082015291506024820161286b565b7f2c7b2274726169745f74797065223a225461696c222c202276616c7565223a22815265446f776e227d60d01b602082015260005b5060260190565b6000613454828461308b565b915061286b8261340c565b605b60f81b815260005b5060010190565b605d60f81b81526000613469565b60006134898261345f565b9150613495828461308b565b915061286b82613470565b60006134ac828561291d565b6020820191506134bc828461291d565b5060200192915050565b634e487b7160e01b600052601260045260246000fd5b600061ffff8216915061ffff83165b9250826134fa576134fa6134c6565b500690565b6000826134eb565b602981526000602082017f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b60208201529150612e3e565b6020808252810161073481613507565b602a81526000602082017f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b60208201529150612e3e565b602080825281016107348161355d565b601a81526000602082017f576f756c6420696e637265617365206d617820737570706c792e00000000000081529150612fc8565b60208082528101610734816135b4565b601481526000602082017326b4b73a103737ba1030b1ba34bb32903cb2ba1760611b81529150612fc8565b60208082528101610734816135f8565b600081600019048311821515161561364d5761364d612f0d565b500290565b60158152600060208201742bb937b7339022aa24103b30b63ab29039b2b73a1760591b81529150612fc8565b6020808252810161073481613652565b607d60f81b81526000613469565b7f7b226e616d65223a202254696e792057696e67656420547572746c65202300008152601e0160006136ce828661308b565b7f222c20226465736372697074696f6e223a202254696e792057696e676564205481527f7572746c657a20617265206120636f6c6c656374696f6e206f662066756c6c7960208201527f206f6e2d636861696e2c2072616e646f6d6c792067656e6572617465642c207360408201527f6d616c6c20747572746c657320776974682077696e67732e222c2022696d616760608201527f65223a2022646174613a696d6167652f7376672b786d6c3b6261736536342c006080820152609f019150613798828561308b565b6e11161130ba3a3934b13aba32b9911d60891b8152600f0191506137bc828461308b565b91506137c78261368e565b95945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152601d01600061286b828461308b565b600061380e828861308b565b915061381a828761308b565b9150613826828661308b565b9150613832828561308b565b915061383e828461308b565b979650505050505050565b6000613855828561308b565b9150611546828461308b565b7f3c7376672069643d2774696e792d77696e6765642d747572746c652720786d6c81527f6e733d27687474703a2f2f7777772e77332e6f72672f323030302f737667272060208201527f7072657365727665417370656374526174696f3d27784d696e594d696e206d6560408201527f6574272076696577426f783d27302030203234203234273e000000000000000060608201526078016000613905828461308b565b7f3c7374796c653e2374696e792d77696e6765642d747572746c657b736861706581527f2d72656e646572696e673a637269737065646765733b7d3c2f7374796c653e3c60208201526417b9bb339f60d91b604082015291506045820161286b565b600b81526000602082016a20b6361036b4b73a32b21760a91b81529150612fc8565b6020808252810161073481613967565b6000610734826128a4565b6127ad81613999565b8051610734816139a4565b6000602082840312156139cd576139cd600080fd5b600061154684846139ad565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b60208201529150612e3e565b60208082528101610734816139d9565b602c81526000602082017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b60208201529150612e3e565b6020808252810161073481613a2c565b602981526000602082017f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981526839903737ba1037bbb760b91b60208201529150612e3e565b6020808252810161073481613a85565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b60208201529150612e3e565b6020808252810161073481613adb565b60208082527f5175616e74697479206d7573742062652067726561746572207468616e20302e91019081526000612fc8565b6020808252810161073481613b2c565b601581526000602082017422bc31b2b2b2399036b0bc103832b91036b4b73a1760591b81529150612fc8565b6020808252810161073481613b6e565b601381526000602082017222bc31b2b2b2399036b0bc1039bab838363c9760691b81529150612fc8565b6020808252810161073481613baa565b600060001982141561346957613469612f0d565b600061ffff8216915061ffff831692508261ffff03821115612ff257612ff2612f0d565b600060ff8216915060ff82141561346957613469612f0d565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529150612fc8565b6020808252810161073481613c35565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60208201529150612e3e565b6020808252810161073481613c79565b600082613ce757613ce76134c6565b500490565b6b3c726563742066696c6c3d2760a01b8152600c0190565b7f27206865696768743d2731272077696474683d27332720783d2731352720793d815265139c9390179f60d11b60208201526000613441565b7f27206865696768743d2733272077696474683d27342720783d2731352720793d8152661398981390179f60c91b602082015260005b5060270190565b7f27206865696768743d2731272077696474683d27332720783d2731352720793d8152661398999390179f60c91b60208201526000613d73565b7f27206865696768743d2731272077696474683d27382720783d27372720793d27815265189a1390179f60d11b60208201526000613441565b7f27206865696768743d2731272077696474683d27322720783d27372720793d27815265189a9390179f60d11b60208201526000613441565b7f27206865696768743d2731272077696474683d27322720783d2731332720793d81526613989a9390179f60c91b60208201526000613d73565b7f27206865696768743d2731272077696474683d27342720783d27392720793d278152641c9390179f60d91b602082015260006130e1565b7f27206865696768743d2731272077696474683d27362720783d27382720793d2781526518981390179f60d11b60208201526000613441565b7f27206865696768743d2733272077696474683d27382720783d27372720793d2781526518989390179f60d11b60208201526000613441565b7f3c726563742066696c6c3d272366666666666627206865696768743d2732272081527f77696474683d27322720783d2731362720793d27313027202f3e000000000000602082015260005b50603a0190565b6000613f6882613cec565b9150613f74828d6130e8565b7f27206865696768743d273234272077696474683d27323427202f3e00000000008152601b019150613fa582613cec565b9150613fb1828c6130e8565b9150613fbc82613d04565b9150613fc782613cec565b9150613fd3828b6130e8565b9150613fde82613d3d565b9150613fe982613cec565b9150613ff5828a6130e8565b915061400082613d7a565b915061400b82613cec565b915061401782896130e8565b915061402282613db4565b915061402d82613cec565b915061403982886130e8565b915061404482613ded565b915061404f82613cec565b915061405b82876130e8565b915061406682613e26565b915061407182613cec565b915061407d82866130e8565b915061408882613e60565b915061409382613cec565b915061409f82856130e8565b91506140aa82613e98565b91506140b582613cec565b91506140c182846130e8565b91506140cc82613ed1565b91506140d782613f0a565b9c9b505050505050505050505050565b7f27206865696768743d2731272077696474683d27362720783d27352720793d278152641c1390179f60d91b602082015260006130e1565b7f27206865696768743d2731272077696474683d27342720783d27372720793d278152641c9390179f60d91b602082015260006130e1565b7f27206865696768743d2731272077696474683d27322720783d27392720793d2781526518981390179f60d11b60208201526000613441565b600061419b82613cec565b91506141a782866130e8565b91506141b2826140e7565b91506141bd82613cec565b91506141c982856130e8565b91506141d48261411f565b91506141df82613cec565b91506141eb82846130e8565b91506137c782614157565b7f27206865696768743d2731272077696474683d27312720783d27000000000000815260005b50601a0190565b600061422f828761308b565b915061423a82613cec565b915061424682866130e8565b9150614251826141f6565b915061425d82856130e8565b642720793d2760d81b8152600501915061427782846130e8565b631390179f60e11b81529150600482015b9695505050505050565b600061429d82613cec565b91506142a982866130e8565b91506142b4826141f6565b91506142c082856130e8565b642720793d2760d81b815260050191506142da82846130e8565b631390179f60e11b81529150600482016137c7565b7f27206865696768743d2732272077696474683d27312720783d270000000000008152600061421c565b600061432482613cec565b915061433082866130e8565b91506142b4826142ef565b7f27206865696768743d2731272077696474683d27312720783d27362720793d2781526518999390179f60d11b60208201526000613441565b7f27206865696768743d2731272077696474683d27312720783d27352720793d2781526000612fc8565b60006143a982613cec565b91506143b582866130e8565b91506143c08261433b565b91506143cb82613cec565b91506143d782856130e8565b91506143e282614374565b91506142da828461308b565b7f27206865696768743d2731272077696474683d27322720783d27372720793d27815271313527202f3e3c726563742066696c6c3d2760701b602082015260005b5060320190565b600061444182613cec565b915061444d82856130e8565b9150614458826143ee565b915061446482846130e8565b915061154682613e26565b7f27206865696768743d2731272077696474683d27312720783d2731342720793d815271273827202f3e3c726563742066696c6c3d2760701b6020820152600061442f565b60006144bf82613cec565b91506144cb82856130e8565b91506144d68261446f565b91506144e282846130e8565b915061154682613d04565b7f3c726563742066696c6c3d272365643230323427206865696768743d2731272081527f77696474683d27312720783d2731382720793d27313327202f3e00000000000060208201526000613f56565b6000610734826144ed565b6080810161455682876128b5565b61456360208301866128b5565b614570604083018561291d565b81810360608301526142888184612828565b8051610734816127a1565b6000602082840312156145a2576145a2600080fd5b60006115468484614582565b60208082527f4552433732313a206d696e7420746f20746865207a65726f206164647265737391019081526000612fc8565b60208082528101610734816145ae565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081529150612fc8565b60208082528101610734816145f056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212202174d33816a589e000e10cdaa571b6a50d6b338d9317377b1d1deb6adadec21c64736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
-----Decoded View---------------
Arg [0] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.