ERC-721
Overview
Max Total Supply
2,381 BRCK
Holders
1,140
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 BRCKLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BrickBreakers
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 3 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./Base64.sol"; import "./Decompressor.sol"; import "./Leaderboard.sol"; interface GM420 { function balanceOf(address owner) external view returns (uint256); function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); function ownerOf(uint256 tokenId) external view returns (address); } contract BrickBreakers is ERC721Enumerable, Ownable, ReentrancyGuard, Leaderboard { using Strings for uint256; uint256 public constant PRICE = 0.069 ether; string[] levelNames = ["reverseX", "rows", "columns", "pyramid", "hourglass", "rhombus", "heart", "flying saucer", "X", "spiral", "diamond", "face", "skull", "butterfly", "star"]; string[] paddlePaletteNames = ["classic", "retro vibes", "hades"]; string[] brickPaletteNames = ["mango", "watermelon", "classic", "purple dream", "cotton candy", "retro vibes"]; string[] bgPaletteNames = ["SF", "NYC", "cool", "environmental", "pride", "block3d"]; uint256 constant TOTAL_SUPPLY = 2500; uint256 constant GM420_AMOUNT = 420; uint256 constant MAX_MINT_PER_TX = 5; // Modulus is 2^28. minus 1 to do bitwise operations and not division. we'll end up throwing about 40% of the values // away, but it's still cheaper uint256 constant M = 0x8000000 - 1; uint256 constant A = 0x7331331; uint256 constant C = 1036235; // has to be accurate otherwise we'll get uneven distributions uint256 constant TOTAL_OPTIONS = 113246208; uint256 constant LEVEL_COUNT = 15; bytes[] _content; bytes[] _compressionDict; bytes _before; bytes _after; bytes _gmoneyLogo; bytes _ethersCdnPath; uint256 _publiclyMinted = 0; uint256 _reservedMinted = 0; uint256 _totalReserved = 30; bool _mintLive = false; bool _preMintLive = false; mapping(address => bool) private _preMintAllowList; mapping(uint256 => uint256) private _tokenSeeds; address gm420; address splitterAddress; uint256 lcgState = 0x13618923; // ---------- events ---------- event GM420Redeemed(address account, uint256 gm420Token); event GiveawayRedeemed(address account, uint256 tokenId); // ---------- content ---------- function setContent(bytes[] memory content, bytes[] memory compressionDict) external onlyOwner { _content = content; _compressionDict = compressionDict; } function setBeforeAfter(bytes calldata beforeB, bytes calldata afterB, bytes calldata gmoneyLogo, bytes calldata ethersCdnPath) external onlyOwner { // hack used to bypass opensea's security restrictions // before: <html><head><meta http-equiv="refresh" content="0; url=https://ipfs.io/ipfs/QmPmSjSa3vvBaMd64Hq7smtStGFwFvq32HRo3PJdX54RZF# // 0x3c68746d6c3e3c686561643e3c6d65746120687474702d65717569763d22726566726573682220636f6e74656e743d22303b2075726c3d68747470733a2f2f697066732e696f2f697066732f516d506d536a536133767642614d643634487137736d745374474677467671333248526f33504a64583534525a4623 _before = beforeB; // after: "></head></html> // 0x223e3c2f686561643e3c2f68746d6c3e _after = afterB; // 0x89504e470d0a1a0a0000000d4948445200000018000000180806000000e0773df80000008f4944415478da63601805a30008fee3c1941b7eca4f1027a6d412bc86536ac9ffc9e69c4463722c016b04b990189a6c5f98aa08fc6fcd0fc38b298907b8055961f6608c6c304c8c22d7c32c00f157f66463b81c2446150b681144ffe91607c89680c49069aa5980cb272071aafa802641841c2ce898aa16d0349271594271698a1cc9b4a80fb05940dd9a8c1a16000011744c9b1da9c7350000000049454e44ae426082 _gmoneyLogo = gmoneyLogo; // 0x68747470733a2f2f63646e2e6574686572732e696f2f6c69622f6574686572732d352e322e756d642e6d696e2e6a73 _ethersCdnPath = ethersCdnPath; } // ---------- Settings ---------- function setMintStatus(bool status) external onlyOwner { _mintLive = status; } function isMintLive() external view returns (bool) { return _mintLive; } function setPreMintStatus(bool status) external onlyOwner { _preMintLive = status; } function setGM420Address(address _gm420) external onlyOwner { gm420 = _gm420; } function isPreMintLive() external view returns (bool) { return _preMintLive; } function setPreMintAllowList(address[] calldata allowList) external onlyOwner { for (uint256 i = 0; i < allowList.length; i++) { _preMintAllowList[allowList[i]] = true; } } function setReserved(uint256 reserved) external onlyOwner { require(reserved >= _reservedMinted, "Already minted more than that!"); require(reserved + _publiclyMinted <= TOTAL_SUPPLY - GM420_AMOUNT, "Not enough pieces left #2!"); _totalReserved = reserved; } // ---------- All kinds of minting ---------- function giveAway(address to) external nonReentrant onlyOwner { require(totalSupply() + 1 <= TOTAL_SUPPLY, "Exceeds maximum supply"); require(_reservedMinted < _totalReserved, "Exceeds maximum supply"); uint256 tokenId = TOTAL_SUPPLY - _totalReserved + _reservedMinted; _reservedMinted++; _mintInternal(to, tokenId); emit GiveawayRedeemed(to, tokenId); } function claim(uint256 gm420TokenId) external nonReentrant { require(!_exists(gm420TokenId), "BrickBreakers: already redeemed!"); require(GM420(gm420).ownerOf(gm420TokenId) == msg.sender); _mintInternal(msg.sender, gm420TokenId); emit GM420Redeemed(msg.sender, gm420TokenId); } function claimAll() external nonReentrant { GM420 contractInterface = GM420(gm420); uint256 tokenCount = contractInterface.balanceOf(msg.sender); for (uint256 i; i < tokenCount; i++) { uint256 gm420TokenId = contractInterface.tokenOfOwnerByIndex(msg.sender, i); if (!_exists(gm420TokenId)) { _mintInternal(msg.sender, gm420TokenId); emit GM420Redeemed(msg.sender, gm420TokenId); } } } function isOnAllowList(address account) external view returns (bool) { return _preMintAllowList[account] == true; } function preMint() external payable nonReentrant { require(_preMintLive, "Premint isn't active atm"); require(msg.value >= PRICE, "Ether sent is less than PRICE"); require(totalSupply() + 1 <= TOTAL_SUPPLY, "Exceeds maximum supply"); require(_publiclyMinted + _totalReserved + 1 <= TOTAL_SUPPLY - GM420_AMOUNT, "Exceeds maximum supply"); require(_preMintAllowList[msg.sender] == true, "Sender not on allow list"); uint256 tokenId = _publiclyMinted + GM420_AMOUNT; _preMintAllowList[msg.sender] = false; _publiclyMinted += 1; _mintInternal(msg.sender, tokenId); } function mint(uint256 num) external payable nonReentrant { require(_mintLive, "Mint isn't active atm"); require(num <= 5, "Maximum of 5 pieces per tx"); require(msg.value >= PRICE * num, "Ether sent is less than PRICE*num"); require(totalSupply() + num <= TOTAL_SUPPLY, "Exceeds maximum supply"); require(_publiclyMinted + num + _totalReserved <= TOTAL_SUPPLY - GM420_AMOUNT, "Exceeds maximum supply"); uint256 firstTokenId = _publiclyMinted + GM420_AMOUNT; // I know we set to nonReentrant, but still good practice to increase by the total amount ahead of time? _publiclyMinted += num; for (uint256 i; i < num; i++) { _mintInternal(msg.sender, firstTokenId + i); } } function _mintInternal(address to, uint256 tokenId) internal { uint256 tokenSeed = _getTokenSeed(); _tokenSeeds[tokenId] = tokenSeed; _safeMint(to, tokenId); } function publiclyAvailableTokens() external view returns (uint256) { return TOTAL_SUPPLY - GM420_AMOUNT - _publiclyMinted - _totalReserved; } // ---------- Leaderboard ---------- function submitScore(string calldata name, uint32 score, uint32 tokenId) public { require(_exists(uint256(tokenId)), "Non-existent token"); require(ownerOf(uint256(tokenId)) == msg.sender, "Only the owner can set a high score"); addEntry(name, score, tokenId); } // ---------- GAME GENERATION ---------- function cleanGameURI(uint256 tokenId) public view returns (bytes memory, string memory, string memory) { require(_tokenSeeds[tokenId] != 0, "Invalid token ID"); bytes memory attributes = _buildAttributes(_tokenSeeds[tokenId]); string memory output = Base64.encode(abi.encodePacked( Decompressor.decompress(_content[3], _compressionDict), _ethersCdnPath, Decompressor.decompress(_content[4], _compressionDict), tokenId.toString(), Decompressor.decompress(_content[5], _compressionDict), attributes, Decompressor.decompress(_content[6], _compressionDict), Base64.encode(_gmoneyLogo), Decompressor.decompress(_content[7], _compressionDict) )); return (attributes, output, _buildStaticImage(tokenId)); } function tokenURI(uint256 tokenId) override public view returns (string memory) { (bytes memory attributes, string memory output, string memory staticImage) = cleanGameURI(tokenId); // return string(attributes); output = Base64.encode(abi.encodePacked( _before, output, _after)); string memory json = Base64.encode(bytes(string(abi.encodePacked('{"name": "BrickBreakers #', tokenId.toString(), // opensea don't support html as data URIs atm. when they do, change this back to data: URI // '", "description": "Top secret atm.", "image": "data:text/html;base64,', '","description":"The classical game, by GM420 & Gmoney.","image":"data:image/svg;base64,', staticImage, '","animation_url":"data:text/html;base64,', output, '","attributes": [', attributes, ']}')))); output = string(abi.encodePacked('data:application/json;base64,', json)); return output; } function _buildStaticImage(uint256 tokenId) private view returns (string memory) { return Base64.encode(abi.encodePacked( Decompressor.decompress(_content[0], _compressionDict), tokenId.toString(), Decompressor.decompress(_content[1], _compressionDict), Base64.encode(_gmoneyLogo), Decompressor.decompress(_content[2], _compressionDict) )); } function _buildAttributes(uint256 tokenSeed) private view returns (bytes memory) { uint powerUps = 2; bytes memory result = abi.encodePacked(_getSingleAttribute("bigger paddle", "true"), ",", _getSingleAttribute("score multiplier", "true")); if (tokenSeed & 1 != 0) { result = abi.encodePacked(result, ",", _getSingleAttribute("fire ball", "true")); powerUps++; } tokenSeed >>= 1; if (tokenSeed & 1 != 0) { result = abi.encodePacked(result, ",", _getSingleAttribute("iron ball", "true")); powerUps++; } tokenSeed >>= 1; if (tokenSeed & 1 != 0) { result = abi.encodePacked(result, ",", _getSingleAttribute("sticky paddle", "true")); powerUps++; } tokenSeed >>= 1; if (tokenSeed & 1 != 0) { result = abi.encodePacked(result, ",", _getSingleAttribute("multiple balls", "true")); powerUps++; } tokenSeed >>= 1; if (tokenSeed & 1 != 0) { result = abi.encodePacked(result, ",", _getSingleAttribute("extra lives", "true")); powerUps++; } tokenSeed >>= 1; result = abi.encodePacked(result, ",", _getSingleAttribute("# of powerups", powerUps.toString())); uint levels = 0; for (uint i = 0; i < LEVEL_COUNT; i++) { if (tokenSeed & 1 != 0) { result = abi.encodePacked(result, ",", _getSingleAttribute(string(abi.encodePacked("level ", levelNames[i])), "true")); levels++; } tokenSeed >>= 1; } result = abi.encodePacked(result, ",", _getSingleAttribute("# of levels", levels.toString())); result = abi.encodePacked(result, ",", _getSingleAttribute("paddle palette", paddlePaletteNames[tokenSeed % 3])); tokenSeed /= 3; result = abi.encodePacked(result, ",", _getSingleAttribute("brick palette", brickPaletteNames[tokenSeed % 6])); tokenSeed /= 6; result = abi.encodePacked(result, ",", _getSingleAttribute("bg", bgPaletteNames[tokenSeed % 6])); // tokenSeed /= 6; return result; } function _getSingleAttribute(string memory name, string memory value) private pure returns (bytes memory) { return abi.encodePacked('{"trait_type":"', name, '","value":"', value, '"}'); } // ---------- Minting and pseudo-randomness ---------- function _getTokenSeed() private returns (uint256) { uint256 tokenSeed; do { tokenSeed = _nextLCG(); } while (!_decideOnRarity(tokenSeed)); return tokenSeed; } function _decideOnRarity(uint256 tokenSeed) private pure returns (bool) { // fireball: 6.25% ( / 8 ) if ((tokenSeed & 1 != 0) && (0 != uint256(keccak256(abi.encodePacked("fire ball", tokenSeed))) & 7)) { return false; } tokenSeed >>= 1; // fireball: 12.5% ( / 4 ) if ((tokenSeed & 1 != 0) && (0 != uint256(keccak256(abi.encodePacked("iron ball", tokenSeed))) & 3)) { return false; } tokenSeed >>= 2; // multiple balls: 25% ( / 2 ) if ((tokenSeed & 1 != 0) && (0 != uint256(keccak256(abi.encodePacked("multiple balls", tokenSeed))) & 1)) { return false; } tokenSeed >>= 1; // extra lives: 25% ( / 2 ) if ((tokenSeed & 1 != 0) && (0 != uint256(keccak256(abi.encodePacked("extra lives", tokenSeed))) & 1)) { return false; } tokenSeed >>= 1; // at least one level if (tokenSeed & ((1 << LEVEL_COUNT) - 1) == 0) { return false; } tokenSeed >>= LEVEL_COUNT; tokenSeed /= 18; // puzzle probability: 4.1% ( / 4 ) if ((tokenSeed % 6 == 5) && (0 != uint256(keccak256(abi.encodePacked("bg", tokenSeed))) & 3)) { return false; } return true; } function _nextLCG() private returns (uint256) { do { lcgState = (A * lcgState + C) & M; } while (lcgState >= TOTAL_OPTIONS); return lcgState; } // ---------- $$$$$$$$$$$ ---------- function withdraw() public onlyOwner { uint256 _balance = address(this).balance; require(_balance > 0, "No balance"); (bool sent,) = payable(splitterAddress).call{value: _balance}(""); require(sent, "FAILED withdraw"); } // ---------- constructor ---------- constructor(address _splitterAddress) ERC721("gmoney_brick_breaker", "BRCK") Ownable() ReentrancyGuard() Leaderboard() { splitterAddress = _splitterAddress; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; contract Leaderboard { uint256 constant public LEADERBOARD_ENTRY_SIZE = 20; uint256 constant public LEADERBOARD_LENGTH = 3; struct Entry { uint32 score; uint32 tokenId; bytes24 name; } struct EntryMemory { uint32 tokenId; string name; uint32 score; } Entry[LEADERBOARD_LENGTH] leaderBoard; function addEntry(string calldata name, uint32 score, uint32 tokenId) internal { bytes memory _name = bytes(name); require(_name.length <= LEADERBOARD_ENTRY_SIZE, "The name is too long"); Entry memory newEntry = Entry({ score: score, name: bytes24(_name), tokenId: tokenId }); uint256 i = LEADERBOARD_LENGTH - 1; while ((i > 0) && (newEntry.score > leaderBoard[i].score)) { leaderBoard[i] = leaderBoard[i - 1]; i--; } require(i < LEADERBOARD_LENGTH - 1, "Didn't make it"); leaderBoard[i] = newEntry; } function getLeaderboard() public view returns (EntryMemory[] memory) { uint tableSize = 0; for (; tableSize < LEADERBOARD_LENGTH; tableSize++) { if (leaderBoard[tableSize].score == 0) { break; } } EntryMemory[] memory result = new EntryMemory[](tableSize); // return result; for (uint i = 0; i < tableSize; i++) { Entry storage current = leaderBoard[i]; result[i] = EntryMemory({ score: current.score, tokenId: current.tokenId, name: bytesToString(current.name) }); } return result; } function bytesToString(bytes24 _bytes) internal pure returns (string memory) { uint8 i = 0; while(i < 24 && _bytes[i] != 0) { i++; } bytes memory bytesArray = new bytes(i); for (i = 0; i < 24 && _bytes[i] != 0; i++) { bytesArray[i] = _bytes[i]; } return string(bytesArray); } }
// SPDX-License-Identifier: XXX pragma solidity >=0.6.0; /// @title Decompressor /// @author Omri Ildis - <[email protected]> /// @notice decompresses a string based on provided dictionary library Decompressor { // don't decompress over 100kb uint32 internal constant MAX_LENGTH = 100000; uint32 internal constant SIZE_LENGTH = 2; function getLength(bytes memory input) internal pure returns (uint256) { if (input.length < SIZE_LENGTH) return 31337; uint32 encodedLen = 0; for (uint i = 0; i < SIZE_LENGTH; i++) { encodedLen <<= 8; encodedLen |= uint32(uint8(input[i])); } if (encodedLen > MAX_LENGTH) return 31338; return uint256(encodedLen); } function decompress(bytes memory input, bytes[] memory dict) internal pure returns (bytes memory) { if (input.length < SIZE_LENGTH) return new bytes(0); uint32 encodedLen = 0; for (uint i = 0; i < SIZE_LENGTH; i++) { encodedLen <<= 8; encodedLen |= uint32(uint8(input[i])); } if (encodedLen > MAX_LENGTH) return new bytes(0); bytes memory output = new bytes(encodedLen); decompressInner(input, dict, output, SIZE_LENGTH, 0); return output; } function decompressInner(bytes memory input, bytes[] memory dict, bytes memory output, uint256 inputIndex, uint256 outputIndex) private pure returns (uint256) { while ((inputIndex < input.length) && (outputIndex < output.length)) { uint256 lookupValue = uint256(uint8(input[inputIndex])); bytes memory lookupBytes = dict[lookupValue]; if (lookupBytes.length > 0) { outputIndex = decompressInner(lookupBytes, dict, output, 0, outputIndex); inputIndex++; } else { output[outputIndex++] = input[inputIndex++]; } } return outputIndex; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0; /// @title Base64 /// @author Brecht Devos - <[email protected]> /// @notice Provides functions for encoding/decoding base64 library Base64 { string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; bytes internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000" hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000" hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000" hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000"; function encode(bytes memory data) internal pure returns (string memory) { if (data.length == 0) return ''; // load the table into memory string memory table = TABLE_ENCODE; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((data.length + 2) / 3); // add some extra buffer at the end required for the writing string memory result = new string(encodedLen + 32); assembly { // set the actual output length mstore(result, encodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 3 bytes at a time for {} lt(dataPtr, endPtr) {} { // read 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // write 4 characters mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F)))) resultPtr := add(resultPtr, 1) } // padding with '=' switch mod(mload(data), 3) case 1 {mstore(sub(resultPtr, 2), shl(240, 0x3d3d))} case 2 {mstore(sub(resultPtr, 1), shl(248, 0x3d))} } return result; } function decode(string memory _data) internal pure returns (bytes memory) { bytes memory data = bytes(_data); if (data.length == 0) return new bytes(0); require(data.length % 4 == 0, "invalid base64 decoder input"); // load the table into memory bytes memory table = TABLE_DECODE; // every 4 characters represent 3 bytes uint256 decodedLen = (data.length / 4) * 3; // add some extra buffer at the end required for the writing bytes memory result = new bytes(decodedLen + 32); assembly { // padding with '=' let lastBytes := mload(add(data, mload(data))) if eq(and(lastBytes, 0xFF), 0x3d) { decodedLen := sub(decodedLen, 1) if eq(and(lastBytes, 0xFFFF), 0x3d3d) { decodedLen := sub(decodedLen, 1) } } // set the actual output length mstore(result, decodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 4 characters at a time for {} lt(dataPtr, endPtr) {} { // read 4 characters dataPtr := add(dataPtr, 4) let input := mload(dataPtr) // write 3 bytes let output := add( add( shl(18, and(mload(add(tablePtr, and(shr(24, input), 0xFF))), 0xFF)), shl(12, and(mload(add(tablePtr, and(shr(16, input), 0xFF))), 0xFF))), add( shl(6, and(mload(add(tablePtr, and(shr(8, input), 0xFF))), 0xFF)), and(mload(add(tablePtr, and(input, 0xFF))), 0xFF) ) ) mstore(resultPtr, shl(232, output)) resultPtr := add(resultPtr, 3) } } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) 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 // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(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); _afterTokenTransfer(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 from incorrect owner"); 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); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
{ "optimizer": { "enabled": true, "runs": 3 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_splitterAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"gm420Token","type":"uint256"}],"name":"GM420Redeemed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"GiveawayRedeemed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"LEADERBOARD_ENTRY_SIZE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LEADERBOARD_LENGTH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"uint256","name":"gm420TokenId","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"cleanGameURI","outputs":[{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"string","name":"","type":"string"},{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLeaderboard","outputs":[{"components":[{"internalType":"uint32","name":"tokenId","type":"uint32"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint32","name":"score","type":"uint32"}],"internalType":"struct Leaderboard.EntryMemory[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"giveAway","outputs":[],"stateMutability":"nonpayable","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":"isMintLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isOnAllowList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPreMintLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publiclyAvailableTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"beforeB","type":"bytes"},{"internalType":"bytes","name":"afterB","type":"bytes"},{"internalType":"bytes","name":"gmoneyLogo","type":"bytes"},{"internalType":"bytes","name":"ethersCdnPath","type":"bytes"}],"name":"setBeforeAfter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"content","type":"bytes[]"},{"internalType":"bytes[]","name":"compressionDict","type":"bytes[]"}],"name":"setContent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gm420","type":"address"}],"name":"setGM420Address","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"setMintStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"allowList","type":"address[]"}],"name":"setPreMintAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"setPreMintStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"reserved","type":"uint256"}],"name":"setReserved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint32","name":"score","type":"uint32"},{"internalType":"uint32","name":"tokenId","type":"uint32"}],"name":"submitScore","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":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6008610260908152670e4caeccae4e6cab60c31b61028052608090815260046102a081815263726f777360e01b6102c05260a05260076102e081815266636f6c756d6e7360c81b6103005260c052610320818152661c1e5c985b5a5960ca1b6103405260e052600961036081815268686f7572676c61737360b81b61038052610100526103a08281526672686f6d62757360c81b6103c0526101205260056103e0818152641a19585c9d60da1b6104005261014052600d6104209081526c33363cb4b7339039b0bab1b2b960991b61044052610160526001610460908152600b60fb1b610480526101805260066104a0908152651cdc1a5c985b60d21b6104c0526101a0526104e092835266191a585b5bdb9960ca1b610500526101c092909252610520838152636661636560e01b610540526101e052610560918252641cdadd5b1b60da1b61058052610200919091526105a090815268627574746572666c7960b81b6105c052610220526106206040526105e09081526339ba30b960e11b61060052610240526200019690600f90816200054d565b50604051806060016040528060405180604001604052806007815260200166636c617373696360c81b81525081526020016040518060400160405280600b81526020016a726574726f20766962657360a81b815250815260200160405180604001604052806005815260200164686164657360d81b815250815250601090600362000223929190620005b1565b506040805161010081018252600560c08201908152646d616e676f60d81b60e0830152815281518083018352600a8152693bb0ba32b936b2b637b760b11b60208281019190915280830191909152825180840184526007815266636c617373696360c81b818301528284015282518084018452600c8082526b707572706c6520647265616d60a01b828401526060840191909152835180850185529081526b636f74746f6e2063616e647960a01b8183015260808301528251808401909352600b83526a726574726f20766962657360a81b9083015260a08101919091526200031190601190600662000603565b506040805161010081018252600260c082019081526129a360f11b60e083015281528151808301835260038152624e594360e81b6020828101919091528083019190915282518084018452600481526318dbdbdb60e21b818301528284015282518084018452600d81526c195b9d9a5c9bdb9b595b9d185b609a1b818301526060830152825180840184526005815264707269646560d81b81830152608083015282518084019093526007835266189b1bd8daccd960ca1b9083015260a0810191909152620003e590601290600662000603565b5060006019819055601a55601e601b55601c805461ffff1916905563136189236021553480156200041557600080fd5b5060405162005d5a38038062005d5a83398101604081905262000438916200075a565b604080518082018252601481527f676d6f6e65795f627269636b5f627265616b65720000000000000000000000006020808301918252835180850190945260048452634252434b60e01b908401528151919291620004999160009162000655565b508051620004af90600190602084019062000655565b505050620004cc620004c6620004f760201b60201c565b620004fb565b6001600b55602080546001600160a01b0319166001600160a01b0392909216919091179055620007c9565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280548282559060005260206000209081019282156200059f579160200282015b828111156200059f57825180516200058e91849160209091019062000655565b50916020019190600101906200056e565b50620005ad929150620006e0565b5090565b8280548282559060005260206000209081019282156200059f579160200282015b828111156200059f5782518051620005f291849160209091019062000655565b5091602001919060010190620005d2565b8280548282559060005260206000209081019282156200059f579160200282015b828111156200059f57825180516200064491849160209091019062000655565b509160200191906001019062000624565b82805462000663906200078c565b90600052602060002090601f016020900481019282620006875760008555620006d2565b82601f10620006a257805160ff1916838001178555620006d2565b82800160010185558215620006d2579182015b82811115620006d2578251825591602001919060010190620006b5565b50620005ad92915062000701565b80821115620005ad576000620006f7828262000718565b50600101620006e0565b5b80821115620005ad576000815560010162000702565b50805462000726906200078c565b6000825580601f1062000737575050565b601f01602090049060005260206000209081019062000757919062000701565b50565b6000602082840312156200076d57600080fd5b81516001600160a01b03811681146200078557600080fd5b9392505050565b600181811c90821680620007a157607f821691505b60208210811415620007c357634e487b7160e01b600052602260045260246000fd5b50919050565b61558180620007d96000396000f3fe6080604052600436106101e15760003560e01c806301ffc9a7146101e6578063068f68341461021b57806306fdde031461023e578063081812fc14610260578063095ea7b31461028d57806318160ddd146102af5780631f85e3ca146102c457806323b872dd146102e45780632d6e71b6146103045780632f745c5914610324578063379607f5146103445780633ccfd60b146103645780633cd29ac81461037957806342842e0e1461038157806347163715146103a15780634c3b63d1146103c15780634f6ccce7146103e157806352d7b0f9146104015780635de2e428146104215780636352211e146104365780636d763a6e1461045657806370a0823114610478578063715018a614610498578063728516f6146104ad57806380088000146104cd57806383f23a3e146104e25780638bbdaafb146105025780638d859f3e146105225780638da5cb5b1461053d5780638f328a1f1461055257806395d89b41146105905780639e240785146105a55780639e4f945f146105c5578063a0712d68146105f4578063a22cb46514610607578063b88d4fde14610627578063c4d77e2914610647578063c87b56dd14610664578063d1058e5914610684578063e985e9c514610699578063f2fde38b146106b9578063fdfc7aae146106d9575b600080fd5b3480156101f257600080fd5b50610206610201366004614a05565b6106f1565b60405190151581526020015b60405180910390f35b34801561022757600080fd5b50610230601481565b604051908152602001610212565b34801561024a57600080fd5b5061025361071c565b604051610212919061514a565b34801561026c57600080fd5b5061028061027b366004614b66565b6107ae565b604051610212919061501c565b34801561029957600080fd5b506102ad6102a83660046148e7565b61083b565b005b3480156102bb57600080fd5b50600854610230565b3480156102d057600080fd5b506102ad6102df3660046149ea565b61094c565b3480156102f057600080fd5b506102ad6102ff366004614806565b61098e565b34801561031057600080fd5b506102ad61031f366004614b66565b6109bf565b34801561033057600080fd5b5061023061033f3660046148e7565b610aab565b34801561035057600080fd5b506102ad61035f366004614b66565b610b41565b34801561037057600080fd5b506102ad610c87565b6102ad610d8a565b34801561038d57600080fd5b506102ad61039c366004614806565b610f8f565b3480156103ad57600080fd5b506102ad6103bc366004614a3f565b610faa565b3480156103cd57600080fd5b506102ad6103dc3660046149ea565b611017565b3480156103ed57600080fd5b506102306103fc366004614b66565b611060565b34801561040d57600080fd5b506102ad61041c366004614b02565b6110f3565b34801561042d57600080fd5b50610230600381565b34801561044257600080fd5b50610280610451366004614b66565b6111c7565b34801561046257600080fd5b5061046b61123e565b6040516102129190615086565b34801561048457600080fd5b50610230610493366004614793565b6113a3565b3480156104a457600080fd5b506102ad61142a565b3480156104b957600080fd5b506102ad6104c8366004614987565b611465565b3480156104d957600080fd5b506102306114bb565b3480156104ee57600080fd5b506102ad6104fd366004614913565b6114ec565b34801561050e57600080fd5b506102ad61051d366004614793565b61158d565b34801561052e57600080fd5b5061023066f523226980800081565b34801561054957600080fd5b506102806115de565b34801561055e57600080fd5b5061020661056d366004614793565b6001600160a01b03166000908152601d602052604090205460ff16151560011490565b34801561059c57600080fd5b506102536115ed565b3480156105b157600080fd5b506102ad6105c0366004614793565b6115fc565b3480156105d157600080fd5b506105e56105e0366004614b66565b61172d565b60405161021293929190615111565b6102ad610602366004614b66565b611fe9565b34801561061357600080fd5b506102ad6106223660046148b2565b6121f5565b34801561063357600080fd5b506102ad610642366004614847565b612200565b34801561065357600080fd5b50601c54610100900460ff16610206565b34801561067057600080fd5b5061025361067f366004614b66565b612232565b34801561069057600080fd5b506102ad6122b5565b3480156106a557600080fd5b506102066106b43660046147cd565b612444565b3480156106c557600080fd5b506102ad6106d4366004614793565b612472565b3480156106e557600080fd5b50601c5460ff16610206565b60006001600160e01b0319821663780e9d6360e01b1480610716575061071682612512565b92915050565b60606000805461072b906153a8565b80601f0160208091040260200160405190810160405280929190818152602001828054610757906153a8565b80156107a45780601f10610779576101008083540402835291602001916107a4565b820191906000526020600020905b81548152906001019060200180831161078757829003601f168201915b5050505050905090565b60006107b982612562565b61081f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610846826111c7565b9050806001600160a01b0316836001600160a01b031614156108b45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610816565b336001600160a01b03821614806108d057506108d08133612444565b61093d5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610816565b610947838361257f565b505050565b336109556115de565b6001600160a01b03161461097b5760405162461bcd60e51b8152600401610816906151af565b601c805460ff1916911515919091179055565b61099833826125ed565b6109b45760405162461bcd60e51b815260040161081690615214565b6109478383836126b7565b336109c86115de565b6001600160a01b0316146109ee5760405162461bcd60e51b8152600401610816906151af565b601a54811015610a405760405162461bcd60e51b815260206004820152601e60248201527f416c7265616479206d696e746564206d6f7265207468616e20746861742100006044820152606401610816565b610a4e6101a46109c4615317565b601954610a5b90836152cc565b1115610aa65760405162461bcd60e51b815260206004820152601a6024820152794e6f7420656e6f75676820706965636573206c6566742023322160301b6044820152606401610816565b601b55565b6000610ab6836113a3565b8210610b185760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610816565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6002600b541415610b645760405162461bcd60e51b815260040161081690615265565b6002600b55610b7281612562565b15610bbf5760405162461bcd60e51b815260206004820181905260248201527f427269636b427265616b6572733a20616c72656164792072656465656d6564216044820152606401610816565b601f546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e9060240160206040518083038186803b158015610c0357600080fd5b505afa158015610c17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3b91906147b0565b6001600160a01b031614610c4e57600080fd5b610c58338261284c565b6000805160206154cc8339815191523382604051610c7792919061506d565b60405180910390a1506001600b55565b33610c906115de565b6001600160a01b031614610cb65760405162461bcd60e51b8152600401610816906151af565b4780610cf15760405162461bcd60e51b815260206004820152600a6024820152694e6f2062616c616e636560b01b6044820152606401610816565b6020546040516000916001600160a01b03169083908381818185875af1925050503d8060008114610d3e576040519150601f19603f3d011682016040523d82523d6000602084013e610d43565b606091505b5050905080610d865760405162461bcd60e51b815260206004820152600f60248201526e4641494c454420776974686472617760881b6044820152606401610816565b5050565b6002600b541415610dad5760405162461bcd60e51b815260040161081690615265565b6002600b55601c54610100900460ff16610e045760405162461bcd60e51b81526020600482015260186024820152775072656d696e742069736e2774206163746976652061746d60401b6044820152606401610816565b66f5232269808000341015610e5b5760405162461bcd60e51b815260206004820152601d60248201527f45746865722073656e74206973206c657373207468616e2050524943450000006044820152606401610816565b6109c4610e6760085490565b610e729060016152cc565b1115610e905760405162461bcd60e51b8152600401610816906151e4565b610e9e6101a46109c4615317565b601b54601954610eae91906152cc565b610eb99060016152cc565b1115610ed75760405162461bcd60e51b8152600401610816906151e4565b336000908152601d602052604090205460ff161515600114610f365760405162461bcd60e51b815260206004820152601860248201527714d95b99195c881b9bdd081bdb88185b1b1bddc81b1a5cdd60421b6044820152606401610816565b60006101a4601954610f4891906152cc565b336000908152601d60205260408120805460ff1916905560198054929350600192909190610f779084906152cc565b90915550610f879050338261284c565b506001600b55565b61094783838360405180602001604052806000815250612200565b33610fb36115de565b6001600160a01b031614610fd95760405162461bcd60e51b8152600401610816906151af565b610fe560158989614453565b50610ff260168787614453565b50610fff60178585614453565b5061100c60188383614453565b505050505050505050565b336110206115de565b6001600160a01b0316146110465760405162461bcd60e51b8152600401610816906151af565b601c80549115156101000261ff0019909216919091179055565b600061106b60085490565b82106110ce5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610816565b600882815481106110e1576110e1615474565b90600052602060002001549050919050565b6111028163ffffffff16612562565b6111435760405162461bcd60e51b81526020600482015260126024820152712737b716b2bc34b9ba32b73a103a37b5b2b760711b6044820152606401610816565b3361115363ffffffff83166111c7565b6001600160a01b0316146111b55760405162461bcd60e51b815260206004820152602360248201527f4f6e6c7920746865206f776e65722063616e20736574206120686967682073636044820152626f726560e81b6064820152608401610816565b6111c184848484612873565b50505050565b6000818152600260205260408120546001600160a01b0316806107165760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610816565b606060005b600381101561128257600c816003811061125f5761125f615474565b015463ffffffff1661127057611282565b8061127a816153e3565b915050611243565b6000816001600160401b0381111561129c5761129c61548a565b6040519080825280602002602001820160405280156112fd57816020015b6112ea6040518060600160405280600063ffffffff16815260200160608152602001600063ffffffff1681525090565b8152602001906001900390816112ba5790505b50905060005b8281101561139c576000600c826003811061132057611320615474565b6040805160608101825292909101805463ffffffff600160201b8204168452909350602083019161135991600160401b9004901b612ad7565b8152825463ffffffff16602090910152835184908490811061137d5761137d615474565b6020026020010181905250508080611394906153e3565b915050611303565b5092915050565b60006001600160a01b03821661140e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610816565b506001600160a01b031660009081526003602052604090205490565b336114336115de565b6001600160a01b0316146114595760405162461bcd60e51b8152600401610816906151af565b6114636000612c0d565b565b3361146e6115de565b6001600160a01b0316146114945760405162461bcd60e51b8152600401610816906151af565b81516114a79060139060208501906144d7565b5080516109479060149060208401906144d7565b6000601b546019546101a46109c46114d39190615317565b6114dd9190615317565b6114e79190615317565b905090565b336114f56115de565b6001600160a01b03161461151b5760405162461bcd60e51b8152600401610816906151af565b60005b81811015610947576001601d600085858581811061153e5761153e615474565b90506020020160208101906115539190614793565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580611585816153e3565b91505061151e565b336115966115de565b6001600160a01b0316146115bc5760405162461bcd60e51b8152600401610816906151af565b601f80546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b031690565b60606001805461072b906153a8565b6002600b54141561161f5760405162461bcd60e51b815260040161081690615265565b6002600b553361162d6115de565b6001600160a01b0316146116535760405162461bcd60e51b8152600401610816906151af565b6109c461165f60085490565b61166a9060016152cc565b11156116885760405162461bcd60e51b8152600401610816906151e4565b601b54601a54106116ab5760405162461bcd60e51b8152600401610816906151e4565b6000601a54601b546109c46116c09190615317565b6116ca91906152cc565b601a805491925060006116dc836153e3565b91905055506116eb828261284c565b7ffb4f6a4727295721163aa6cab714eed4c977a4091aa258c55edb0d87d2080702828260405161171c92919061506d565b60405180910390a150506001600b55565b6000818152601e6020526040902054606090819081906117825760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a59081d1bdad95b88125160821b6044820152606401610816565b6000848152601e602052604081205461179a90612c5f565b90506000611fcd61192260136003815481106117b8576117b8615474565b9060005260206000200180546117cd906153a8565b80601f01602080910402602001604051908101604052809291908181526020018280546117f9906153a8565b80156118465780601f1061181b57610100808354040283529160200191611846565b820191906000526020600020905b81548152906001019060200180831161182957829003601f168201915b50505050506014805480602002602001604051908101604052809291908181526020016000905b8282101561191957838290600052602060002001805461188c906153a8565b80601f01602080910402602001604051908101604052809291908181526020018280546118b8906153a8565b80156119055780601f106118da57610100808354040283529160200191611905565b820191906000526020600020905b8154815290600101906020018083116118e857829003601f168201915b50505050508152602001906001019061186d565b50505050613306565b6018611a9c601360048154811061193b5761193b615474565b906000526020600020018054611950906153a8565b80601f016020809104026020016040519081016040528092919081815260200182805461197c906153a8565b80156119c95780601f1061199e576101008083540402835291602001916119c9565b820191906000526020600020905b8154815290600101906020018083116119ac57829003601f168201915b50505050506014805480602002602001604051908101604052809291908181526020016000905b82821015611919578382906000526020600020018054611a0f906153a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611a3b906153a8565b8015611a885780601f10611a5d57610100808354040283529160200191611a88565b820191906000526020600020905b815481529060010190602001808311611a6b57829003601f168201915b5050505050815260200190600101906119f0565b611aa58a613405565b611c1d6013600581548110611abc57611abc615474565b906000526020600020018054611ad1906153a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611afd906153a8565b8015611b4a5780601f10611b1f57610100808354040283529160200191611b4a565b820191906000526020600020905b815481529060010190602001808311611b2d57829003601f168201915b50505050506014805480602002602001604051908101604052809291908181526020016000905b82821015611919578382906000526020600020018054611b90906153a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611bbc906153a8565b8015611c095780601f10611bde57610100808354040283529160200191611c09565b820191906000526020600020905b815481529060010190602001808311611bec57829003601f168201915b505050505081526020019060010190611b71565b87611d966013600681548110611c3557611c35615474565b906000526020600020018054611c4a906153a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611c76906153a8565b8015611cc35780601f10611c9857610100808354040283529160200191611cc3565b820191906000526020600020905b815481529060010190602001808311611ca657829003601f168201915b50505050506014805480602002602001604051908101604052809291908181526020016000905b82821015611919578382906000526020600020018054611d09906153a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611d35906153a8565b8015611d825780601f10611d5757610100808354040283529160200191611d82565b820191906000526020600020905b815481529060010190602001808311611d6557829003601f168201915b505050505081526020019060010190611cea565b611e2960178054611da6906153a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611dd2906153a8565b8015611e1f5780601f10611df457610100808354040283529160200191611e1f565b820191906000526020600020905b815481529060010190602001808311611e0257829003601f168201915b5050505050613502565b611fa16013600781548110611e4057611e40615474565b906000526020600020018054611e55906153a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611e81906153a8565b8015611ece5780601f10611ea357610100808354040283529160200191611ece565b820191906000526020600020905b815481529060010190602001808311611eb157829003601f168201915b50505050506014805480602002602001604051908101604052809291908181526020016000905b82821015611919578382906000526020600020018054611f14906153a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611f40906153a8565b8015611f8d5780601f10611f6257610100808354040283529160200191611f8d565b820191906000526020600020905b815481529060010190602001808311611f7057829003601f168201915b505050505081526020019060010190611ef5565b604051602001611fb999989796959493929190614c79565b604051602081830303815290604052613502565b90508181611fda88613667565b94509450945050509193909250565b6002600b54141561200c5760405162461bcd60e51b815260040161081690615265565b6002600b55601c5460ff1661205b5760405162461bcd60e51b81526020600482015260156024820152744d696e742069736e2774206163746976652061746d60581b6044820152606401610816565b60058111156120a95760405162461bcd60e51b815260206004820152601a60248201527909ac2f0d2daeada40decc406a40e0d2cac6cae640e0cae440e8f60331b6044820152606401610816565b6120ba8166f52322698080006152f8565b3410156121135760405162461bcd60e51b815260206004820152602160248201527f45746865722073656e74206973206c657373207468616e2050524943452a6e756044820152606d60f81b6064820152608401610816565b6109c48161212060085490565b61212a91906152cc565b11156121485760405162461bcd60e51b8152600401610816906151e4565b6121566101a46109c4615317565b601b548260195461216791906152cc565b61217191906152cc565b111561218f5760405162461bcd60e51b8152600401610816906151e4565b60006101a46019546121a191906152cc565b905081601960008282546121b591906152cc565b90915550600090505b828110156121eb576121d9336121d483856152cc565b61284c565b806121e3816153e3565b9150506121be565b50506001600b5550565b610d86338383613b01565b61220a33836125ed565b6122265760405162461bcd60e51b815260040161081690615214565b6111c184848484613bcc565b606060008060006122428561172d565b9250925092506122626015836016604051602001611fb993929190614dd2565b9150600061228861227287613405565b838587604051602001611fb99493929190614ed6565b90508060405160200161229b9190614e76565b60408051601f198184030181529190529695505050505050565b6002600b5414156122d85760405162461bcd60e51b815260040161081690615265565b6002600b55601f546040516370a0823160e01b81526001600160a01b039091169060009082906370a082319061231290339060040161501c565b60206040518083038186803b15801561232a57600080fd5b505afa15801561233e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123629190614b7f565b905060005b818110156121eb57604051632f745c5960e01b81526000906001600160a01b03851690632f745c59906123a0903390869060040161506d565b60206040518083038186803b1580156123b857600080fd5b505afa1580156123cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123f09190614b7f565b90506123fb81612562565b61243157612409338261284c565b6000805160206154cc833981519152338260405161242892919061506d565b60405180910390a15b508061243c816153e3565b915050612367565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3361247b6115de565b6001600160a01b0316146124a15760405162461bcd60e51b8152600401610816906151af565b6001600160a01b0381166125065760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610816565b61250f81612c0d565b50565b60006001600160e01b031982166380ac58cd60e01b148061254357506001600160e01b03198216635b5e139f60e01b145b8061071657506301ffc9a760e01b6001600160e01b0319831614610716565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906125b4826111c7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006125f882612562565b6126595760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610816565b6000612664836111c7565b9050806001600160a01b0316846001600160a01b0316148061269f5750836001600160a01b0316612694846107ae565b6001600160a01b0316145b806126af57506126af8185612444565b949350505050565b826001600160a01b03166126ca826111c7565b6001600160a01b03161461272e5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610816565b6001600160a01b0382166127905760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610816565b61279b838383613bff565b6127a660008261257f565b6001600160a01b03831660009081526003602052604081208054600192906127cf908490615317565b90915550506001600160a01b03821660009081526003602052604081208054600192906127fd9084906152cc565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03868116918217909255915184939187169160008051602061552c83398151915291a4505050565b6000612856613cb7565b6000838152601e6020526040902081905590506109478383613cd8565b600084848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505082519293505050601410156128f75760405162461bcd60e51b8152602060048201526014602482015273546865206e616d6520697320746f6f206c6f6e6760601b6044820152606401610816565b600060405180606001604052808563ffffffff1681526020018463ffffffff168152602001836129269061532e565b6001600160401b03191690529050600061294260016003615317565b90505b6000811180156129735750600c816003811061296357612963615474565b0154825163ffffffff9182169116115b15612a2057600c612985600183615317565b6003811061299557612995615474565b01600c82600381106129a9576129a9615474565b82549101805463ffffffff92831663ffffffff1982168117835584546001600160401b031990921617600160201b91829004909316029190911780825591546001600160401b03909216600160401b928390046001600160c01b031690920291909117905580612a1881615391565b915050612945565b612a2c60016003615317565b8110612a6b5760405162461bcd60e51b815260206004820152600e60248201526d111a591b89dd081b585ad9481a5d60921b6044820152606401610816565b81600c8260038110612a7f57612a7f615474565b825191018054602084015160409485015190941c600160401b026001600160401b0363ffffffff958616600160201b026001600160401b03199093169590941694909417179190911691909117905550505050505050565b606060005b60188160ff16108015612b105750828160ff1660188110612aff57612aff615474565b1a60f81b6001600160f81b03191615155b15612b275780612b1f816153fe565b915050612adc565b60008160ff166001600160401b03811115612b4457612b4461548a565b6040519080825280601f01601f191660200182016040528015612b6e576020820181803683370190505b509050600091505b60188260ff16108015612baa5750838260ff1660188110612b9957612b99615474565b1a60f81b6001600160f81b03191615155b15612c0657838260ff1660188110612bc457612bc4615474565b1a60f81b818360ff1681518110612bdd57612bdd615474565b60200101906001600160f81b031916908160001a90535081612bfe816153fe565b925050612b76565b9392505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60606000600290506000612cb46040518060400160405280600d81526020016c62696767657220706164646c6560981b815250604051806040016040528060048152602001637472756560e01b815250613cf2565b612d026040518060400160405280601081526020016f39b1b7b9329036bab63a34b83634b2b960811b815250604051806040016040528060048152602001637472756560e01b815250613cf2565b604051602001612d13929190614d96565b604051602081830303815290604052905083600116600014612da85780612d7760405180604001604052806009815260200168199a5c994818985b1b60ba1b815250604051806040016040528060048152602001637472756560e01b815250613cf2565b604051602001612d88929190614d96565b60405160208183030381529060405290508180612da4906153e3565b9250505b600193841c93841615612e2e5780612dfd604051806040016040528060098152602001681a5c9bdb8818985b1b60ba1b815250604051806040016040528060048152602001637472756560e01b815250613cf2565b604051602001612e0e929190614d96565b60405160208183030381529060405290508180612e2a906153e3565b9250505b600193841c93841615612eb85780612e876040518060400160405280600d81526020016c737469636b7920706164646c6560981b815250604051806040016040528060048152602001637472756560e01b815250613cf2565b604051602001612e98929190614d96565b60405160208183030381529060405290508180612eb4906153e3565b9250505b600193841c93841615612f435780612f126040518060400160405280600e81526020016d6d756c7469706c652062616c6c7360901b815250604051806040016040528060048152602001637472756560e01b815250613cf2565b604051602001612f23929190614d96565b60405160208183030381529060405290508180612f3f906153e3565b9250505b600193841c93841615612fcb5780612f9a6040518060400160405280600b81526020016a6578747261206c6976657360a81b815250604051806040016040528060048152602001637472756560e01b815250613cf2565b604051602001612fab929190614d96565b60405160208183030381529060405290508180612fc7906153e3565b9250505b600184901c93508061300a6040518060400160405280600d81526020016c23206f6620706f77657275707360981b81525061300585613405565b613cf2565b60405160200161301b929190614d96565b60405160208183030381529060405290506000805b600f8110156130e75760018616156130ce578261309d600f838154811061305957613059615474565b906000526020600020016040516020016130739190614ebb565b60408051601f1981840301815282820190915260048252637472756560e01b602083015290613cf2565b6040516020016130ae929190614d96565b604051602081830303815290604052925081806130ca906153e3565b9250505b60019590951c94806130df816153e3565b915050613030565b50816131196040518060400160405280600b81526020016a23206f66206c6576656c7360a81b81525061300584613405565b60405160200161312a929190614d96565b60408051601f19818403018152828201909152600e82526d706164646c652070616c6574746560901b60208301529250829061321590601061316d60038a61541e565b8154811061317d5761317d615474565b906000526020600020018054613192906153a8565b80601f01602080910402602001604051908101604052809291908181526020018280546131be906153a8565b801561320b5780601f106131e05761010080835404028352916020019161320b565b820191906000526020600020905b8154815290600101906020018083116131ee57829003601f168201915b5050505050613cf2565b604051602001613226929190614d96565b60408051601f1981840301815291905291506132436003866152e4565b94508161327e6040518060400160405280600d81526020016c627269636b2070616c6574746560981b815250601160068961316d919061541e565b60405160200161328f929190614d96565b60408051601f1981840301815291905291506132ac6006866152e4565b9450816132dc60405180604001604052806002815260200161626760f01b815250601260068961316d919061541e565b6040516020016132ed929190614d96565b60408051601f1981840301815291905295945050505050565b6060600263ffffffff168351101561332d5750604080516000815260208101909152610716565b6000805b60028110156133785760088263ffffffff16901b915084818151811061335957613359615474565b016020015160f81c919091179080613370816153e3565b915050613331565b50620186a063ffffffff821611156133a0575050604080516000815260208101909152610716565b60008163ffffffff166001600160401b038111156133c0576133c061548a565b6040519080825280601f01601f1916602001820160405280156133ea576020820181803683370190505b5090506133fc85858360026000613d1e565b50949350505050565b6060816134295750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613453578061343d816153e3565b915061344c9050600a836152e4565b915061342d565b6000816001600160401b0381111561346d5761346d61548a565b6040519080825280601f01601f191660200182016040528015613497576020820181803683370190505b5090505b84156126af576134ac600183615317565b91506134b9600a8661541e565b6134c49060306152cc565b60f81b8183815181106134d9576134d9615474565b60200101906001600160f81b031916908160001a9053506134fb600a866152e4565b945061349b565b606081516000141561352257505060408051602081019091526000815290565b60006040518060600160405280604081526020016154ec604091399050600060038451600261355191906152cc565b61355b91906152e4565b6135669060046152f8565b905060006135758260206152cc565b6001600160401b0381111561358c5761358c61548a565b6040519080825280601f01601f1916602001820160405280156135b6576020820181803683370190505b509050818152600183018586518101602084015b81831015613622576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f81168501518253506001016135ca565b60038951066001811461363c576002811461364d57613659565b613d3d60f01b600119830152613659565b603d60f81b6000198301525b509398975050505050505050565b60606107166137e4601360008154811061368357613683615474565b906000526020600020018054613698906153a8565b80601f01602080910402602001604051908101604052809291908181526020018280546136c4906153a8565b80156137115780601f106136e657610100808354040283529160200191613711565b820191906000526020600020905b8154815290600101906020018083116136f457829003601f168201915b50505050506014805480602002602001604051908101604052809291908181526020016000905b82821015611919578382906000526020600020018054613757906153a8565b80601f0160208091040260200160405190810160405280929190818152602001828054613783906153a8565b80156137d05780601f106137a5576101008083540402835291602001916137d0565b820191906000526020600020905b8154815290600101906020018083116137b357829003601f168201915b505050505081526020019060010190613738565b6137ed84613405565b613965601360018154811061380457613804615474565b906000526020600020018054613819906153a8565b80601f0160208091040260200160405190810160405280929190818152602001828054613845906153a8565b80156138925780601f1061386757610100808354040283529160200191613892565b820191906000526020600020905b81548152906001019060200180831161387557829003601f168201915b50505050506014805480602002602001604051908101604052809291908181526020016000905b828210156119195783829060005260206000200180546138d8906153a8565b80601f0160208091040260200160405190810160405280929190818152602001828054613904906153a8565b80156139515780601f1061392657610100808354040283529160200191613951565b820191906000526020600020905b81548152906001019060200180831161393457829003601f168201915b5050505050815260200190600101906138b9565b61397560178054611da6906153a8565b613aed601360028154811061398c5761398c615474565b9060005260206000200180546139a1906153a8565b80601f01602080910402602001604051908101604052809291908181526020018280546139cd906153a8565b8015613a1a5780601f106139ef57610100808354040283529160200191613a1a565b820191906000526020600020905b8154815290600101906020018083116139fd57829003601f168201915b50505050506014805480602002602001604051908101604052809291908181526020016000905b82821015611919578382906000526020600020018054613a60906153a8565b80601f0160208091040260200160405190810160405280929190818152602001828054613a8c906153a8565b8015613ad95780601f10613aae57610100808354040283529160200191613ad9565b820191906000526020600020905b815481529060010190602001808311613abc57829003601f168201915b505050505081526020019060010190613a41565b604051602001611fb9959493929190614d2b565b816001600160a01b0316836001600160a01b03161415613b5f5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610816565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613bd78484846126b7565b613be384848484613e0f565b6111c15760405162461bcd60e51b81526004016108169061515d565b6001600160a01b038316613c5a57613c5581600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613c7d565b816001600160a01b0316836001600160a01b031614613c7d57613c7d8382613f1c565b6001600160a01b038216613c945761094781613fb9565b826001600160a01b0316826001600160a01b031614610947576109478282614068565b6000805b613cc36140ac565b9050613cce816140ec565b15613cbb57919050565b610d868282604051806020016040528060008152506142f4565b60608282604051602001613d07929190614e05565b604051602081830303815290604052905092915050565b60005b855183108015613d315750835182105b156133fc576000868481518110613d4a57613d4a615474565b602001015160f81c60f81b60f81c60ff1690506000868281518110613d7157613d71615474565b60200260200101519050600081511115613da757613d93818888600088613d1e565b935084613d9f816153e3565b955050613e08565b8785613db2816153e3565b965081518110613dc457613dc4615474565b01602001516001600160f81b0319168685613dde816153e3565b965081518110613df057613df0615474565b60200101906001600160f81b031916908160001a9053505b5050613d21565b60006001600160a01b0384163b15613f1157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613e53903390899088908890600401615030565b602060405180830381600087803b158015613e6d57600080fd5b505af1925050508015613e9d575060408051601f3d908101601f19168201909252613e9a91810190614a22565b60015b613ef7573d808015613ecb576040519150601f19603f3d011682016040523d82523d6000602084013e613ed0565b606091505b508051613eef5760405162461bcd60e51b81526004016108169061515d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506126af565b506001949350505050565b60006001613f29846113a3565b613f339190615317565b600083815260076020526040902054909150808214613f86576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613fcb90600190615317565b60008381526009602052604081205460088054939450909284908110613ff357613ff3615474565b90600052602060002001549050806008838154811061401457614014615474565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061404c5761404c61545e565b6001900381819060005260206000200160009055905550505050565b6000614073836113a3565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60005b6307ffffff620fcfcb60215463073313316140ca91906152f8565b6140d491906152cc565b1660218190556306c0000011156140af575060215490565b60006001821615801590614138575060405168199a5c994818985b1b60ba1b60208201526029810183905260490160408051601f19818403018152919052805160209091012060071615155b1561414557506000919050565b600191821c918216158015906141935750604051681a5c9bdb8818985b1b60ba1b60208201526029810183905260490160408051601f19818403018152919052805160209091012060031615155b156141a057506000919050565b60029190911c9060018216158015906141f657506040516d6d756c7469706c652062616c6c7360901b6020820152602e8101839052604e0160408051601f19818403018152919052805160209091012060011615155b1561420357506000919050565b600191821c9182161580159061425357506040516a6578747261206c6976657360a81b6020820152602b8101839052604b0160408051601f19818403018152919052805160209091012060011615155b1561426057506000919050565b600191821c9161427290618000615317565b821661428057506000919050565b600f9190911c906142926012836152e4565b915061429f60068361541e565b60051480156142df575060405161626760f01b60208201526022810183905260420160408051601f19818403018152919052805160209091012060031615155b156142ec57506000919050565b506001919050565b6142fe8383614327565b61430b6000848484613e0f565b6109475760405162461bcd60e51b81526004016108169061515d565b6001600160a01b03821661437d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610816565b61438681612562565b156143d25760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b6044820152606401610816565b6143de60008383613bff565b6001600160a01b03821660009081526003602052604081208054600192906144079084906152cc565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b038616908117909155905183929060008051602061552c833981519152908290a45050565b82805461445f906153a8565b90600052602060002090601f01602090048101928261448157600085556144c7565b82601f1061449a5782800160ff198235161785556144c7565b828001600101855582156144c7579182015b828111156144c75782358255916020019190600101906144ac565b506144d3929150614530565b5090565b828054828255906000526020600020908101928215614524579160200282015b828111156145245782518051614514918491602090910190614545565b50916020019190600101906144f7565b506144d39291506145b9565b5b808211156144d35760008155600101614531565b828054614551906153a8565b90600052602060002090601f01602090048101928261457357600085556144c7565b82601f1061458c57805160ff19168380011785556144c7565b828001600101855582156144c7579182015b828111156144c757825182559160200191906001019061459e565b808211156144d35760006145cd82826145d6565b506001016145b9565b5080546145e2906153a8565b6000825580601f106145f2575050565b601f01602090049060005260206000209081019061250f9190614530565b600082601f83011261462157600080fd5b813560206001600160401b038083111561463d5761463d61548a565b8260051b61464c83820161529c565b8481528381019087850183890186018a101561466757600080fd5b60009350835b878110156146a457813586811115614683578586fd5b6146918c89838e0101614710565b855250928601929086019060010161466d565b50909998505050505050505050565b803580151581146146c357600080fd5b919050565b60008083601f8401126146da57600080fd5b5081356001600160401b038111156146f157600080fd5b60208301915083602082850101111561470957600080fd5b9250929050565b600082601f83011261472157600080fd5b81356001600160401b0381111561473a5761473a61548a565b61474d601f8201601f191660200161529c565b81815284602083860101111561476257600080fd5b816020850160208301376000918101602001919091529392505050565b803563ffffffff811681146146c357600080fd5b6000602082840312156147a557600080fd5b8135612c06816154a0565b6000602082840312156147c257600080fd5b8151612c06816154a0565b600080604083850312156147e057600080fd5b82356147eb816154a0565b915060208301356147fb816154a0565b809150509250929050565b60008060006060848603121561481b57600080fd5b8335614826816154a0565b92506020840135614836816154a0565b929592945050506040919091013590565b6000806000806080858703121561485d57600080fd5b8435614868816154a0565b93506020850135614878816154a0565b92506040850135915060608501356001600160401b0381111561489a57600080fd5b6148a687828801614710565b91505092959194509250565b600080604083850312156148c557600080fd5b82356148d0816154a0565b91506148de602084016146b3565b90509250929050565b600080604083850312156148fa57600080fd5b8235614905816154a0565b946020939093013593505050565b6000806020838503121561492657600080fd5b82356001600160401b038082111561493d57600080fd5b818501915085601f83011261495157600080fd5b81358181111561496057600080fd5b8660208260051b850101111561497557600080fd5b60209290920196919550909350505050565b6000806040838503121561499a57600080fd5b82356001600160401b03808211156149b157600080fd5b6149bd86838701614610565b935060208501359150808211156149d357600080fd5b506149e085828601614610565b9150509250929050565b6000602082840312156149fc57600080fd5b612c06826146b3565b600060208284031215614a1757600080fd5b8135612c06816154b5565b600060208284031215614a3457600080fd5b8151612c06816154b5565b6000806000806000806000806080898b031215614a5b57600080fd5b88356001600160401b0380821115614a7257600080fd5b614a7e8c838d016146c8565b909a50985060208b0135915080821115614a9757600080fd5b614aa38c838d016146c8565b909850965060408b0135915080821115614abc57600080fd5b614ac88c838d016146c8565b909650945060608b0135915080821115614ae157600080fd5b50614aee8b828c016146c8565b999c989b5096995094979396929594505050565b60008060008060608587031215614b1857600080fd5b84356001600160401b03811115614b2e57600080fd5b614b3a878288016146c8565b9095509350614b4d90506020860161477f565b9150614b5b6040860161477f565b905092959194509250565b600060208284031215614b7857600080fd5b5035919050565b600060208284031215614b9157600080fd5b5051919050565b60008151808452614bb0816020860160208601615365565b601f01601f19169290920160200192915050565b60008151614bd6818560208601615365565b9290920192915050565b8054600090600181811c9080831680614bfa57607f831692505b6020808410821415614c1c57634e487b7160e01b600052602260045260246000fd5b818015614c305760018114614c4157614c6d565b60ff19861689528489019650614c6d565b876000528160002060005b86811015614c655781548b820152908501908301614c4c565b505084890196505b50505050505092915050565b60008a51614c8b818460208f01615365565b614c978184018c614be0565b90508951614ca9818360208e01615365565b8951910190614cbc818360208d01615365565b8851910190614ccf818360208c01615365565b8751910190614ce2818360208b01615365565b8651910190614cf5818360208a01615365565b8551910190614d08818360208901615365565b8451910190614d1b818360208801615365565b019b9a5050505050505050505050565b60008651614d3d818460208b01615365565b865190830190614d51818360208b01615365565b8651910190614d64818360208a01615365565b8551910190614d77818360208901615365565b8451910190614d8a818360208801615365565b01979650505050505050565b60008351614da8818460208801615365565b600b60fa1b9083019081528351614dc6816001840160208801615365565b01600101949350505050565b6000614dde8286614be0565b8451614dee818360208901615365565b614dfa81830186614be0565b979650505050505050565b6e3d913a3930b4ba2fba3cb832911d1160891b81528251600090614e3081600f850160208801615365565b6a1116113b30b63ab2911d1160a91b600f918401918201528351614e5b81601a840160208801615365565b61227d60f01b601a9290910191820152601c01949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251614eae81601d850160208701615365565b91909101601d0192915050565b6503632bb32b6160d51b81526000612c066006830184614be0565b787b226e616d65223a2022427269636b427265616b657273202360381b81528451600090614f0b816019850160208a01615365565b7f222c226465736372697074696f6e223a2254686520636c6173736963616c20676019918401918201527f616d652c20627920474d343230202620476d6f6e65792e222c22696d616765226039820152770e8899185d184e9a5b5859d94bdcdd99ced8985cd94d8d0b60421b60598201528551614f8f816071840160208a01615365565b7f222c22616e696d6174696f6e5f75726c223a22646174613a746578742f68746d60719290910191820152681b0ed8985cd94d8d0b60ba1b60918201528451614fdf81609a840160208901615365565b70222c2261747472696275746573223a205b60781b609a9290910191820152614dfa61500e60ab830186614bc4565b615d7d60f01b815260020190565b6001600160a01b0391909116815260200190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061506390830184614b98565b9695505050505050565b6001600160a01b03929092168252602082015260400190565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b8381101561510357603f198984030185528151606063ffffffff80835116865289830151828b8801526150e283880182614b98565b938a01519091169589019590955250948701949250908601906001016150ad565b509098975050505050505050565b6060815260006151246060830186614b98565b82810360208401526151368186614b98565b905082810360408401526150638185614b98565b602081526000612c066020830184614b98565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526016908201527545786365656473206d6178696d756d20737570706c7960501b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f191681016001600160401b03811182821017156152c4576152c461548a565b604052919050565b600082198211156152df576152df615432565b500190565b6000826152f3576152f3615448565b500490565b600081600019048311821515161561531257615312615432565b500290565b60008282101561532957615329615432565b500390565b805160208201516001600160401b0319808216929190601883101561535d5780818460180360031b1b83161693505b505050919050565b60005b83811015615380578181015183820152602001615368565b838111156111c15750506000910152565b6000816153a0576153a0615432565b506000190190565b600181811c908216806153bc57607f821691505b602082108114156153dd57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156153f7576153f7615432565b5060010190565b600060ff821660ff81141561541557615415615432565b60010192915050565b60008261542d5761542d615448565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461250f57600080fd5b6001600160e01b03198116811461250f57600080fdfe22a928440597a4bd641c7e80f18a0c9a9e1139204ab57558d75cff3700a591bb4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122040824fff7883e41fc91937070d4d706104d93679d14e1cda175b017082795e8664736f6c63430008070033000000000000000000000000843dfc05ef59d99849d658af6df629a28bcbe401
Deployed Bytecode
0x6080604052600436106101e15760003560e01c806301ffc9a7146101e6578063068f68341461021b57806306fdde031461023e578063081812fc14610260578063095ea7b31461028d57806318160ddd146102af5780631f85e3ca146102c457806323b872dd146102e45780632d6e71b6146103045780632f745c5914610324578063379607f5146103445780633ccfd60b146103645780633cd29ac81461037957806342842e0e1461038157806347163715146103a15780634c3b63d1146103c15780634f6ccce7146103e157806352d7b0f9146104015780635de2e428146104215780636352211e146104365780636d763a6e1461045657806370a0823114610478578063715018a614610498578063728516f6146104ad57806380088000146104cd57806383f23a3e146104e25780638bbdaafb146105025780638d859f3e146105225780638da5cb5b1461053d5780638f328a1f1461055257806395d89b41146105905780639e240785146105a55780639e4f945f146105c5578063a0712d68146105f4578063a22cb46514610607578063b88d4fde14610627578063c4d77e2914610647578063c87b56dd14610664578063d1058e5914610684578063e985e9c514610699578063f2fde38b146106b9578063fdfc7aae146106d9575b600080fd5b3480156101f257600080fd5b50610206610201366004614a05565b6106f1565b60405190151581526020015b60405180910390f35b34801561022757600080fd5b50610230601481565b604051908152602001610212565b34801561024a57600080fd5b5061025361071c565b604051610212919061514a565b34801561026c57600080fd5b5061028061027b366004614b66565b6107ae565b604051610212919061501c565b34801561029957600080fd5b506102ad6102a83660046148e7565b61083b565b005b3480156102bb57600080fd5b50600854610230565b3480156102d057600080fd5b506102ad6102df3660046149ea565b61094c565b3480156102f057600080fd5b506102ad6102ff366004614806565b61098e565b34801561031057600080fd5b506102ad61031f366004614b66565b6109bf565b34801561033057600080fd5b5061023061033f3660046148e7565b610aab565b34801561035057600080fd5b506102ad61035f366004614b66565b610b41565b34801561037057600080fd5b506102ad610c87565b6102ad610d8a565b34801561038d57600080fd5b506102ad61039c366004614806565b610f8f565b3480156103ad57600080fd5b506102ad6103bc366004614a3f565b610faa565b3480156103cd57600080fd5b506102ad6103dc3660046149ea565b611017565b3480156103ed57600080fd5b506102306103fc366004614b66565b611060565b34801561040d57600080fd5b506102ad61041c366004614b02565b6110f3565b34801561042d57600080fd5b50610230600381565b34801561044257600080fd5b50610280610451366004614b66565b6111c7565b34801561046257600080fd5b5061046b61123e565b6040516102129190615086565b34801561048457600080fd5b50610230610493366004614793565b6113a3565b3480156104a457600080fd5b506102ad61142a565b3480156104b957600080fd5b506102ad6104c8366004614987565b611465565b3480156104d957600080fd5b506102306114bb565b3480156104ee57600080fd5b506102ad6104fd366004614913565b6114ec565b34801561050e57600080fd5b506102ad61051d366004614793565b61158d565b34801561052e57600080fd5b5061023066f523226980800081565b34801561054957600080fd5b506102806115de565b34801561055e57600080fd5b5061020661056d366004614793565b6001600160a01b03166000908152601d602052604090205460ff16151560011490565b34801561059c57600080fd5b506102536115ed565b3480156105b157600080fd5b506102ad6105c0366004614793565b6115fc565b3480156105d157600080fd5b506105e56105e0366004614b66565b61172d565b60405161021293929190615111565b6102ad610602366004614b66565b611fe9565b34801561061357600080fd5b506102ad6106223660046148b2565b6121f5565b34801561063357600080fd5b506102ad610642366004614847565b612200565b34801561065357600080fd5b50601c54610100900460ff16610206565b34801561067057600080fd5b5061025361067f366004614b66565b612232565b34801561069057600080fd5b506102ad6122b5565b3480156106a557600080fd5b506102066106b43660046147cd565b612444565b3480156106c557600080fd5b506102ad6106d4366004614793565b612472565b3480156106e557600080fd5b50601c5460ff16610206565b60006001600160e01b0319821663780e9d6360e01b1480610716575061071682612512565b92915050565b60606000805461072b906153a8565b80601f0160208091040260200160405190810160405280929190818152602001828054610757906153a8565b80156107a45780601f10610779576101008083540402835291602001916107a4565b820191906000526020600020905b81548152906001019060200180831161078757829003601f168201915b5050505050905090565b60006107b982612562565b61081f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610846826111c7565b9050806001600160a01b0316836001600160a01b031614156108b45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610816565b336001600160a01b03821614806108d057506108d08133612444565b61093d5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610816565b610947838361257f565b505050565b336109556115de565b6001600160a01b03161461097b5760405162461bcd60e51b8152600401610816906151af565b601c805460ff1916911515919091179055565b61099833826125ed565b6109b45760405162461bcd60e51b815260040161081690615214565b6109478383836126b7565b336109c86115de565b6001600160a01b0316146109ee5760405162461bcd60e51b8152600401610816906151af565b601a54811015610a405760405162461bcd60e51b815260206004820152601e60248201527f416c7265616479206d696e746564206d6f7265207468616e20746861742100006044820152606401610816565b610a4e6101a46109c4615317565b601954610a5b90836152cc565b1115610aa65760405162461bcd60e51b815260206004820152601a6024820152794e6f7420656e6f75676820706965636573206c6566742023322160301b6044820152606401610816565b601b55565b6000610ab6836113a3565b8210610b185760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610816565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6002600b541415610b645760405162461bcd60e51b815260040161081690615265565b6002600b55610b7281612562565b15610bbf5760405162461bcd60e51b815260206004820181905260248201527f427269636b427265616b6572733a20616c72656164792072656465656d6564216044820152606401610816565b601f546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e9060240160206040518083038186803b158015610c0357600080fd5b505afa158015610c17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3b91906147b0565b6001600160a01b031614610c4e57600080fd5b610c58338261284c565b6000805160206154cc8339815191523382604051610c7792919061506d565b60405180910390a1506001600b55565b33610c906115de565b6001600160a01b031614610cb65760405162461bcd60e51b8152600401610816906151af565b4780610cf15760405162461bcd60e51b815260206004820152600a6024820152694e6f2062616c616e636560b01b6044820152606401610816565b6020546040516000916001600160a01b03169083908381818185875af1925050503d8060008114610d3e576040519150601f19603f3d011682016040523d82523d6000602084013e610d43565b606091505b5050905080610d865760405162461bcd60e51b815260206004820152600f60248201526e4641494c454420776974686472617760881b6044820152606401610816565b5050565b6002600b541415610dad5760405162461bcd60e51b815260040161081690615265565b6002600b55601c54610100900460ff16610e045760405162461bcd60e51b81526020600482015260186024820152775072656d696e742069736e2774206163746976652061746d60401b6044820152606401610816565b66f5232269808000341015610e5b5760405162461bcd60e51b815260206004820152601d60248201527f45746865722073656e74206973206c657373207468616e2050524943450000006044820152606401610816565b6109c4610e6760085490565b610e729060016152cc565b1115610e905760405162461bcd60e51b8152600401610816906151e4565b610e9e6101a46109c4615317565b601b54601954610eae91906152cc565b610eb99060016152cc565b1115610ed75760405162461bcd60e51b8152600401610816906151e4565b336000908152601d602052604090205460ff161515600114610f365760405162461bcd60e51b815260206004820152601860248201527714d95b99195c881b9bdd081bdb88185b1b1bddc81b1a5cdd60421b6044820152606401610816565b60006101a4601954610f4891906152cc565b336000908152601d60205260408120805460ff1916905560198054929350600192909190610f779084906152cc565b90915550610f879050338261284c565b506001600b55565b61094783838360405180602001604052806000815250612200565b33610fb36115de565b6001600160a01b031614610fd95760405162461bcd60e51b8152600401610816906151af565b610fe560158989614453565b50610ff260168787614453565b50610fff60178585614453565b5061100c60188383614453565b505050505050505050565b336110206115de565b6001600160a01b0316146110465760405162461bcd60e51b8152600401610816906151af565b601c80549115156101000261ff0019909216919091179055565b600061106b60085490565b82106110ce5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610816565b600882815481106110e1576110e1615474565b90600052602060002001549050919050565b6111028163ffffffff16612562565b6111435760405162461bcd60e51b81526020600482015260126024820152712737b716b2bc34b9ba32b73a103a37b5b2b760711b6044820152606401610816565b3361115363ffffffff83166111c7565b6001600160a01b0316146111b55760405162461bcd60e51b815260206004820152602360248201527f4f6e6c7920746865206f776e65722063616e20736574206120686967682073636044820152626f726560e81b6064820152608401610816565b6111c184848484612873565b50505050565b6000818152600260205260408120546001600160a01b0316806107165760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610816565b606060005b600381101561128257600c816003811061125f5761125f615474565b015463ffffffff1661127057611282565b8061127a816153e3565b915050611243565b6000816001600160401b0381111561129c5761129c61548a565b6040519080825280602002602001820160405280156112fd57816020015b6112ea6040518060600160405280600063ffffffff16815260200160608152602001600063ffffffff1681525090565b8152602001906001900390816112ba5790505b50905060005b8281101561139c576000600c826003811061132057611320615474565b6040805160608101825292909101805463ffffffff600160201b8204168452909350602083019161135991600160401b9004901b612ad7565b8152825463ffffffff16602090910152835184908490811061137d5761137d615474565b6020026020010181905250508080611394906153e3565b915050611303565b5092915050565b60006001600160a01b03821661140e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610816565b506001600160a01b031660009081526003602052604090205490565b336114336115de565b6001600160a01b0316146114595760405162461bcd60e51b8152600401610816906151af565b6114636000612c0d565b565b3361146e6115de565b6001600160a01b0316146114945760405162461bcd60e51b8152600401610816906151af565b81516114a79060139060208501906144d7565b5080516109479060149060208401906144d7565b6000601b546019546101a46109c46114d39190615317565b6114dd9190615317565b6114e79190615317565b905090565b336114f56115de565b6001600160a01b03161461151b5760405162461bcd60e51b8152600401610816906151af565b60005b81811015610947576001601d600085858581811061153e5761153e615474565b90506020020160208101906115539190614793565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580611585816153e3565b91505061151e565b336115966115de565b6001600160a01b0316146115bc5760405162461bcd60e51b8152600401610816906151af565b601f80546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b031690565b60606001805461072b906153a8565b6002600b54141561161f5760405162461bcd60e51b815260040161081690615265565b6002600b553361162d6115de565b6001600160a01b0316146116535760405162461bcd60e51b8152600401610816906151af565b6109c461165f60085490565b61166a9060016152cc565b11156116885760405162461bcd60e51b8152600401610816906151e4565b601b54601a54106116ab5760405162461bcd60e51b8152600401610816906151e4565b6000601a54601b546109c46116c09190615317565b6116ca91906152cc565b601a805491925060006116dc836153e3565b91905055506116eb828261284c565b7ffb4f6a4727295721163aa6cab714eed4c977a4091aa258c55edb0d87d2080702828260405161171c92919061506d565b60405180910390a150506001600b55565b6000818152601e6020526040902054606090819081906117825760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a59081d1bdad95b88125160821b6044820152606401610816565b6000848152601e602052604081205461179a90612c5f565b90506000611fcd61192260136003815481106117b8576117b8615474565b9060005260206000200180546117cd906153a8565b80601f01602080910402602001604051908101604052809291908181526020018280546117f9906153a8565b80156118465780601f1061181b57610100808354040283529160200191611846565b820191906000526020600020905b81548152906001019060200180831161182957829003601f168201915b50505050506014805480602002602001604051908101604052809291908181526020016000905b8282101561191957838290600052602060002001805461188c906153a8565b80601f01602080910402602001604051908101604052809291908181526020018280546118b8906153a8565b80156119055780601f106118da57610100808354040283529160200191611905565b820191906000526020600020905b8154815290600101906020018083116118e857829003601f168201915b50505050508152602001906001019061186d565b50505050613306565b6018611a9c601360048154811061193b5761193b615474565b906000526020600020018054611950906153a8565b80601f016020809104026020016040519081016040528092919081815260200182805461197c906153a8565b80156119c95780601f1061199e576101008083540402835291602001916119c9565b820191906000526020600020905b8154815290600101906020018083116119ac57829003601f168201915b50505050506014805480602002602001604051908101604052809291908181526020016000905b82821015611919578382906000526020600020018054611a0f906153a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611a3b906153a8565b8015611a885780601f10611a5d57610100808354040283529160200191611a88565b820191906000526020600020905b815481529060010190602001808311611a6b57829003601f168201915b5050505050815260200190600101906119f0565b611aa58a613405565b611c1d6013600581548110611abc57611abc615474565b906000526020600020018054611ad1906153a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611afd906153a8565b8015611b4a5780601f10611b1f57610100808354040283529160200191611b4a565b820191906000526020600020905b815481529060010190602001808311611b2d57829003601f168201915b50505050506014805480602002602001604051908101604052809291908181526020016000905b82821015611919578382906000526020600020018054611b90906153a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611bbc906153a8565b8015611c095780601f10611bde57610100808354040283529160200191611c09565b820191906000526020600020905b815481529060010190602001808311611bec57829003601f168201915b505050505081526020019060010190611b71565b87611d966013600681548110611c3557611c35615474565b906000526020600020018054611c4a906153a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611c76906153a8565b8015611cc35780601f10611c9857610100808354040283529160200191611cc3565b820191906000526020600020905b815481529060010190602001808311611ca657829003601f168201915b50505050506014805480602002602001604051908101604052809291908181526020016000905b82821015611919578382906000526020600020018054611d09906153a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611d35906153a8565b8015611d825780601f10611d5757610100808354040283529160200191611d82565b820191906000526020600020905b815481529060010190602001808311611d6557829003601f168201915b505050505081526020019060010190611cea565b611e2960178054611da6906153a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611dd2906153a8565b8015611e1f5780601f10611df457610100808354040283529160200191611e1f565b820191906000526020600020905b815481529060010190602001808311611e0257829003601f168201915b5050505050613502565b611fa16013600781548110611e4057611e40615474565b906000526020600020018054611e55906153a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611e81906153a8565b8015611ece5780601f10611ea357610100808354040283529160200191611ece565b820191906000526020600020905b815481529060010190602001808311611eb157829003601f168201915b50505050506014805480602002602001604051908101604052809291908181526020016000905b82821015611919578382906000526020600020018054611f14906153a8565b80601f0160208091040260200160405190810160405280929190818152602001828054611f40906153a8565b8015611f8d5780601f10611f6257610100808354040283529160200191611f8d565b820191906000526020600020905b815481529060010190602001808311611f7057829003601f168201915b505050505081526020019060010190611ef5565b604051602001611fb999989796959493929190614c79565b604051602081830303815290604052613502565b90508181611fda88613667565b94509450945050509193909250565b6002600b54141561200c5760405162461bcd60e51b815260040161081690615265565b6002600b55601c5460ff1661205b5760405162461bcd60e51b81526020600482015260156024820152744d696e742069736e2774206163746976652061746d60581b6044820152606401610816565b60058111156120a95760405162461bcd60e51b815260206004820152601a60248201527909ac2f0d2daeada40decc406a40e0d2cac6cae640e0cae440e8f60331b6044820152606401610816565b6120ba8166f52322698080006152f8565b3410156121135760405162461bcd60e51b815260206004820152602160248201527f45746865722073656e74206973206c657373207468616e2050524943452a6e756044820152606d60f81b6064820152608401610816565b6109c48161212060085490565b61212a91906152cc565b11156121485760405162461bcd60e51b8152600401610816906151e4565b6121566101a46109c4615317565b601b548260195461216791906152cc565b61217191906152cc565b111561218f5760405162461bcd60e51b8152600401610816906151e4565b60006101a46019546121a191906152cc565b905081601960008282546121b591906152cc565b90915550600090505b828110156121eb576121d9336121d483856152cc565b61284c565b806121e3816153e3565b9150506121be565b50506001600b5550565b610d86338383613b01565b61220a33836125ed565b6122265760405162461bcd60e51b815260040161081690615214565b6111c184848484613bcc565b606060008060006122428561172d565b9250925092506122626015836016604051602001611fb993929190614dd2565b9150600061228861227287613405565b838587604051602001611fb99493929190614ed6565b90508060405160200161229b9190614e76565b60408051601f198184030181529190529695505050505050565b6002600b5414156122d85760405162461bcd60e51b815260040161081690615265565b6002600b55601f546040516370a0823160e01b81526001600160a01b039091169060009082906370a082319061231290339060040161501c565b60206040518083038186803b15801561232a57600080fd5b505afa15801561233e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123629190614b7f565b905060005b818110156121eb57604051632f745c5960e01b81526000906001600160a01b03851690632f745c59906123a0903390869060040161506d565b60206040518083038186803b1580156123b857600080fd5b505afa1580156123cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123f09190614b7f565b90506123fb81612562565b61243157612409338261284c565b6000805160206154cc833981519152338260405161242892919061506d565b60405180910390a15b508061243c816153e3565b915050612367565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3361247b6115de565b6001600160a01b0316146124a15760405162461bcd60e51b8152600401610816906151af565b6001600160a01b0381166125065760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610816565b61250f81612c0d565b50565b60006001600160e01b031982166380ac58cd60e01b148061254357506001600160e01b03198216635b5e139f60e01b145b8061071657506301ffc9a760e01b6001600160e01b0319831614610716565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906125b4826111c7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006125f882612562565b6126595760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610816565b6000612664836111c7565b9050806001600160a01b0316846001600160a01b0316148061269f5750836001600160a01b0316612694846107ae565b6001600160a01b0316145b806126af57506126af8185612444565b949350505050565b826001600160a01b03166126ca826111c7565b6001600160a01b03161461272e5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610816565b6001600160a01b0382166127905760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610816565b61279b838383613bff565b6127a660008261257f565b6001600160a01b03831660009081526003602052604081208054600192906127cf908490615317565b90915550506001600160a01b03821660009081526003602052604081208054600192906127fd9084906152cc565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03868116918217909255915184939187169160008051602061552c83398151915291a4505050565b6000612856613cb7565b6000838152601e6020526040902081905590506109478383613cd8565b600084848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505082519293505050601410156128f75760405162461bcd60e51b8152602060048201526014602482015273546865206e616d6520697320746f6f206c6f6e6760601b6044820152606401610816565b600060405180606001604052808563ffffffff1681526020018463ffffffff168152602001836129269061532e565b6001600160401b03191690529050600061294260016003615317565b90505b6000811180156129735750600c816003811061296357612963615474565b0154825163ffffffff9182169116115b15612a2057600c612985600183615317565b6003811061299557612995615474565b01600c82600381106129a9576129a9615474565b82549101805463ffffffff92831663ffffffff1982168117835584546001600160401b031990921617600160201b91829004909316029190911780825591546001600160401b03909216600160401b928390046001600160c01b031690920291909117905580612a1881615391565b915050612945565b612a2c60016003615317565b8110612a6b5760405162461bcd60e51b815260206004820152600e60248201526d111a591b89dd081b585ad9481a5d60921b6044820152606401610816565b81600c8260038110612a7f57612a7f615474565b825191018054602084015160409485015190941c600160401b026001600160401b0363ffffffff958616600160201b026001600160401b03199093169590941694909417179190911691909117905550505050505050565b606060005b60188160ff16108015612b105750828160ff1660188110612aff57612aff615474565b1a60f81b6001600160f81b03191615155b15612b275780612b1f816153fe565b915050612adc565b60008160ff166001600160401b03811115612b4457612b4461548a565b6040519080825280601f01601f191660200182016040528015612b6e576020820181803683370190505b509050600091505b60188260ff16108015612baa5750838260ff1660188110612b9957612b99615474565b1a60f81b6001600160f81b03191615155b15612c0657838260ff1660188110612bc457612bc4615474565b1a60f81b818360ff1681518110612bdd57612bdd615474565b60200101906001600160f81b031916908160001a90535081612bfe816153fe565b925050612b76565b9392505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60606000600290506000612cb46040518060400160405280600d81526020016c62696767657220706164646c6560981b815250604051806040016040528060048152602001637472756560e01b815250613cf2565b612d026040518060400160405280601081526020016f39b1b7b9329036bab63a34b83634b2b960811b815250604051806040016040528060048152602001637472756560e01b815250613cf2565b604051602001612d13929190614d96565b604051602081830303815290604052905083600116600014612da85780612d7760405180604001604052806009815260200168199a5c994818985b1b60ba1b815250604051806040016040528060048152602001637472756560e01b815250613cf2565b604051602001612d88929190614d96565b60405160208183030381529060405290508180612da4906153e3565b9250505b600193841c93841615612e2e5780612dfd604051806040016040528060098152602001681a5c9bdb8818985b1b60ba1b815250604051806040016040528060048152602001637472756560e01b815250613cf2565b604051602001612e0e929190614d96565b60405160208183030381529060405290508180612e2a906153e3565b9250505b600193841c93841615612eb85780612e876040518060400160405280600d81526020016c737469636b7920706164646c6560981b815250604051806040016040528060048152602001637472756560e01b815250613cf2565b604051602001612e98929190614d96565b60405160208183030381529060405290508180612eb4906153e3565b9250505b600193841c93841615612f435780612f126040518060400160405280600e81526020016d6d756c7469706c652062616c6c7360901b815250604051806040016040528060048152602001637472756560e01b815250613cf2565b604051602001612f23929190614d96565b60405160208183030381529060405290508180612f3f906153e3565b9250505b600193841c93841615612fcb5780612f9a6040518060400160405280600b81526020016a6578747261206c6976657360a81b815250604051806040016040528060048152602001637472756560e01b815250613cf2565b604051602001612fab929190614d96565b60405160208183030381529060405290508180612fc7906153e3565b9250505b600184901c93508061300a6040518060400160405280600d81526020016c23206f6620706f77657275707360981b81525061300585613405565b613cf2565b60405160200161301b929190614d96565b60405160208183030381529060405290506000805b600f8110156130e75760018616156130ce578261309d600f838154811061305957613059615474565b906000526020600020016040516020016130739190614ebb565b60408051601f1981840301815282820190915260048252637472756560e01b602083015290613cf2565b6040516020016130ae929190614d96565b604051602081830303815290604052925081806130ca906153e3565b9250505b60019590951c94806130df816153e3565b915050613030565b50816131196040518060400160405280600b81526020016a23206f66206c6576656c7360a81b81525061300584613405565b60405160200161312a929190614d96565b60408051601f19818403018152828201909152600e82526d706164646c652070616c6574746560901b60208301529250829061321590601061316d60038a61541e565b8154811061317d5761317d615474565b906000526020600020018054613192906153a8565b80601f01602080910402602001604051908101604052809291908181526020018280546131be906153a8565b801561320b5780601f106131e05761010080835404028352916020019161320b565b820191906000526020600020905b8154815290600101906020018083116131ee57829003601f168201915b5050505050613cf2565b604051602001613226929190614d96565b60408051601f1981840301815291905291506132436003866152e4565b94508161327e6040518060400160405280600d81526020016c627269636b2070616c6574746560981b815250601160068961316d919061541e565b60405160200161328f929190614d96565b60408051601f1981840301815291905291506132ac6006866152e4565b9450816132dc60405180604001604052806002815260200161626760f01b815250601260068961316d919061541e565b6040516020016132ed929190614d96565b60408051601f1981840301815291905295945050505050565b6060600263ffffffff168351101561332d5750604080516000815260208101909152610716565b6000805b60028110156133785760088263ffffffff16901b915084818151811061335957613359615474565b016020015160f81c919091179080613370816153e3565b915050613331565b50620186a063ffffffff821611156133a0575050604080516000815260208101909152610716565b60008163ffffffff166001600160401b038111156133c0576133c061548a565b6040519080825280601f01601f1916602001820160405280156133ea576020820181803683370190505b5090506133fc85858360026000613d1e565b50949350505050565b6060816134295750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613453578061343d816153e3565b915061344c9050600a836152e4565b915061342d565b6000816001600160401b0381111561346d5761346d61548a565b6040519080825280601f01601f191660200182016040528015613497576020820181803683370190505b5090505b84156126af576134ac600183615317565b91506134b9600a8661541e565b6134c49060306152cc565b60f81b8183815181106134d9576134d9615474565b60200101906001600160f81b031916908160001a9053506134fb600a866152e4565b945061349b565b606081516000141561352257505060408051602081019091526000815290565b60006040518060600160405280604081526020016154ec604091399050600060038451600261355191906152cc565b61355b91906152e4565b6135669060046152f8565b905060006135758260206152cc565b6001600160401b0381111561358c5761358c61548a565b6040519080825280601f01601f1916602001820160405280156135b6576020820181803683370190505b509050818152600183018586518101602084015b81831015613622576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f81168501518253506001016135ca565b60038951066001811461363c576002811461364d57613659565b613d3d60f01b600119830152613659565b603d60f81b6000198301525b509398975050505050505050565b60606107166137e4601360008154811061368357613683615474565b906000526020600020018054613698906153a8565b80601f01602080910402602001604051908101604052809291908181526020018280546136c4906153a8565b80156137115780601f106136e657610100808354040283529160200191613711565b820191906000526020600020905b8154815290600101906020018083116136f457829003601f168201915b50505050506014805480602002602001604051908101604052809291908181526020016000905b82821015611919578382906000526020600020018054613757906153a8565b80601f0160208091040260200160405190810160405280929190818152602001828054613783906153a8565b80156137d05780601f106137a5576101008083540402835291602001916137d0565b820191906000526020600020905b8154815290600101906020018083116137b357829003601f168201915b505050505081526020019060010190613738565b6137ed84613405565b613965601360018154811061380457613804615474565b906000526020600020018054613819906153a8565b80601f0160208091040260200160405190810160405280929190818152602001828054613845906153a8565b80156138925780601f1061386757610100808354040283529160200191613892565b820191906000526020600020905b81548152906001019060200180831161387557829003601f168201915b50505050506014805480602002602001604051908101604052809291908181526020016000905b828210156119195783829060005260206000200180546138d8906153a8565b80601f0160208091040260200160405190810160405280929190818152602001828054613904906153a8565b80156139515780601f1061392657610100808354040283529160200191613951565b820191906000526020600020905b81548152906001019060200180831161393457829003601f168201915b5050505050815260200190600101906138b9565b61397560178054611da6906153a8565b613aed601360028154811061398c5761398c615474565b9060005260206000200180546139a1906153a8565b80601f01602080910402602001604051908101604052809291908181526020018280546139cd906153a8565b8015613a1a5780601f106139ef57610100808354040283529160200191613a1a565b820191906000526020600020905b8154815290600101906020018083116139fd57829003601f168201915b50505050506014805480602002602001604051908101604052809291908181526020016000905b82821015611919578382906000526020600020018054613a60906153a8565b80601f0160208091040260200160405190810160405280929190818152602001828054613a8c906153a8565b8015613ad95780601f10613aae57610100808354040283529160200191613ad9565b820191906000526020600020905b815481529060010190602001808311613abc57829003601f168201915b505050505081526020019060010190613a41565b604051602001611fb9959493929190614d2b565b816001600160a01b0316836001600160a01b03161415613b5f5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610816565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613bd78484846126b7565b613be384848484613e0f565b6111c15760405162461bcd60e51b81526004016108169061515d565b6001600160a01b038316613c5a57613c5581600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613c7d565b816001600160a01b0316836001600160a01b031614613c7d57613c7d8382613f1c565b6001600160a01b038216613c945761094781613fb9565b826001600160a01b0316826001600160a01b031614610947576109478282614068565b6000805b613cc36140ac565b9050613cce816140ec565b15613cbb57919050565b610d868282604051806020016040528060008152506142f4565b60608282604051602001613d07929190614e05565b604051602081830303815290604052905092915050565b60005b855183108015613d315750835182105b156133fc576000868481518110613d4a57613d4a615474565b602001015160f81c60f81b60f81c60ff1690506000868281518110613d7157613d71615474565b60200260200101519050600081511115613da757613d93818888600088613d1e565b935084613d9f816153e3565b955050613e08565b8785613db2816153e3565b965081518110613dc457613dc4615474565b01602001516001600160f81b0319168685613dde816153e3565b965081518110613df057613df0615474565b60200101906001600160f81b031916908160001a9053505b5050613d21565b60006001600160a01b0384163b15613f1157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613e53903390899088908890600401615030565b602060405180830381600087803b158015613e6d57600080fd5b505af1925050508015613e9d575060408051601f3d908101601f19168201909252613e9a91810190614a22565b60015b613ef7573d808015613ecb576040519150601f19603f3d011682016040523d82523d6000602084013e613ed0565b606091505b508051613eef5760405162461bcd60e51b81526004016108169061515d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506126af565b506001949350505050565b60006001613f29846113a3565b613f339190615317565b600083815260076020526040902054909150808214613f86576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613fcb90600190615317565b60008381526009602052604081205460088054939450909284908110613ff357613ff3615474565b90600052602060002001549050806008838154811061401457614014615474565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061404c5761404c61545e565b6001900381819060005260206000200160009055905550505050565b6000614073836113a3565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60005b6307ffffff620fcfcb60215463073313316140ca91906152f8565b6140d491906152cc565b1660218190556306c0000011156140af575060215490565b60006001821615801590614138575060405168199a5c994818985b1b60ba1b60208201526029810183905260490160408051601f19818403018152919052805160209091012060071615155b1561414557506000919050565b600191821c918216158015906141935750604051681a5c9bdb8818985b1b60ba1b60208201526029810183905260490160408051601f19818403018152919052805160209091012060031615155b156141a057506000919050565b60029190911c9060018216158015906141f657506040516d6d756c7469706c652062616c6c7360901b6020820152602e8101839052604e0160408051601f19818403018152919052805160209091012060011615155b1561420357506000919050565b600191821c9182161580159061425357506040516a6578747261206c6976657360a81b6020820152602b8101839052604b0160408051601f19818403018152919052805160209091012060011615155b1561426057506000919050565b600191821c9161427290618000615317565b821661428057506000919050565b600f9190911c906142926012836152e4565b915061429f60068361541e565b60051480156142df575060405161626760f01b60208201526022810183905260420160408051601f19818403018152919052805160209091012060031615155b156142ec57506000919050565b506001919050565b6142fe8383614327565b61430b6000848484613e0f565b6109475760405162461bcd60e51b81526004016108169061515d565b6001600160a01b03821661437d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610816565b61438681612562565b156143d25760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b6044820152606401610816565b6143de60008383613bff565b6001600160a01b03821660009081526003602052604081208054600192906144079084906152cc565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b038616908117909155905183929060008051602061552c833981519152908290a45050565b82805461445f906153a8565b90600052602060002090601f01602090048101928261448157600085556144c7565b82601f1061449a5782800160ff198235161785556144c7565b828001600101855582156144c7579182015b828111156144c75782358255916020019190600101906144ac565b506144d3929150614530565b5090565b828054828255906000526020600020908101928215614524579160200282015b828111156145245782518051614514918491602090910190614545565b50916020019190600101906144f7565b506144d39291506145b9565b5b808211156144d35760008155600101614531565b828054614551906153a8565b90600052602060002090601f01602090048101928261457357600085556144c7565b82601f1061458c57805160ff19168380011785556144c7565b828001600101855582156144c7579182015b828111156144c757825182559160200191906001019061459e565b808211156144d35760006145cd82826145d6565b506001016145b9565b5080546145e2906153a8565b6000825580601f106145f2575050565b601f01602090049060005260206000209081019061250f9190614530565b600082601f83011261462157600080fd5b813560206001600160401b038083111561463d5761463d61548a565b8260051b61464c83820161529c565b8481528381019087850183890186018a101561466757600080fd5b60009350835b878110156146a457813586811115614683578586fd5b6146918c89838e0101614710565b855250928601929086019060010161466d565b50909998505050505050505050565b803580151581146146c357600080fd5b919050565b60008083601f8401126146da57600080fd5b5081356001600160401b038111156146f157600080fd5b60208301915083602082850101111561470957600080fd5b9250929050565b600082601f83011261472157600080fd5b81356001600160401b0381111561473a5761473a61548a565b61474d601f8201601f191660200161529c565b81815284602083860101111561476257600080fd5b816020850160208301376000918101602001919091529392505050565b803563ffffffff811681146146c357600080fd5b6000602082840312156147a557600080fd5b8135612c06816154a0565b6000602082840312156147c257600080fd5b8151612c06816154a0565b600080604083850312156147e057600080fd5b82356147eb816154a0565b915060208301356147fb816154a0565b809150509250929050565b60008060006060848603121561481b57600080fd5b8335614826816154a0565b92506020840135614836816154a0565b929592945050506040919091013590565b6000806000806080858703121561485d57600080fd5b8435614868816154a0565b93506020850135614878816154a0565b92506040850135915060608501356001600160401b0381111561489a57600080fd5b6148a687828801614710565b91505092959194509250565b600080604083850312156148c557600080fd5b82356148d0816154a0565b91506148de602084016146b3565b90509250929050565b600080604083850312156148fa57600080fd5b8235614905816154a0565b946020939093013593505050565b6000806020838503121561492657600080fd5b82356001600160401b038082111561493d57600080fd5b818501915085601f83011261495157600080fd5b81358181111561496057600080fd5b8660208260051b850101111561497557600080fd5b60209290920196919550909350505050565b6000806040838503121561499a57600080fd5b82356001600160401b03808211156149b157600080fd5b6149bd86838701614610565b935060208501359150808211156149d357600080fd5b506149e085828601614610565b9150509250929050565b6000602082840312156149fc57600080fd5b612c06826146b3565b600060208284031215614a1757600080fd5b8135612c06816154b5565b600060208284031215614a3457600080fd5b8151612c06816154b5565b6000806000806000806000806080898b031215614a5b57600080fd5b88356001600160401b0380821115614a7257600080fd5b614a7e8c838d016146c8565b909a50985060208b0135915080821115614a9757600080fd5b614aa38c838d016146c8565b909850965060408b0135915080821115614abc57600080fd5b614ac88c838d016146c8565b909650945060608b0135915080821115614ae157600080fd5b50614aee8b828c016146c8565b999c989b5096995094979396929594505050565b60008060008060608587031215614b1857600080fd5b84356001600160401b03811115614b2e57600080fd5b614b3a878288016146c8565b9095509350614b4d90506020860161477f565b9150614b5b6040860161477f565b905092959194509250565b600060208284031215614b7857600080fd5b5035919050565b600060208284031215614b9157600080fd5b5051919050565b60008151808452614bb0816020860160208601615365565b601f01601f19169290920160200192915050565b60008151614bd6818560208601615365565b9290920192915050565b8054600090600181811c9080831680614bfa57607f831692505b6020808410821415614c1c57634e487b7160e01b600052602260045260246000fd5b818015614c305760018114614c4157614c6d565b60ff19861689528489019650614c6d565b876000528160002060005b86811015614c655781548b820152908501908301614c4c565b505084890196505b50505050505092915050565b60008a51614c8b818460208f01615365565b614c978184018c614be0565b90508951614ca9818360208e01615365565b8951910190614cbc818360208d01615365565b8851910190614ccf818360208c01615365565b8751910190614ce2818360208b01615365565b8651910190614cf5818360208a01615365565b8551910190614d08818360208901615365565b8451910190614d1b818360208801615365565b019b9a5050505050505050505050565b60008651614d3d818460208b01615365565b865190830190614d51818360208b01615365565b8651910190614d64818360208a01615365565b8551910190614d77818360208901615365565b8451910190614d8a818360208801615365565b01979650505050505050565b60008351614da8818460208801615365565b600b60fa1b9083019081528351614dc6816001840160208801615365565b01600101949350505050565b6000614dde8286614be0565b8451614dee818360208901615365565b614dfa81830186614be0565b979650505050505050565b6e3d913a3930b4ba2fba3cb832911d1160891b81528251600090614e3081600f850160208801615365565b6a1116113b30b63ab2911d1160a91b600f918401918201528351614e5b81601a840160208801615365565b61227d60f01b601a9290910191820152601c01949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251614eae81601d850160208701615365565b91909101601d0192915050565b6503632bb32b6160d51b81526000612c066006830184614be0565b787b226e616d65223a2022427269636b427265616b657273202360381b81528451600090614f0b816019850160208a01615365565b7f222c226465736372697074696f6e223a2254686520636c6173736963616c20676019918401918201527f616d652c20627920474d343230202620476d6f6e65792e222c22696d616765226039820152770e8899185d184e9a5b5859d94bdcdd99ced8985cd94d8d0b60421b60598201528551614f8f816071840160208a01615365565b7f222c22616e696d6174696f6e5f75726c223a22646174613a746578742f68746d60719290910191820152681b0ed8985cd94d8d0b60ba1b60918201528451614fdf81609a840160208901615365565b70222c2261747472696275746573223a205b60781b609a9290910191820152614dfa61500e60ab830186614bc4565b615d7d60f01b815260020190565b6001600160a01b0391909116815260200190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061506390830184614b98565b9695505050505050565b6001600160a01b03929092168252602082015260400190565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b8381101561510357603f198984030185528151606063ffffffff80835116865289830151828b8801526150e283880182614b98565b938a01519091169589019590955250948701949250908601906001016150ad565b509098975050505050505050565b6060815260006151246060830186614b98565b82810360208401526151368186614b98565b905082810360408401526150638185614b98565b602081526000612c066020830184614b98565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526016908201527545786365656473206d6178696d756d20737570706c7960501b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f191681016001600160401b03811182821017156152c4576152c461548a565b604052919050565b600082198211156152df576152df615432565b500190565b6000826152f3576152f3615448565b500490565b600081600019048311821515161561531257615312615432565b500290565b60008282101561532957615329615432565b500390565b805160208201516001600160401b0319808216929190601883101561535d5780818460180360031b1b83161693505b505050919050565b60005b83811015615380578181015183820152602001615368565b838111156111c15750506000910152565b6000816153a0576153a0615432565b506000190190565b600181811c908216806153bc57607f821691505b602082108114156153dd57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156153f7576153f7615432565b5060010190565b600060ff821660ff81141561541557615415615432565b60010192915050565b60008261542d5761542d615448565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461250f57600080fd5b6001600160e01b03198116811461250f57600080fdfe22a928440597a4bd641c7e80f18a0c9a9e1139204ab57558d75cff3700a591bb4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122040824fff7883e41fc91937070d4d706104d93679d14e1cda175b017082795e8664736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000843dfc05ef59d99849d658af6df629a28bcbe401
-----Decoded View---------------
Arg [0] : _splitterAddress (address): 0x843dfC05eF59d99849D658AF6dF629a28bcBe401
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000843dfc05ef59d99849d658af6df629a28bcbe401
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.