Polygon Sponsored slots available. Book your slot here!
ERC-721
Overview
Max Total Supply
1,715 LUCHADORES
Holders
136
Total Transfers
-
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
Luchadores
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "./lib/IFxERC721.sol"; import "./lib/Base64.sol"; interface ILuchaNames { function getName(address originContract, uint256 id) external view returns (string memory); } contract Luchadores is ERC721Enumerable, IFxERC721, AccessControl { using Strings for uint256; ILuchaNames public luchaNames; address internal _connectedToken; struct Item { bytes12 name; string svg; } struct Art { string[] baseColor; string[] altColor; string[] eyeColor; string[] skinColor; mapping(uint256 => Item) spirit; mapping(uint256 => Item) cape; mapping(uint256 => Item) torso; mapping(uint256 => Item) arms; mapping(uint256 => Item) mask; mapping(uint256 => Item) mouth; mapping(uint256 => Item) bottoms; mapping(uint256 => Item) boots; } Art art; mapping(uint256 => uint256) luchadorDNAs; bool customNamesEnabled; bool dnaLocked; bytes32 public constant RESCUER_ROLE = keccak256("RESCUER_ROLE"); bytes32 public constant NAME_MANAGER_ROLE = keccak256("NAME_MANAGER_ROLE"); bytes32 public constant FX_MANAGER_ROLE = keccak256("FX_MANAGER_ROLE"); constructor(address connectedToken_, address _luchaNames) ERC721("Luchadores", "LUCHADORES") { _connectedToken = connectedToken_; luchaNames = ILuchaNames(_luchaNames); _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); _setupRole(NAME_MANAGER_ROLE, msg.sender); _setupRole(RESCUER_ROLE, msg.sender); art.baseColor = ["ebebf7", "1c1d2f", "cc0d3d", "d22f94", "890ec1", "1c49d8", "19b554", "13cac6", "f7c23c", "f18e2f"]; art.altColor = ["dadae6", "13141f", "ea184d", "e0369f", "9511d2", "2854e6", "1da951", "11b9b5", "e8b63a", "e28327"]; art.eyeColor = ["3b6ba5", "3b8fa5", "3ba599", "3ba577", "339842", "7fa53b", "a5823b", "a5693b", "844f1d", "4e2906"]; art.skinColor = ["f9d1b7", "f7b897", "f39c77", "ffcb84", "bd7e47", "b97e4b", "b97a50", "5a3214", "50270e", "3a1b09"]; art.spirit[0] = Item("Bull", "<path fill='#A9A18A' d='M21 2V1h-1V0h-1v2h1v1h-3v2h2v1h2V5h1V2zM5 3H4V2h1V0H4v1H3v1H2v3h1v1h2V5h2V3H6z'/><g fill='#000' opacity='.15'><path d='M21 4h1v1h-1zM19 5h-1v1h3V5h-1z'/><path d='M2 4h1v1H2zM4 5H3v1h3V5H5z'/></g>"); art.spirit[1] = Item("Jaguar", "<path class='lucha-base' d='M6 2V1H5v5h1V5h1V3h1V2H7zM18 1v1h-2v1h1v2h1v1h1V1z'/><g fill='#000'><path d='M5 1h1v1H5zM6 2v1h2V2H7zM18 1h1v1h-1zM16 2v1h2V2h-1z' opacity='.3'/><path d='M6 3V2H5v4h1V5h1V3zM18 2v1h-1v2h1v1h1V2z' opacity='.2'/></g>"); art.cape[0] = Item("Classic", "<path class='lucha-alt' d='M20 11H3v12h1v-1h2v-1h12v1h2v1h1V11z'/><g fill='#000'><path opacity='.2' d='M20 11v12h1V11zM3 12v11h1V11H3z'/><path opacity='.5' d='M19 11H4v11h2v-1h12v1h2V11z'/></g>"); art.cape[1] = Item("Hooded", "<path class='lucha-alt' d='M20 11H3v12h1v-1h2v-1h12v1h2v1h1V11z'/><g fill='#000'><path opacity='.2' d='M20 11v12h1V11zM3 12v11h1V11H3z'/><path opacity='.5' d='M19 11H4v11h2v-1h12v1h2V11z'/></g>"); art.torso[0] = Item("Shirt", "<path class='lucha-base' d='M22 12v-1h-1v-1h-1V9H4v1H3v1H2v1H1v5h4v-3h1v1h1v1h1v2h8v-2h1v-1h1v-1h1v3h4v-5z'/><path d='M22 12v-1h-1v-1h-1V9H4v1H3v1H2v1H1v5h4v-3h1v1h1v1h1v2h8v-2h1v-1h1v-1h1v3h4v-5z' fill='#000' opacity='.15'/>"); art.torso[1] = Item("Open Shirt", "<path class='lucha-base' d='M10 9H4v1H3v1H2v1H1v3h4v-1h1v1h1v1h1v2h3V9zM22 12v-1h-1v-1h-1V9h-7v9h3v-2h1v-1h1v-1h1v1h4v-3z'/><path d='M10 9H4v1H3v1H2v1H1v3h4v-1h1v1h1v1h1v2h3V9zM22 12v-1h-1v-1h-1V9h-7v9h3v-2h1v-1h1v-1h1v1h4v-3z' fill='#000' opacity='.15'/>"); art.torso[2] = Item("Singlet", "<path class='lucha-base' d='M16 9H7v3h1-1v4h1v1h8v-1h1v-4h-1 1V9z'/><path fill='#000' opacity='.15' d='M16 9H7v7h1v1h8v-1h1V9z'/>"); art.torso[3] = Item("Suspenders", "<path class='lucha-base' d='M15 9v9h1V9zM8 10v8h1V9H8z'/><path d='M8 10v8h1V9H8zM15 9v9h1V9z' fill='#000' opacity='.15'/>"); art.arms[0] = Item("Gloves", "<path class='lucha-base' d='M5 16H1v3h4v-1h1v-1H5zM22 16h-3v1h-1v1h1v1h4v-3z'/><path class='lucha-alt' d='M3 16H1v1h4v-1H4zM22 16h-3v1h4v-1z'/>"); art.arms[1] = Item("Wrist Bands", "<path class='lucha-base' d='M3 15H1v2h4v-2H4zM22 15h-3v2h4v-2z'/>"); art.arms[2] = Item("Right Band", "<path class='lucha-alt' d='M4 14H1v1h4v-1z'/>"); art.arms[3] = Item("Left Band", "<path class='lucha-base' d='M22 14h-3v1h4v-1z'/>"); art.arms[4] = Item("Arm Bands", "<path class='lucha-base' d='M4 14H1v1h4v-1zM22 14h-3v1h4v-1z'/>"); art.arms[5] = Item("Sleeves", "<path class='lucha-base' d='M22 14h-3v3h4v-3zM3 14H1v3h4v-3H4z'/><path class='lucha-alt' d='M22 14h-3v1h4v-1zM3 14H1v1h4v-1H4z'/>"); art.mask[0] = Item("Split", "<path d='M11 0H9v1H8v1H7v1H6v2H5v5h1v2h1v1h1v1h1v1h3V0z'/>"); art.mask[1] = Item("Cross", "<path d='M14 2h-1V0h-2v2H9v2h2v4h2V4h2V2zM12 13h-1v2h2v-2z'/>"); art.mask[2] = Item("Fierce", "<path d='M17 3v1h-2v1h-1v1h-1v3h5V3zM11 8V6h-1V5H9V4H7V3H6v6h5zM11 13v2h2v-2h-1z'/>"); art.mask[3] = Item("Striped", "<path d='M11 2h2V1h1V0h-4v1h1zM6 10v2h1v-1h1v-1H7zM17 10h-1v1h1v1h1v-2z'/><path d='M16 3h1V2h-1V1h-1v1h-1v1h-1v1h-2V3h-1V2H9V1H8v1H7v1h1v1h1v1h1v1h1v9h2V6h1V5h1V4h1z'/>"); art.mask[4] = Item("Bolt", "<path d='M13 3h-3V2h1V1h1V0H9v1H8v1H7v1H6v2h3v1H8v2H7v2h1V9h1V8h1V7h1V6h1V5h1V4h1V3z'/>"); art.mask[5] = Item("Winged", "<path d='M18 5V3h-1V2h-1v1h-1v1h-1v1h-1v1h-2V5h-1V4H9V3H8V2H7v1H6v2H5v5h1v2h1v-1h1v-1h3V9h2v1h3v1h1v1h1v-2h1V5z'/>"); art.mask[6] = Item("Classic", "<path d='M18 5V3h-1V2h-1v2h-1v1h-1v1h-1v3h-2V6h-1V5H9V4H8V2H7v1H6v2H5v4h1v1h2v3h1v1h6v-1h1v-3h2V9h1V5z'/>"); art.mask[7] = Item("Arrow", "<path d='M18 5V3h-1V2h-1V1h-1V0H9v1H8v1H7v1H6v2H5v5h1v2h1v1h1v1h1v1h1v-4h1V5H9V3h1V2h1V1h2v1h1v1h1v2h-2v6h1v4h1v-1h1v-1h1v-1h1v-2h1V5z'/>"); art.mask[8] = Item("Dash", "<path d='M13 3V2h-2v2h2zM13 1V0h-2v1h1zM10 4H9V1H8v1H7v1H6v2H5v5h1v2h1v1h1v1h1v1h1v-2H9v-3h2V5h-1zM18 5V3h-1V2h-1V1h-1v3h-1v1h-1v5h2v3h-1v2h1v-1h1v-1h1v-1h1v-2h1V5z'/>"); art.mouth[0] = Item("Moustache", "<path fill='#421c03' opacity='.9' d='M14 10H9v3h1v-2h4v2h1v-3z'/>"); art.bottoms[0] = Item("Tights", "<path class='lucha-alt' d='M15 17H8v6h3v-3h2v3h3v-6z'/>"); art.bottoms[1] = Item("Trunk Tights", "<path class='lucha-base' d='M15 17H8v3h8v-3z'/><path class='lucha-alt' d='M15 18v1h-2v4h3v-5zM9 19v-1H8v5h3v-4h-1z'/>"); art.boots[0] = Item("Two Tone", "<path class='lucha-alt' d='M9 22H8v1H7v1h4v-2h-1zM16 23v-1h-3v2h4v-1z'/>"); art.boots[1] = Item("High", "<path class='lucha-alt' d='M9 20H8v1h3v-1h-1zM15 20h-2v1h3v-1z'/>"); } // connectedToken returns root token function connectedToken() public view override returns (address) { return _connectedToken; } function imageData(uint256 _tokenId) public view returns (string memory) { require(_tokenId > 0 && _tokenId <= 10000, "imageData: Nonexistent token"); uint8[12] memory dna = splitNumber(luchadorDNAs[_tokenId]); string memory capeShoulders = (dna[1] == 0 || dna[1] == 1)? "<path class='lucha-alt' d='M20 10V9h-2v1h-1v1h4v-1zM5 9H4v1H3v1h4v-1H6V9z'/><path fill='#000' opacity='.2' d='M6 9H4v1H3v1h4v-1H6zM20 10V9h-2v1h-1v1h4v-1z'/>" : ""; string memory capeHood = dna[1] == 1 ? "<path class='lucha-alt' d='M18 4V3h-1V2h-1V1h-1V0H9v1H8v1H7v1H6v2H5v5h1V6h1V5h2V4h1V3h4v1h1v1h2v1h1v4h1V5h-1z'/><g fill='#000'><path d='M18 4V3h-1V2h-1V1h-1V0H9v1H8v1H7v1H6v2H5v5h1V5h1V4h1V3h1V2h6v1h1v1h1v1h1v5h1V5h-1z' opacity='.2'/><path d='M16 4V3h-1V2H9v1H8v1H7v1h2V4h1V3h4v1h1v1h2V4zM6 5h1v1H6zM17 5h1v1h-1z' opacity='.5'/></g>" : ""; return string(abi.encodePacked( "<svg id='luchador", _tokenId.toString(), "' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>", styles(_tokenId, dna), "<g class='lucha-breathe'>", art.spirit[dna[0]].svg, art.cape[dna[1]].svg, "<path class='lucha-skin' d='M22 12v-1h-1v-1h-1V9h-1V5h-1V3h-1V2h-1V1h-1V0H9v1H8v1H7v1H6v2H5v4H4v1H3v1H2v1H1v8h4v-1h1v-2H5v-3h1v1h1v1h1v2h8v-2h1v-1h1v-1h1v3h-1v2h1v1h4v-8z'/>", art.torso[dna[2]].svg, art.arms[dna[3]].svg, capeShoulders, "<path class='lucha-base' d='M18 5V3h-1V2h-1V1h-1V0H9v1H8v1H7v1H6v2H5v5h1v2h1v1h1v1h1v1h6v-1h1v-1h1v-1h1v-2h1V5z'/>", "<g class='lucha-alt'>", art.mask[dna[4]].svg, "</g>", capeHood, "<path fill='#FFF' d='M9 6H6v3h4V6zM17 6h-3v3h4V6z'/><path class='lucha-eyes' d='M16 6h-2v3h3V6zM8 6H7v3h3V6H9z'/><path fill='#FFF' d='M7 6h1v1H7zM16 6h1v1h-1z' opacity='.4'/><path fill='#000' d='M15 7h1v1h-1zM8 7h1v1H8z'/>", "<path class='lucha-skin' d='M14 10H9v3h6v-3z'/>", "<path fill='#000' opacity='.9' d='M13 11h-3v1h4v-1z'/>", art.mouth[dna[5]].svg, "</g>", "<path class='lucha-skin' d='M16 23v-6H8v6H7v1h4v-4h2v4h4v-1z'/>", "<path class='lucha-base' d='M15 17H8v1h1v1h2v1h2v-1h2v-1h1v-1z'/>", art.bottoms[dna[6]].svg, "<path class='lucha-base' d='M9 21H8v2H7v1h4v-3h-1zM16 23v-2h-3v3h4v-1z'/>", art.boots[dna[7]].svg, "</svg>" )); } function styles(uint256 _tokenId, uint8[12] memory _dna) internal view returns (string memory) { return string(abi.encodePacked( "<style>#luchador", _tokenId.toString(), " .lucha-base { fill: #", art.baseColor[_dna[8]], "; } #luchador", _tokenId.toString(), " .lucha-alt { fill: #", art.altColor[_dna[9]], "; } #luchador", _tokenId.toString(), " .lucha-eyes { fill: #", art.eyeColor[_dna[10]], "; } #luchador", _tokenId.toString(), " .lucha-skin { fill: #", art.skinColor[_dna[11]], "; } #luchador", _tokenId.toString(), " .lucha-breathe { animation: 0.5s lucha-breathe infinite alternate ease-in-out; } @keyframes lucha-breathe { from { transform: translateY(0px); } to { transform: translateY(1%); } }</style>" )); } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require(_tokenId > 0 && _tokenId <= 10000, "tokenURI: Nonexistent token"); uint8[12] memory dna = splitNumber(luchadorDNAs[_tokenId]); Item[8] memory artItems = [ art.spirit[dna[0]], art.cape[dna[1]], art.torso[dna[2]], art.arms[dna[3]], art.mask[dna[4]], art.mouth[dna[5]], art.bottoms[dna[6]], art.boots[dna[7]] ]; string memory attributes; string[8] memory traitType = ["Spirit", "Cape", "Torso", "Arms", "Mask", "Mouth", "Bottoms", "Boots"]; for (uint256 i = 0; i < artItems.length; i++) { if (artItems[i].name == "") continue; attributes = string(abi.encodePacked(attributes, bytes(attributes).length == 0 ? '{' : ', {', '"trait_type": "', traitType[i],'",', '"value": "', bytes12ToString(artItems[i].name), '"', '}' )); } string memory customName = customNamesEnabled ? luchaNames.getName(_connectedToken, _tokenId) : ''; string memory name = bytes(customName).length > 0 ? customName : string(abi.encodePacked('Luchador #', _tokenId.toString())); return string(abi.encodePacked( "data:application/json;base64,", Base64.encode( bytes( string(abi.encodePacked( '{', '"name": "', name, '",', '"description": "Luchadores are randomly generated using Chainlink VRF and have 100% on-chain art and metadata - Only 10000 will ever exist!",', '"image_data": "', imageData(_tokenId), '",', '"external_url": "https://luchadores.io/luchador/', _tokenId.toString(), '",', '"attributes": [', attributes, ']', '}' )) ) ) )); } function splitNumber(uint256 _number) internal pure returns (uint8[12] memory) { uint8[12] memory numbers; for (uint256 i = 0; i < numbers.length; i++) { numbers[i] = uint8(_number % 10); _number /= 10; } return numbers; } function bytes12ToString(bytes12 _bytes12) internal pure returns (string memory) { uint8 i = 0; while(i < 12 && _bytes12[i] != 0) { i++; } bytes memory bytesArray = new bytes(i); for (i = 0; i < 12 && _bytes12[i] != 0; i++) { bytesArray[i] = _bytes12[i]; } return string(bytesArray); } function setDNA(uint256[] calldata ids, uint256[] calldata dnas) external onlyRole(DEFAULT_ADMIN_ROLE) { require(!dnaLocked, "setDNA: locked"); require(ids.length == dnas.length, "Array lengths do not match"); for (uint256 i = 0; i < ids.length; i++) { luchadorDNAs[ids[i]] = dnas[i]; } } function setCustomNamesEnabled(bool val) external onlyRole(NAME_MANAGER_ROLE) { customNamesEnabled = val; } function lockDNA() external onlyRole(DEFAULT_ADMIN_ROLE) { dnaLocked = true; } function deposit(address to, uint256[] calldata tokenIds) external override onlyRole(FX_MANAGER_ROLE) { // deposit batch if (tokenIds.length > 1) { for (uint256 i; i < tokenIds.length; i++) { _mint(to, tokenIds[i]); } } else { // deposit single _mint(to, tokenIds[0]); } } function withdraw(uint256[] calldata tokenIds) external override onlyRole(FX_MANAGER_ROLE) { for (uint256 i; i < tokenIds.length; i++) { _burn(tokenIds[i]); } } // in case a luchador is accidentally sent to this contract function rescueLuchador(address to, uint256[] calldata tokenIds) external onlyRole(RESCUER_ROLE) { for (uint256 i; i < tokenIds.length; i++) { _safeTransfer(address(this), to, tokenIds[i], ""); } } function supportsInterface(bytes4 interfaceId) public view override(ERC721Enumerable, AccessControl, IERC165) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; interface IFxERC721 is IERC721 { function connectedToken() external returns (address); function deposit(address to, uint256[] calldata tokenIds) external; function withdraw(uint256[] calldata tokenIds) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// [MIT License] /// @title Base64 /// @notice Provides a function for encoding some bytes in base64 /// @author Brecht Devos <[email protected]> library Base64 { bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /// @notice Encodes some bytes to the base64 representation function encode(bytes memory data) internal pure returns (string memory) { uint256 len = data.length; if (len == 0) return ""; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((len + 2) / 3); // Add some extra buffer at the end bytes memory result = new bytes(encodedLen + 32); bytes memory table = TABLE; assembly { let tablePtr := add(table, 1) let resultPtr := add(result, 32) for { let i := 0 } lt(i, len) { } { i := add(i, 3) let input := and(mload(add(data, i)), 0xffffff) let out := mload(add(tablePtr, and(shr(18, input), 0x3F))) out := shl(8, out) out := add( out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF) ) out := shl(8, out) out := add( out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF) ) out := shl(8, out) out := add( out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF) ) out := shl(224, out) mstore(resultPtr, out) resultPtr := add(resultPtr, 4) } switch mod(len, 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } mstore(result, encodedLen) } return string(result); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
{ "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":"connectedToken_","type":"address"},{"internalType":"address","name":"_luchaNames","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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FX_MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NAME_MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESCUER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"connectedToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"imageData","outputs":[{"internalType":"string","name":"","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":"lockDNA","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"luchaNames","outputs":[{"internalType":"contract ILuchaNames","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"rescueLuchador","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"val","type":"bool"}],"name":"setCustomNamesEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"dnas","type":"uint256[]"}],"name":"setDNA","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200774138038062007741833981016040819052620000349162001e3b565b6040518060400160405280600a8152602001694c75636861646f72657360b01b8152506040518060400160405280600a8152602001694c55434841444f52455360b01b81525081600090805190602001906200009292919062001cc2565b508051620000a890600190602084019062001cc2565b5050600c80546001600160a01b038086166001600160a01b031992831617909255600b80549285169290911691909117905550620000e860003362001bf5565b620001147f6ae19fd703cb304b53d5f09f6a0ce96b7c6a7edd912859ca6c4ed719bcab610d3362001bf5565b620001407fcf6f9f892731e14b8859835f2ff35575f447fb501f46243c4eb8bac19e31a0503362001bf5565b6040805161018081018252600661014082018181526565626562663760d01b6101608401528252825180840184528181526518b198b2193360d11b60208281019190915280840191909152835180850185528281526518d8cc190cd960d21b81830152838501528351808501855282815265190c8c998e4d60d21b818301526060840152835180850185528281526538393065633160d01b8183015260808401528351808501855282815265062c66872c8760d31b8183015260a084015283518085018552828152650c4e588d4d4d60d21b8183015260c084015283518085018552828152651899b1b0b19b60d11b8183015260e0840152835180850185528281526566376332336360d01b8183015261010084015283518085019094529083526533189c32993360d11b908301526101208101919091526200028890600d90600a62001d51565b50604080516101808101825260066101408201818152653230b230b29b60d11b610160840152825282518084018452818152651899989a18b360d11b60208281019190915280840191909152835180850185528281526519584c4e0d1960d21b818301528385015283518085018552828152653298199b1cb360d11b81830152606084015283518085018552828152651c9a9898b21960d11b8183015260808401528351808501855282815265191c1a9a329b60d11b8183015260a0840152835180850185528281526531646139353160d01b8183015260c0840152835180850185528281526531316239623560d01b8183015260e0840152835180850185528281526565386236336160d01b8183015261010084015283518085019094529083526565323833323760d01b90830152610120810191909152620003d190600e90600a62001d51565b506040805161018081018252600661014082018181526533623662613560d01b6101608401528252825180840184528181526533623866613560d01b60208281019190915280840191909152835180850185528281526533626135393960d01b8183015283850152835180850185528281526533626135373760d01b818301526060840152835180850185528281526519999c9c1a1960d11b81830152608084015283518085018552828152651bb3309a99b160d11b8183015260a08401528351808501855282815265309a9c1919b160d11b8183015260c08401528351808501855282815265309a9b1c99b160d11b8183015260e084015283518085018552828152650e0d0d198c5960d21b818301526101008401528351808501909452908352651a32991c981b60d11b908301526101208101919091526200051a90600f90600a62001d51565b506040805161018081018252600661014082018181526566396431623760d01b6101608401528252825180840184528181526566376238393760d01b60208281019190915280840191909152835180850185528281526566333963373760d01b81830152838501528351808501855282815265199998d88e0d60d21b818301526060840152835180850185528281526562643765343760d01b8183015260808401528351808501855282815265311c9bb29a3160d11b8183015260a0840152835180850185528281526506239376135360d41b8183015260c084015283518085018552828152650d584ccc8c4d60d21b8183015260e0840152835180850185528281526535303237306560d01b8183015261010084015283518085019094529083526533613162303960d01b908301526101208101919091526200066390601090600a62001d51565b50604051806040016040528063109d5b1b60e21b6001600160a01b031916815260200160405180610100016040528060db815260200162006fe960db91399052600080526011602090815281517f4ad3b33220dddc71b994a52d72c06b10862965f7d926534c05c00fb7e819e7b780546001600160601b03191660a09290921c919091178155828201518051919262000722927f4ad3b33220dddc71b994a52d72c06b10862965f7d926534c05c00fb7e819e7b8929091019062001cc2565b509050506040518060400160405280652530b3bab0b960d11b6001600160a01b031916815260200160405180610120016040528060f2815260200162006ef760f29139905260016000526011602090815281517f17bc176d2408558f6e4111feebc3cab4e16b63e967be91cde721f4c8a488b55280546001600160601b03191660a09290921c9190911781558282015180519192620007e7927f17bc176d2408558f6e4111feebc3cab4e16b63e967be91cde721f4c8a488b553929091019062001cc2565b50905050604051806040016040528066436c617373696360c81b6001600160a01b031916815260200160405180610100016040528060c18152602001620072c860c191399052600080526012602090815281517f7e7fa33969761a458e04f477e039a608702b4f924981d6653935a8319a08ad7b80546001600160601b03191660a09290921c9190911781558282015180519192620008ac927f7e7fa33969761a458e04f477e039a608702b4f924981d6653935a8319a08ad7c929091019062001cc2565b50905050604051806040016040528065121bdbd9195960d21b6001600160a01b031916815260200160405180610100016040528060c18152602001620072c860c19139905260016000526012602090815281517f71a67924699a20698523213e55fe499d539379d7769cd5567e2c45d583f815a380546001600160601b03191660a09290921c919091178155828201518051919262000971927f71a67924699a20698523213e55fe499d539379d7769cd5567e2c45d583f815a4929091019062001cc2565b5090505060405180604001604052806414da1a5c9d60da1b6001600160a01b031916815260200160405180610120016040528060e1815260200162006c8c60e191399052600080526013602090815281517f8fa6efc3be94b5b348b21fea823fe8d100408cee9b7f90524494500445d8ff6c80546001600160601b03191660a09290921c919091178155828201518051919262000a34927f8fa6efc3be94b5b348b21fea823fe8d100408cee9b7f90524494500445d8ff6d929091019062001cc2565b5090505060405180604001604052806913dc195b8814da1a5c9d60b21b6001600160a01b031916815260200160405180610120016040528060ff8152602001620071c960ff9139905260016000526013602090815281517f4155c2f711f2cdd34f8262ab8fb9b7020a700fe7b6948222152f7670d1fdf34d80546001600160601b03191660a09290921c919091178155828201518051919262000afd927f4155c2f711f2cdd34f8262ab8fb9b7020a700fe7b6948222152f7670d1fdf34e929091019062001cc2565b5090505060405180604001604052806614da5b99db195d60ca1b6001600160a01b03191681526020016040518060c0016040528060818152602001620074a260819139905260026000526013602090815281517f0b9d2c0c271bb30544eb78c59bdaebdae2728e5f65814c07768a0abe90ed192380546001600160601b03191660a09290921c919091178155828201518051919262000bc2927f0b9d2c0c271bb30544eb78c59bdaebdae2728e5f65814c07768a0abe90ed1924929091019062001cc2565b5090505060405180604001604052806953757370656e6465727360b01b6001600160a01b03191681526020016040518060a0016040528060798152602001620075ff60799139905260036000526013602090815281517f0d2a6872ef858a7f8ead18dc4f3f2e8d35c853d47e2816cbb9cdd49202554e0c80546001600160601b03191660a09290921c919091178155828201518051919262000c8a927f0d2a6872ef858a7f8ead18dc4f3f2e8d35c853d47e2816cbb9cdd49202554e0d929091019062001cc2565b50905050604051806040016040528065476c6f76657360d01b6001600160a01b03191681526020016040518060c00160405280608f815260200162006ad2608f91399052600080526014602090815281517f4f26c3876aa9f4b92579780beea1161a61f87ebf1ec6ee865b299e447ecba99c80546001600160601b03191660a09290921c919091178155828201518051919262000d4d927f4f26c3876aa9f4b92579780beea1161a61f87ebf1ec6ee865b299e447ecba99d929091019062001cc2565b5090505060405180604001604052806a57726973742042616e647360a81b6001600160a01b031916815260200160405180608001604052806041815260200162006e8960419139905260016000526014602090815281517fb6c61a840592cc84133e4b25bd509abf4659307c57b160799b38490a5aa48f2c80546001600160601b03191660a09290921c919091178155828201518051919262000e16927fb6c61a840592cc84133e4b25bd509abf4659307c57b160799b38490a5aa48f2d929091019062001cc2565b50905050604051806040016040528069149a59da1d0810985b9960b21b6001600160a01b03191681526020016040518060600160405280602d815260200162006eca602d9139905260026000526014602090815281517fa1930aa930426c54c34daad2b9ada7c5d0ef0c96078a3c5bb79f6fa6602c4a7a80546001600160601b03191660a09290921c919091178155828201518051919262000ede927fa1930aa930426c54c34daad2b9ada7c5d0ef0c96078a3c5bb79f6fa6602c4a7b929091019062001cc2565b509050506040518060400160405280681319599d0810985b9960ba1b6001600160a01b031916815260200160405180606001604052806030815260200162006aa260309139905260036000526014602090815281517f63d87a887046e0430be80fdeb014107d7198c879cbf2cddf39a6df195c86cb3880546001600160601b03191660a09290921c919091178155828201518051919262000fa5927f63d87a887046e0430be80fdeb014107d7198c879cbf2cddf39a6df195c86cb39929091019062001cc2565b5090505060405180604001604052806841726d2042616e647360b81b6001600160a01b03191681526020016040518060600160405280603f81526020016200718a603f9139905260046000526014602090815281517f52102136546d97ed3f65ec1070a32935d3048ea12f310d29c378dc9d6555c0d680546001600160601b03191660a09290921c91909117815582820151805191926200106c927f52102136546d97ed3f65ec1070a32935d3048ea12f310d29c378dc9d6555c0d7929091019062001cc2565b50905050604051806040016040528066536c656576657360c81b6001600160a01b03191681526020016040518060c001604052806081815260200162006ba260819139905260056000526014602090815281517f116126bec5aaa49b347e966c49378cf0c441de9121e306ea3d824584a9615aa280546001600160601b03191660a09290921c919091178155828201518051919262001131927f116126bec5aaa49b347e966c49378cf0c441de9121e306ea3d824584a9615aa3929091019062001cc2565b5090505060405180604001604052806414dc1b1a5d60da1b6001600160a01b03191681526020016040518060600160405280603a815260200162007389603a91399052600080526015602090815281517fa31547ce6245cdb9ecea19cf8c7eb9f5974025bb4075011409251ae855b30aed80546001600160601b03191660a09290921c9190911781558282015180519192620011f3927fa31547ce6245cdb9ecea19cf8c7eb9f5974025bb4075011409251ae855b30aee929091019062001cc2565b5090505060405180604001604052806443726f737360d81b6001600160a01b03191681526020016040518060600160405280603d81526020016200714d603d9139905260016000526015602090815281517f27739e4bb5e6f8b5e4b57a047dca8767cc9b982a011081e086cbb0dfa9de818d80546001600160601b03191660a09290921c9190911781558282015180519192620012b6927f27739e4bb5e6f8b5e4b57a047dca8767cc9b982a011081e086cbb0dfa9de818e929091019062001cc2565b5090505060405180604001604052806546696572636560d01b6001600160a01b03191681526020016040518060800160405280605381526020016200752360539139905260026000526015602090815281517f07d4ff730d9753101d832555708a37d38c2c45fce8cacaefc99f06074e93fe0b80546001600160601b03191660a09290921c91909117815582820151805191926200137a927f07d4ff730d9753101d832555708a37d38c2c45fce8cacaefc99f06074e93fe0c929091019062001cc2565b5090505060405180604001604052806614dd1c9a5c195960ca1b6001600160a01b03191681526020016040518060e0016040528060a88152602001620073fa60a89139905260036000526015602090815281517fb3a65e8276bd33b3e4f7d6081ebd9899187264822358758dca2e2bc37b2a9c2780546001600160601b03191660a09290921c91909117815582820151805191926200143f927fb3a65e8276bd33b3e4f7d6081ebd9899187264822358758dca2e2bc37b2a9c28929091019062001cc2565b50905050604051806040016040528063109bdb1d60e21b6001600160a01b0319168152602001604051806080016040528060578152602001620076ea60579139905260046000526015602090815281517f8191f4eb6b8bafbfe9a5389c8d07d7f5fd81137a7ee653fc4358269845ee1d2e80546001600160601b03191660a09290921c919091178155828201518051919262001501927f8191f4eb6b8bafbfe9a5389c8d07d7f5fd81137a7ee653fc4358269845ee1d2f929091019062001cc2565b5090505060405180604001604052806515da5b99d95960d21b6001600160a01b03191681526020016040518060a00160405280607281526020016200767860729139905260056000526015602090815281517fbab719002e4be320868650dc7456e9a1d245e4d5dd64765588e2f21529d871d380546001600160601b03191660a09290921c9190911781558282015180519192620015c5927fbab719002e4be320868650dc7456e9a1d245e4d5dd64765588e2f21529d871d4929091019062001cc2565b50905050604051806040016040528066436c617373696360c81b6001600160a01b03191681526020016040518060a001604052806069815260200162006c2360699139905260066000526015602090815281517f25847c9ccf691da811a9f934d6b3b92e6062ef92feb71bf4cb08cbb4fad8d65280546001600160601b03191660a09290921c91909117815582820151805191926200168a927f25847c9ccf691da811a9f934d6b3b92e6062ef92feb71bf4cb08cbb4fad8d653929091019062001cc2565b509050506040518060400160405280644172726f7760d81b6001600160a01b03191681526020016040518060c0016040528060898152602001620070c460899139905260076000526015602090815281517f5d0f48e37dc1225cdee8d6f2a0315d796f55423522fe638d7d95421802dfc00680546001600160601b03191660a09290921c91909117815582820151805191926200174d927f5d0f48e37dc1225cdee8d6f2a0315d796f55423522fe638d7d95421802dfc007929091019062001cc2565b50905050604051806040016040528063088c2e6d60e31b6001600160a01b03191681526020016040518060e0016040528060a7815260200162006d6d60a79139905260086000526015602090815281517f2d0e46a571fdfbe57c7c718891a8a12999c102dfffa2b3314ea165dedd1684f580546001600160601b03191660a09290921c91909117815582820151805191926200180f927f2d0e46a571fdfbe57c7c718891a8a12999c102dfffa2b3314ea165dedd1684f6929091019062001cc2565b509050506040518060400160405280684d6f7573746163686560b81b6001600160a01b0319168152602001604051806080016040528060418152602001620075be604191399052600080526016602090815281517f0263c2b778d062355049effc2dece97bc6547ff8a88a3258daa512061c2153dd80546001600160601b03191660a09290921c9190911781558282015180519192620018d5927f0263c2b778d062355049effc2dece97bc6547ff8a88a3258daa512061c2153de929091019062001cc2565b5090505060405180604001604052806554696768747360d01b6001600160a01b0319168152602001604051806060016040528060378152602001620073c3603791399052600080526017602090815281517fd840e16649f6b9a295d95876f4633d3a6b10b55e8162971cf78afd886d5ec89b80546001600160601b03191660a09290921c919091178155828201518051919262001998927fd840e16649f6b9a295d95876f4633d3a6b10b55e8162971cf78afd886d5ec89c929091019062001cc2565b5090505060405180604001604052806b5472756e6b2054696768747360a01b6001600160a01b03191681526020016040518060a001604052806075815260200162006e1460759139905260016000526017602090815281517ff36d6bc9642eb6fb6ee9998b09ce990566df752ab06e11f8de7ab633bbd57b8f80546001600160601b03191660a09290921c919091178155828201518051919262001a62927ff36d6bc9642eb6fb6ee9998b09ce990566df752ab06e11f8de7ab633bbd57b90929091019062001cc2565b5090505060405180604001604052806754776f20546f6e6560c01b6001600160a01b031916815260200160405180608001604052806048815260200162007576604891399052600080526018602090815281517f999d26de3473317ead3eeaf34ca78057f1439db67b6953469c3c96ce9caf6bd780546001600160601b03191660a09290921c919091178155828201518051919262001b27927f999d26de3473317ead3eeaf34ca78057f1439db67b6953469c3c96ce9caf6bd8929091019062001cc2565b50905050604051806040016040528063090d2ced60e31b6001600160a01b031916815260200160405180608001604052806041815260200162006b6160419139905260016000526018602090815281517ff3794665d3af9b6fb6f858b70185898134f96768ef31c325d52e04f0ac195a4d80546001600160601b03191660a09290921c919091178155828201518051919262001be9927ff3794665d3af9b6fb6f858b70185898134f96768ef31c325d52e04f0ac195a4e929091019062001cc2565b50905050505062001eea565b62001c01828262001c05565b5050565b62001c11828262001c91565b62001c01576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff1916600117905562001c4d62001cbe565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152600a602090815260408083206001600160a01b038516845290915290205460ff165b92915050565b3390565b82805462001cd09062001e8c565b90600052602060002090601f01602090048101928262001cf4576000855562001d3f565b82601f1062001d0f57805160ff191683800117855562001d3f565b8280016001018555821562001d3f579182015b8281111562001d3f57825182559160200191906001019062001d22565b5062001d4d92915062001db1565b5090565b82805482825590600052602060002090810192821562001da3579160200282015b8281111562001da3578251805162001d9291849160209091019062001cc2565b509160200191906001019062001d72565b5062001d4d92915062001dc8565b5b8082111562001d4d576000815560010162001db2565b8082111562001d4d57600062001ddf828262001de9565b5060010162001dc8565b50805462001df79062001e8c565b6000825580601f1062001e0b575062001e2b565b601f01602090049060005260206000209081019062001e2b919062001db1565b50565b805162001cb88162001ed3565b6000806040838503121562001e4f57600080fd5b600062001e5d858562001e2e565b925050602062001e708582860162001e2e565b9150509250929050565b60006001600160a01b03821662001cb8565b60028104600182168062001ea157607f821691505b6020821081141562001eb75762001eb762001ebd565b50919050565b634e487b7160e01b600052602260045260246000fd5b62001ede8162001e7a565b811462001e2b57600080fd5b614ba88062001efa6000396000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c8063692ad6e71161011a578063a217fddf116100ad578063b88d4fde1161007c578063b88d4fde1461041b578063c87b56dd1461042e578063d547741f14610441578063d9f5861114610454578063e985e9c51461045c57610206565b8063a217fddf146103da578063a22cb465146103e2578063a71604e8146103f5578063aa8d87961461040857610206565b806391d14854116100e957806391d148541461039957806395d89b41146103ac578063983d95ce146103b45780639ab5a946146103c757610206565b8063692ad6e71461036157806370a082311461037657806371372544146103895780637d1cad0a1461039157610206565b806323b872dd1161019d57806336568abe1161016c57806336568abe14610302578063373807ae1461031557806342842e0e146103285780634f6ccce71461033b5780636352211e1461034e57610206565b806323b872dd146102b6578063248a9ca3146102c95780632f2ff15d146102dc5780632f745c59146102ef57610206565b8063095ea7b3116101d9578063095ea7b31461027c5780630a8a49141461029157806318160ddd146102995780631be0e195146102ae57610206565b806301ffc9a71461020b578063061ba2f11461023457806306fdde0314610254578063081812fc1461025c575b600080fd5b61021e610219366004612eac565b61046f565b60405161022b91906144d2565b60405180910390f35b610247610242366004612e6f565b610482565b60405161022b91906144fc565b610247610672565b61026f61026a366004612e6f565b610704565b60405161022b919061446f565b61028f61028a366004612d72565b610747565b005b61026f6107df565b6102a16107ee565b60405161022b91906144e0565b6102a16107f4565b61028f6102c4366004612c28565b610818565b6102a16102d7366004612e6f565b610850565b61028f6102ea366004612e8d565b610865565b6102a16102fd366004612d72565b610889565b61028f610310366004612e8d565b6108de565b61028f610323366004612de3565b610924565b61028f610336366004612c28565b610a03565b6102a1610349366004612e6f565b610a1e565b61026f61035c366004612e6f565b610a79565b610369610aae565b60405161022b91906144ee565b6102a1610384366004612bd0565b610abd565b6102a1610b01565b61028f610b25565b61021e6103a7366004612e8d565b610b45565b610247610b70565b61028f6103c2366004612da2565b610b7f565b61028f6103d5366004612e51565b610bfe565b6102a1610c3f565b61028f6103f0366004612d42565b610c44565b61028f610403366004612ced565b610d12565b61028f610416366004612ced565b610dc0565b61028f610429366004612c75565b610e52565b61024761043c366004612e6f565b610e8b565b61028f61044f366004612e8d565b6118f5565b6102a1611914565b61021e61046a366004612bee565b611938565b600061047a82611966565b90505b919050565b606060008211801561049657506127108211155b6104bb5760405162461bcd60e51b81526004016104b29061459d565b60405180910390fd5b6000828152601960205260408120546104d39061198b565b90506000816001602002015160ff1615806104f55750602082015160ff166001145b61050e5760405180602001604052806000815250610528565b6040518060c00160405280609d8152602001614ad6609d91395b90506000826001602002015160ff166001146105535760405180602001604052806000815250610570565b60405180610180016040528061014c815260200161498a61014c91395b905061057b85611a05565b6105858685611b27565b845160ff9081166000908152601160209081526040808320828a01518516845260128352818420828b0151861685526013845282852060608c0151871686526014855283862060808d0151881687526015865284872060a08e0151891688526016875285882060c08f0151909916885260179096529386206001938401979284019691840195948401948c94908101938c9390820192909101906018908f6007602002015160ff1681526020019081526020016000206001016040516020016106599c9b9a99989796959493929190614168565b6040516020818303038152906040529350505050919050565b6060600080546106819061481a565b80601f01602080910402602001604051908101604052809291908181526020018280546106ad9061481a565b80156106fa5780601f106106cf576101008083540402835291602001916106fa565b820191906000526020600020905b8154815290600101906020018083116106dd57829003601f168201915b5050505050905090565b600061070f82611c59565b61072b5760405162461bcd60e51b81526004016104b2906145ed565b506000908152600460205260409020546001600160a01b031690565b600061075282610a79565b9050806001600160a01b0316836001600160a01b031614156107865760405162461bcd60e51b81526004016104b29061460d565b806001600160a01b0316610798611c76565b6001600160a01b031614806107b457506107b48161046a611c76565b6107d05760405162461bcd60e51b81526004016104b2906145ad565b6107da8383611c7a565b505050565b600c546001600160a01b031690565b60085490565b7f6ae19fd703cb304b53d5f09f6a0ce96b7c6a7edd912859ca6c4ed719bcab610d81565b610829610823611c76565b82611ce8565b6108455760405162461bcd60e51b81526004016104b29061461d565b6107da838383611d65565b6000908152600a602052604090206001015490565b61086e82610850565b61087f8161087a611c76565b611e92565b6107da8383611ef6565b600061089483610abd565b82106108b25760405162461bcd60e51b81526004016104b29061451d565b506001600160a01b03821660009081526006602090815260408083208484529091529020545b92915050565b6108e6611c76565b6001600160a01b0316816001600160a01b0316146109165760405162461bcd60e51b81526004016104b29061464d565b6109208282611f7d565b5050565b60006109328161087a611c76565b601a54610100900460ff161561095a5760405162461bcd60e51b81526004016104b29061456d565b8382146109795760405162461bcd60e51b81526004016104b29061462d565b60005b848110156109fb578383828181106109a457634e487b7160e01b600052603260045260246000fd5b90506020020135601960008888858181106109cf57634e487b7160e01b600052603260045260246000fd5b9050602002013581526020019081526020016000208190555080806109f390614847565b91505061097c565b505050505050565b6107da83838360405180602001604052806000815250610e52565b6000610a286107ee565b8210610a465760405162461bcd60e51b81526004016104b29061463d565b60088281548110610a6757634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b03168061047a5760405162461bcd60e51b81526004016104b2906145cd565b600b546001600160a01b031681565b60006001600160a01b038216610ae55760405162461bcd60e51b81526004016104b2906145bd565b506001600160a01b031660009081526003602052604090205490565b7fcf6f9f892731e14b8859835f2ff35575f447fb501f46243c4eb8bac19e31a05081565b6000610b338161087a611c76565b50601a805461ff001916610100179055565b6000918252600a602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600180546106819061481a565b7fc04072633e9c068233df4c76f88688458691556cd8b5c7ca3ea8ecdc7be6e028610bac8161087a611c76565b60005b82811015610bf857610be6848483818110610bda57634e487b7160e01b600052603260045260246000fd5b90506020020135612002565b80610bf081614847565b915050610baf565b50505050565b7f6ae19fd703cb304b53d5f09f6a0ce96b7c6a7edd912859ca6c4ed719bcab610d610c2b8161087a611c76565b50601a805460ff1916911515919091179055565b600081565b610c4c611c76565b6001600160a01b0316826001600160a01b03161415610c7d5760405162461bcd60e51b81526004016104b29061455d565b8060056000610c8a611c76565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610cce611c76565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610d0691906144d2565b60405180910390a35050565b7fc04072633e9c068233df4c76f88688458691556cd8b5c7ca3ea8ecdc7be6e028610d3f8161087a611c76565b6001821115610d9b5760005b82811015610d9557610d8385858584818110610d7757634e487b7160e01b600052603260045260246000fd5b905060200201356120a9565b80610d8d81614847565b915050610d4b565b50610bf8565b610bf88484846000818110610d7757634e487b7160e01b600052603260045260246000fd5b7fcf6f9f892731e14b8859835f2ff35575f447fb501f46243c4eb8bac19e31a050610ded8161087a611c76565b60005b82811015610e4b57610e393086868685818110610e1d57634e487b7160e01b600052603260045260246000fd5b9050602002013560405180602001604052806000815250612188565b80610e4381614847565b915050610df0565b5050505050565b610e63610e5d611c76565b83611ce8565b610e7f5760405162461bcd60e51b81526004016104b29061461d565b610bf884848484612188565b6060600082118015610e9f57506127108211155b610ebb5760405162461bcd60e51b81526004016104b29061458d565b600082815260196020526040812054610ed39061198b565b604080516101008101808352835160ff16600090815260116020528381206101408401909452835460a01b6001600160a01b03191682526001840180549596509094929384939091610120850191610f2a9061481a565b80601f0160208091040260200160405190810160405280929190818152602001828054610f569061481a565b8015610fa35780601f10610f7857610100808354040283529160200191610fa3565b820191906000526020600020905b815481529060010190602001808311610f8657829003601f168201915b50505091909252505050815260208481015160ff166000908152601282526040908190208151808301909252805460a01b6001600160a01b0319168252600181018054948401949293919291840191610ffb9061481a565b80601f01602080910402602001604051908101604052809291908181526020018280546110279061481a565b80156110745780601f1061104957610100808354040283529160200191611074565b820191906000526020600020905b81548152906001019060200180831161105757829003601f168201915b50505091909252505050815260408481015160ff16600090815260136020908152908290208251808401909352805460a01b6001600160a01b03191683526001810180549483019491928401916110ca9061481a565b80601f01602080910402602001604051908101604052809291908181526020018280546110f69061481a565b80156111435780601f1061111857610100808354040283529160200191611143565b820191906000526020600020905b81548152906001019060200180831161112657829003601f168201915b505050919092525050508152606084015160ff166000908152601460209081526040918290208251808401909352805460a01b6001600160a01b031916835260018101805494830194919284019161119a9061481a565b80601f01602080910402602001604051908101604052809291908181526020018280546111c69061481a565b80156112135780601f106111e857610100808354040283529160200191611213565b820191906000526020600020905b8154815290600101906020018083116111f657829003601f168201915b505050919092525050508152608084015160ff166000908152601560209081526040918290208251808401909352805460a01b6001600160a01b031916835260018101805494830194919284019161126a9061481a565b80601f01602080910402602001604051908101604052809291908181526020018280546112969061481a565b80156112e35780601f106112b8576101008083540402835291602001916112e3565b820191906000526020600020905b8154815290600101906020018083116112c657829003601f168201915b50505091909252505050815260a08481015160ff166000908152601660209081526040918290208251808401909352805490931b6001600160a01b0319168252600183018054948201949293929184019161133d9061481a565b80601f01602080910402602001604051908101604052809291908181526020018280546113699061481a565b80156113b65780601f1061138b576101008083540402835291602001916113b6565b820191906000526020600020905b81548152906001019060200180831161139957829003601f168201915b50505091909252505050815260c084015160ff166000908152601760209081526040918290208251808401909352805460a01b6001600160a01b031916835260018101805494830194919284019161140d9061481a565b80601f01602080910402602001604051908101604052809291908181526020018280546114399061481a565b80156114865780601f1061145b57610100808354040283529160200191611486565b820191906000526020600020905b81548152906001019060200180831161146957829003601f168201915b50505091909252505050815260e084015160ff166000908152601860209081526040918290208251808401909352805460a01b6001600160a01b03191683526001810180549483019491928401916114dd9061481a565b80601f01602080910402602001604051908101604052809291908181526020018280546115099061481a565b80156115565780601f1061152b57610100808354040283529160200191611556565b820191906000526020600020905b81548152906001019060200180831161153957829003601f168201915b5050505050815250508152509050606060006040518061010001604052806040518060400160405280600681526020016514dc1a5c9a5d60d21b8152508152602001604051806040016040528060048152602001634361706560e01b815250815260200160405180604001604052806005815260200164546f72736f60d81b81525081526020016040518060400160405280600481526020016341726d7360e01b8152508152602001604051806040016040528060048152602001634d61736b60e01b81525081526020016040518060400160405280600581526020016409adeeae8d60db1b815250815260200160405180604001604052806007815260200166426f74746f6d7360c81b815250815260200160405180604001604052806005815260200164426f6f747360d81b815250815250905060005b60088110156117a1578381600881106116b857634e487b7160e01b600052603260045260246000fd5b6020020151516001600160a01b0319166116d15761178f565b8283516000146116fc57604051806040016040528060038152602001622c207b60e81b815250611717565b604051806040016040528060018152602001607b60f81b8152505b83836008811061173757634e487b7160e01b600052603260045260246000fd5b602002015161176a87856008811061175f57634e487b7160e01b600052603260045260246000fd5b6020020151516121bb565b60405160200161177d94939291906140e0565b60405160208183030381529060405292505b8061179981614847565b91505061168f565b50601a5460009060ff166117c4576040518060200160405280600081525061184e565b600b54600c5460405163e1090cff60e01b81526001600160a01b039283169263e1090cff926117fa929116908b906004016144b7565b60006040518083038186803b15801561181257600080fd5b505afa158015611826573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261184e9190810190612ee8565b90506000808251116118875761186388611a05565b6040516020016118739190614151565b604051602081830303815290604052611889565b815b90506118c9816118988a610482565b6118a18b611a05565b876040516020016118b594939291906142af565b604051602081830303815290604052612337565b6040516020016118d9919061434d565b6040516020818303038152906040529650505050505050919050565b6118fe82610850565b61190a8161087a611c76565b6107da8383611f7d565b7fc04072633e9c068233df4c76f88688458691556cd8b5c7ca3ea8ecdc7be6e02881565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006001600160e01b03198216637965db0b60e01b148061047a575061047a826124aa565b611993612a81565b61199b612a81565b60005b600c8110156119fe576119b2600a8561488b565b8282600c81106119d257634e487b7160e01b600052603260045260246000fd5b60ff90921660209290920201526119ea600a856146f7565b9350806119f681614847565b91505061199e565b5092915050565b606081611a2a57506040805180820190915260018152600360fc1b602082015261047d565b8160005b8115611a545780611a3e81614847565b9150611a4d9050600a836146f7565b9150611a2e565b6000816001600160401b03811115611a7c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611aa6576020820181803683370190505b5090505b8415611b1f57611abb600183614756565b9150611ac8600a8661488b565b611ad39060306146c9565b60f81b818381518110611af657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611b18600a866146f7565b9450611aaa565b949350505050565b6060611b3283611a05565b600d836008602002015160ff1681548110611b5d57634e487b7160e01b600052603260045260246000fd5b90600052602060002001611b7085611a05565b600e856009602002015160ff1681548110611b9b57634e487b7160e01b600052603260045260246000fd5b90600052602060002001611bae87611a05565b600f87600a602002015160ff1681548110611bd957634e487b7160e01b600052603260045260246000fd5b90600052602060002001611bec89611a05565b601089600b602002015160ff1681548110611c1757634e487b7160e01b600052603260045260246000fd5b90600052602060002001611c2a8b611a05565b604051602001611c4299989796959493929190614358565b604051602081830303815290604052905092915050565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611caf82610a79565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611cf382611c59565b611d0f5760405162461bcd60e51b81526004016104b29061457d565b6000611d1a83610a79565b9050806001600160a01b0316846001600160a01b03161480611d555750836001600160a01b0316611d4a84610704565b6001600160a01b0316145b80611b1f5750611b1f8185611938565b826001600160a01b0316611d7882610a79565b6001600160a01b031614611d9e5760405162461bcd60e51b81526004016104b2906145fd565b6001600160a01b038216611dc45760405162461bcd60e51b81526004016104b29061454d565b611dcf8383836124cf565b611dda600082611c7a565b6001600160a01b0383166000908152600360205260408120805460019290611e03908490614756565b90915550506001600160a01b0382166000908152600360205260408120805460019290611e319084906146c9565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611e9c8282610b45565b61092057611eb4816001600160a01b03166014612558565b611ebf836020612558565b604051602001611ed0929190614441565b60408051601f198184030181529082905262461bcd60e51b82526104b2916004016144fc565b611f008282610b45565b610920576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611f39611c76565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611f878282610b45565b15610920576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff19169055611fbe611c76565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b600061200d82610a79565b905061201b816000846124cf565b612026600083611c7a565b6001600160a01b038116600090815260036020526040812080546001929061204f908490614756565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0382166120cf5760405162461bcd60e51b81526004016104b2906145dd565b6120d881611c59565b156120f55760405162461bcd60e51b81526004016104b29061453d565b612101600083836124cf565b6001600160a01b038216600090815260036020526040812080546001929061212a9084906146c9565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b612193848484611d65565b61219f84848484612709565b610bf85760405162461bcd60e51b81526004016104b29061452d565b606060005b600c8160ff161080156122025750828160ff16600c81106121f157634e487b7160e01b600052603260045260246000fd5b1a60f81b6001600160f81b03191615155b1561221957806122118161486d565b9150506121c0565b60008160ff166001600160401b0381111561224457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561226e576020820181803683370190505b509050600091505b600c8260ff161080156122b85750838260ff16600c81106122a757634e487b7160e01b600052603260045260246000fd5b1a60f81b6001600160f81b03191615155b1561233057838260ff16600c81106122e057634e487b7160e01b600052603260045260246000fd5b1a60f81b818360ff168151811061230757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350816123288161486d565b925050612276565b9392505050565b80516060908061235757505060408051602081019091526000815261047d565b600060036123668360026146c9565b61237091906146f7565b61237b906004614721565b9050600061238a8260206146c9565b6001600160401b038111156123af57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156123d9576020820181803683370190505b509050600060405180606001604052806040815260200161494a604091399050600181016020830160005b86811015612465576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101612404565b50600386066001811461247f57600281146124905761249c565b613d3d60f01b60011983015261249c565b603d60f81b6000198301525b505050918152949350505050565b60006001600160e01b0319821663780e9d6360e01b148061047a575061047a82612824565b6124da8383836107da565b6001600160a01b0383166124f6576124f181612864565b612519565b816001600160a01b0316836001600160a01b0316146125195761251983826128a8565b6001600160a01b0382166125355761253081612945565b6107da565b826001600160a01b0316826001600160a01b0316146107da576107da8282612a1e565b60606000612567836002614721565b6125729060026146c9565b6001600160401b0381111561259757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156125c1576020820181803683370190505b509050600360fc1b816000815181106125ea57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061262757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061264b846002614721565b6126569060016146c9565b90505b60018111156126ea576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061269857634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106126bc57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936126e3816147f8565b9050612659565b5083156123305760405162461bcd60e51b81526004016104b29061450d565b600061271d846001600160a01b0316612a62565b1561281957836001600160a01b031663150b7a02612739611c76565b8786866040518563ffffffff1660e01b815260040161275b949392919061447d565b602060405180830381600087803b15801561277557600080fd5b505af19250505080156127a5575060408051601f3d908101601f191682019092526127a291810190612eca565b60015b6127ff573d8080156127d3576040519150601f19603f3d011682016040523d82523d6000602084013e6127d8565b606091505b5080516127f75760405162461bcd60e51b81526004016104b29061452d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611b1f565b506001949350505050565b60006001600160e01b031982166380ac58cd60e01b148061285557506001600160e01b03198216635b5e139f60e01b145b8061047a575061047a82612a68565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b600060016128b584610abd565b6128bf9190614756565b600083815260076020526040902054909150808214612912576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061295790600190614756565b6000838152600960205260408120546008805493945090928490811061298d57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600883815481106129bc57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612a0257634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612a2983610abd565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b3b151590565b6001600160e01b031981166301ffc9a760e01b14919050565b604051806101800160405280600c906020820280368337509192915050565b6000612ab3612aae84614686565b61465d565b905082815260208101848484011115612acb57600080fd5b612ad68482856147c0565b509392505050565b6000612aec612aae84614686565b905082815260208101848484011115612b0457600080fd5b612ad68482856147cc565b80356108d881614917565b60008083601f840112612b2c57600080fd5b5081356001600160401b03811115612b4357600080fd5b602083019150836020820283011115612b5b57600080fd5b9250929050565b80356108d88161492e565b80356108d881614937565b80356108d881614940565b80516108d881614940565b600082601f830112612b9f57600080fd5b8135611b1f848260208601612aa0565b600082601f830112612bc057600080fd5b8151611b1f848260208601612ade565b600060208284031215612be257600080fd5b6000611b1f8484612b0f565b60008060408385031215612c0157600080fd5b6000612c0d8585612b0f565b9250506020612c1e85828601612b0f565b9150509250929050565b600080600060608486031215612c3d57600080fd5b6000612c498686612b0f565b9350506020612c5a86828701612b0f565b9250506040612c6b86828701612b6d565b9150509250925092565b60008060008060808587031215612c8b57600080fd5b6000612c978787612b0f565b9450506020612ca887828801612b0f565b9350506040612cb987828801612b6d565b92505060608501356001600160401b03811115612cd557600080fd5b612ce187828801612b8e565b91505092959194509250565b600080600060408486031215612d0257600080fd5b6000612d0e8686612b0f565b93505060208401356001600160401b03811115612d2a57600080fd5b612d3686828701612b1a565b92509250509250925092565b60008060408385031215612d5557600080fd5b6000612d618585612b0f565b9250506020612c1e85828601612b62565b60008060408385031215612d8557600080fd5b6000612d918585612b0f565b9250506020612c1e85828601612b6d565b60008060208385031215612db557600080fd5b82356001600160401b03811115612dcb57600080fd5b612dd785828601612b1a565b92509250509250929050565b60008060008060408587031215612df957600080fd5b84356001600160401b03811115612e0f57600080fd5b612e1b87828801612b1a565b945094505060208501356001600160401b03811115612e3957600080fd5b612e4587828801612b1a565b95989497509550505050565b600060208284031215612e6357600080fd5b6000611b1f8484612b62565b600060208284031215612e8157600080fd5b6000611b1f8484612b6d565b60008060408385031215612ea057600080fd5b6000612c0d8585612b6d565b600060208284031215612ebe57600080fd5b6000611b1f8484612b78565b600060208284031215612edc57600080fd5b6000611b1f8484612b83565b600060208284031215612efa57600080fd5b81516001600160401b03811115612f1057600080fd5b611b1f84828501612baf565b612f2581614783565b82525050565b612f258161478e565b612f2581614793565b6000612f48826146bc565b612f5281856146c0565b9350612f628185602086016147cc565b612f6b8161490d565b9093019392505050565b612f25816147b5565b6000612f89826146bc565b612f93818561047d565b9350612fa38185602086016147cc565b9290920192915050565b60008154612fba8161481a565b612fc4818661047d565b9450600182168015612fdd5760018114612fee5761301e565b60ff1983168652818601935061301e565b612ff7856146b0565b60005b8381101561301657815488820152600190910190602001612ffa565b838801955050505b50505092915050565b60006130346020836146c0565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74815260200192915050565b600061306d60368361047d565b7f3c706174682066696c6c3d272330303027206f7061636974793d272e392720648152751e93a69899901898b41699bb18b41a3b1698bd13979f60511b602082015260360192915050565b60006130c5600a8361047d565b694c75636861646f72202360b01b8152600a0192915050565b60006130eb60bd8361047d565b7f202e6c756368612d62726561746865207b20616e696d6174696f6e3a20302e3581527f73206c756368612d6272656174686520696e66696e69746520616c7465726e6160208201527f746520656173652d696e2d6f75743b207d20406b65796672616d6573206c756360408201527f68612d62726561746865207b2066726f6d207b207472616e73666f726d3a207460608201527f72616e736c6174655928307078293b207d20746f207b207472616e73666f726d60808201527f3a207472616e736c61746559283125293b207d207d3c2f7374796c653e00000060a082015260bd0192915050565b60006131e260168361047d565b75202e6c756368612d736b696e207b2066696c6c3a202360501b815260160192915050565b600061321460de8361047d565b7f3c706174682066696c6c3d27234646462720643d274d3920364836763368345681527f367a4d31372036682d337633683456367a272f3e3c7061746820636c6173733d60208201527f276c756368612d657965732720643d274d31362036682d327633683356367a4d60408201527f382036483776336833563648397a272f3e3c706174682066696c6c3d2723464660608201527f462720643d274d3720366831763148377a4d3136203668317631682d317a272060808201527f6f7061636974793d272e34272f3e3c706174682066696c6c3d2723303030272060a08201527f643d274d3135203768317631682d317a4d3820376831763148387a272f3e000060c082015260de0192915050565b6000613331603f8361047d565b7f3c7061746820636c6173733d276c756368612d736b696e2720643d274d31362081527f3233762d3648387636483776316834762d34683276346834762d317a272f3e006020820152603f0192915050565b6000613390602b836146c0565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7581526a74206f6620626f756e647360a81b602082015260400192915050565b60006133dd6032836146c0565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015260400192915050565b600061343160028361047d565b61088b60f21b815260020192915050565b600061344f60418361047d565b7f3c7061746820636c6173733d276c756368612d626173652720643d274d31352081527f31374838763168317631683276316832762d316832762d316831762d317a272f6020820152601f60f91b604082015260410192915050565b60006134b8601c836146c0565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815260200192915050565b60006134f160118361047d565b701e39bb339034b21e93b63ab1b430b237b960791b815260110192915050565b600061351e60158361047d565b74202e6c756368612d616c74207b2066696c6c3a202360581b815260150192915050565b600061354f600f8361047d565b6e1134b6b0b3b2afb230ba30911d101160891b8152600f0192915050565b600061357a6024836146c0565b7f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015260400192915050565b60006135c06019836146c0565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000815260200192915050565b60006135f9600f8361047d565b6e113a3930b4ba2fba3cb832911d101160891b8152600f0192915050565b6000613624600e836146c0565b6d1cd95d1113904e881b1bd8dad95960921b815260200192915050565b600061364e602c836146c0565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b600061369c601b836146c0565b7f746f6b656e5552493a204e6f6e6578697374656e7420746f6b656e0000000000815260200192915050565b60006136d5601c836146c0565b7f696d616765446174613a204e6f6e6578697374656e7420746f6b656e00000000815260200192915050565b600061370e60198361047d565b7f3c6720636c6173733d276c756368612d62726561746865273e00000000000000815260190192915050565b6000613747600d8361047d565b6c1d903e9011b63ab1b430b237b960991b8152600d0192915050565b60006137706038836146c0565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015260400192915050565b60006137cf60018361047d565b601160f91b815260010192915050565b60006137ec60158361047d565b741e339031b630b9b99e93b63ab1b43096b0b63a139f60591b815260150192915050565b600061381d602a836146c0565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b602082015260400192915050565b60006138696029836146c0565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b602082015260400192915050565b60006138b46020836146c0565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373815260200192915050565b60006138ed60018361047d565b607d60f81b815260010192915050565b600061390a608d8361047d565b7f226465736372697074696f6e223a20224c75636861646f72657320617265207281527f616e646f6d6c792067656e657261746564207573696e6720436861696e6c696e60208201527f6b2056524620616e6420686176652031303025206f6e2d636861696e2061727460408201527f20616e64206d65746164617461202d204f6e6c792031303030302077696c6c2060608201526c195d995c88195e1a5cdd08488b609a1b6080820152608d0192915050565b60006139cb602c836146c0565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b6000613a1960098361047d565b68113730b6b2911d101160b91b815260090192915050565b6000613a3e60498361047d565b7f3c7061746820636c6173733d276c756368612d626173652720643d274d39203281527f3148387632483776316834762d33682d317a4d3136203233762d32682d337633602082015268341a3b1698bd13979f60b91b604082015260490192915050565b6000613aaf6029836146c0565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981526839903737ba1037bbb760b91b602082015260400192915050565b6000613afa60728361047d565b7f3c7061746820636c6173733d276c756368612d626173652720643d274d31382081527f355633682d315632682d315631682d315630483976314838763148377631483660208201527f763248357635683176326831763168317631683176316836762d316831762d316040820152713418bb1698b418bb16993418ab1abd13979f60711b606082015260720192915050565b6000613b9a60308361047d565b7f2265787465726e616c5f75726c223a202268747470733a2f2f6c75636861646f81526f7265732e696f2f6c75636861646f722f60801b602082015260300192915050565b6000613bec60048361047d565b631e17b39f60e11b815260040192915050565b6000613c0c60018361047d565b607b60f81b815260010192915050565b6000613c29600f8361047d565b6e2261747472696275746573223a205b60881b8152600f0192915050565b6000613c54600a8361047d565b69113b30b63ab2911d101160b11b8152600a0192915050565b6000613c7a60168361047d565b75202e6c756368612d62617365207b2066696c6c3a202360501b815260160192915050565b6000613cac60168361047d565b75202e6c756368612d65796573207b2066696c6c3a202360501b815260160192915050565b6000613cde60018361047d565b605d60f81b815260010192915050565b6000613cfb6021836146c0565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015260400192915050565b6000613d3e601d8361047d565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152601d0192915050565b6000613d7760ad8361047d565b7f3c7061746820636c6173733d276c756368612d736b696e2720643d274d32322081527f3132762d31682d31762d31682d315639682d315635682d315633682d3156326860208201527f2d315631682d315630483976314838763148377631483676324835763448347660408201527f314833763148327631483176386834762d316831762d324835762d336831763160608201527f68317631683176326838762d326831762d316831762d3168317633682d31763260808201526c3418bb18b41a3b169c3d13979f60991b60a082015260ad0192915050565b6000613e5e6031836146c0565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b602082015260400192915050565b6000613eb1601a836146c0565b7f4172726179206c656e6774687320646f206e6f74206d61746368000000000000815260200192915050565b6000613eea60108361047d565b6f1e39ba3cb6329f11b63ab1b430b237b960811b815260100192915050565b6000613f16602c836146c0565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81526b7574206f6620626f756e647360a01b602082015260400192915050565b6000613f6460398361047d565b7f2720786d6c6e733d27687474703a2f2f7777772e77332e6f72672f323030302f81527f737667272076696577426f783d27302030203234203234273e00000000000000602082015260390192915050565b6000613fc360178361047d565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260170192915050565b6000613ffc602f8361047d565b7f3c7061746820636c6173733d276c756368612d736b696e2720643d274d31342081526e1898241cbb19b41b3b1699bd13979f60891b6020820152602f0192915050565b600061404d60068361047d565b651e17b9bb339f60d11b815260060192915050565b600061406f60118361047d565b7001034b99036b4b9b9b4b733903937b6329607d1b815260110192915050565b600061409c602f836146c0565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636581526e103937b632b9903337b91039b2b63360891b602082015260400192915050565b60006140ec8287612f7e565b91506140f88286612f7e565b9150614103826135ec565b915061410f8285612f7e565b915061411a82613424565b915061412582613c47565b91506141318284612f7e565b915061413c826137c2565b9150614147826138e0565b9695505050505050565b600061415c826130b8565b91506123308284612f7e565b6000614173826134e4565b915061417f828f612f7e565b915061418a82613f57565b9150614196828e612f7e565b91506141a182613701565b91506141ad828d612fad565b91506141b9828c612fad565b91506141c482613d6a565b91506141d0828b612fad565b91506141dc828a612fad565b91506141e88289612f7e565b91506141f382613aed565b91506141fe826137df565b915061420a8288612fad565b915061421582613bdf565b91506142218287612f7e565b915061422c82613207565b915061423782613fef565b915061424282613060565b915061424e8286612fad565b915061425982613bdf565b915061426482613324565b915061426f82613442565b915061427b8285612fad565b915061428682613a31565b91506142928284612fad565b915061429d82614040565b9e9d5050505050505050505050505050565b60006142ba82613bff565b91506142c582613a0c565b91506142d18287612f7e565b91506142dc82613424565b91506142e7826138fd565b91506142f282613542565b91506142fe8286612f7e565b915061430982613424565b915061431482613b8d565b91506143208285612f7e565b915061432b82613424565b915061433682613c1c565b91506143428284612f7e565b915061413c82613cd1565b600061415c82613d31565b600061436382613edd565b915061436f828c612f7e565b915061437a82613c6d565b9150614386828b612fad565b91506143918261373a565b915061439d828a612f7e565b91506143a882613511565b91506143b48289612fad565b91506143bf8261373a565b91506143cb8288612f7e565b91506143d682613c9f565b91506143e28287612fad565b91506143ed8261373a565b91506143f98286612f7e565b9150614404826131d5565b91506144108285612fad565b915061441b8261373a565b91506144278284612f7e565b9150614432826130de565b9b9a5050505050505050505050565b600061444c82613fb6565b91506144588285612f7e565b915061446382614062565b9150611b1f8284612f7e565b602081016108d88284612f1c565b6080810161448b8287612f1c565b6144986020830186612f1c565b6144a56040830185612f34565b81810360608301526141478184612f3d565b604081016144c58285612f1c565b6123306020830184612f34565b602081016108d88284612f2b565b602081016108d88284612f34565b602081016108d88284612f75565b602080825281016123308184612f3d565b6020808252810161047a81613027565b6020808252810161047a81613383565b6020808252810161047a816133d0565b6020808252810161047a816134ab565b6020808252810161047a8161356d565b6020808252810161047a816135b3565b6020808252810161047a81613617565b6020808252810161047a81613641565b6020808252810161047a8161368f565b6020808252810161047a816136c8565b6020808252810161047a81613763565b6020808252810161047a81613810565b6020808252810161047a8161385c565b6020808252810161047a816138a7565b6020808252810161047a816139be565b6020808252810161047a81613aa2565b6020808252810161047a81613cee565b6020808252810161047a81613e51565b6020808252810161047a81613ea4565b6020808252810161047a81613f09565b6020808252810161047a8161408f565b6040518181016001600160401b038111828210171561467e5761467e6148f7565b604052919050565b60006001600160401b0382111561469f5761469f6148f7565b506020601f91909101601f19160190565b60009081526020902090565b5190565b90815260200190565b60006146d482614793565b91506146df83614793565b925082198211156146f2576146f26148b5565b500190565b600061470282614793565b915061470d83614793565b92508261471c5761471c6148cb565b500490565b600061472c82614793565b915061473783614793565b9250816000190483118215151615614751576147516148b5565b500290565b600061476182614793565b915061476c83614793565b92508282101561477e5761477e6148b5565b500390565b600061047a826147a3565b151590565b90565b6001600160e01b03191690565b6001600160a01b031690565b60ff1690565b600061047a82614783565b82818337506000910152565b60005b838110156147e75781810151838201526020016147cf565b83811115610bf85750506000910152565b600061480382614793565b915081614812576148126148b5565b506000190190565b60028104600182168061482e57607f821691505b60208210811415614841576148416148e1565b50919050565b600061485282614793565b9150600019821415614866576148666148b5565b5060010190565b6000614878826147af565b915060ff821415614866576148666148b5565b600061489682614793565b91506148a183614793565b9250826148b0576148b06148cb565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b601f01601f191690565b61492081614783565b811461492b57600080fd5b50565b6149208161478e565b61492081614793565b6149208161479656fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c7061746820636c6173733d276c756368612d616c742720643d274d313820345633682d315632682d315631682d3156304839763148387631483776314836763248357635683156366831563568325634683156336834763168317631683276316831763468315635682d317a272f3e3c672066696c6c3d2723303030273e3c7061746820643d274d313820345633682d315632682d315631682d3156304839763148387631483776314836763248357635683156356831563468315633683156326836763168317631683176316831763568315635682d317a27206f7061636974793d272e32272f3e3c7061746820643d274d313620345633682d31563248397631483876314837763168325634683156336834763168317631683256347a4d3620356831763148367a4d3137203568317631682d317a27206f7061636974793d272e35272f3e3c2f673e3c7061746820636c6173733d276c756368612d616c742720643d274d32302031305639682d327631682d3176316834762d317a4d35203948347631483376316834762d31483656397a272f3e3c706174682066696c6c3d272330303027206f7061636974793d272e322720643d274d36203948347631483376316834762d3148367a4d32302031305639682d327631682d3176316834762d317a272f3ea264697066735822122066bd1c00b66de72f2c2b99a228c74e70b06f767a72f892f2ab98068b7462bd5e64736f6c634300080000333c7061746820636c6173733d276c756368612d626173652720643d274d3232203134682d3376316834762d317a272f3e3c7061746820636c6173733d276c756368612d626173652720643d274d35203136483176336834762d316831762d3148357a4d3232203136682d337631682d317631683176316834762d337a272f3e3c7061746820636c6173733d276c756368612d616c742720643d274d33203136483176316834762d3148347a4d3232203136682d3376316834762d317a272f3e3c7061746820636c6173733d276c756368612d616c742720643d274d39203230483876316833762d31682d317a4d3135203230682d3276316833762d317a272f3e3c7061746820636c6173733d276c756368612d626173652720643d274d3232203134682d3376336834762d337a4d33203134483176336834762d3348347a272f3e3c7061746820636c6173733d276c756368612d616c742720643d274d3232203134682d3376316834762d317a4d33203134483176316834762d3148347a272f3e3c7061746820643d274d313820355633682d315632682d317632682d317631682d317631682d317633682d325636682d31563548395634483856324837763148367632483576346831763168327633683176316836762d316831762d3368325639683156357a272f3e3c7061746820636c6173733d276c756368612d626173652720643d274d3232203132762d31682d31762d31682d315639483476314833763148327631483176356834762d336831763168317631683176326838762d326831762d316831762d31683176336834762d357a272f3e3c7061746820643d274d3232203132762d31682d31762d31682d315639483476314833763148327631483176356834762d336831763168317631683176326838762d326831762d316831762d31683176336834762d357a272066696c6c3d272330303027206f7061636974793d272e3135272f3e3c7061746820643d274d313320335632682d32763268327a4d313320315630682d32763168317a4d313020344839563148387631483776314836763248357635683176326831763168317631683176316831762d324839762d3368325635682d317a4d313820355633682d315632682d315631682d317633682d317631682d31763568327633682d3176326831762d316831762d316831762d316831762d32683156357a272f3e3c7061746820636c6173733d276c756368612d626173652720643d274d3135203137483876336838762d337a272f3e3c7061746820636c6173733d276c756368612d616c742720643d274d31352031387631682d3276346833762d357a4d39203139762d31483876356833762d34682d317a272f3e3c7061746820636c6173733d276c756368612d626173652720643d274d33203135483176326834762d3248347a4d3232203135682d3376326834762d327a272f3e3c7061746820636c6173733d276c756368612d616c742720643d274d34203134483176316834762d317a272f3e3c7061746820636c6173733d276c756368612d626173652720643d274d36203256314835763568315635683156336831563248377a4d313820317631682d3276316831763268317631683156317a272f3e3c672066696c6c3d2723303030273e3c7061746820643d274d3520316831763148357a4d36203276316832563248377a4d3138203168317631682d317a4d31362032763168325632682d317a27206f7061636974793d272e33272f3e3c7061746820643d274d36203356324835763468315635683156337a4d313820327631682d31763268317631683156327a27206f7061636974793d272e32272f3e3c2f673e3c706174682066696c6c3d27234139413138412720643d274d323120325631682d315630682d31763268317631682d3376326832763168325635683156327a4d352033483456326831563048347631483376314832763368317631683256356832563348367a272f3e3c672066696c6c3d272330303027206f7061636974793d272e3135273e3c7061746820643d274d3231203468317631682d317a4d31392035682d31763168335635682d317a272f3e3c7061746820643d274d3220346831763148327a4d342035483376316833563548357a272f3e3c2f673e3c7061746820643d274d313820355633682d315632682d315631682d3156304839763148387631483776314836763248357635683176326831763168317631683176316831762d3468315635483956336831563268315631683276316831763168317632682d327636683176346831762d316831762d316831762d316831762d32683156357a272f3e3c7061746820643d274d31342032682d315630682d327632483976326832763468325634683256327a4d3132203133682d3176326832762d327a272f3e3c7061746820636c6173733d276c756368612d626173652720643d274d34203134483176316834762d317a4d3232203134682d3376316834762d317a272f3e3c7061746820636c6173733d276c756368612d626173652720643d274d31302039483476314833763148327631483176336834762d31683176316831763168317632683356397a4d3232203132762d31682d31762d31682d315639682d3776396833762d326831762d316831762d31683176316834762d337a272f3e3c7061746820643d274d31302039483476314833763148327631483176336834762d31683176316831763168317632683356397a4d3232203132762d31682d31762d31682d315639682d3776396833762d326831762d316831762d31683176316834762d337a272066696c6c3d272330303027206f7061636974793d272e3135272f3e3c7061746820636c6173733d276c756368612d616c742720643d274d323020313148337631326831762d316832762d3168313276316832763168315631317a272f3e3c672066696c6c3d2723303030273e3c70617468206f7061636974793d272e322720643d274d323020313176313268315631317a4d33203132763131683156313148337a272f3e3c70617468206f7061636974793d272e352720643d274d313920313148347631316832762d31683132763168325631317a272f3e3c2f673e3c7061746820643d274d31312030483976314838763148377631483676324835763568317632683176316831763168317631683356307a272f3e3c7061746820636c6173733d276c756368612d616c742720643d274d3135203137483876366833762d33683276336833762d367a272f3e3c7061746820643d274d313120326832563168315630682d34763168317a4d3620313076326831762d316831762d3148377a4d3137203130682d317631683176316831762d327a272f3e3c7061746820643d274d3136203368315632682d315631682d317631682d317631682d317631682d325633682d3156324839563148387631483776316831763168317631683176316831763968325636683156356831563468317a272f3e3c7061746820636c6173733d276c756368612d626173652720643d274d313620394837763368312d317634683176316838762d316831762d34682d31203156397a272f3e3c706174682066696c6c3d272330303027206f7061636974793d272e31352720643d274d3136203948377637683176316838762d31683156397a272f3e3c7061746820643d274d313720337631682d327631682d317631682d317633683556337a4d313120385636682d31563548395634483756334836763668357a4d313120313376326832762d32682d317a272f3e3c7061746820636c6173733d276c756368612d616c742720643d274d3920323248387631483776316834762d32682d317a4d3136203233762d31682d3376326834762d317a272f3e3c706174682066696c6c3d272334323163303327206f7061636974793d272e392720643d274d3134203130483976336831762d32683476326831762d337a272f3e3c7061746820636c6173733d276c756368612d626173652720643d274d313520397639683156397a4d3820313076386831563948387a272f3e3c7061746820643d274d3820313076386831563948387a4d313520397639683156397a272066696c6c3d272330303027206f7061636974793d272e3135272f3e3c7061746820643d274d313820355633682d315632682d317631682d317631682d317631682d317631682d325635682d3156344839563348385632483776314836763248357635683176326831762d316831762d31683356396832763168337631683176316831762d32683156357a272f3e3c7061746820643d274d31332033682d335632683156316831563048397631483876314837763148367632683376314838763248377632683156396831563868315637683156366831563568315634683156337a272f3e0000000000000000000000008b4616926705fb61e9c4eeac07cd946a5d4b076000000000000000000000000035d5f25423432acd83b9eb8082e3cfcb9abe453a
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102065760003560e01c8063692ad6e71161011a578063a217fddf116100ad578063b88d4fde1161007c578063b88d4fde1461041b578063c87b56dd1461042e578063d547741f14610441578063d9f5861114610454578063e985e9c51461045c57610206565b8063a217fddf146103da578063a22cb465146103e2578063a71604e8146103f5578063aa8d87961461040857610206565b806391d14854116100e957806391d148541461039957806395d89b41146103ac578063983d95ce146103b45780639ab5a946146103c757610206565b8063692ad6e71461036157806370a082311461037657806371372544146103895780637d1cad0a1461039157610206565b806323b872dd1161019d57806336568abe1161016c57806336568abe14610302578063373807ae1461031557806342842e0e146103285780634f6ccce71461033b5780636352211e1461034e57610206565b806323b872dd146102b6578063248a9ca3146102c95780632f2ff15d146102dc5780632f745c59146102ef57610206565b8063095ea7b3116101d9578063095ea7b31461027c5780630a8a49141461029157806318160ddd146102995780631be0e195146102ae57610206565b806301ffc9a71461020b578063061ba2f11461023457806306fdde0314610254578063081812fc1461025c575b600080fd5b61021e610219366004612eac565b61046f565b60405161022b91906144d2565b60405180910390f35b610247610242366004612e6f565b610482565b60405161022b91906144fc565b610247610672565b61026f61026a366004612e6f565b610704565b60405161022b919061446f565b61028f61028a366004612d72565b610747565b005b61026f6107df565b6102a16107ee565b60405161022b91906144e0565b6102a16107f4565b61028f6102c4366004612c28565b610818565b6102a16102d7366004612e6f565b610850565b61028f6102ea366004612e8d565b610865565b6102a16102fd366004612d72565b610889565b61028f610310366004612e8d565b6108de565b61028f610323366004612de3565b610924565b61028f610336366004612c28565b610a03565b6102a1610349366004612e6f565b610a1e565b61026f61035c366004612e6f565b610a79565b610369610aae565b60405161022b91906144ee565b6102a1610384366004612bd0565b610abd565b6102a1610b01565b61028f610b25565b61021e6103a7366004612e8d565b610b45565b610247610b70565b61028f6103c2366004612da2565b610b7f565b61028f6103d5366004612e51565b610bfe565b6102a1610c3f565b61028f6103f0366004612d42565b610c44565b61028f610403366004612ced565b610d12565b61028f610416366004612ced565b610dc0565b61028f610429366004612c75565b610e52565b61024761043c366004612e6f565b610e8b565b61028f61044f366004612e8d565b6118f5565b6102a1611914565b61021e61046a366004612bee565b611938565b600061047a82611966565b90505b919050565b606060008211801561049657506127108211155b6104bb5760405162461bcd60e51b81526004016104b29061459d565b60405180910390fd5b6000828152601960205260408120546104d39061198b565b90506000816001602002015160ff1615806104f55750602082015160ff166001145b61050e5760405180602001604052806000815250610528565b6040518060c00160405280609d8152602001614ad6609d91395b90506000826001602002015160ff166001146105535760405180602001604052806000815250610570565b60405180610180016040528061014c815260200161498a61014c91395b905061057b85611a05565b6105858685611b27565b845160ff9081166000908152601160209081526040808320828a01518516845260128352818420828b0151861685526013845282852060608c0151871686526014855283862060808d0151881687526015865284872060a08e0151891688526016875285882060c08f0151909916885260179096529386206001938401979284019691840195948401948c94908101938c9390820192909101906018908f6007602002015160ff1681526020019081526020016000206001016040516020016106599c9b9a99989796959493929190614168565b6040516020818303038152906040529350505050919050565b6060600080546106819061481a565b80601f01602080910402602001604051908101604052809291908181526020018280546106ad9061481a565b80156106fa5780601f106106cf576101008083540402835291602001916106fa565b820191906000526020600020905b8154815290600101906020018083116106dd57829003601f168201915b5050505050905090565b600061070f82611c59565b61072b5760405162461bcd60e51b81526004016104b2906145ed565b506000908152600460205260409020546001600160a01b031690565b600061075282610a79565b9050806001600160a01b0316836001600160a01b031614156107865760405162461bcd60e51b81526004016104b29061460d565b806001600160a01b0316610798611c76565b6001600160a01b031614806107b457506107b48161046a611c76565b6107d05760405162461bcd60e51b81526004016104b2906145ad565b6107da8383611c7a565b505050565b600c546001600160a01b031690565b60085490565b7f6ae19fd703cb304b53d5f09f6a0ce96b7c6a7edd912859ca6c4ed719bcab610d81565b610829610823611c76565b82611ce8565b6108455760405162461bcd60e51b81526004016104b29061461d565b6107da838383611d65565b6000908152600a602052604090206001015490565b61086e82610850565b61087f8161087a611c76565b611e92565b6107da8383611ef6565b600061089483610abd565b82106108b25760405162461bcd60e51b81526004016104b29061451d565b506001600160a01b03821660009081526006602090815260408083208484529091529020545b92915050565b6108e6611c76565b6001600160a01b0316816001600160a01b0316146109165760405162461bcd60e51b81526004016104b29061464d565b6109208282611f7d565b5050565b60006109328161087a611c76565b601a54610100900460ff161561095a5760405162461bcd60e51b81526004016104b29061456d565b8382146109795760405162461bcd60e51b81526004016104b29061462d565b60005b848110156109fb578383828181106109a457634e487b7160e01b600052603260045260246000fd5b90506020020135601960008888858181106109cf57634e487b7160e01b600052603260045260246000fd5b9050602002013581526020019081526020016000208190555080806109f390614847565b91505061097c565b505050505050565b6107da83838360405180602001604052806000815250610e52565b6000610a286107ee565b8210610a465760405162461bcd60e51b81526004016104b29061463d565b60088281548110610a6757634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b03168061047a5760405162461bcd60e51b81526004016104b2906145cd565b600b546001600160a01b031681565b60006001600160a01b038216610ae55760405162461bcd60e51b81526004016104b2906145bd565b506001600160a01b031660009081526003602052604090205490565b7fcf6f9f892731e14b8859835f2ff35575f447fb501f46243c4eb8bac19e31a05081565b6000610b338161087a611c76565b50601a805461ff001916610100179055565b6000918252600a602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600180546106819061481a565b7fc04072633e9c068233df4c76f88688458691556cd8b5c7ca3ea8ecdc7be6e028610bac8161087a611c76565b60005b82811015610bf857610be6848483818110610bda57634e487b7160e01b600052603260045260246000fd5b90506020020135612002565b80610bf081614847565b915050610baf565b50505050565b7f6ae19fd703cb304b53d5f09f6a0ce96b7c6a7edd912859ca6c4ed719bcab610d610c2b8161087a611c76565b50601a805460ff1916911515919091179055565b600081565b610c4c611c76565b6001600160a01b0316826001600160a01b03161415610c7d5760405162461bcd60e51b81526004016104b29061455d565b8060056000610c8a611c76565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610cce611c76565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610d0691906144d2565b60405180910390a35050565b7fc04072633e9c068233df4c76f88688458691556cd8b5c7ca3ea8ecdc7be6e028610d3f8161087a611c76565b6001821115610d9b5760005b82811015610d9557610d8385858584818110610d7757634e487b7160e01b600052603260045260246000fd5b905060200201356120a9565b80610d8d81614847565b915050610d4b565b50610bf8565b610bf88484846000818110610d7757634e487b7160e01b600052603260045260246000fd5b7fcf6f9f892731e14b8859835f2ff35575f447fb501f46243c4eb8bac19e31a050610ded8161087a611c76565b60005b82811015610e4b57610e393086868685818110610e1d57634e487b7160e01b600052603260045260246000fd5b9050602002013560405180602001604052806000815250612188565b80610e4381614847565b915050610df0565b5050505050565b610e63610e5d611c76565b83611ce8565b610e7f5760405162461bcd60e51b81526004016104b29061461d565b610bf884848484612188565b6060600082118015610e9f57506127108211155b610ebb5760405162461bcd60e51b81526004016104b29061458d565b600082815260196020526040812054610ed39061198b565b604080516101008101808352835160ff16600090815260116020528381206101408401909452835460a01b6001600160a01b03191682526001840180549596509094929384939091610120850191610f2a9061481a565b80601f0160208091040260200160405190810160405280929190818152602001828054610f569061481a565b8015610fa35780601f10610f7857610100808354040283529160200191610fa3565b820191906000526020600020905b815481529060010190602001808311610f8657829003601f168201915b50505091909252505050815260208481015160ff166000908152601282526040908190208151808301909252805460a01b6001600160a01b0319168252600181018054948401949293919291840191610ffb9061481a565b80601f01602080910402602001604051908101604052809291908181526020018280546110279061481a565b80156110745780601f1061104957610100808354040283529160200191611074565b820191906000526020600020905b81548152906001019060200180831161105757829003601f168201915b50505091909252505050815260408481015160ff16600090815260136020908152908290208251808401909352805460a01b6001600160a01b03191683526001810180549483019491928401916110ca9061481a565b80601f01602080910402602001604051908101604052809291908181526020018280546110f69061481a565b80156111435780601f1061111857610100808354040283529160200191611143565b820191906000526020600020905b81548152906001019060200180831161112657829003601f168201915b505050919092525050508152606084015160ff166000908152601460209081526040918290208251808401909352805460a01b6001600160a01b031916835260018101805494830194919284019161119a9061481a565b80601f01602080910402602001604051908101604052809291908181526020018280546111c69061481a565b80156112135780601f106111e857610100808354040283529160200191611213565b820191906000526020600020905b8154815290600101906020018083116111f657829003601f168201915b505050919092525050508152608084015160ff166000908152601560209081526040918290208251808401909352805460a01b6001600160a01b031916835260018101805494830194919284019161126a9061481a565b80601f01602080910402602001604051908101604052809291908181526020018280546112969061481a565b80156112e35780601f106112b8576101008083540402835291602001916112e3565b820191906000526020600020905b8154815290600101906020018083116112c657829003601f168201915b50505091909252505050815260a08481015160ff166000908152601660209081526040918290208251808401909352805490931b6001600160a01b0319168252600183018054948201949293929184019161133d9061481a565b80601f01602080910402602001604051908101604052809291908181526020018280546113699061481a565b80156113b65780601f1061138b576101008083540402835291602001916113b6565b820191906000526020600020905b81548152906001019060200180831161139957829003601f168201915b50505091909252505050815260c084015160ff166000908152601760209081526040918290208251808401909352805460a01b6001600160a01b031916835260018101805494830194919284019161140d9061481a565b80601f01602080910402602001604051908101604052809291908181526020018280546114399061481a565b80156114865780601f1061145b57610100808354040283529160200191611486565b820191906000526020600020905b81548152906001019060200180831161146957829003601f168201915b50505091909252505050815260e084015160ff166000908152601860209081526040918290208251808401909352805460a01b6001600160a01b03191683526001810180549483019491928401916114dd9061481a565b80601f01602080910402602001604051908101604052809291908181526020018280546115099061481a565b80156115565780601f1061152b57610100808354040283529160200191611556565b820191906000526020600020905b81548152906001019060200180831161153957829003601f168201915b5050505050815250508152509050606060006040518061010001604052806040518060400160405280600681526020016514dc1a5c9a5d60d21b8152508152602001604051806040016040528060048152602001634361706560e01b815250815260200160405180604001604052806005815260200164546f72736f60d81b81525081526020016040518060400160405280600481526020016341726d7360e01b8152508152602001604051806040016040528060048152602001634d61736b60e01b81525081526020016040518060400160405280600581526020016409adeeae8d60db1b815250815260200160405180604001604052806007815260200166426f74746f6d7360c81b815250815260200160405180604001604052806005815260200164426f6f747360d81b815250815250905060005b60088110156117a1578381600881106116b857634e487b7160e01b600052603260045260246000fd5b6020020151516001600160a01b0319166116d15761178f565b8283516000146116fc57604051806040016040528060038152602001622c207b60e81b815250611717565b604051806040016040528060018152602001607b60f81b8152505b83836008811061173757634e487b7160e01b600052603260045260246000fd5b602002015161176a87856008811061175f57634e487b7160e01b600052603260045260246000fd5b6020020151516121bb565b60405160200161177d94939291906140e0565b60405160208183030381529060405292505b8061179981614847565b91505061168f565b50601a5460009060ff166117c4576040518060200160405280600081525061184e565b600b54600c5460405163e1090cff60e01b81526001600160a01b039283169263e1090cff926117fa929116908b906004016144b7565b60006040518083038186803b15801561181257600080fd5b505afa158015611826573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261184e9190810190612ee8565b90506000808251116118875761186388611a05565b6040516020016118739190614151565b604051602081830303815290604052611889565b815b90506118c9816118988a610482565b6118a18b611a05565b876040516020016118b594939291906142af565b604051602081830303815290604052612337565b6040516020016118d9919061434d565b6040516020818303038152906040529650505050505050919050565b6118fe82610850565b61190a8161087a611c76565b6107da8383611f7d565b7fc04072633e9c068233df4c76f88688458691556cd8b5c7ca3ea8ecdc7be6e02881565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006001600160e01b03198216637965db0b60e01b148061047a575061047a826124aa565b611993612a81565b61199b612a81565b60005b600c8110156119fe576119b2600a8561488b565b8282600c81106119d257634e487b7160e01b600052603260045260246000fd5b60ff90921660209290920201526119ea600a856146f7565b9350806119f681614847565b91505061199e565b5092915050565b606081611a2a57506040805180820190915260018152600360fc1b602082015261047d565b8160005b8115611a545780611a3e81614847565b9150611a4d9050600a836146f7565b9150611a2e565b6000816001600160401b03811115611a7c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611aa6576020820181803683370190505b5090505b8415611b1f57611abb600183614756565b9150611ac8600a8661488b565b611ad39060306146c9565b60f81b818381518110611af657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611b18600a866146f7565b9450611aaa565b949350505050565b6060611b3283611a05565b600d836008602002015160ff1681548110611b5d57634e487b7160e01b600052603260045260246000fd5b90600052602060002001611b7085611a05565b600e856009602002015160ff1681548110611b9b57634e487b7160e01b600052603260045260246000fd5b90600052602060002001611bae87611a05565b600f87600a602002015160ff1681548110611bd957634e487b7160e01b600052603260045260246000fd5b90600052602060002001611bec89611a05565b601089600b602002015160ff1681548110611c1757634e487b7160e01b600052603260045260246000fd5b90600052602060002001611c2a8b611a05565b604051602001611c4299989796959493929190614358565b604051602081830303815290604052905092915050565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611caf82610a79565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611cf382611c59565b611d0f5760405162461bcd60e51b81526004016104b29061457d565b6000611d1a83610a79565b9050806001600160a01b0316846001600160a01b03161480611d555750836001600160a01b0316611d4a84610704565b6001600160a01b0316145b80611b1f5750611b1f8185611938565b826001600160a01b0316611d7882610a79565b6001600160a01b031614611d9e5760405162461bcd60e51b81526004016104b2906145fd565b6001600160a01b038216611dc45760405162461bcd60e51b81526004016104b29061454d565b611dcf8383836124cf565b611dda600082611c7a565b6001600160a01b0383166000908152600360205260408120805460019290611e03908490614756565b90915550506001600160a01b0382166000908152600360205260408120805460019290611e319084906146c9565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611e9c8282610b45565b61092057611eb4816001600160a01b03166014612558565b611ebf836020612558565b604051602001611ed0929190614441565b60408051601f198184030181529082905262461bcd60e51b82526104b2916004016144fc565b611f008282610b45565b610920576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611f39611c76565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611f878282610b45565b15610920576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff19169055611fbe611c76565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b600061200d82610a79565b905061201b816000846124cf565b612026600083611c7a565b6001600160a01b038116600090815260036020526040812080546001929061204f908490614756565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0382166120cf5760405162461bcd60e51b81526004016104b2906145dd565b6120d881611c59565b156120f55760405162461bcd60e51b81526004016104b29061453d565b612101600083836124cf565b6001600160a01b038216600090815260036020526040812080546001929061212a9084906146c9565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b612193848484611d65565b61219f84848484612709565b610bf85760405162461bcd60e51b81526004016104b29061452d565b606060005b600c8160ff161080156122025750828160ff16600c81106121f157634e487b7160e01b600052603260045260246000fd5b1a60f81b6001600160f81b03191615155b1561221957806122118161486d565b9150506121c0565b60008160ff166001600160401b0381111561224457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561226e576020820181803683370190505b509050600091505b600c8260ff161080156122b85750838260ff16600c81106122a757634e487b7160e01b600052603260045260246000fd5b1a60f81b6001600160f81b03191615155b1561233057838260ff16600c81106122e057634e487b7160e01b600052603260045260246000fd5b1a60f81b818360ff168151811061230757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350816123288161486d565b925050612276565b9392505050565b80516060908061235757505060408051602081019091526000815261047d565b600060036123668360026146c9565b61237091906146f7565b61237b906004614721565b9050600061238a8260206146c9565b6001600160401b038111156123af57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156123d9576020820181803683370190505b509050600060405180606001604052806040815260200161494a604091399050600181016020830160005b86811015612465576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101612404565b50600386066001811461247f57600281146124905761249c565b613d3d60f01b60011983015261249c565b603d60f81b6000198301525b505050918152949350505050565b60006001600160e01b0319821663780e9d6360e01b148061047a575061047a82612824565b6124da8383836107da565b6001600160a01b0383166124f6576124f181612864565b612519565b816001600160a01b0316836001600160a01b0316146125195761251983826128a8565b6001600160a01b0382166125355761253081612945565b6107da565b826001600160a01b0316826001600160a01b0316146107da576107da8282612a1e565b60606000612567836002614721565b6125729060026146c9565b6001600160401b0381111561259757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156125c1576020820181803683370190505b509050600360fc1b816000815181106125ea57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061262757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061264b846002614721565b6126569060016146c9565b90505b60018111156126ea576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061269857634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106126bc57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936126e3816147f8565b9050612659565b5083156123305760405162461bcd60e51b81526004016104b29061450d565b600061271d846001600160a01b0316612a62565b1561281957836001600160a01b031663150b7a02612739611c76565b8786866040518563ffffffff1660e01b815260040161275b949392919061447d565b602060405180830381600087803b15801561277557600080fd5b505af19250505080156127a5575060408051601f3d908101601f191682019092526127a291810190612eca565b60015b6127ff573d8080156127d3576040519150601f19603f3d011682016040523d82523d6000602084013e6127d8565b606091505b5080516127f75760405162461bcd60e51b81526004016104b29061452d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611b1f565b506001949350505050565b60006001600160e01b031982166380ac58cd60e01b148061285557506001600160e01b03198216635b5e139f60e01b145b8061047a575061047a82612a68565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b600060016128b584610abd565b6128bf9190614756565b600083815260076020526040902054909150808214612912576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061295790600190614756565b6000838152600960205260408120546008805493945090928490811061298d57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600883815481106129bc57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612a0257634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612a2983610abd565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b3b151590565b6001600160e01b031981166301ffc9a760e01b14919050565b604051806101800160405280600c906020820280368337509192915050565b6000612ab3612aae84614686565b61465d565b905082815260208101848484011115612acb57600080fd5b612ad68482856147c0565b509392505050565b6000612aec612aae84614686565b905082815260208101848484011115612b0457600080fd5b612ad68482856147cc565b80356108d881614917565b60008083601f840112612b2c57600080fd5b5081356001600160401b03811115612b4357600080fd5b602083019150836020820283011115612b5b57600080fd5b9250929050565b80356108d88161492e565b80356108d881614937565b80356108d881614940565b80516108d881614940565b600082601f830112612b9f57600080fd5b8135611b1f848260208601612aa0565b600082601f830112612bc057600080fd5b8151611b1f848260208601612ade565b600060208284031215612be257600080fd5b6000611b1f8484612b0f565b60008060408385031215612c0157600080fd5b6000612c0d8585612b0f565b9250506020612c1e85828601612b0f565b9150509250929050565b600080600060608486031215612c3d57600080fd5b6000612c498686612b0f565b9350506020612c5a86828701612b0f565b9250506040612c6b86828701612b6d565b9150509250925092565b60008060008060808587031215612c8b57600080fd5b6000612c978787612b0f565b9450506020612ca887828801612b0f565b9350506040612cb987828801612b6d565b92505060608501356001600160401b03811115612cd557600080fd5b612ce187828801612b8e565b91505092959194509250565b600080600060408486031215612d0257600080fd5b6000612d0e8686612b0f565b93505060208401356001600160401b03811115612d2a57600080fd5b612d3686828701612b1a565b92509250509250925092565b60008060408385031215612d5557600080fd5b6000612d618585612b0f565b9250506020612c1e85828601612b62565b60008060408385031215612d8557600080fd5b6000612d918585612b0f565b9250506020612c1e85828601612b6d565b60008060208385031215612db557600080fd5b82356001600160401b03811115612dcb57600080fd5b612dd785828601612b1a565b92509250509250929050565b60008060008060408587031215612df957600080fd5b84356001600160401b03811115612e0f57600080fd5b612e1b87828801612b1a565b945094505060208501356001600160401b03811115612e3957600080fd5b612e4587828801612b1a565b95989497509550505050565b600060208284031215612e6357600080fd5b6000611b1f8484612b62565b600060208284031215612e8157600080fd5b6000611b1f8484612b6d565b60008060408385031215612ea057600080fd5b6000612c0d8585612b6d565b600060208284031215612ebe57600080fd5b6000611b1f8484612b78565b600060208284031215612edc57600080fd5b6000611b1f8484612b83565b600060208284031215612efa57600080fd5b81516001600160401b03811115612f1057600080fd5b611b1f84828501612baf565b612f2581614783565b82525050565b612f258161478e565b612f2581614793565b6000612f48826146bc565b612f5281856146c0565b9350612f628185602086016147cc565b612f6b8161490d565b9093019392505050565b612f25816147b5565b6000612f89826146bc565b612f93818561047d565b9350612fa38185602086016147cc565b9290920192915050565b60008154612fba8161481a565b612fc4818661047d565b9450600182168015612fdd5760018114612fee5761301e565b60ff1983168652818601935061301e565b612ff7856146b0565b60005b8381101561301657815488820152600190910190602001612ffa565b838801955050505b50505092915050565b60006130346020836146c0565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74815260200192915050565b600061306d60368361047d565b7f3c706174682066696c6c3d272330303027206f7061636974793d272e392720648152751e93a69899901898b41699bb18b41a3b1698bd13979f60511b602082015260360192915050565b60006130c5600a8361047d565b694c75636861646f72202360b01b8152600a0192915050565b60006130eb60bd8361047d565b7f202e6c756368612d62726561746865207b20616e696d6174696f6e3a20302e3581527f73206c756368612d6272656174686520696e66696e69746520616c7465726e6160208201527f746520656173652d696e2d6f75743b207d20406b65796672616d6573206c756360408201527f68612d62726561746865207b2066726f6d207b207472616e73666f726d3a207460608201527f72616e736c6174655928307078293b207d20746f207b207472616e73666f726d60808201527f3a207472616e736c61746559283125293b207d207d3c2f7374796c653e00000060a082015260bd0192915050565b60006131e260168361047d565b75202e6c756368612d736b696e207b2066696c6c3a202360501b815260160192915050565b600061321460de8361047d565b7f3c706174682066696c6c3d27234646462720643d274d3920364836763368345681527f367a4d31372036682d337633683456367a272f3e3c7061746820636c6173733d60208201527f276c756368612d657965732720643d274d31362036682d327633683356367a4d60408201527f382036483776336833563648397a272f3e3c706174682066696c6c3d2723464660608201527f462720643d274d3720366831763148377a4d3136203668317631682d317a272060808201527f6f7061636974793d272e34272f3e3c706174682066696c6c3d2723303030272060a08201527f643d274d3135203768317631682d317a4d3820376831763148387a272f3e000060c082015260de0192915050565b6000613331603f8361047d565b7f3c7061746820636c6173733d276c756368612d736b696e2720643d274d31362081527f3233762d3648387636483776316834762d34683276346834762d317a272f3e006020820152603f0192915050565b6000613390602b836146c0565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7581526a74206f6620626f756e647360a81b602082015260400192915050565b60006133dd6032836146c0565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015260400192915050565b600061343160028361047d565b61088b60f21b815260020192915050565b600061344f60418361047d565b7f3c7061746820636c6173733d276c756368612d626173652720643d274d31352081527f31374838763168317631683276316832762d316832762d316831762d317a272f6020820152601f60f91b604082015260410192915050565b60006134b8601c836146c0565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815260200192915050565b60006134f160118361047d565b701e39bb339034b21e93b63ab1b430b237b960791b815260110192915050565b600061351e60158361047d565b74202e6c756368612d616c74207b2066696c6c3a202360581b815260150192915050565b600061354f600f8361047d565b6e1134b6b0b3b2afb230ba30911d101160891b8152600f0192915050565b600061357a6024836146c0565b7f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015260400192915050565b60006135c06019836146c0565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000815260200192915050565b60006135f9600f8361047d565b6e113a3930b4ba2fba3cb832911d101160891b8152600f0192915050565b6000613624600e836146c0565b6d1cd95d1113904e881b1bd8dad95960921b815260200192915050565b600061364e602c836146c0565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b600061369c601b836146c0565b7f746f6b656e5552493a204e6f6e6578697374656e7420746f6b656e0000000000815260200192915050565b60006136d5601c836146c0565b7f696d616765446174613a204e6f6e6578697374656e7420746f6b656e00000000815260200192915050565b600061370e60198361047d565b7f3c6720636c6173733d276c756368612d62726561746865273e00000000000000815260190192915050565b6000613747600d8361047d565b6c1d903e9011b63ab1b430b237b960991b8152600d0192915050565b60006137706038836146c0565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015260400192915050565b60006137cf60018361047d565b601160f91b815260010192915050565b60006137ec60158361047d565b741e339031b630b9b99e93b63ab1b43096b0b63a139f60591b815260150192915050565b600061381d602a836146c0565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b602082015260400192915050565b60006138696029836146c0565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b602082015260400192915050565b60006138b46020836146c0565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373815260200192915050565b60006138ed60018361047d565b607d60f81b815260010192915050565b600061390a608d8361047d565b7f226465736372697074696f6e223a20224c75636861646f72657320617265207281527f616e646f6d6c792067656e657261746564207573696e6720436861696e6c696e60208201527f6b2056524620616e6420686176652031303025206f6e2d636861696e2061727460408201527f20616e64206d65746164617461202d204f6e6c792031303030302077696c6c2060608201526c195d995c88195e1a5cdd08488b609a1b6080820152608d0192915050565b60006139cb602c836146c0565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b6000613a1960098361047d565b68113730b6b2911d101160b91b815260090192915050565b6000613a3e60498361047d565b7f3c7061746820636c6173733d276c756368612d626173652720643d274d39203281527f3148387632483776316834762d33682d317a4d3136203233762d32682d337633602082015268341a3b1698bd13979f60b91b604082015260490192915050565b6000613aaf6029836146c0565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981526839903737ba1037bbb760b91b602082015260400192915050565b6000613afa60728361047d565b7f3c7061746820636c6173733d276c756368612d626173652720643d274d31382081527f355633682d315632682d315631682d315630483976314838763148377631483660208201527f763248357635683176326831763168317631683176316836762d316831762d316040820152713418bb1698b418bb16993418ab1abd13979f60711b606082015260720192915050565b6000613b9a60308361047d565b7f2265787465726e616c5f75726c223a202268747470733a2f2f6c75636861646f81526f7265732e696f2f6c75636861646f722f60801b602082015260300192915050565b6000613bec60048361047d565b631e17b39f60e11b815260040192915050565b6000613c0c60018361047d565b607b60f81b815260010192915050565b6000613c29600f8361047d565b6e2261747472696275746573223a205b60881b8152600f0192915050565b6000613c54600a8361047d565b69113b30b63ab2911d101160b11b8152600a0192915050565b6000613c7a60168361047d565b75202e6c756368612d62617365207b2066696c6c3a202360501b815260160192915050565b6000613cac60168361047d565b75202e6c756368612d65796573207b2066696c6c3a202360501b815260160192915050565b6000613cde60018361047d565b605d60f81b815260010192915050565b6000613cfb6021836146c0565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015260400192915050565b6000613d3e601d8361047d565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152601d0192915050565b6000613d7760ad8361047d565b7f3c7061746820636c6173733d276c756368612d736b696e2720643d274d32322081527f3132762d31682d31762d31682d315639682d315635682d315633682d3156326860208201527f2d315631682d315630483976314838763148377631483676324835763448347660408201527f314833763148327631483176386834762d316831762d324835762d336831763160608201527f68317631683176326838762d326831762d316831762d3168317633682d31763260808201526c3418bb18b41a3b169c3d13979f60991b60a082015260ad0192915050565b6000613e5e6031836146c0565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b602082015260400192915050565b6000613eb1601a836146c0565b7f4172726179206c656e6774687320646f206e6f74206d61746368000000000000815260200192915050565b6000613eea60108361047d565b6f1e39ba3cb6329f11b63ab1b430b237b960811b815260100192915050565b6000613f16602c836146c0565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81526b7574206f6620626f756e647360a01b602082015260400192915050565b6000613f6460398361047d565b7f2720786d6c6e733d27687474703a2f2f7777772e77332e6f72672f323030302f81527f737667272076696577426f783d27302030203234203234273e00000000000000602082015260390192915050565b6000613fc360178361047d565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260170192915050565b6000613ffc602f8361047d565b7f3c7061746820636c6173733d276c756368612d736b696e2720643d274d31342081526e1898241cbb19b41b3b1699bd13979f60891b6020820152602f0192915050565b600061404d60068361047d565b651e17b9bb339f60d11b815260060192915050565b600061406f60118361047d565b7001034b99036b4b9b9b4b733903937b6329607d1b815260110192915050565b600061409c602f836146c0565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636581526e103937b632b9903337b91039b2b63360891b602082015260400192915050565b60006140ec8287612f7e565b91506140f88286612f7e565b9150614103826135ec565b915061410f8285612f7e565b915061411a82613424565b915061412582613c47565b91506141318284612f7e565b915061413c826137c2565b9150614147826138e0565b9695505050505050565b600061415c826130b8565b91506123308284612f7e565b6000614173826134e4565b915061417f828f612f7e565b915061418a82613f57565b9150614196828e612f7e565b91506141a182613701565b91506141ad828d612fad565b91506141b9828c612fad565b91506141c482613d6a565b91506141d0828b612fad565b91506141dc828a612fad565b91506141e88289612f7e565b91506141f382613aed565b91506141fe826137df565b915061420a8288612fad565b915061421582613bdf565b91506142218287612f7e565b915061422c82613207565b915061423782613fef565b915061424282613060565b915061424e8286612fad565b915061425982613bdf565b915061426482613324565b915061426f82613442565b915061427b8285612fad565b915061428682613a31565b91506142928284612fad565b915061429d82614040565b9e9d5050505050505050505050505050565b60006142ba82613bff565b91506142c582613a0c565b91506142d18287612f7e565b91506142dc82613424565b91506142e7826138fd565b91506142f282613542565b91506142fe8286612f7e565b915061430982613424565b915061431482613b8d565b91506143208285612f7e565b915061432b82613424565b915061433682613c1c565b91506143428284612f7e565b915061413c82613cd1565b600061415c82613d31565b600061436382613edd565b915061436f828c612f7e565b915061437a82613c6d565b9150614386828b612fad565b91506143918261373a565b915061439d828a612f7e565b91506143a882613511565b91506143b48289612fad565b91506143bf8261373a565b91506143cb8288612f7e565b91506143d682613c9f565b91506143e28287612fad565b91506143ed8261373a565b91506143f98286612f7e565b9150614404826131d5565b91506144108285612fad565b915061441b8261373a565b91506144278284612f7e565b9150614432826130de565b9b9a5050505050505050505050565b600061444c82613fb6565b91506144588285612f7e565b915061446382614062565b9150611b1f8284612f7e565b602081016108d88284612f1c565b6080810161448b8287612f1c565b6144986020830186612f1c565b6144a56040830185612f34565b81810360608301526141478184612f3d565b604081016144c58285612f1c565b6123306020830184612f34565b602081016108d88284612f2b565b602081016108d88284612f34565b602081016108d88284612f75565b602080825281016123308184612f3d565b6020808252810161047a81613027565b6020808252810161047a81613383565b6020808252810161047a816133d0565b6020808252810161047a816134ab565b6020808252810161047a8161356d565b6020808252810161047a816135b3565b6020808252810161047a81613617565b6020808252810161047a81613641565b6020808252810161047a8161368f565b6020808252810161047a816136c8565b6020808252810161047a81613763565b6020808252810161047a81613810565b6020808252810161047a8161385c565b6020808252810161047a816138a7565b6020808252810161047a816139be565b6020808252810161047a81613aa2565b6020808252810161047a81613cee565b6020808252810161047a81613e51565b6020808252810161047a81613ea4565b6020808252810161047a81613f09565b6020808252810161047a8161408f565b6040518181016001600160401b038111828210171561467e5761467e6148f7565b604052919050565b60006001600160401b0382111561469f5761469f6148f7565b506020601f91909101601f19160190565b60009081526020902090565b5190565b90815260200190565b60006146d482614793565b91506146df83614793565b925082198211156146f2576146f26148b5565b500190565b600061470282614793565b915061470d83614793565b92508261471c5761471c6148cb565b500490565b600061472c82614793565b915061473783614793565b9250816000190483118215151615614751576147516148b5565b500290565b600061476182614793565b915061476c83614793565b92508282101561477e5761477e6148b5565b500390565b600061047a826147a3565b151590565b90565b6001600160e01b03191690565b6001600160a01b031690565b60ff1690565b600061047a82614783565b82818337506000910152565b60005b838110156147e75781810151838201526020016147cf565b83811115610bf85750506000910152565b600061480382614793565b915081614812576148126148b5565b506000190190565b60028104600182168061482e57607f821691505b60208210811415614841576148416148e1565b50919050565b600061485282614793565b9150600019821415614866576148666148b5565b5060010190565b6000614878826147af565b915060ff821415614866576148666148b5565b600061489682614793565b91506148a183614793565b9250826148b0576148b06148cb565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b601f01601f191690565b61492081614783565b811461492b57600080fd5b50565b6149208161478e565b61492081614793565b6149208161479656fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c7061746820636c6173733d276c756368612d616c742720643d274d313820345633682d315632682d315631682d3156304839763148387631483776314836763248357635683156366831563568325634683156336834763168317631683276316831763468315635682d317a272f3e3c672066696c6c3d2723303030273e3c7061746820643d274d313820345633682d315632682d315631682d3156304839763148387631483776314836763248357635683156356831563468315633683156326836763168317631683176316831763568315635682d317a27206f7061636974793d272e32272f3e3c7061746820643d274d313620345633682d31563248397631483876314837763168325634683156336834763168317631683256347a4d3620356831763148367a4d3137203568317631682d317a27206f7061636974793d272e35272f3e3c2f673e3c7061746820636c6173733d276c756368612d616c742720643d274d32302031305639682d327631682d3176316834762d317a4d35203948347631483376316834762d31483656397a272f3e3c706174682066696c6c3d272330303027206f7061636974793d272e322720643d274d36203948347631483376316834762d3148367a4d32302031305639682d327631682d3176316834762d317a272f3ea264697066735822122066bd1c00b66de72f2c2b99a228c74e70b06f767a72f892f2ab98068b7462bd5e64736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000008b4616926705fb61e9c4eeac07cd946a5d4b076000000000000000000000000035d5f25423432acd83b9eb8082e3cfcb9abe453a
-----Decoded View---------------
Arg [0] : connectedToken_ (address): 0x8b4616926705Fb61E9C4eeAc07cd946a5D4b0760
Arg [1] : _luchaNames (address): 0x35d5f25423432AcD83b9Eb8082E3cFCb9aBE453A
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000008b4616926705fb61e9c4eeac07cd946a5d4b0760
Arg [1] : 00000000000000000000000035d5f25423432acd83b9eb8082e3cfcb9abe453a
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.