ERC-721
NFT
Overview
Max Total Supply
8,585 HLOOT
Holders
2,264
Market
Volume (24H)
0.2073 ETH
Min Price (24H)
$118.66 @ 0.030000 ETH
Max Price (24H)
$138.44 @ 0.035000 ETH
Other Info
Token Contract
Balance
1 HLOOTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
HyperLoot
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT //MWN0o:;;;;;;;;:;;;;;;;;;;::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cd00d:;;;;;;;;;,,lxkkkkxo:',;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:lkKKOO0dc;;;;;;;:cxKWMMM //XOdc,.....''''''''....'',,,,''.............................................................',:c;'...........;x0KKOxc............................................................';cc;;:;'........';okKWM //l;'......,okOOOkdc'...'lxkOkd:..............................................................................;xKKkdl,................................................................................,cx0 //,.........cOKKOxl'.....;dOOxl'..............................................................................;xXKxol,.................''''''......................'....................................,; //,.........:kK0xo:......:xOxo:':lodddo:'......,looolc,,cooooooooolc,..'coooooooooooooo:'.;oddddddddddddoc,...;xK0xoc,............',codxkkkkxxdl:'..........',clddxxxddoc;'....'lddddddddddddddddol;....,' //,.........;xK0xo:......cO0xo;.'lxO0Okl'.....'l0KOxo:.,kXKOkxkkkkOOko,,dKX0Okdddddddxxl,'cOX0kkkkkkkOOO00x:..;xK0dlc,..........,lx000OkkxxxkkO0Oxl,......,lk000OOkkkOO00Oxl;..;kOxxdxkO000kxdddodo:'..',' //,.........;xK0xdl;,,,,:dKKxo;...,lddxdl,...;d00xl;'..'xXOdc'.'';lxkx:'l00xl;'.......,,'.;x0xl,'''',:cokkxc'.;d0Odl:,........'ckKKOxoc;,,,,;:ldxkkdc'..,lOK0kxlc:;;;:cldxkkxc',c;...';lddolc,....,,'..',' //,'.......';d00kkkkkkkO0KKOdl;.....;lodxdc;lk0ko:'....'dKkd:..'':dOxo;'cO0x:'............,x0xc'...',:ok0xl;..;d0Odl:,.......'cOX0xo:'........':dkkxd:',dKKOdl;'........;oxkkdc'.......cdddo:'.........',' //,'.''''''';d00kdddxxxxxxxoll;..'...':ldkOO0Odc,...''.'o0OkxxxkO00ko:,.:kOxl;'''',:c,....,dOkxdxxkkkOOOxo:'..;dOOoc:'''''''.,xX0xo:'..''''''...cO0kdl,c0KOdc,...'''''...;x0kxl;..'''.'lkxdl;'.'''..'''',' //,'',,,,,,,;dOkolc:;,,,:loolc;'',,,'..,ldkkxo:''',,,,''oOOxddddddoc;,''cxOkddoooddxd;',,',dOkxxkxddollc:,'.',;oOkol:,,,,,,,';xKOxoc,',,,,,,,,''l0Kkol;l00kdc,',,,,,,,,,.;kK0xo:'',,,',d0koc;'',,,,,,,,,,' //,',;;;;;;;:oOkoc;'',,'':odll;,;;;;;;,,oOkdol,';;;;;;,,oOkoc:,,,'''.',;cxOdc:;;;;:c:,,;;,,okocclooo:'...',;;;:oOkdl:;;;;;;;,,lkkkkxl:;;;;;;;;:lOX0dl:':kOkxxl:;;;;;;;;;:dKKkoc;',;;;,;xKOdc;,,;;;;;;;;;;' //,',;;;;;,,;dOxol:,,;;,';dxol;',;;;;;,,dKOxoc,,,;;;;;',dOkdl:'.'''',,;;cxOd:'.'''''..',,,,oko:;:odkdc;,,,;;;;;oOOdl:,,;;;;;,',cxxkO0OxollllldOKKOdl:'.'cdxkOOkdlcccccldOK0koc;'',;;;,;kX0xl:,,;;;;;;;;;;' //,',,,,,,,,;dOkxdc,,,,,':xkdo:',,,,,,,;xX0kdl,',,,,,,',x0Oxoc,',,,,,,,,ckOd:'',,,,'',;;,',dkd:..:ldkOkd:,,,,,;dOOdo:,,,,,,,,'.';codkO0KKKKKK0Okdl:,'.''';codkO0K0000KKK0koc;'.',,,,,':OX0kdc,',,,,,,,,,,' //,''''''''';dOOkxc'''''':kkdo:''''''',ckKOxkd:'''''''':kKOxdo;'''''''';d0Oxdlcccclldxo;'';xOxc'..;ldO00Oo;,'';d0Oxoc,,'''''''''..,;clloddddolc:,'...''''..,:clodxxxxxolc:,'...'''''':dO0kxkxl,'''''''',,' //,''''''''';x0Okkc''''''ckOxd:..'''..;lollcllc,.'''..,coolcll:,'.'..',lddollooooodddo:'.,lkkdl;'..,cddxkkxc,';d00xoc,'''''''''''..,,..''''''.......''''''.....',,,,,,'......''''''.';cc:;;:::,'.'''''',,' //,'........:x00Okc.....'cOOkxc'..........................................................',''''.....,,,,;;,..;xK0kxdocccllllllllldx:................................................................',,,' //'''.......cO00OOc.....'cxdddo;'.............................................................................:kK0kxkkOOOO00000000Od;..............................................................',,,,:d //l,''....,:okxddxc......',''''..............................................................................,oOkxdddddddddddddddddo;.............................................................',,':dKW //Nx:'''..',,'''','',,',,''''................................................................................';,,,,,,,,,,,,,,,,,,,,,............................................................',,,:xKWMM //MW0l,'''''''''''',,,''':l;'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''.......................''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''',:xKWMMMM //MMWKc.............;dkdd0Nk;....................................................................................................................................................................c0WMMMMMM pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; interface LootInterface { function ownerOf(uint256 tokenId) external view returns (address owner); } interface MLootInterface { function ownerOf(uint256 tokenId) external view returns (address owner); } interface GAInterface { function ownerOf(uint256 tokenId) external view returns (address owner); function getWeapon(uint256 tokenId) external view returns (string memory); function getChest(uint256 tokenId) external view returns (string memory); function getHead(uint256 tokenId) external view returns (string memory); function getWaist(uint256 tokenId) external view returns (string memory); function getFoot(uint256 tokenId) external view returns (string memory); function getHand(uint256 tokenId) external view returns (string memory); function getNeck(uint256 tokenId) external view returns (string memory); function getRing(uint256 tokenId) external view returns (string memory); } contract HyperLoot is ERC721, IERC2981, ReentrancyGuard, Ownable{ using Counters for Counters.Counter; // Project info uint256 public constant TOTAL_SUPPLY = 20000; uint256 public constant MINT_PRICE = 0.05 ether; // Royalty uint256 public royaltyPercentage; address public royaltyAddress; // Contrat's state bool public isPresaleActive = false; bool public isPublicSaleActive = false; bool public isLootPublicSaleActive = false; bool private _isSpecialSetMinted = false; string private _baseTokenURI; bytes32 public hyperlistMerkleRoot; // 3 different types of bag used to mint HyperLoot uint16 private constant _lootType = 0; uint16 private constant _mlootType = 1; uint16 private constant _gaType = 2; // Total 5 group = loot, hyperlist, mloot, ga, special set // Supply for different groups uint16 private constant _supplyLoot = 7776; uint16 private constant _supplyGiveaway = 224; uint16 private constant _supplyGA = 400; uint16 private constant _supplySpecialSet = 7; uint16 private constant _supplyMLoot = 11593; // Token count for different groups uint16 private _tokenIdStartMLoot = 8001; uint16 private _tokenIdStartGA = 19594; uint16 private _tokenIdStartSpecialSet = 19994; Counters.Counter private _countTokenLoot; Counters.Counter private _countTokenMLoot; Counters.Counter private _countTokenGA; // Specific address claimable info mapping(address => bool) private _hyperlist; mapping(address => uint256) private _giveawayList; mapping(address => bool) private _claimedHyperlist; // Claimed mloot and ga states mapping(uint256 => bool) private _claimedMLoot; mapping(uint256 => bool) private _claimedGA; // Loot Contract address private lootAddress = 0xFF9C1b15B16263C61d017ee9F65C50e4AE0113D7; LootInterface lootContract = LootInterface(lootAddress); // More Loot Contract address private mlootAddress = 0x1dfe7Ca09e99d10835Bf73044a23B73Fc20623DF; MLootInterface mlootContract = MLootInterface(mlootAddress); // Genesis Adventurer Contract address private gaAddress = 0x8dB687aCEb92c66f013e1D614137238Cc698fEdb; GAInterface gaContract = GAInterface(gaAddress); // TokenType = [Loot, MLoot, GA, Giveaway] event HyperLootMinted(address indexed to, uint256 indexed id, uint256 fromTokenType, uint256 fromTokenId, uint8[4] traits); constructor() ERC721("HyperLoot", "HLOOT") {} // ————————————————— // // ——— Modifiers ——— // // ————————————————— // modifier presaleActive() { require(isPresaleActive, "PRESALE_NOT_ACTIVE"); _; } modifier publicSaleActive() { require(isPublicSaleActive, "PUBLIC_SALE_NOT_ACTIVE"); _; } modifier lootPublicSaleActive() { require(isLootPublicSaleActive, "LOOT_PUBLIC_SALE_NOT_ACTIVE"); _; } modifier isPaymentValid(uint256 amount) { // Max 20 HyperLoot per trasaction require(amount <= 20, "OVER_20_MAX_LIMIT"); require((MINT_PRICE * amount) <= msg.value, "WRONG_ETHER_VALUE"); _; } modifier isGiveawaySupplyAvailable(uint256 lootId) { require(lootId > 7777 && lootId < 8001, "TOKEN_ID_OUT_OF_RANGE"); // Only allowed to mint specific loot id require(_giveawayList[msg.sender] == lootId, "ADDRESS_NOT_ELIGIBLE"); _; } // —————————————————————————————————— // // ——— Public/Community Functions ——— // // —————————————————————————————————— // // Hodlers of Loot, GA; limit mloot hodlers to mint only 1 hyperloot if in hyperlist function mintPresale(uint256[] calldata bagIds, uint16[] calldata bagType, uint8[] calldata traits, bytes32[] calldata merkleProof) external payable nonReentrant presaleActive isPaymentValid(bagIds.length) { _checkTraitsCount(bagIds.length, bagType.length, traits.length); for (uint8 index = 0; index < bagIds.length; index++) { // traits = [face, eyes, bg, left] uint8 face = traits[index * 4]; uint8 eyes = traits[index * 4 + 1]; uint8 bg = traits[index * 4 + 2]; uint8 left = traits[index * 4 + 3]; _checkTraitsValid(face, eyes, bg, left); uint bagId = bagIds[index]; if (bagType[index] == _lootType) { _checkLootOwner(bagId); _mintHyperLootEvent(msg.sender, bagId, _lootType, bagId, face, eyes, bg, left); _countTokenLoot.increment(); } else if (bagType[index] == _mlootType) { // Check if address is in hyperlist _checkMerkleProof(merkleProof, hyperlistMerkleRoot, msg.sender); // Check if user already claimed hyperlist _checkHyperlistClaimed(msg.sender); // Check mLoot _checkMLootOwner(bagId); _mintHyperLootEvent(msg.sender, _tokenIdStartMLoot + _countTokenMLoot.current(), _mlootType, bagId, face, eyes, bg, left); _claimMLoot(bagId); _claimedHyperlist[msg.sender] = true; } else if (bagType[index] == _gaType) { _checkGASupply(); _checkGAOwner(bagId); _mintHyperLootEvent(msg.sender, _tokenIdStartGA + _countTokenGA.current(), _gaType, bagId, face, eyes, bg, left); _claimGA(bagId); } } } // Hodlers of Loot, mLoot, GA can mint function mintPublic(uint256[] calldata bagIds, uint16[] calldata bagType, uint8[] calldata traits) external payable nonReentrant publicSaleActive isPaymentValid(bagIds.length) { _checkTraitsCount(bagIds.length, bagType.length, traits.length); for (uint8 index = 0; index < bagIds.length; index++) { // array format = [face, eyes, bg, left] uint8 face = traits[index * 4]; uint8 eyes = traits[index * 4 + 1]; uint8 bg = traits[index * 4 + 2]; uint8 left = traits[index * 4 + 3]; _checkTraitsValid(face, eyes, bg, left); uint bagId = bagIds[index]; if (bagType[index] == _lootType) { _checkLootOwner(bagId); _mintHyperLootEvent(msg.sender, bagId, _lootType, bagId, face, eyes, bg, left); _countTokenLoot.increment(); } else if (bagType[index] == _mlootType) { _checkMLootSupply(); _checkMLootOwner(bagId); _mintHyperLootEvent(msg.sender, _tokenIdStartMLoot + _countTokenMLoot.current(), _mlootType, bagId, face, eyes, bg, left); _claimMLoot(bagId); } else if (bagType[index] == _gaType) { _checkGASupply(); _checkGAOwner(bagId); _mintHyperLootEvent(msg.sender, _tokenIdStartGA + _countTokenGA.current(), _gaType, bagId, face, eyes, bg, left); _claimGA(bagId); } } } // Hodlers of mLoot, GA can mint; anyone can mint Loot function mintLootPublic(uint256[] calldata bagIds, uint16[] calldata bagType, uint8[] calldata traits) external payable nonReentrant lootPublicSaleActive isPaymentValid(bagIds.length) { _checkTraitsCount(bagIds.length, bagType.length, traits.length); for (uint8 index = 0; index < bagIds.length; index++) { // traits = [face, eyes, bg, left] uint8 face = traits[index * 4]; uint8 eyes = traits[index * 4 + 1]; uint8 bg = traits[index * 4 + 2]; uint8 left = traits[index * 4 + 3]; _checkTraitsValid(face, eyes, bg, left); uint bagId = bagIds[index]; if (bagType[index] == _lootType) { _checkLoot(bagId); _mintHyperLootEvent(msg.sender, bagId, _lootType, bagId, face, eyes, bg, left); _countTokenLoot.increment(); } else if (bagType[index] == _mlootType) { _checkMLootSupply(); _checkMLootOwner(bagId); _mintHyperLootEvent(msg.sender, _tokenIdStartMLoot + _countTokenMLoot.current(), _mlootType, bagId, face, eyes, bg, left); _claimMLoot(bagId); } else if (bagType[index] == _gaType) { _checkGASupply(); _checkGAOwner(bagId); _mintHyperLootEvent(msg.sender, _tokenIdStartGA + _countTokenGA.current(), _gaType, bagId, face, eyes, bg, left); _claimGA(bagId); } } } // Token ID 7778-8000; except 7836 & 7881 function mintGiveaway(uint256 lootId, uint8 faceId, uint8 eyesId, uint8 backgroundId, uint8 leftHandId) external nonReentrant isGiveawaySupplyAvailable(lootId) { _checkTraitsValid(faceId, eyesId, backgroundId, leftHandId); _mintHyperLootEvent(msg.sender, lootId, _lootType, lootId, faceId, eyesId, backgroundId, leftHandId); _countTokenLoot.increment(); } // Token ID 19,994 - 20,000 function mintSpecialSet() external nonReentrant onlyOwner { require(!_isSpecialSetMinted, "SPECIAL_SET_ALREADY_CLAIMED"); for (uint256 index = 0; index < _supplySpecialSet; index++) { _mintToken(msg.sender, _tokenIdStartSpecialSet + index); } _isSpecialSetMinted = true; } // ———————————————————————— // // ——— Helper Functions ——— // // ———————————————————————— // function _checkMerkleProof(bytes32[] calldata merkleProof, bytes32 root, address from) private pure { require(MerkleProof.verify(merkleProof, root, keccak256(abi.encodePacked(from))),"ADDRESS_NOT_ELIGIBLE"); } function _checkHyperlistClaimed(address from) private view { require(!_claimedHyperlist[from], "ADDRESS_HYPERLIST_QUOTA_EXCEED"); } function _checkTraitsCount(uint256 bagIds, uint256 bagType, uint256 traits) private pure { require(bagIds == bagType, "BAG_TYPE_LENGTH_MISMATCH"); require(bagIds == traits / 4, "TRAIT_LENGTH_MISMATCH"); } function _checkLootOwner(uint256 lootId) private view { _checkLoot(lootId); require(lootContract.ownerOf(lootId) == msg.sender, "MUST_OWN_TOKEN_ID"); } function _checkLoot(uint256 lootId) private pure { // Token ID 1 - 8000; 7836 & 7881 has been minted by dom require(lootId < 7776 && lootId != 7836 && lootId != 7881, "LOOT_TOKEN_ID_OUT_OF_RANGE"); } function _checkMLootOwner(uint256 mlootId) private view { // Token ID 8,001 - 18993 require(mlootId > 8000, "MLOOT_TOKEN_ID_OUT_OF_RANGE"); require(mlootContract.ownerOf(mlootId) == msg.sender, "MUST_OWN_TOKEN_ID"); require(!_claimedMLoot[mlootId], "MLOOT_ALREADY_CLAIMED"); } function _checkGAOwner(uint256 gaId) private view { require(gaContract.ownerOf(gaId) == msg.sender, "MUST_OWN_TOKEN_ID"); require(!_claimedGA[gaId], "GA_ALREADY_CLAIMED"); _checkLostMana(gaId); } function _checkMLootSupply() private view { require(_countTokenMLoot.current() < _supplyMLoot, "MLOOT_SOLD_OUT"); } function _checkGASupply() private view { require(_countTokenGA.current() < _supplyGA, "GA_SOLD_OUT"); } function _checkTraitsValid(uint8 faceId, uint8 eyesId, uint8 backgroundId, uint8 leftHandId) private pure { _checkFaceTrait(faceId); _checkEyesTrait(eyesId); _checkBackgroundTrait(backgroundId); _checkLeftHandTrait(leftHandId); } function _checkBackgroundTrait(uint8 backgroundId) private pure { // 18 type of background require(backgroundId >= 0 && backgroundId < 18, "BACKGROUND_TRAIT_OUT_OF_RANGE"); } function _checkFaceTrait(uint8 faceId) private pure { // 26 type of face require(faceId >= 0 && faceId < 26, "FACE_TRAIT_OUT_OF_RANGE"); } function _checkEyesTrait(uint8 eyesId) private pure { // 14 type of eyes require(eyesId >= 0 && eyesId < 14, "EYES_TRAIT_OUT_OF_RANGE"); } function _checkLeftHandTrait(uint8 leftHandId) private pure { // 14 type of left hand; 0 = none require(leftHandId >= 0 && leftHandId < 14, "LEFT_HAND_TRAIT_OUT_OF_RANGE"); } function _claimMLoot(uint256 mlootId) private { _countTokenMLoot.increment(); _claimedMLoot[mlootId] = true; } function _claimGA(uint256 gaId) private { _countTokenGA.increment(); _claimedGA[gaId] = true; } function _mintHyperLootEvent(address _to, uint256 _tokenId, uint256 _tokenType, uint256 _fromTokenId, uint8 faceIds, uint8 eyesIds, uint8 backgroundIds, uint8 leftHandIds) private { _mintToken(_to, _tokenId); emit HyperLootMinted(_to, _tokenId, _tokenType, _fromTokenId, [faceIds, eyesIds, backgroundIds, leftHandIds]); } function _mintToken(address _to, uint256 _tokenId) private { _safeMint(_to, _tokenId); } function _checkLostMana(uint256 bagId) private view { _checkLostManaItem(gaContract.getWeapon(bagId)); _checkLostManaItem(gaContract.getChest(bagId)); _checkLostManaItem(gaContract.getHead(bagId)); _checkLostManaItem(gaContract.getWaist(bagId)); _checkLostManaItem(gaContract.getFoot(bagId)); _checkLostManaItem(gaContract.getHand(bagId)); _checkLostManaItem(gaContract.getNeck(bagId)); _checkLostManaItem(gaContract.getRing(bagId)); } function _checkLostManaItem(string memory itemName) private pure { // Check if the item contains "Lost" in front bytes memory lostBytes = bytes ("Lost"); bytes memory itemNameBytes = bytes (itemName); bool found = false; if (itemNameBytes[0] == lostBytes[0] && itemNameBytes[1] == lostBytes[1] && itemNameBytes[2] == lostBytes[2] && itemNameBytes[3] == lostBytes[3]) { found = true; } require (!found, "BAG_CONTAINS_LOST_MANA"); } // ——————————————————————————————- // // ——— Public Helper Functions ——— // // ——————————————————————————————- // function totalLootMinted() public view returns (uint256) { return _countTokenLoot.current(); } function totalMLootMinted() public view returns (uint256) { return _countTokenMLoot.current(); } function totalGAMinted() public view returns (uint256) { return _countTokenGA.current(); } function totalSupply() public view returns (uint256) { return _countTokenLoot.current() + _countTokenMLoot.current() + _countTokenGA.current() + _supplySpecialSet; } function isLootClaimed(uint256 lootId) public view returns (bool) { return _exists(lootId); } function isMLootClaimed(uint256 mlootId) public view returns (bool) { return _claimedMLoot[mlootId]; } function isGAClaimed(uint256 gaId) public view returns (bool) { return _claimedGA[gaId]; } // ————————————————————————————— // // ——— Admin/Owner Functions ——— // // ————————————————————————————— // function setPresale(bool saleState) external onlyOwner { isPresaleActive = saleState; } function setPublicSale(bool saleState) external onlyOwner { isPublicSaleActive = saleState; isPresaleActive = false; } function setMerkleRoot(bytes32 root) external onlyOwner { hyperlistMerkleRoot = root; } function setGiveaway(address[] calldata addresses, uint256[] calldata lootIds) external onlyOwner { for (uint256 i = 0; i < addresses.length; i++) { _giveawayList[addresses[i]] = lootIds[i]; } } function setLootPublicSale() external onlyOwner { isLootPublicSaleActive = true; } function setBaseURI(string memory baseURI) public onlyOwner { _baseTokenURI = baseURI; } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, IERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } function setRoyalty(uint256 percentage, address receiver) external onlyOwner { royaltyPercentage = percentage; royaltyAddress = receiver; } function royaltyInfo(uint256 tokenId, uint256 salePrice) external view override returns (address receiver, uint256 royalty) { uint256 royaltyAmount = (salePrice * royaltyPercentage) / 10000; return (royaltyAddress, royaltyAmount); } function withdraw() public onlyOwner { uint balance = address(this).balance; payable(msg.sender).transfer(balance); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be payed in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// 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 (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 v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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 (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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fromTokenType","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint8[4]","name":"traits","type":"uint8[4]"}],"name":"HyperLootMinted","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":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_SUPPLY","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":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hyperlistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gaId","type":"uint256"}],"name":"isGAClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"lootId","type":"uint256"}],"name":"isLootClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isLootPublicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"mlootId","type":"uint256"}],"name":"isMLootClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPresaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"lootId","type":"uint256"},{"internalType":"uint8","name":"faceId","type":"uint8"},{"internalType":"uint8","name":"eyesId","type":"uint8"},{"internalType":"uint8","name":"backgroundId","type":"uint8"},{"internalType":"uint8","name":"leftHandId","type":"uint8"}],"name":"mintGiveaway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"bagIds","type":"uint256[]"},{"internalType":"uint16[]","name":"bagType","type":"uint16[]"},{"internalType":"uint8[]","name":"traits","type":"uint8[]"}],"name":"mintLootPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"bagIds","type":"uint256[]"},{"internalType":"uint16[]","name":"bagType","type":"uint16[]"},{"internalType":"uint8[]","name":"traits","type":"uint8[]"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"bagIds","type":"uint256[]"},{"internalType":"uint16[]","name":"bagType","type":"uint16[]"},{"internalType":"uint8[]","name":"traits","type":"uint8[]"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintSpecialSet","outputs":[],"stateMutability":"nonpayable","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royalty","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyPercentage","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"lootIds","type":"uint256[]"}],"name":"setGiveaway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setLootPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"saleState","type":"bool"}],"name":"setPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"saleState","type":"bool"}],"name":"setPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"percentage","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"setRoyalty","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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalGAMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalLootMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMLootMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526009805463ffffffff60a01b19169055600c805465ffffffffffff1916654e1a4c8a1f411790556015805473ff9c1b15b16263c61d017ee9f65c50e4ae0113d76001600160a01b0319918216811790925560168054821690921790915560178054731dfe7ca09e99d10835bf73044a23b73fc20623df9083168117909155601880548316909117905560198054738db687aceb92c66f013e1d614137238cc698fedb9083168117909155601a8054909216179055348015620000c557600080fd5b506040805180820182526009815268121e5c195c931bdbdd60ba1b602080830191825283518085019094526005845264121313d3d560da1b908401528151919291620001149160009162000195565b5080516200012a90600190602084019062000195565b50506001600655506200013d3362000143565b62000278565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001a3906200023b565b90600052602060002090601f016020900481019282620001c7576000855562000212565b82601f10620001e257805160ff191683800117855562000212565b8280016001018555821562000212579182015b8281111562000212578251825591602001919060010190620001f5565b506200022092915062000224565b5090565b5b8082111562000220576000815560010162000225565b600181811c908216806200025057607f821691505b602082108114156200027257634e487b7160e01b600052602260045260246000fd5b50919050565b613d9a80620002886000396000f3fe6080604052600436106102725760003560e01c80637cb647591161014f578063b723e2f8116100c1578063d41f77ca1161007a578063d41f77ca14610749578063e52d33831461075e578063e985e9c514610774578063e9bbea9f146107bd578063f2fde38b146107dd578063f873bc77146107fd57600080fd5b8063b723e2f814610699578063b88d4fde146106ae578063c002d23d146106ce578063c54e73e3146106e9578063c6ef92b514610709578063c87b56dd1461072957600080fd5b8063902d55a511610113578063902d55a51461060657806395d89b411461061c57806397a7e9cd146106315780639ff0ab0b14610644578063a22cb46514610659578063ad2f852a1461067957600080fd5b80637cb647591461058a57806386dbad70146105aa5780638a71bb2d146105bd5780638da5cb5b146105d35780638e2c211c146105f157600080fd5b806340e3276b116101e857806360d938dc116101ac57806360d938dc146104e05780636352211e1461050157806363e2780d1461052157806370a0823114610534578063715018a6146105545780637504a4511461056957600080fd5b806340e3276b1461043057806342842e0e14610450578063476cfbf91461047057806355f804b3146104a05780635aca1bb6146104c057600080fd5b806316d26b481161023a57806316d26b481461034857806318160ddd146103785780631e84c4131461039b57806323b872dd146103bc5780632a55205a146103dc5780633ccfd60b1461041b57600080fd5b806301ffc9a71461027757806306fdde03146102ac578063081812fc146102ce578063095ea7b314610306578063109a988d14610328575b600080fd5b34801561028357600080fd5b506102976102923660046136c5565b610812565b60405190151581526020015b60405180910390f35b3480156102b857600080fd5b506102c161083d565b6040516102a3919061393b565b3480156102da57600080fd5b506102ee6102e93660046136ac565b6108cf565b6040516001600160a01b0390911681526020016102a3565b34801561031257600080fd5b5061032661032136600461349b565b610969565b005b34801561033457600080fd5b506103266103433660046134c7565b610a7f565b34801561035457600080fd5b506102976103633660046136ac565b60009081526014602052604090205460ff1690565b34801561038457600080fd5b5061038d610b2b565b6040519081526020016102a3565b3480156103a757600080fd5b5060095461029790600160a81b900460ff1681565b3480156103c857600080fd5b506103266103d73660046133a5565b610b61565b3480156103e857600080fd5b506103fc6103f7366004613808565b610b92565b604080516001600160a01b0390931683526020830191909152016102a3565b34801561042757600080fd5b50610326610bcb565b34801561043c57600080fd5b5061032661044b3660046137e3565b610c28565b34801561045c57600080fd5b5061032661046b3660046133a5565b610c79565b34801561047c57600080fd5b5061029761048b3660046136ac565b60009081526013602052604090205460ff1690565b3480156104ac57600080fd5b506103266104bb3660046136ff565b610c94565b3480156104cc57600080fd5b506103266104db366004613691565b610cd1565b3480156104ec57600080fd5b5060095461029790600160a01b900460ff1681565b34801561050d57600080fd5b506102ee61051c3660046136ac565b610d22565b61032661052f366004613533565b610d99565b34801561054057600080fd5b5061038d61054f366004613332565b61113a565b34801561056057600080fd5b506103266111c1565b34801561057557600080fd5b5060095461029790600160b01b900460ff1681565b34801561059657600080fd5b506103266105a53660046136ac565b6111f7565b6103266105b83660046135cd565b611226565b3480156105c957600080fd5b5061038d60085481565b3480156105df57600080fd5b506007546001600160a01b03166102ee565b3480156105fd57600080fd5b506103266115ac565b34801561061257600080fd5b5061038d614e2081565b34801561062857600080fd5b506102c16115eb565b61032661063f366004613533565b6115fa565b34801561065057600080fd5b5061038d611945565b34801561066557600080fd5b50610326610674366004613466565b611950565b34801561068557600080fd5b506009546102ee906001600160a01b031681565b3480156106a557600080fd5b5061038d61195b565b3480156106ba57600080fd5b506103266106c93660046133e6565b611966565b3480156106da57600080fd5b5061038d66b1a2bc2ec5000081565b3480156106f557600080fd5b50610326610704366004613691565b61199e565b34801561071557600080fd5b506102976107243660046136ac565b6119e6565b34801561073557600080fd5b506102c16107443660046136ac565b611a05565b34801561075557600080fd5b50610326611ae0565b34801561076a57600080fd5b5061038d600b5481565b34801561078057600080fd5b5061029761078f36600461336c565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156107c957600080fd5b506103266107d836600461382a565b611bea565b3480156107e957600080fd5b506103266107f8366004613332565b611cf6565b34801561080957600080fd5b5061038d611d91565b60006001600160e01b0319821663152a902d60e11b1480610837575061083782611d9c565b92915050565b60606000805461084c90613c57565b80601f016020809104026020016040519081016040528092919081815260200182805461087890613c57565b80156108c55780601f1061089a576101008083540402835291602001916108c5565b820191906000526020600020905b8154815290600101906020018083116108a857829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661094d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061097482610d22565b9050806001600160a01b0316836001600160a01b031614156109e25760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610944565b336001600160a01b03821614806109fe57506109fe813361078f565b610a705760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610944565b610a7a8383611dec565b505050565b6007546001600160a01b03163314610aa95760405162461bcd60e51b8152600401610944906139f6565b60005b83811015610b2457828282818110610ac657610ac6613d0d565b9050602002013560116000878785818110610ae357610ae3613d0d565b9050602002016020810190610af89190613332565b6001600160a01b0316815260208101919091526040016000205580610b1c81613c92565b915050610aac565b5050505050565b60006007610b38600f5490565b600e54600d54610b489190613b7b565b610b529190613b7b565b610b5c9190613b7b565b905090565b610b6b3382611e5a565b610b875760405162461bcd60e51b815260040161094490613a2b565b610a7a838383611f51565b600080600061271060085485610ba89190613bcc565b610bb29190613bb8565b6009546001600160a01b031693509150505b9250929050565b6007546001600160a01b03163314610bf55760405162461bcd60e51b8152600401610944906139f6565b6040514790339082156108fc029083906000818181858888f19350505050158015610c24573d6000803e3d6000fd5b5050565b6007546001600160a01b03163314610c525760405162461bcd60e51b8152600401610944906139f6565b600891909155600980546001600160a01b0319166001600160a01b03909216919091179055565b610a7a83838360405180602001604052806000815250611966565b6007546001600160a01b03163314610cbe5760405162461bcd60e51b8152600401610944906139f6565b8051610c2490600a9060208401906131f0565b6007546001600160a01b03163314610cfb5760405162461bcd60e51b8152600401610944906139f6565b6009805461ffff60a01b1916600160a81b9215159290920260ff60a01b1916919091179055565b6000818152600260205260408120546001600160a01b0316806108375760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610944565b60026006541415610dbc5760405162461bcd60e51b815260040161094490613aa7565b6002600655600954600160b01b900460ff16610e1a5760405162461bcd60e51b815260206004820152601b60248201527f4c4f4f545f5055424c49435f53414c455f4e4f545f41435449564500000000006044820152606401610944565b846014811115610e3c5760405162461bcd60e51b815260040161094490613a7c565b34610e4e8266b1a2bc2ec50000613bcc565b1115610e6c5760405162461bcd60e51b8152600401610944906139a0565b610e778685846120ed565b60005b60ff811687111561112b5760008484610e94846004613beb565b60ff16818110610ea657610ea6613d0d565b9050602002016020810190610ebb9190613888565b905060008585610ecc856004613beb565b610ed7906001613b93565b60ff16818110610ee957610ee9613d0d565b9050602002016020810190610efe9190613888565b905060008686610f0f866004613beb565b610f1a906002613b93565b60ff16818110610f2c57610f2c613d0d565b9050602002016020810190610f419190613888565b905060008787610f52876004613beb565b610f5d906003613b93565b60ff16818110610f6f57610f6f613d0d565b9050602002016020810190610f849190613888565b9050610f928484848461218d565b60008c8c8760ff16818110610fa957610fa9613d0d565b905060200201359050600061ffff168b8b8860ff16818110610fcd57610fcd613d0d565b9050602002016020810190610fe291906137bf565b61ffff16141561101957610ff5816121b1565b61100633826000818989898961221e565b611014600d80546001019055565b611113565b60018b8b60ff891681811061103057611030613d0d565b905060200201602081019061104591906137bf565b61ffff1614156110935761105761229f565b611060816122e9565b61108a3361106d600e5490565b600c5461107e919061ffff16613b7b565b6001848989898961221e565b61101481612433565b60028b8b60ff89168181106110aa576110aa613d0d565b90506020020160208101906110bf91906137bf565b61ffff161415611113576110d161245c565b6110da816124a3565b61110a336110e7600f5490565b600c546110fe919062010000900461ffff16613b7b565b6002848989898961221e565b611113816125a2565b5050505050808061112390613cad565b915050610e7a565b50506001600655505050505050565b60006001600160a01b0382166111a55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610944565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b031633146111eb5760405162461bcd60e51b8152600401610944906139f6565b6111f560006125cb565b565b6007546001600160a01b031633146112215760405162461bcd60e51b8152600401610944906139f6565b600b55565b600260065414156112495760405162461bcd60e51b815260040161094490613aa7565b6002600655600954600160a01b900460ff1661129c5760405162461bcd60e51b815260206004820152601260248201527150524553414c455f4e4f545f41435449564560701b6044820152606401610944565b8660148111156112be5760405162461bcd60e51b815260040161094490613a7c565b346112d08266b1a2bc2ec50000613bcc565b11156112ee5760405162461bcd60e51b8152600401610944906139a0565b6112f98887866120ed565b60005b60ff811689111561159b5760008686611316846004613beb565b60ff1681811061132857611328613d0d565b905060200201602081019061133d9190613888565b90506000878761134e856004613beb565b611359906001613b93565b60ff1681811061136b5761136b613d0d565b90506020020160208101906113809190613888565b905060008888611391866004613beb565b61139c906002613b93565b60ff168181106113ae576113ae613d0d565b90506020020160208101906113c39190613888565b9050600089896113d4876004613beb565b6113df906003613b93565b60ff168181106113f1576113f1613d0d565b90506020020160208101906114069190613888565b90506114148484848461218d565b60008e8e8760ff1681811061142b5761142b613d0d565b905060200201359050600061ffff168d8d8860ff1681811061144f5761144f613d0d565b905060200201602081019061146491906137bf565b61ffff16141561149b576114778161261d565b61148833826000818989898961221e565b611496600d80546001019055565b611583565b60018d8d60ff89168181106114b2576114b2613d0d565b90506020020160208101906114c791906137bf565b61ffff161415611526576114df8989600b54336126c8565b6114e83361277e565b6114f1816122e9565b6114fe3361106d600e5490565b61150781612433565b336000908152601260205260409020805460ff19166001179055611583565b60028d8d60ff891681811061153d5761153d613d0d565b905060200201602081019061155291906137bf565b61ffff1614156115835761156461245c565b61156d816124a3565b61157a336110e7600f5490565b611583816125a2565b5050505050808061159390613cad565b9150506112fc565b505060016006555050505050505050565b6007546001600160a01b031633146115d65760405162461bcd60e51b8152600401610944906139f6565b6009805460ff60b01b1916600160b01b179055565b60606001805461084c90613c57565b6002600654141561161d5760405162461bcd60e51b815260040161094490613aa7565b6002600655600954600160a81b900460ff166116745760405162461bcd60e51b81526020600482015260166024820152755055424c49435f53414c455f4e4f545f41435449564560501b6044820152606401610944565b8460148111156116965760405162461bcd60e51b815260040161094490613a7c565b346116a88266b1a2bc2ec50000613bcc565b11156116c65760405162461bcd60e51b8152600401610944906139a0565b6116d18685846120ed565b60005b60ff811687111561112b57600084846116ee846004613beb565b60ff1681811061170057611700613d0d565b90506020020160208101906117159190613888565b905060008585611726856004613beb565b611731906001613b93565b60ff1681811061174357611743613d0d565b90506020020160208101906117589190613888565b905060008686611769866004613beb565b611774906002613b93565b60ff1681811061178657611786613d0d565b905060200201602081019061179b9190613888565b9050600087876117ac876004613beb565b6117b7906003613b93565b60ff168181106117c9576117c9613d0d565b90506020020160208101906117de9190613888565b90506117ec8484848461218d565b60008c8c8760ff1681811061180357611803613d0d565b905060200201359050600061ffff168b8b8860ff1681811061182757611827613d0d565b905060200201602081019061183c91906137bf565b61ffff1614156118735761184f8161261d565b61186033826000818989898961221e565b61186e600d80546001019055565b61192d565b60018b8b60ff891681811061188a5761188a613d0d565b905060200201602081019061189f91906137bf565b61ffff1614156118d0576118b161229f565b6118ba816122e9565b6118c73361106d600e5490565b61186e81612433565b60028b8b60ff89168181106118e7576118e7613d0d565b90506020020160208101906118fc91906137bf565b61ffff16141561192d5761190e61245c565b611917816124a3565b611924336110e7600f5490565b61192d816125a2565b5050505050808061193d90613cad565b9150506116d4565b6000610b5c600d5490565b610c243383836127e7565b6000610b5c600e5490565b6119703383611e5a565b61198c5760405162461bcd60e51b815260040161094490613a2b565b611998848484846128b6565b50505050565b6007546001600160a01b031633146119c85760405162461bcd60e51b8152600401610944906139f6565b60098054911515600160a01b0260ff60a01b19909216919091179055565b6000818152600260205260408120546001600160a01b03161515610837565b6000818152600260205260409020546060906001600160a01b0316611a845760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610944565b6000611a8e6128e9565b90506000815111611aae5760405180602001604052806000815250611ad9565b80611ab8846128f8565b604051602001611ac99291906138cf565b6040516020818303038152906040525b9392505050565b60026006541415611b035760405162461bcd60e51b815260040161094490613aa7565b60026006556007546001600160a01b03163314611b325760405162461bcd60e51b8152600401610944906139f6565b600954600160b81b900460ff1615611b8c5760405162461bcd60e51b815260206004820152601b60248201527f5350454349414c5f5345545f414c52454144595f434c41494d454400000000006044820152606401610944565b60005b6007811015611bcf57600c54611bbd903390611bb8908490640100000000900461ffff16613b7b565b6129f6565b80611bc781613c92565b915050611b8f565b506009805460ff60b81b1916600160b81b1790556001600655565b60026006541415611c0d5760405162461bcd60e51b815260040161094490613aa7565b600260065584611e6181118015611c255750611f4181105b611c695760405162461bcd60e51b8152602060048201526015602482015274544f4b454e5f49445f4f55545f4f465f52414e474560581b6044820152606401610944565b336000908152601160205260409020548114611cbe5760405162461bcd60e51b8152602060048201526014602482015273414444524553535f4e4f545f454c494749424c4560601b6044820152606401610944565b611cca8585858561218d565b611cdb33876000818989898961221e565b611ce9600d80546001019055565b5050600160065550505050565b6007546001600160a01b03163314611d205760405162461bcd60e51b8152600401610944906139f6565b6001600160a01b038116611d855760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610944565b611d8e816125cb565b50565b6000610b5c600f5490565b60006001600160e01b031982166380ac58cd60e01b1480611dcd57506001600160e01b03198216635b5e139f60e01b145b8061083757506301ffc9a760e01b6001600160e01b0319831614610837565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611e2182610d22565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611ed35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610944565b6000611ede83610d22565b9050806001600160a01b0316846001600160a01b03161480611f195750836001600160a01b0316611f0e846108cf565b6001600160a01b0316145b80611f4957506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611f6482610d22565b6001600160a01b031614611fc85760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610944565b6001600160a01b03821661202a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610944565b612035600082611dec565b6001600160a01b038316600090815260036020526040812080546001929061205e908490613c14565b90915550506001600160a01b038216600090815260036020526040812080546001929061208c908490613b7b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b81831461213c5760405162461bcd60e51b815260206004820152601860248201527f4241475f545950455f4c454e4754485f4d49534d4154434800000000000000006044820152606401610944565b612147600482613bb8565b8314610a7a5760405162461bcd60e51b81526020600482015260156024820152740a8a48292a8be988a9c8ea890be9a92a69a82a8869605b1b6044820152606401610944565b61219684612a00565b61219f83612a53565b6121a882612aa6565b61199881612af9565b611e60811080156121c4575080611e9c14155b80156121d2575080611ec914155b611d8e5760405162461bcd60e51b815260206004820152601a60248201527f4c4f4f545f544f4b454e5f49445f4f55545f4f465f52414e47450000000000006044820152606401610944565b61222888886129f6565b6040805160808101825260ff808716825285811660208301528481168284015283166060820152905188916001600160a01b038b16917f81555667acda8b611417cfb1d287ee09effe4c7a7ed4236c1eba6df2acc172ed9161228d918b918b91613ade565b60405180910390a35050505050505050565b612d496122ab600e5490565b106111f55760405162461bcd60e51b815260206004820152600e60248201526d135313d3d517d4d3d31117d3d55560921b6044820152606401610944565b611f40811161233a5760405162461bcd60e51b815260206004820152601b60248201527f4d4c4f4f545f544f4b454e5f49445f4f55545f4f465f52414e474500000000006044820152606401610944565b6018546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e9060240160206040518083038186803b15801561237e57600080fd5b505afa158015612392573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123b6919061334f565b6001600160a01b0316146123dc5760405162461bcd60e51b8152600401610944906139cb565b60008181526013602052604090205460ff1615611d8e5760405162461bcd60e51b8152602060048201526015602482015274135313d3d517d053149150511657d0d31052535151605a1b6044820152606401610944565b612441600e80546001019055565b6000908152601360205260409020805460ff19166001179055565b610190612468600f5490565b106111f55760405162461bcd60e51b815260206004820152600b60248201526a11d057d4d3d31117d3d55560aa1b6044820152606401610944565b601a546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e9060240160206040518083038186803b1580156124e757600080fd5b505afa1580156124fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061251f919061334f565b6001600160a01b0316146125455760405162461bcd60e51b8152600401610944906139cb565b60008181526014602052604090205460ff16156125995760405162461bcd60e51b815260206004820152601260248201527111d057d053149150511657d0d3105253515160721b6044820152606401610944565b611d8e81612b4c565b6125b0600f80546001019055565b6000908152601460205260409020805460ff19166001179055565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612626816121b1565b6016546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e9060240160206040518083038186803b15801561266a57600080fd5b505afa15801561267e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126a2919061334f565b6001600160a01b031614611d8e5760405162461bcd60e51b8152600401610944906139cb565b61273b848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516bffffffffffffffffffffffff19606087901b166020820152869250603401905060405160208183030381529060405280519060200120612d39565b6119985760405162461bcd60e51b8152602060048201526014602482015273414444524553535f4e4f545f454c494749424c4560601b6044820152606401610944565b6001600160a01b03811660009081526012602052604090205460ff1615611d8e5760405162461bcd60e51b815260206004820152601e60248201527f414444524553535f48595045524c4953545f51554f54415f45584345454400006044820152606401610944565b816001600160a01b0316836001600160a01b031614156128495760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610944565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6128c1848484611f51565b6128cd84848484612d4f565b6119985760405162461bcd60e51b81526004016109449061394e565b6060600a805461084c90613c57565b60608161291c5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612946578061293081613c92565b915061293f9050600a83613bb8565b9150612920565b60008167ffffffffffffffff81111561296157612961613d23565b6040519080825280601f01601f19166020018201604052801561298b576020820181803683370190505b5090505b8415611f49576129a0600183613c14565b91506129ad600a86613ccd565b6129b8906030613b7b565b60f81b8183815181106129cd576129cd613d0d565b60200101906001600160f81b031916908160001a9053506129ef600a86613bb8565b945061298f565b610c248282612e5c565b601a8160ff1610611d8e5760405162461bcd60e51b815260206004820152601760248201527f464143455f54524149545f4f55545f4f465f52414e47450000000000000000006044820152606401610944565b600e8160ff1610611d8e5760405162461bcd60e51b815260206004820152601760248201527f455945535f54524149545f4f55545f4f465f52414e47450000000000000000006044820152606401610944565b60128160ff1610611d8e5760405162461bcd60e51b815260206004820152601d60248201527f4241434b47524f554e445f54524149545f4f55545f4f465f52414e47450000006044820152606401610944565b600e8160ff1610611d8e5760405162461bcd60e51b815260206004820152601c60248201527f4c4546545f48414e445f54524149545f4f55545f4f465f52414e4745000000006044820152606401610944565b601a54604051639e41b73f60e01b815260048101839052612bd4916001600160a01b031690639e41b73f906024015b60006040518083038186803b158015612b9357600080fd5b505afa158015612ba7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612bcf9190810190613748565b612e76565b601a546040516377b403ad60e11b815260048101839052612c07916001600160a01b03169063ef68075a90602401612b7b565b601a54604051639720c96960e01b815260048101839052612c3a916001600160a01b031690639720c96990602401612b7b565b601a54604051639bdc1b6960e01b815260048101839052612c6d916001600160a01b031690639bdc1b6990602401612b7b565b601a54604051630e99990d60e01b815260048101839052612ca0916001600160a01b031690630e99990d90602401612b7b565b601a54604051636a3f934f60e11b815260048101839052612cd3916001600160a01b03169063d47f269e90602401612b7b565b601a54604051630ce4135560e31b815260048101839052612d06916001600160a01b0316906367209aa890602401612b7b565b601a5460405163c08a5dd560e01b815260048101839052611d8e916001600160a01b03169063c08a5dd590602401612b7b565b600082612d468584613007565b14949350505050565b60006001600160a01b0384163b15612e5157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612d939033908990889088906004016138fe565b602060405180830381600087803b158015612dad57600080fd5b505af1925050508015612ddd575060408051601f3d908101601f19168201909252612dda918101906136e2565b60015b612e37573d808015612e0b576040519150601f19603f3d011682016040523d82523d6000602084013e612e10565b606091505b508051612e2f5760405162461bcd60e51b81526004016109449061394e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611f49565b506001949350505050565b610c2482826040518060200160405280600081525061307b565b604080518082019091526004815263131bdcdd60e21b602082015281518290600090601360fa1b9083908390612eae57612eae613d0d565b01602001516001600160f81b031916148015612f11575082600181518110612ed857612ed8613d0d565b602001015160f81c60f81b6001600160f81b03191682600181518110612f0057612f00613d0d565b01602001516001600160f81b031916145b8015612f64575082600281518110612f2b57612f2b613d0d565b602001015160f81c60f81b6001600160f81b03191682600281518110612f5357612f53613d0d565b01602001516001600160f81b031916145b8015612fb7575082600381518110612f7e57612f7e613d0d565b602001015160f81c60f81b6001600160f81b03191682600381518110612fa657612fa6613d0d565b01602001516001600160f81b031916145b15612fc0575060015b80156119985760405162461bcd60e51b81526020600482015260166024820152754241475f434f4e5441494e535f4c4f53545f4d414e4160501b6044820152606401610944565b600081815b845181101561307357600085828151811061302957613029613d0d565b6020026020010151905080831161304f5760008381526020829052604090209250613060565b600081815260208490526040902092505b508061306b81613c92565b91505061300c565b509392505050565b61308583836130ae565b6130926000848484612d4f565b610a7a5760405162461bcd60e51b81526004016109449061394e565b6001600160a01b0382166131045760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610944565b6000818152600260205260409020546001600160a01b0316156131695760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610944565b6001600160a01b0382166000908152600360205260408120805460019290613192908490613b7b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546131fc90613c57565b90600052602060002090601f01602090048101928261321e5760008555613264565b82601f1061323757805160ff1916838001178555613264565b82800160010185558215613264579182015b82811115613264578251825591602001919060010190613249565b50613270929150613274565b5090565b5b808211156132705760008155600101613275565b600061329c61329784613b53565b613b22565b90508281528383830111156132b057600080fd5b828260208301376000602084830101529392505050565b60008083601f8401126132d957600080fd5b50813567ffffffffffffffff8111156132f157600080fd5b6020830191508360208260051b8501011115610bc457600080fd5b8035801515811461331c57600080fd5b919050565b803560ff8116811461331c57600080fd5b60006020828403121561334457600080fd5b8135611ad981613d39565b60006020828403121561336157600080fd5b8151611ad981613d39565b6000806040838503121561337f57600080fd5b823561338a81613d39565b9150602083013561339a81613d39565b809150509250929050565b6000806000606084860312156133ba57600080fd5b83356133c581613d39565b925060208401356133d581613d39565b929592945050506040919091013590565b600080600080608085870312156133fc57600080fd5b843561340781613d39565b9350602085013561341781613d39565b925060408501359150606085013567ffffffffffffffff81111561343a57600080fd5b8501601f8101871361344b57600080fd5b61345a87823560208401613289565b91505092959194509250565b6000806040838503121561347957600080fd5b823561348481613d39565b91506134926020840161330c565b90509250929050565b600080604083850312156134ae57600080fd5b82356134b981613d39565b946020939093013593505050565b600080600080604085870312156134dd57600080fd5b843567ffffffffffffffff808211156134f557600080fd5b613501888389016132c7565b9096509450602087013591508082111561351a57600080fd5b50613527878288016132c7565b95989497509550505050565b6000806000806000806060878903121561354c57600080fd5b863567ffffffffffffffff8082111561356457600080fd5b6135708a838b016132c7565b9098509650602089013591508082111561358957600080fd5b6135958a838b016132c7565b909650945060408901359150808211156135ae57600080fd5b506135bb89828a016132c7565b979a9699509497509295939492505050565b6000806000806000806000806080898b0312156135e957600080fd5b883567ffffffffffffffff8082111561360157600080fd5b61360d8c838d016132c7565b909a50985060208b013591508082111561362657600080fd5b6136328c838d016132c7565b909850965060408b013591508082111561364b57600080fd5b6136578c838d016132c7565b909650945060608b013591508082111561367057600080fd5b5061367d8b828c016132c7565b999c989b5096995094979396929594505050565b6000602082840312156136a357600080fd5b611ad98261330c565b6000602082840312156136be57600080fd5b5035919050565b6000602082840312156136d757600080fd5b8135611ad981613d4e565b6000602082840312156136f457600080fd5b8151611ad981613d4e565b60006020828403121561371157600080fd5b813567ffffffffffffffff81111561372857600080fd5b8201601f8101841361373957600080fd5b611f4984823560208401613289565b60006020828403121561375a57600080fd5b815167ffffffffffffffff81111561377157600080fd5b8201601f8101841361378257600080fd5b805161379061329782613b53565b8181528560208385010111156137a557600080fd5b6137b6826020830160208601613c2b565b95945050505050565b6000602082840312156137d157600080fd5b813561ffff81168114611ad957600080fd5b600080604083850312156137f657600080fd5b82359150602083013561339a81613d39565b6000806040838503121561381b57600080fd5b50508035926020909101359150565b600080600080600060a0868803121561384257600080fd5b8535945061385260208701613321565b935061386060408701613321565b925061386e60608701613321565b915061387c60808701613321565b90509295509295909350565b60006020828403121561389a57600080fd5b611ad982613321565b600081518084526138bb816020860160208601613c2b565b601f01601f19169290920160200192915050565b600083516138e1818460208801613c2b565b8351908301906138f5818360208801613c2b565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613931908301846138a3565b9695505050505050565b602081526000611ad960208301846138a3565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526011908201527057524f4e475f45544845525f56414c554560781b604082015260600190565b602080825260119082015270135554d517d3d5d397d513d2d15397d251607a1b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526011908201527013d5915497cc8c17d3505617d312535255607a1b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b838152602080820184905260c0820190604083018460005b6004811015613b1657815160ff1683529183019190830190600101613af6565b50505050949350505050565b604051601f8201601f1916810167ffffffffffffffff81118282101715613b4b57613b4b613d23565b604052919050565b600067ffffffffffffffff821115613b6d57613b6d613d23565b50601f01601f191660200190565b60008219821115613b8e57613b8e613ce1565b500190565b600060ff821660ff84168060ff03821115613bb057613bb0613ce1565b019392505050565b600082613bc757613bc7613cf7565b500490565b6000816000190483118215151615613be657613be6613ce1565b500290565b600060ff821660ff84168160ff0481118215151615613c0c57613c0c613ce1565b029392505050565b600082821015613c2657613c26613ce1565b500390565b60005b83811015613c46578181015183820152602001613c2e565b838111156119985750506000910152565b600181811c90821680613c6b57607f821691505b60208210811415613c8c57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613ca657613ca6613ce1565b5060010190565b600060ff821660ff811415613cc457613cc4613ce1565b60010192915050565b600082613cdc57613cdc613cf7565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611d8e57600080fd5b6001600160e01b031981168114611d8e57600080fdfea2646970667358221220f6bbaf3f53d5bccd9476491a82e87c62452cfd052ba78f847fe1db46f5f0212a64736f6c63430008070033
Deployed Bytecode
0x6080604052600436106102725760003560e01c80637cb647591161014f578063b723e2f8116100c1578063d41f77ca1161007a578063d41f77ca14610749578063e52d33831461075e578063e985e9c514610774578063e9bbea9f146107bd578063f2fde38b146107dd578063f873bc77146107fd57600080fd5b8063b723e2f814610699578063b88d4fde146106ae578063c002d23d146106ce578063c54e73e3146106e9578063c6ef92b514610709578063c87b56dd1461072957600080fd5b8063902d55a511610113578063902d55a51461060657806395d89b411461061c57806397a7e9cd146106315780639ff0ab0b14610644578063a22cb46514610659578063ad2f852a1461067957600080fd5b80637cb647591461058a57806386dbad70146105aa5780638a71bb2d146105bd5780638da5cb5b146105d35780638e2c211c146105f157600080fd5b806340e3276b116101e857806360d938dc116101ac57806360d938dc146104e05780636352211e1461050157806363e2780d1461052157806370a0823114610534578063715018a6146105545780637504a4511461056957600080fd5b806340e3276b1461043057806342842e0e14610450578063476cfbf91461047057806355f804b3146104a05780635aca1bb6146104c057600080fd5b806316d26b481161023a57806316d26b481461034857806318160ddd146103785780631e84c4131461039b57806323b872dd146103bc5780632a55205a146103dc5780633ccfd60b1461041b57600080fd5b806301ffc9a71461027757806306fdde03146102ac578063081812fc146102ce578063095ea7b314610306578063109a988d14610328575b600080fd5b34801561028357600080fd5b506102976102923660046136c5565b610812565b60405190151581526020015b60405180910390f35b3480156102b857600080fd5b506102c161083d565b6040516102a3919061393b565b3480156102da57600080fd5b506102ee6102e93660046136ac565b6108cf565b6040516001600160a01b0390911681526020016102a3565b34801561031257600080fd5b5061032661032136600461349b565b610969565b005b34801561033457600080fd5b506103266103433660046134c7565b610a7f565b34801561035457600080fd5b506102976103633660046136ac565b60009081526014602052604090205460ff1690565b34801561038457600080fd5b5061038d610b2b565b6040519081526020016102a3565b3480156103a757600080fd5b5060095461029790600160a81b900460ff1681565b3480156103c857600080fd5b506103266103d73660046133a5565b610b61565b3480156103e857600080fd5b506103fc6103f7366004613808565b610b92565b604080516001600160a01b0390931683526020830191909152016102a3565b34801561042757600080fd5b50610326610bcb565b34801561043c57600080fd5b5061032661044b3660046137e3565b610c28565b34801561045c57600080fd5b5061032661046b3660046133a5565b610c79565b34801561047c57600080fd5b5061029761048b3660046136ac565b60009081526013602052604090205460ff1690565b3480156104ac57600080fd5b506103266104bb3660046136ff565b610c94565b3480156104cc57600080fd5b506103266104db366004613691565b610cd1565b3480156104ec57600080fd5b5060095461029790600160a01b900460ff1681565b34801561050d57600080fd5b506102ee61051c3660046136ac565b610d22565b61032661052f366004613533565b610d99565b34801561054057600080fd5b5061038d61054f366004613332565b61113a565b34801561056057600080fd5b506103266111c1565b34801561057557600080fd5b5060095461029790600160b01b900460ff1681565b34801561059657600080fd5b506103266105a53660046136ac565b6111f7565b6103266105b83660046135cd565b611226565b3480156105c957600080fd5b5061038d60085481565b3480156105df57600080fd5b506007546001600160a01b03166102ee565b3480156105fd57600080fd5b506103266115ac565b34801561061257600080fd5b5061038d614e2081565b34801561062857600080fd5b506102c16115eb565b61032661063f366004613533565b6115fa565b34801561065057600080fd5b5061038d611945565b34801561066557600080fd5b50610326610674366004613466565b611950565b34801561068557600080fd5b506009546102ee906001600160a01b031681565b3480156106a557600080fd5b5061038d61195b565b3480156106ba57600080fd5b506103266106c93660046133e6565b611966565b3480156106da57600080fd5b5061038d66b1a2bc2ec5000081565b3480156106f557600080fd5b50610326610704366004613691565b61199e565b34801561071557600080fd5b506102976107243660046136ac565b6119e6565b34801561073557600080fd5b506102c16107443660046136ac565b611a05565b34801561075557600080fd5b50610326611ae0565b34801561076a57600080fd5b5061038d600b5481565b34801561078057600080fd5b5061029761078f36600461336c565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156107c957600080fd5b506103266107d836600461382a565b611bea565b3480156107e957600080fd5b506103266107f8366004613332565b611cf6565b34801561080957600080fd5b5061038d611d91565b60006001600160e01b0319821663152a902d60e11b1480610837575061083782611d9c565b92915050565b60606000805461084c90613c57565b80601f016020809104026020016040519081016040528092919081815260200182805461087890613c57565b80156108c55780601f1061089a576101008083540402835291602001916108c5565b820191906000526020600020905b8154815290600101906020018083116108a857829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661094d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061097482610d22565b9050806001600160a01b0316836001600160a01b031614156109e25760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610944565b336001600160a01b03821614806109fe57506109fe813361078f565b610a705760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610944565b610a7a8383611dec565b505050565b6007546001600160a01b03163314610aa95760405162461bcd60e51b8152600401610944906139f6565b60005b83811015610b2457828282818110610ac657610ac6613d0d565b9050602002013560116000878785818110610ae357610ae3613d0d565b9050602002016020810190610af89190613332565b6001600160a01b0316815260208101919091526040016000205580610b1c81613c92565b915050610aac565b5050505050565b60006007610b38600f5490565b600e54600d54610b489190613b7b565b610b529190613b7b565b610b5c9190613b7b565b905090565b610b6b3382611e5a565b610b875760405162461bcd60e51b815260040161094490613a2b565b610a7a838383611f51565b600080600061271060085485610ba89190613bcc565b610bb29190613bb8565b6009546001600160a01b031693509150505b9250929050565b6007546001600160a01b03163314610bf55760405162461bcd60e51b8152600401610944906139f6565b6040514790339082156108fc029083906000818181858888f19350505050158015610c24573d6000803e3d6000fd5b5050565b6007546001600160a01b03163314610c525760405162461bcd60e51b8152600401610944906139f6565b600891909155600980546001600160a01b0319166001600160a01b03909216919091179055565b610a7a83838360405180602001604052806000815250611966565b6007546001600160a01b03163314610cbe5760405162461bcd60e51b8152600401610944906139f6565b8051610c2490600a9060208401906131f0565b6007546001600160a01b03163314610cfb5760405162461bcd60e51b8152600401610944906139f6565b6009805461ffff60a01b1916600160a81b9215159290920260ff60a01b1916919091179055565b6000818152600260205260408120546001600160a01b0316806108375760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610944565b60026006541415610dbc5760405162461bcd60e51b815260040161094490613aa7565b6002600655600954600160b01b900460ff16610e1a5760405162461bcd60e51b815260206004820152601b60248201527f4c4f4f545f5055424c49435f53414c455f4e4f545f41435449564500000000006044820152606401610944565b846014811115610e3c5760405162461bcd60e51b815260040161094490613a7c565b34610e4e8266b1a2bc2ec50000613bcc565b1115610e6c5760405162461bcd60e51b8152600401610944906139a0565b610e778685846120ed565b60005b60ff811687111561112b5760008484610e94846004613beb565b60ff16818110610ea657610ea6613d0d565b9050602002016020810190610ebb9190613888565b905060008585610ecc856004613beb565b610ed7906001613b93565b60ff16818110610ee957610ee9613d0d565b9050602002016020810190610efe9190613888565b905060008686610f0f866004613beb565b610f1a906002613b93565b60ff16818110610f2c57610f2c613d0d565b9050602002016020810190610f419190613888565b905060008787610f52876004613beb565b610f5d906003613b93565b60ff16818110610f6f57610f6f613d0d565b9050602002016020810190610f849190613888565b9050610f928484848461218d565b60008c8c8760ff16818110610fa957610fa9613d0d565b905060200201359050600061ffff168b8b8860ff16818110610fcd57610fcd613d0d565b9050602002016020810190610fe291906137bf565b61ffff16141561101957610ff5816121b1565b61100633826000818989898961221e565b611014600d80546001019055565b611113565b60018b8b60ff891681811061103057611030613d0d565b905060200201602081019061104591906137bf565b61ffff1614156110935761105761229f565b611060816122e9565b61108a3361106d600e5490565b600c5461107e919061ffff16613b7b565b6001848989898961221e565b61101481612433565b60028b8b60ff89168181106110aa576110aa613d0d565b90506020020160208101906110bf91906137bf565b61ffff161415611113576110d161245c565b6110da816124a3565b61110a336110e7600f5490565b600c546110fe919062010000900461ffff16613b7b565b6002848989898961221e565b611113816125a2565b5050505050808061112390613cad565b915050610e7a565b50506001600655505050505050565b60006001600160a01b0382166111a55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610944565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b031633146111eb5760405162461bcd60e51b8152600401610944906139f6565b6111f560006125cb565b565b6007546001600160a01b031633146112215760405162461bcd60e51b8152600401610944906139f6565b600b55565b600260065414156112495760405162461bcd60e51b815260040161094490613aa7565b6002600655600954600160a01b900460ff1661129c5760405162461bcd60e51b815260206004820152601260248201527150524553414c455f4e4f545f41435449564560701b6044820152606401610944565b8660148111156112be5760405162461bcd60e51b815260040161094490613a7c565b346112d08266b1a2bc2ec50000613bcc565b11156112ee5760405162461bcd60e51b8152600401610944906139a0565b6112f98887866120ed565b60005b60ff811689111561159b5760008686611316846004613beb565b60ff1681811061132857611328613d0d565b905060200201602081019061133d9190613888565b90506000878761134e856004613beb565b611359906001613b93565b60ff1681811061136b5761136b613d0d565b90506020020160208101906113809190613888565b905060008888611391866004613beb565b61139c906002613b93565b60ff168181106113ae576113ae613d0d565b90506020020160208101906113c39190613888565b9050600089896113d4876004613beb565b6113df906003613b93565b60ff168181106113f1576113f1613d0d565b90506020020160208101906114069190613888565b90506114148484848461218d565b60008e8e8760ff1681811061142b5761142b613d0d565b905060200201359050600061ffff168d8d8860ff1681811061144f5761144f613d0d565b905060200201602081019061146491906137bf565b61ffff16141561149b576114778161261d565b61148833826000818989898961221e565b611496600d80546001019055565b611583565b60018d8d60ff89168181106114b2576114b2613d0d565b90506020020160208101906114c791906137bf565b61ffff161415611526576114df8989600b54336126c8565b6114e83361277e565b6114f1816122e9565b6114fe3361106d600e5490565b61150781612433565b336000908152601260205260409020805460ff19166001179055611583565b60028d8d60ff891681811061153d5761153d613d0d565b905060200201602081019061155291906137bf565b61ffff1614156115835761156461245c565b61156d816124a3565b61157a336110e7600f5490565b611583816125a2565b5050505050808061159390613cad565b9150506112fc565b505060016006555050505050505050565b6007546001600160a01b031633146115d65760405162461bcd60e51b8152600401610944906139f6565b6009805460ff60b01b1916600160b01b179055565b60606001805461084c90613c57565b6002600654141561161d5760405162461bcd60e51b815260040161094490613aa7565b6002600655600954600160a81b900460ff166116745760405162461bcd60e51b81526020600482015260166024820152755055424c49435f53414c455f4e4f545f41435449564560501b6044820152606401610944565b8460148111156116965760405162461bcd60e51b815260040161094490613a7c565b346116a88266b1a2bc2ec50000613bcc565b11156116c65760405162461bcd60e51b8152600401610944906139a0565b6116d18685846120ed565b60005b60ff811687111561112b57600084846116ee846004613beb565b60ff1681811061170057611700613d0d565b90506020020160208101906117159190613888565b905060008585611726856004613beb565b611731906001613b93565b60ff1681811061174357611743613d0d565b90506020020160208101906117589190613888565b905060008686611769866004613beb565b611774906002613b93565b60ff1681811061178657611786613d0d565b905060200201602081019061179b9190613888565b9050600087876117ac876004613beb565b6117b7906003613b93565b60ff168181106117c9576117c9613d0d565b90506020020160208101906117de9190613888565b90506117ec8484848461218d565b60008c8c8760ff1681811061180357611803613d0d565b905060200201359050600061ffff168b8b8860ff1681811061182757611827613d0d565b905060200201602081019061183c91906137bf565b61ffff1614156118735761184f8161261d565b61186033826000818989898961221e565b61186e600d80546001019055565b61192d565b60018b8b60ff891681811061188a5761188a613d0d565b905060200201602081019061189f91906137bf565b61ffff1614156118d0576118b161229f565b6118ba816122e9565b6118c73361106d600e5490565b61186e81612433565b60028b8b60ff89168181106118e7576118e7613d0d565b90506020020160208101906118fc91906137bf565b61ffff16141561192d5761190e61245c565b611917816124a3565b611924336110e7600f5490565b61192d816125a2565b5050505050808061193d90613cad565b9150506116d4565b6000610b5c600d5490565b610c243383836127e7565b6000610b5c600e5490565b6119703383611e5a565b61198c5760405162461bcd60e51b815260040161094490613a2b565b611998848484846128b6565b50505050565b6007546001600160a01b031633146119c85760405162461bcd60e51b8152600401610944906139f6565b60098054911515600160a01b0260ff60a01b19909216919091179055565b6000818152600260205260408120546001600160a01b03161515610837565b6000818152600260205260409020546060906001600160a01b0316611a845760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610944565b6000611a8e6128e9565b90506000815111611aae5760405180602001604052806000815250611ad9565b80611ab8846128f8565b604051602001611ac99291906138cf565b6040516020818303038152906040525b9392505050565b60026006541415611b035760405162461bcd60e51b815260040161094490613aa7565b60026006556007546001600160a01b03163314611b325760405162461bcd60e51b8152600401610944906139f6565b600954600160b81b900460ff1615611b8c5760405162461bcd60e51b815260206004820152601b60248201527f5350454349414c5f5345545f414c52454144595f434c41494d454400000000006044820152606401610944565b60005b6007811015611bcf57600c54611bbd903390611bb8908490640100000000900461ffff16613b7b565b6129f6565b80611bc781613c92565b915050611b8f565b506009805460ff60b81b1916600160b81b1790556001600655565b60026006541415611c0d5760405162461bcd60e51b815260040161094490613aa7565b600260065584611e6181118015611c255750611f4181105b611c695760405162461bcd60e51b8152602060048201526015602482015274544f4b454e5f49445f4f55545f4f465f52414e474560581b6044820152606401610944565b336000908152601160205260409020548114611cbe5760405162461bcd60e51b8152602060048201526014602482015273414444524553535f4e4f545f454c494749424c4560601b6044820152606401610944565b611cca8585858561218d565b611cdb33876000818989898961221e565b611ce9600d80546001019055565b5050600160065550505050565b6007546001600160a01b03163314611d205760405162461bcd60e51b8152600401610944906139f6565b6001600160a01b038116611d855760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610944565b611d8e816125cb565b50565b6000610b5c600f5490565b60006001600160e01b031982166380ac58cd60e01b1480611dcd57506001600160e01b03198216635b5e139f60e01b145b8061083757506301ffc9a760e01b6001600160e01b0319831614610837565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611e2182610d22565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611ed35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610944565b6000611ede83610d22565b9050806001600160a01b0316846001600160a01b03161480611f195750836001600160a01b0316611f0e846108cf565b6001600160a01b0316145b80611f4957506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611f6482610d22565b6001600160a01b031614611fc85760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610944565b6001600160a01b03821661202a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610944565b612035600082611dec565b6001600160a01b038316600090815260036020526040812080546001929061205e908490613c14565b90915550506001600160a01b038216600090815260036020526040812080546001929061208c908490613b7b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b81831461213c5760405162461bcd60e51b815260206004820152601860248201527f4241475f545950455f4c454e4754485f4d49534d4154434800000000000000006044820152606401610944565b612147600482613bb8565b8314610a7a5760405162461bcd60e51b81526020600482015260156024820152740a8a48292a8be988a9c8ea890be9a92a69a82a8869605b1b6044820152606401610944565b61219684612a00565b61219f83612a53565b6121a882612aa6565b61199881612af9565b611e60811080156121c4575080611e9c14155b80156121d2575080611ec914155b611d8e5760405162461bcd60e51b815260206004820152601a60248201527f4c4f4f545f544f4b454e5f49445f4f55545f4f465f52414e47450000000000006044820152606401610944565b61222888886129f6565b6040805160808101825260ff808716825285811660208301528481168284015283166060820152905188916001600160a01b038b16917f81555667acda8b611417cfb1d287ee09effe4c7a7ed4236c1eba6df2acc172ed9161228d918b918b91613ade565b60405180910390a35050505050505050565b612d496122ab600e5490565b106111f55760405162461bcd60e51b815260206004820152600e60248201526d135313d3d517d4d3d31117d3d55560921b6044820152606401610944565b611f40811161233a5760405162461bcd60e51b815260206004820152601b60248201527f4d4c4f4f545f544f4b454e5f49445f4f55545f4f465f52414e474500000000006044820152606401610944565b6018546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e9060240160206040518083038186803b15801561237e57600080fd5b505afa158015612392573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123b6919061334f565b6001600160a01b0316146123dc5760405162461bcd60e51b8152600401610944906139cb565b60008181526013602052604090205460ff1615611d8e5760405162461bcd60e51b8152602060048201526015602482015274135313d3d517d053149150511657d0d31052535151605a1b6044820152606401610944565b612441600e80546001019055565b6000908152601360205260409020805460ff19166001179055565b610190612468600f5490565b106111f55760405162461bcd60e51b815260206004820152600b60248201526a11d057d4d3d31117d3d55560aa1b6044820152606401610944565b601a546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e9060240160206040518083038186803b1580156124e757600080fd5b505afa1580156124fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061251f919061334f565b6001600160a01b0316146125455760405162461bcd60e51b8152600401610944906139cb565b60008181526014602052604090205460ff16156125995760405162461bcd60e51b815260206004820152601260248201527111d057d053149150511657d0d3105253515160721b6044820152606401610944565b611d8e81612b4c565b6125b0600f80546001019055565b6000908152601460205260409020805460ff19166001179055565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612626816121b1565b6016546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e9060240160206040518083038186803b15801561266a57600080fd5b505afa15801561267e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126a2919061334f565b6001600160a01b031614611d8e5760405162461bcd60e51b8152600401610944906139cb565b61273b848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516bffffffffffffffffffffffff19606087901b166020820152869250603401905060405160208183030381529060405280519060200120612d39565b6119985760405162461bcd60e51b8152602060048201526014602482015273414444524553535f4e4f545f454c494749424c4560601b6044820152606401610944565b6001600160a01b03811660009081526012602052604090205460ff1615611d8e5760405162461bcd60e51b815260206004820152601e60248201527f414444524553535f48595045524c4953545f51554f54415f45584345454400006044820152606401610944565b816001600160a01b0316836001600160a01b031614156128495760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610944565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6128c1848484611f51565b6128cd84848484612d4f565b6119985760405162461bcd60e51b81526004016109449061394e565b6060600a805461084c90613c57565b60608161291c5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612946578061293081613c92565b915061293f9050600a83613bb8565b9150612920565b60008167ffffffffffffffff81111561296157612961613d23565b6040519080825280601f01601f19166020018201604052801561298b576020820181803683370190505b5090505b8415611f49576129a0600183613c14565b91506129ad600a86613ccd565b6129b8906030613b7b565b60f81b8183815181106129cd576129cd613d0d565b60200101906001600160f81b031916908160001a9053506129ef600a86613bb8565b945061298f565b610c248282612e5c565b601a8160ff1610611d8e5760405162461bcd60e51b815260206004820152601760248201527f464143455f54524149545f4f55545f4f465f52414e47450000000000000000006044820152606401610944565b600e8160ff1610611d8e5760405162461bcd60e51b815260206004820152601760248201527f455945535f54524149545f4f55545f4f465f52414e47450000000000000000006044820152606401610944565b60128160ff1610611d8e5760405162461bcd60e51b815260206004820152601d60248201527f4241434b47524f554e445f54524149545f4f55545f4f465f52414e47450000006044820152606401610944565b600e8160ff1610611d8e5760405162461bcd60e51b815260206004820152601c60248201527f4c4546545f48414e445f54524149545f4f55545f4f465f52414e4745000000006044820152606401610944565b601a54604051639e41b73f60e01b815260048101839052612bd4916001600160a01b031690639e41b73f906024015b60006040518083038186803b158015612b9357600080fd5b505afa158015612ba7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612bcf9190810190613748565b612e76565b601a546040516377b403ad60e11b815260048101839052612c07916001600160a01b03169063ef68075a90602401612b7b565b601a54604051639720c96960e01b815260048101839052612c3a916001600160a01b031690639720c96990602401612b7b565b601a54604051639bdc1b6960e01b815260048101839052612c6d916001600160a01b031690639bdc1b6990602401612b7b565b601a54604051630e99990d60e01b815260048101839052612ca0916001600160a01b031690630e99990d90602401612b7b565b601a54604051636a3f934f60e11b815260048101839052612cd3916001600160a01b03169063d47f269e90602401612b7b565b601a54604051630ce4135560e31b815260048101839052612d06916001600160a01b0316906367209aa890602401612b7b565b601a5460405163c08a5dd560e01b815260048101839052611d8e916001600160a01b03169063c08a5dd590602401612b7b565b600082612d468584613007565b14949350505050565b60006001600160a01b0384163b15612e5157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612d939033908990889088906004016138fe565b602060405180830381600087803b158015612dad57600080fd5b505af1925050508015612ddd575060408051601f3d908101601f19168201909252612dda918101906136e2565b60015b612e37573d808015612e0b576040519150601f19603f3d011682016040523d82523d6000602084013e612e10565b606091505b508051612e2f5760405162461bcd60e51b81526004016109449061394e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611f49565b506001949350505050565b610c2482826040518060200160405280600081525061307b565b604080518082019091526004815263131bdcdd60e21b602082015281518290600090601360fa1b9083908390612eae57612eae613d0d565b01602001516001600160f81b031916148015612f11575082600181518110612ed857612ed8613d0d565b602001015160f81c60f81b6001600160f81b03191682600181518110612f0057612f00613d0d565b01602001516001600160f81b031916145b8015612f64575082600281518110612f2b57612f2b613d0d565b602001015160f81c60f81b6001600160f81b03191682600281518110612f5357612f53613d0d565b01602001516001600160f81b031916145b8015612fb7575082600381518110612f7e57612f7e613d0d565b602001015160f81c60f81b6001600160f81b03191682600381518110612fa657612fa6613d0d565b01602001516001600160f81b031916145b15612fc0575060015b80156119985760405162461bcd60e51b81526020600482015260166024820152754241475f434f4e5441494e535f4c4f53545f4d414e4160501b6044820152606401610944565b600081815b845181101561307357600085828151811061302957613029613d0d565b6020026020010151905080831161304f5760008381526020829052604090209250613060565b600081815260208490526040902092505b508061306b81613c92565b91505061300c565b509392505050565b61308583836130ae565b6130926000848484612d4f565b610a7a5760405162461bcd60e51b81526004016109449061394e565b6001600160a01b0382166131045760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610944565b6000818152600260205260409020546001600160a01b0316156131695760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610944565b6001600160a01b0382166000908152600360205260408120805460019290613192908490613b7b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546131fc90613c57565b90600052602060002090601f01602090048101928261321e5760008555613264565b82601f1061323757805160ff1916838001178555613264565b82800160010185558215613264579182015b82811115613264578251825591602001919060010190613249565b50613270929150613274565b5090565b5b808211156132705760008155600101613275565b600061329c61329784613b53565b613b22565b90508281528383830111156132b057600080fd5b828260208301376000602084830101529392505050565b60008083601f8401126132d957600080fd5b50813567ffffffffffffffff8111156132f157600080fd5b6020830191508360208260051b8501011115610bc457600080fd5b8035801515811461331c57600080fd5b919050565b803560ff8116811461331c57600080fd5b60006020828403121561334457600080fd5b8135611ad981613d39565b60006020828403121561336157600080fd5b8151611ad981613d39565b6000806040838503121561337f57600080fd5b823561338a81613d39565b9150602083013561339a81613d39565b809150509250929050565b6000806000606084860312156133ba57600080fd5b83356133c581613d39565b925060208401356133d581613d39565b929592945050506040919091013590565b600080600080608085870312156133fc57600080fd5b843561340781613d39565b9350602085013561341781613d39565b925060408501359150606085013567ffffffffffffffff81111561343a57600080fd5b8501601f8101871361344b57600080fd5b61345a87823560208401613289565b91505092959194509250565b6000806040838503121561347957600080fd5b823561348481613d39565b91506134926020840161330c565b90509250929050565b600080604083850312156134ae57600080fd5b82356134b981613d39565b946020939093013593505050565b600080600080604085870312156134dd57600080fd5b843567ffffffffffffffff808211156134f557600080fd5b613501888389016132c7565b9096509450602087013591508082111561351a57600080fd5b50613527878288016132c7565b95989497509550505050565b6000806000806000806060878903121561354c57600080fd5b863567ffffffffffffffff8082111561356457600080fd5b6135708a838b016132c7565b9098509650602089013591508082111561358957600080fd5b6135958a838b016132c7565b909650945060408901359150808211156135ae57600080fd5b506135bb89828a016132c7565b979a9699509497509295939492505050565b6000806000806000806000806080898b0312156135e957600080fd5b883567ffffffffffffffff8082111561360157600080fd5b61360d8c838d016132c7565b909a50985060208b013591508082111561362657600080fd5b6136328c838d016132c7565b909850965060408b013591508082111561364b57600080fd5b6136578c838d016132c7565b909650945060608b013591508082111561367057600080fd5b5061367d8b828c016132c7565b999c989b5096995094979396929594505050565b6000602082840312156136a357600080fd5b611ad98261330c565b6000602082840312156136be57600080fd5b5035919050565b6000602082840312156136d757600080fd5b8135611ad981613d4e565b6000602082840312156136f457600080fd5b8151611ad981613d4e565b60006020828403121561371157600080fd5b813567ffffffffffffffff81111561372857600080fd5b8201601f8101841361373957600080fd5b611f4984823560208401613289565b60006020828403121561375a57600080fd5b815167ffffffffffffffff81111561377157600080fd5b8201601f8101841361378257600080fd5b805161379061329782613b53565b8181528560208385010111156137a557600080fd5b6137b6826020830160208601613c2b565b95945050505050565b6000602082840312156137d157600080fd5b813561ffff81168114611ad957600080fd5b600080604083850312156137f657600080fd5b82359150602083013561339a81613d39565b6000806040838503121561381b57600080fd5b50508035926020909101359150565b600080600080600060a0868803121561384257600080fd5b8535945061385260208701613321565b935061386060408701613321565b925061386e60608701613321565b915061387c60808701613321565b90509295509295909350565b60006020828403121561389a57600080fd5b611ad982613321565b600081518084526138bb816020860160208601613c2b565b601f01601f19169290920160200192915050565b600083516138e1818460208801613c2b565b8351908301906138f5818360208801613c2b565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613931908301846138a3565b9695505050505050565b602081526000611ad960208301846138a3565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526011908201527057524f4e475f45544845525f56414c554560781b604082015260600190565b602080825260119082015270135554d517d3d5d397d513d2d15397d251607a1b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526011908201527013d5915497cc8c17d3505617d312535255607a1b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b838152602080820184905260c0820190604083018460005b6004811015613b1657815160ff1683529183019190830190600101613af6565b50505050949350505050565b604051601f8201601f1916810167ffffffffffffffff81118282101715613b4b57613b4b613d23565b604052919050565b600067ffffffffffffffff821115613b6d57613b6d613d23565b50601f01601f191660200190565b60008219821115613b8e57613b8e613ce1565b500190565b600060ff821660ff84168060ff03821115613bb057613bb0613ce1565b019392505050565b600082613bc757613bc7613cf7565b500490565b6000816000190483118215151615613be657613be6613ce1565b500290565b600060ff821660ff84168160ff0481118215151615613c0c57613c0c613ce1565b029392505050565b600082821015613c2657613c26613ce1565b500390565b60005b83811015613c46578181015183820152602001613c2e565b838111156119985750506000910152565b600181811c90821680613c6b57607f821691505b60208210811415613c8c57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613ca657613ca6613ce1565b5060010190565b600060ff821660ff811415613cc457613cc4613ce1565b60010192915050565b600082613cdc57613cdc613cf7565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611d8e57600080fd5b6001600160e01b031981168114611d8e57600080fdfea2646970667358221220f6bbaf3f53d5bccd9476491a82e87c62452cfd052ba78f847fe1db46f5f0212a64736f6c63430008070033
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.