Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
374 OLOOT
Holders
55
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 OLOOTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
OLoot
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 2 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // pragma solidity ^0.8.9; import "erc721a/contracts/ERC721A.sol"; import "erc721a/contracts/extensions/ERC721ABurnable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Base64.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "operator-filter-registry/src/DefaultOperatorFilterer.sol"; contract OLoot is ERC721A, ERC721ABurnable, DefaultOperatorFilterer, Pausable, ReentrancyGuard, Ownable, ERC2981 { mapping(uint256 => string) private _burnedTokens; uint256 public MINT_PRICE = 0.0333 ether; uint16 public MAX_SUPPLY = 7779; uint8 public ORDINAL_BTC_ADDRESS_LEN = 62; uint8 public MAX_MINT_PER_TX = 10; uint8 public MAX_PER_WALLET = 20; bool public ARE_BURNS_ALLOWED = false; constructor() ERC721A("oLoot", "OLOOT") { _setDefaultRoyalty(msg.sender, 690); _pause(); } function _startTokenId() internal view virtual override returns (uint256) { return 1; } function mint(uint8 num) external payable whenNotPaused nonReentrant { require(msg.value >= MINT_PRICE * num, "Send more ETH"); require(num <= MAX_MINT_PER_TX, "Limit 10 per transaction"); uint256 totalMinted = _totalMinted(); require(num + totalMinted <= MAX_SUPPLY, "Cannot mint past max supply"); uint256 mintedByWallet = _numberMinted(msg.sender); require(mintedByWallet + num <= MAX_PER_WALLET, "Limit 20 per wallet"); require(msg.sender == tx.origin, "Are you human?"); _mint(msg.sender, num); } function reserve(uint8 num) external onlyOwner { uint256 totalMinted = _totalMinted(); require(num + totalMinted <= MAX_SUPPLY, "Cannot mint past max supply"); _mint(msg.sender, num); } function ordBurn(uint256 tokenId, string memory destAddress) public { require(ARE_BURNS_ALLOWED, "Burns are not enabled"); require( bytes(destAddress).length == ORDINAL_BTC_ADDRESS_LEN, "Only taproot addresses can receive ordinals" ); _burnedTokens[tokenId] = destAddress; burn(tokenId); } function getMintCountOfAddress(address addr) external view returns (uint256) { return _numberMinted(addr); } function getOrdBurnDestAddress(uint256 tokenId) external view returns (string memory) { return _burnedTokens[tokenId]; } function toggleBurns() public onlyOwner { ARE_BURNS_ALLOWED = !ARE_BURNS_ALLOWED; } function setMaxSupply(uint16 newSupply) public onlyOwner { require(newSupply <= 7779, "Increasing supply not allowed"); MAX_SUPPLY = newSupply; } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } function supportsInterface(bytes4 interfaceId) public view virtual override(IERC721A, ERC721A, ERC2981) returns (bool) { // Supports the following `interfaceId`s: // - IERC165: 0x01ffc9a7 // - IERC721: 0x80ac58cd // - IERC721Metadata: 0x5b5e139f // - IERC2981: 0x2a55205a return ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId); } function withdraw() external onlyOwner { uint256 _balance = address(this).balance; payable(msg.sender).transfer(_balance); } function setDefaultRoyalty(address receiver, uint96 feeNumerator) public onlyOwner { _setDefaultRoyalty(receiver, feeNumerator); } function random(string memory input) internal pure returns (uint256) { return uint256(keccak256(abi.encodePacked(input))); } function getWeapon(uint256 tokenId) public view returns (string memory) { return pluck(tokenId, "OLOOTWEAPON", weapons); } function getChest(uint256 tokenId) public view returns (string memory) { return pluck(tokenId, "OLOOTCHEST", chestArmor); } function getHead(uint256 tokenId) public view returns (string memory) { return pluck(tokenId, "OLOOTHEAD", headArmor); } function getWaist(uint256 tokenId) public view returns (string memory) { return pluck(tokenId, "OLOOTWAIST", waistArmor); } function getFoot(uint256 tokenId) public view returns (string memory) { return pluck(tokenId, "OLOOTFOOT", footArmor); } function getHand(uint256 tokenId) public view returns (string memory) { return pluck(tokenId, "OLOOTHAND", handArmor); } function getNeck(uint256 tokenId) public view returns (string memory) { return pluck(tokenId, "OLOOTNECK", necklaces); } function getRing(uint256 tokenId) public view returns (string memory) { return pluck(tokenId, "OLOOTRING", rings); } function pluck( uint256 tokenId, string memory keyPrefix, string[] memory sourceArray ) internal view returns (string memory) { uint256 rand = random( string(abi.encodePacked(keyPrefix, _toString(tokenId))) ); string memory output = sourceArray[rand % sourceArray.length]; uint256 greatness = rand % 21; if (greatness > 14) { output = string( abi.encodePacked(output, " ", suffixes[rand % suffixes.length]) ); } if (greatness >= 19) { string[2] memory name; name[0] = namePrefixes[rand % namePrefixes.length]; name[1] = nameSuffixes[rand % nameSuffixes.length]; if (greatness == 19) { output = string( abi.encodePacked('"', name[0], " ", name[1], '" ', output) ); } else { output = string( abi.encodePacked( '"', name[0], " ", name[1], '" ', output, " +1" ) ); } } return output; } function tokenURI(uint256 tokenId) public view override(IERC721A, ERC721A) returns (string memory) { string[18] memory parts; parts[ 0 ] = '<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet" viewBox="0 0 350 350"><style>.base { fill: white; font-family: serif; font-size: 14px; }</style><rect width="100%" height="100%" fill="black" /><text x="10" y="20" class="base">'; parts[1] = getWeapon(tokenId); parts[2] = '</text><text x="10" y="40" class="base">'; parts[3] = getChest(tokenId); parts[4] = '</text><text x="10" y="60" class="base">'; parts[5] = getHead(tokenId); parts[6] = '</text><text x="10" y="80" class="base">'; parts[7] = getWaist(tokenId); parts[8] = '</text><text x="10" y="100" class="base">'; parts[9] = getFoot(tokenId); parts[10] = '</text><text x="10" y="120" class="base">'; parts[11] = getHand(tokenId); parts[12] = '</text><text x="10" y="140" class="base">'; parts[13] = getNeck(tokenId); parts[14] = '</text><text x="10" y="160" class="base">'; parts[15] = getRing(tokenId); parts[16] = "</text>"; parts[ 17 ] = '<ellipse style="fill:#535353;fill-opacity:.82901555" cx="320.74557" cy="319.29968" rx="18.555529" ry="19.519451" /><path fill="#ffffff" fill-rule="nonzero" d="m 326.49329,316.50911 c -0.67642,2.29832 -4.8022,1.12021 -6.14142,0.83892 l 1.18339,-4.02165 c 1.31876,0.27592 5.63446,0.80416 4.93758,3.18273 z m -0.7373,6.49866 c -0.73048,2.50433 -5.69485,1.14916 -7.30484,0.80954 l 1.30513,-4.44109 c 1.60998,0.34458 6.7638,1.01678 5.99971,3.63155 z m 5.41094,-6.46391 c 0.42611,-2.44765 -1.76534,-3.7631 -4.73451,-4.63634 l 0.97398,-3.31511 -2.40086,-0.5055 -0.94671,3.22906 c -0.62237,-0.13196 -1.26471,-0.25854 -1.90071,-0.37933 l 0.9467,-3.26339 -2.37407,-0.5055 -0.97399,3.3151 -1.51501,-0.28708 -3.28037,-0.69537 -0.62919,2.15478 c 0,0 1.75852,0.34457 1.72492,0.36775 0.67156,0.0691 1.16147,0.57581 1.10936,1.14915 l -1.10936,3.77469 c 0.0833,0.0161 0.16509,0.0389 0.2435,0.0691 l -0.25031,-0.0575 -1.54912,5.29158 c -0.14513,0.38719 -0.63211,0.60023 -1.08842,0.47696 h -4.9e-4 c 0,0.0286 -1.73173,-0.36195 -1.73173,-0.36195 l -1.17705,2.29831 3.09091,0.64946 1.69083,0.37353 -0.98079,3.34944 2.37407,0.5055 0.97398,-3.3151 c 0.6399,0.14933 1.26958,0.28708 1.88708,0.41366 l -0.96034,3.32669 2.37408,0.4997 0.98079,-3.34364 c 4.05808,0.64987 7.09495,0.3905 8.38011,-2.72316 1.03485,-2.50514 -0.0541,-3.94718 -2.18463,-4.88951 1.55544,-0.30445 2.70571,-1.14915 3.03686,-2.96473 z" style="stroke-width:.0448832;fill:#fff;fill-opacity:.75352114" /></svg>'; string memory output = string( abi.encodePacked( parts[0], parts[1], parts[2], parts[3], parts[4], parts[5], parts[6], parts[7], parts[8] ) ); output = string( abi.encodePacked( output, parts[9], parts[10], parts[11], parts[12], parts[13], parts[14], parts[15], parts[16], parts[17] ) ); string memory json = Base64.encode( bytes( string( abi.encodePacked( '{"name": "Bag #', _toString(tokenId), '", "description": "oLoot is randomized adventurer gear generated and stored on chain across ETH and BTC. Stats, images, and other functionality are intentionally omitted for others to interpret.", "image": "data:image/svg+xml;base64,', Base64.encode(bytes(output)), '"}' ) ) ) ); output = string( abi.encodePacked("data:application/json;base64,", json) ); return output; } function transferFrom( address from, address to, uint256 tokenId ) public payable override(IERC721A, ERC721A) onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId ) public payable override(IERC721A, ERC721A) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public payable override(IERC721A, ERC721A) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } string[] private weapons = [ "Warhammer", "Quarterstaff", "Maul", "Mace", "Club", "Katana", "Tongue Flick Of Death", "Scimitar", "Long Sword", "Short Sword", "Ghost Wand", "Grave Wand", "Bone Wand", "Wand", "Grimoire", "Chronicle", "Froggo Laser Eyes", "Book" ]; string[] private chestArmor = [ "Divine Robe", "Silk Robe", "Linen Robe", "Robe", "Shirt", "Demon Husk", "Dragonskin Armor", "Studded Leather Armor", "Hard Leather Armor", "Leather Armor", "Holy Chestplate", "Ornate Chestplate", "Plate Mail", "Chain Mail", "Ring Mail" ]; string[] private headArmor = [ "Ancient Helm", "Ornate Helm", "Great Helm", "Full Helm", "Helm", "Demon Crown", "Dragon's Crown", "War Cap", "Leather Cap", "Cap", "Crown", "Divine Hood", "Silk Hood", "Linen Hood", "Hood" ]; string[] private waistArmor = [ "Ornate Belt", "War Belt", "Plated Belt", "Mesh Belt", "Heavy Belt", "Demonhide Belt", "Dragonskin Belt", "Studded Leather Belt", "Hard Leather Belt", "Leather Belt", "Brightsilk Sash", "Silk Sash", "Wool Sash", "Linen Sash", "Sash" ]; string[] private footArmor = [ "Holy Greaves", "Ornate Greaves", "Greaves", "Chain Boots", "Heavy Boots", "Demonhide Boots", "Dragonskin Boots", "Studded Leather Boots", "Hard Leather Boots", "Leather Boots", "Divine Slippers", "Silk Slippers", "Wool Shoes", "Linen Shoes", "Lily Pads" ]; string[] private handArmor = [ "Holy Gauntlets", "Ornate Gauntlets", "Gauntlets", "Chain Gloves", "Heavy Gloves", "Demon's Hands", "Dragonskin Gloves", "Studded Leather Gloves", "Hard Leather Gloves", "Leather Gloves", "Divine Gloves", "Silk Gloves", "Wool Gloves", "Linen Gloves", "Four Finger Death Punch" ]; string[] private necklaces = ["Necklace", "Amulet", "Pendant"]; string[] private rings = [ "Gold Ring", "Silver Ring", "Bronze Ring", "Platinum Ring", "Titanium Ring" ]; string[] private suffixes = [ "of Power", "of Giants", "of Titans", "of Skill", "of Perfection", "of Brilliance", "of Enlightenment", "of Protection", "of Anger", "of Rage", "of Furie", "of Vitriol", "of the Frog", "of Detection", "of Reflection", "of the Twins" ]; string[] private namePrefixes = [ "Agony", "Apocalypse", "Armageddon", "Beast", "Behemoth", "Blight", "Blood", "Frog", "Brimstone", "Brood", "Carrion", "Cataclysm", "Chimeric", "Corpse", "Corruption", "Damnation", "Death", "Demon", "Dire", "Dragon", "Dread", "Doom", "Dusk", "Eagle", "Empyrean", "Fate", "Foe", "Matt", "Ghoul", "Gloom", "Glyph", "Golem", "Grim", "Hate", "Havoc", "Honour", "Horror", "Hypnotic", "Kraken", "Loath", "Maelstrom", "Mind", "Miracle", "Morbid", "Oblivion", "Onslaught", "Pain", "Pandemonium", "Phoenix", "Plague", "Rage", "Rapture", "Rune", "Skull", "Sol", "Soul", "Sorrow", "Spirit", "Storm", "Tempest", "Torment", "Vengeance", "Victory", "Viper", "Vortex", "Woe", "Wrath", "Light's", "Shimmering" ]; string[] private nameSuffixes = [ "Bane", "Root", "Bite", "Song", "Roar", "Grasp", "Instrument", "Glow", "Bender", "Shadow", "Whisper", "Shout", "Growl", "Tear", "Peak", "Form", "Sun", "Moon" ]; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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 (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/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 paid 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.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (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() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol) pragma solidity ^0.8.0; /** * @dev Provides a set of functions to operate with Base64 strings. * * _Available since v4.5._ */ library Base64 { /** * @dev Base64 Encoding/Decoding Table */ string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /** * @dev Converts a `bytes` to its Bytes64 `string` representation. */ function encode(bytes memory data) internal pure returns (string memory) { /** * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol */ if (data.length == 0) return ""; // Loads the table into memory string memory table = _TABLE; // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter // and split into 4 numbers of 6 bits. // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up // - `data.length + 2` -> Round up // - `/ 3` -> Number of 3-bytes chunks // - `4 *` -> 4 characters for each chunk string memory result = new string(4 * ((data.length + 2) / 3)); /// @solidity memory-safe-assembly assembly { // Prepare the lookup table (skip the first "length" byte) let tablePtr := add(table, 1) // Prepare result pointer, jump over length let resultPtr := add(result, 32) // Run over the input, 3 bytes at a time for { let dataPtr := data let endPtr := add(data, mload(data)) } lt(dataPtr, endPtr) { } { // Advance 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // To write each character, shift the 3 bytes (18 bits) chunk // 4 times in blocks of 6 bits for each character (18, 12, 6, 0) // and apply logical AND with 0x3F which is the number of // the previous character in the ASCII table prior to the Base64 Table // The result is then added to the table to get the character to write, // and finally write it in the result pointer but with a left shift // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F)))) resultPtr := add(resultPtr, 1) // Advance } // When data `bytes` is not exactly 3 bytes long // it is padded with `=` characters at the end switch mod(mload(data), 3) case 1 { mstore8(sub(resultPtr, 1), 0x3d) mstore8(sub(resultPtr, 2), 0x3d) } case 2 { mstore8(sub(resultPtr, 1), 0x3d) } } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @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, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @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) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @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) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @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. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @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 memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * 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, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * 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, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721ABurnable.sol'; import '../ERC721A.sol'; /** * @title ERC721ABurnable. * * @dev ERC721A token that can be irreversibly burned (destroyed). */ abstract contract ERC721ABurnable is ERC721A, IERC721ABurnable { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual override { _burn(tokenId, true); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of ERC721ABurnable. */ interface IERC721ABurnable is IERC721A { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) external; }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @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, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` 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 payable; /** * @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 payable; /** * @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 the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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); // ============================================================= // IERC721Metadata // ============================================================= /** * @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); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {OperatorFilterer} from "./OperatorFilterer.sol"; import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol"; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. * @dev Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { /// @dev The constructor that is called when the contract is being deployed. constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { /** * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns * true if supplied registrant address is not registered. */ function isOperatorAllowed(address registrant, address operator) external view returns (bool); /** * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner. */ function register(address registrant) external; /** * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes. */ function registerAndSubscribe(address registrant, address subscription) external; /** * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another * address without subscribing. */ function registerAndCopyEntries(address registrant, address registrantToCopy) external; /** * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner. * Note that this does not remove any filtered addresses or codeHashes. * Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes. */ function unregister(address addr) external; /** * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered. */ function updateOperator(address registrant, address operator, bool filtered) external; /** * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates. */ function updateOperators(address registrant, address[] calldata operators, bool filtered) external; /** * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered. */ function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; /** * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates. */ function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; /** * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous * subscription if present. * Note that accounts with subscriptions may go on to subscribe to other accounts - in this case, * subscriptions will not be forwarded. Instead the former subscription's existing entries will still be * used. */ function subscribe(address registrant, address registrantToSubscribe) external; /** * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes. */ function unsubscribe(address registrant, bool copyExistingEntries) external; /** * @notice Get the subscription address of a given registrant, if any. */ function subscriptionOf(address addr) external returns (address registrant); /** * @notice Get the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscribers(address registrant) external returns (address[] memory); /** * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscriberAt(address registrant, uint256 index) external returns (address); /** * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr. */ function copyEntriesOf(address registrant, address registrantToCopy) external; /** * @notice Returns true if operator is filtered by a given address or its subscription. */ function isOperatorFiltered(address registrant, address operator) external returns (bool); /** * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription. */ function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); /** * @notice Returns true if a codeHash is filtered by a given address or its subscription. */ function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); /** * @notice Returns a list of filtered operators for a given address or its subscription. */ function filteredOperators(address addr) external returns (address[] memory); /** * @notice Returns the set of filtered codeHashes for a given address or its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashes(address addr) external returns (bytes32[] memory); /** * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredOperatorAt(address registrant, uint256 index) external returns (address); /** * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); /** * @notice Returns true if an address has registered */ function isRegistered(address addr) external returns (bool); /** * @dev Convenience method to compute the code hash of an arbitrary contract */ function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E; address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol"; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. * Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract OperatorFilterer { /// @dev Emitted when an operator is not allowed. error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS); /// @dev The constructor that is called when the contract is being deployed. constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } /** * @dev A helper function to check if an operator is allowed. */ modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } /** * @dev A helper function to check if an operator approval is allowed. */ modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } /** * @dev A helper function to check if an operator is allowed. */ function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // under normal circumstances, this function will revert rather than return false, but inheriting contracts // may specify their own OperatorFilterRegistry implementations, which may behave differently if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
{ "optimizer": { "enabled": true, "runs": 2 }, "viaIR": true, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"ARE_BURNS_ALLOWED","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINT_PER_TX","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PER_WALLET","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ORDINAL_BTC_ADDRESS_LEN","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","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":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getChest","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getFoot","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getHand","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getHead","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getMintCountOfAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getNeck","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getOrdBurnDestAddress","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getRing","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getWaist","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getWeapon","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"num","type":"uint8"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"destAddress","type":"string"}],"name":"ordBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"num","type":"uint8"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"newSupply","type":"uint16"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleBurns","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080806040523462003dab576000620000188262003dea565b60058252641bd31bdbdd60da1b602083015260405190620000398262003dea565b600582526413d313d3d560da1b602083015282516001600160401b03811162003be4576200006960025462003e06565b601f811162003d6a575b506020601f821160011462003cf55782939482939262003ce9575b50508160011b916000199060031b1c1916176002555b81516001600160401b03811162003be457620000c260035462003e06565b601f811162003c97575b50602092601f821160011462003c125792829382939262003c06575b50508160011b916000199060031b1c1916176003555b60018155806daaeb6d7670e522a718067333cd4e803b62003b77575b50506008805460ff191690556001600955600a8054336001600160a01b03198216811790925560405191906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08480a366764e2c6f054000600e5564140a3e1e6365ffffffffffff19600f541617600f556200019e8162003db0565b604051620001ac8162003dea565b60098152682bb0b93430b6b6b2b960b91b60208201528152604051620001d28162003dea565b600c81526b28bab0b93a32b939ba30b33360a11b60208201526020820152604051620001fe8162003dea565b600481526313585d5b60e21b60208201526040820152604051620002228162003dea565b60048152634d61636560e01b60208201526060820152604051620002468162003dea565b600481526321b63ab160e11b602082015260808201526040516200026a8162003dea565b60068152654b6174616e6160d01b602082015260a0820152604051620002908162003dea565b601581527f546f6e67756520466c69636b204f662044656174680000000000000000000000602082015260c0820152604051620002cd8162003dea565b600881526729b1b4b6b4ba30b960c11b602082015260e0820152604051620002f58162003dea565b600a815269131bdb99c814dddbdc9960b21b6020820152610100820152604051620003208162003dea565b600b81526a14da1bdc9d0814dddbdc9960aa1b60208201526101208201526040516200034c8162003dea565b600a81526911da1bdcdd0815d85b9960b21b6020820152610140820152604051620003778162003dea565b600a81526911dc985d994815d85b9960b21b6020820152610160820152604051620003a28162003dea565b6009815268109bdb994815d85b9960ba1b6020820152610180820152604051620003cc8162003dea565b600481526315d85b9960e21b60208201526101a0820152604051620003f18162003dea565b60088152674772696d6f69726560c01b60208201526101c08201526040516200041a8162003dea565b60098152684368726f6e69636c6560b81b60208201526101e0820152604051620004448162003dea565b601181527046726f67676f204c61736572204579657360781b6020820152610200820152604051620004768162003dea565b6004815263426f6f6b60e01b602082015261022082015260105460126010558060121062003ac7575b506010825260008051602062007c4d8339815191529082905b60128210620039a75783604051620004d08162003dcd565b604051620004de8162003dea565b600b81526a446976696e6520526f626560a81b60208201528152604051620005068162003dea565b600981526853696c6b20526f626560b81b602082015260208201526040516200052f8162003dea565b600a8152694c696e656e20526f626560b01b60208201526040820152604051620005598162003dea565b6004815263526f626560e01b602082015260608201526040516200057d8162003dea565b600581526414da1a5c9d60da1b60208201526080820152604051620005a28162003dea565b600a81526944656d6f6e204875736b60b01b602082015260a0820152604051620005cc8162003dea565b601081526f223930b3b7b739b5b4b71020b936b7b960811b602082015260c0820152604051620005fc8162003dea565b601581527f53747564646564204c6561746865722041726d6f720000000000000000000000602082015260e0820152604051620006398162003dea565b60128152712430b932102632b0ba3432b91020b936b7b960711b60208201526101008201526040516200066c8162003dea565b600d81526c2632b0ba3432b91020b936b7b960991b60208201526101208201526040516200069a8162003dea565b600f81526e486f6c79204368657374706c61746560881b6020820152610140820152604051620006ca8162003dea565b60118152704f726e617465204368657374706c61746560781b6020820152610160820152604051620006fc8162003dea565b600a815269141b185d194813585a5b60b21b6020820152610180820152604051620007278162003dea565b600a81526910da185a5b8813585a5b60b21b60208201526101a0820152604051620007528162003dea565b6009815268149a5b99c813585a5b60ba1b60208201526101c0820152601154600f60115580600f10620038f7575b506011825260008051602062007bad8339815191529082905b600f8210620037d75783604051620007b18162003dcd565b604051620007bf8162003dea565b600c81526b416e6369656e742048656c6d60a01b60208201528152604051620007e88162003dea565b600b81526a4f726e6174652048656c6d60a81b60208201526020820152604051620008138162003dea565b600a81526947726561742048656c6d60b01b602082015260408201526040516200083d8162003dea565b600981526846756c6c2048656c6d60b81b60208201526060820152604051620008668162003dea565b600481526348656c6d60e01b602082015260808201526040516200088a8162003dea565b600b81526a2232b6b7b71021b937bbb760a91b602082015260a0820152604051620008b58162003dea565b600e81526d223930b3b7b713b99021b937bbb760911b602082015260c0820152604051620008e38162003dea565b60078152660576172204361760cc1b602082015260e08201526040516200090a8162003dea565b600b81526a04c656174686572204361760ac1b6020820152610100820152604051620009368162003dea565b600381526204361760ec1b60208201526101208201526040516200095a8162003dea565b600581526421b937bbb760d91b6020820152610140820152604051620009808162003dea565b600b81526a111a5d9a5b9948121bdbd960aa1b6020820152610160820152604051620009ac8162003dea565b600981526814da5b1ac8121bdbd960ba1b6020820152610180820152604051620009d68162003dea565b600a815269131a5b995b88121bdbd960b21b60208201526101a082015260405162000a018162003dea565b6004815263121bdbd960e21b60208201526101c0820152601254600f60125580600f1062003727575b506012825260008051602062007b6d8339815191529082905b600f821062003607578360405162000a5b8162003dcd565b60405162000a698162003dea565b600b81526a13dc9b985d194810995b1d60aa1b6020820152815260405162000a918162003dea565b600881526715d85c8810995b1d60c21b6020820152602082015260405162000ab98162003dea565b600b81526a141b185d19590810995b1d60aa1b6020820152604082015260405162000ae48162003dea565b600981526813595cda0810995b1d60ba1b6020820152606082015260405162000b0d8162003dea565b600a8152691219585d9e4810995b1d60b21b6020820152608082015260405162000b378162003dea565b600e81526d11195b5bdb9a1a59194810995b1d60921b602082015260a082015260405162000b658162003dea565b600f81526e111c9859dbdb9cdada5b8810995b1d608a1b602082015260c082015260405162000b948162003dea565b601481527f53747564646564204c6561746865722042656c74000000000000000000000000602082015260e082015260405162000bd18162003dea565b601181527012185c99081319585d1a195c8810995b1d607a1b602082015261010082015260405162000c038162003dea565b600c81526b1319585d1a195c8810995b1d60a21b602082015261012082015260405162000c308162003dea565b600f81526e084e4d2ced0e8e6d2d8d640a6c2e6d608b1b602082015261014082015260405162000c608162003dea565b60098152680a6d2d8d640a6c2e6d60bb1b602082015261016082015260405162000c8a8162003dea565b60098152680aededed840a6c2e6d60bb1b602082015261018082015260405162000cb48162003dea565b600a815269098d2dccadc40a6c2e6d60b31b60208201526101a082015260405162000cdf8162003dea565b60048152630a6c2e6d60e31b60208201526101c0820152601354600f60135580600f1062003557575b506013825260008051602062007bcd8339815191529082905b600f821062003437578360405162000d398162003dcd565b60405162000d478162003dea565b600c81526b486f6c79204772656176657360a01b6020820152815260405162000d708162003dea565b600e81526d4f726e617465204772656176657360901b6020820152602082015260405162000d9e8162003dea565b60078152664772656176657360c81b6020820152604082015260405162000dc58162003dea565b600b81526a436861696e20426f6f747360a81b6020820152606082015260405162000df08162003dea565b600b81526a486561767920426f6f747360a81b6020820152608082015260405162000e1b8162003dea565b600f81526e44656d6f6e6869646520426f6f747360881b602082015260a082015260405162000e4a8162003dea565b601081526f447261676f6e736b696e20426f6f747360801b602082015260c082015260405162000e7a8162003dea565b601581527f53747564646564204c65617468657220426f6f74730000000000000000000000602082015260e082015260405162000eb78162003dea565b601281527148617264204c65617468657220426f6f747360701b602082015261010082015260405162000eea8162003dea565b600d81526c4c65617468657220426f6f747360981b602082015261012082015260405162000f188162003dea565b600f81526e446976696e6520536c69707065727360881b602082015261014082015260405162000f488162003dea565b600d81526c53696c6b20536c69707065727360981b602082015261016082015260405162000f768162003dea565b600a815269576f6f6c2053686f657360b01b602082015261018082015260405162000fa18162003dea565b600b81526a4c696e656e2053686f657360a81b60208201526101a082015260405162000fcd8162003dea565b60098152684c696c79205061647360b81b60208201526101c0820152601454600f60145580600f1062003387575b506014825260008051602062007c2d8339815191529082905b600f82106200326757836040516200102c8162003dcd565b6040516200103a8162003dea565b600e81526d486f6c79204761756e746c65747360901b60208201528152604051620010658162003dea565b601081526f4f726e617465204761756e746c65747360801b60208201526020820152604051620010958162003dea565b60098152684761756e746c65747360b81b60208201526040820152604051620010be8162003dea565b600c81526b436861696e20476c6f76657360a01b60208201526060820152604051620010ea8162003dea565b600c81526b486561767920476c6f76657360a01b60208201526080820152604051620011168162003dea565b600d81526c44656d6f6e27732048616e647360981b602082015260a0820152604051620011438162003dea565b6011815270447261676f6e736b696e20476c6f76657360781b602082015260c0820152604051620011748162003dea565b601681527f53747564646564204c65617468657220476c6f76657300000000000000000000602082015260e0820152604051620011b18162003dea565b601381527f48617264204c65617468657220476c6f766573000000000000000000000000006020820152610100820152604051620011ef8162003dea565b600e81526d4c65617468657220476c6f76657360901b60208201526101208201526040516200121e8162003dea565b600d81526c446976696e6520476c6f76657360981b60208201526101408201526040516200124c8162003dea565b600b81526a53696c6b20476c6f76657360a81b6020820152610160820152604051620012788162003dea565b600b81526a576f6f6c20476c6f76657360a81b6020820152610180820152604051620012a48162003dea565b600c81526b4c696e656e20476c6f76657360a01b60208201526101a0820152604051620012d18162003dea565b601781527f466f75722046696e6765722044656174682050756e636800000000000000000060208201526101c0820152601554600f60155580600f10620031b7575b506015825260008051602062007b8d8339815191529082905b600f8210620030975760405184906001600160401b036060820190811190821117620026ed5760608101604052620013676060820162003dea565b600860608201908152674e65636b6c61636560c01b60808301528152604051620013918162003dea565b6006815265105b5d5b195d60d21b60208201526020820152604051620013b78162003dea565b600781526614195b99185b9d60ca1b6020820152604082015260165460036016558060031062002fe7575b506016825260008051602062007c6d8339815191529082905b6003821062002ec75760405184906001600160401b0360a0820190811190821117620026ed5760a081016040526200143660a0820162003dea565b600960a0820190815268476f6c642052696e6760b81b60c08301528152604051620014618162003dea565b600b81526a53696c7665722052696e6760a81b602082015260208201526040516200148c8162003dea565b600b81526a42726f6e7a652052696e6760a81b60208201526040820152604051620014b78162003dea565b600d81526c506c6174696e756d2052696e6760981b60208201526060820152604051620014e48162003dea565b600d81526c546974616e69756d2052696e6760981b6020820152608082015260175460056017558060051062002e17575b506017825260008051602062007c0d8339815191529082905b6005821062002cf75760405184906001600160401b03610200820190811190821117620026ed5761020081016040526200156c610200820162003dea565b600861020082019081526737b3102837bbb2b960c11b6102208301528152604051620015988162003dea565b60098152686f66204769616e747360b81b60208201526020820152604051620015c18162003dea565b60098152686f6620546974616e7360b81b60208201526040820152604051620015ea8162003dea565b60088152671bd98814dada5b1b60c21b60208201526060820152604051620016128162003dea565b600d81526c37b3102832b93332b1ba34b7b760991b602082015260808201526040516200163f8162003dea565b600d81526c6f66204272696c6c69616e636560981b602082015260a08201526040516200166c8162003dea565b601081526f1bd988115b9b1a59da1d195b9b595b9d60821b602082015260c08201526040516200169c8162003dea565b600d81526c37b310283937ba32b1ba34b7b760991b602082015260e0820152604051620016c98162003dea565b600881526737b31020b733b2b960c11b6020820152610100820152604051620016f28162003dea565b60078152666f66205261676560c81b60208201526101208201526040516200171a8162003dea565b60088152676f6620467572696560c01b6020820152610140820152604051620017438162003dea565b600a8152691bd988159a5d1c9a5bdb60b21b60208201526101608201526040516200176e8162003dea565b600b81526a6f66207468652046726f6760a81b60208201526101808201526040516200179a8162003dea565b600c81526b37b3102232ba32b1ba34b7b760a11b60208201526101a0820152604051620017c78162003dea565b600d81526c37b3102932b33632b1ba34b7b760991b60208201526101c0820152604051620017f58162003dea565b600c81526b6f6620746865205477696e7360a01b60208201526101e082015260185460106018558060101062002c36575b50601882527fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e9082905b6010821062002b165760405184906001600160401b036108a0820190811190821117620026ed576108a081016040526200188e6108a0820162003dea565b60056108a082019081526441676f6e7960d81b6108c08301528152604051620018b78162003dea565b600a81526941706f63616c7970736560b01b60208201526020820152604051620018e18162003dea565b600a81526920b936b0b3b2b23237b760b11b602082015260408201526040516200190b8162003dea565b60058152641099585cdd60da1b60208201526060820152604051620019308162003dea565b6008815267084cad0cadadee8d60c31b60208201526080820152604051620019588162003dea565b6006815265109b1a59da1d60d21b602082015260a08201526040516200197e8162003dea565b6005815264109b1bdbd960da1b602082015260c0820152604051620019a38162003dea565b600481526346726f6760e01b602082015260e0820152604051620019c78162003dea565b60098152684272696d73746f6e6560b81b6020820152610100820152604051620019f18162003dea565b6005815264109c9bdbd960da1b602082015261012082015260405162001a178162003dea565b600781526621b0b93934b7b760c91b602082015261014082015260405162001a3f8162003dea565b600981526843617461636c79736d60b81b602082015261016082015260405162001a698162003dea565b60088152674368696d6572696360c01b602082015261018082015260405162001a928162003dea565b6006815265436f7270736560d01b60208201526101a082015260405162001ab98162003dea565b600a81526921b7b9393ab83a34b7b760b11b60208201526101c082015260405162001ae48162003dea565b60098152682230b6b730ba34b7b760b91b60208201526101e082015260405162001b0e8162003dea565b6005815264088cac2e8d60db1b602082015261020082015260405162001b348162003dea565b60058152642232b6b7b760d91b602082015261022082015260405162001b5a8162003dea565b60048152634469726560e01b602082015261024082015260405162001b7f8162003dea565b6006815265223930b3b7b760d11b602082015261026082015260405162001ba68162003dea565b6005815264111c99585960da1b602082015261028082015260405162001bcc8162003dea565b6004815263446f6f6d60e01b60208201526102a082015260405162001bf18162003dea565b60048152634475736b60e01b60208201526102c082015260405162001c168162003dea565b60058152644561676c6560d81b60208201526102e082015260405162001c3c8162003dea565b600881526722b6b83cb932b0b760c11b602082015261030082015260405162001c658162003dea565b60048152634661746560e01b602082015261032082015260405162001c8a8162003dea565b6003815262466f6560e81b602082015261034082015260405162001cae8162003dea565b600481526313585d1d60e21b602082015261036082015260405162001cd38162003dea565b600581526411da1bdd5b60da1b602082015261038082015260405162001cf98162003dea565b6005815264476c6f6f6d60d81b60208201526103a082015260405162001d1f8162003dea565b600581526408ed8f2e0d60db1b60208201526103c082015260405162001d458162003dea565b6005815264476f6c656d60d81b60208201526103e082015260405162001d6b8162003dea565b60048152634772696d60e01b602082015261040082015260405162001d908162003dea565b60048152634861746560e01b602082015261042082015260405162001db58162003dea565b60058152644861766f6360d81b602082015261044082015260405162001ddb8162003dea565b60068152652437b737bab960d11b602082015261046082015260405162001e028162003dea565b60068152652437b93937b960d11b602082015261048082015260405162001e298162003dea565b60088152674879706e6f74696360c01b60208201526104a082015260405162001e528162003dea565b600681526525b930b5b2b760d11b60208201526104c082015260405162001e798162003dea565b6005815264098dec2e8d60db1b60208201526104e082015260405162001e9f8162003dea565b60098152684d61656c7374726f6d60b81b602082015261050082015260405162001ec98162003dea565b6004815263135a5b9960e21b602082015261052082015260405162001eee8162003dea565b60078152664d697261636c6560c81b602082015261054082015260405162001f168162003dea565b6006815265135bdc989a5960d21b602082015261056082015260405162001f3d8162003dea565b600881526727b13634bb34b7b760c11b602082015261058082015260405162001f668162003dea565b600981526813db9cdb185d59da1d60ba1b60208201526105a082015260405162001f908162003dea565b60048152632830b4b760e11b60208201526105c082015260405162001fb58162003dea565b600b81526a50616e64656d6f6e69756d60a81b60208201526105e082015260405162001fe18162003dea565b60078152660a0d0decadcd2f60cb1b6020820152610600820152604051620020098162003dea565b6006815265506c6167756560d01b6020820152610620820152604051620020308162003dea565b60048152635261676560e01b6020820152610640820152604051620020558162003dea565b60078152665261707475726560c81b60208201526106608201526040516200207d8162003dea565b600481526352756e6560e01b6020820152610680820152604051620020a28162003dea565b600581526414dadd5b1b60da1b60208201526106a0820152604051620020c88162003dea565b600381526214dbdb60ea1b60208201526106c0820152604051620020ec8162003dea565b600481526314dbdd5b60e21b60208201526106e0820152604051620021118162003dea565b6006815265536f72726f7760d01b6020820152610700820152604051620021388162003dea565b600681526514dc1a5c9a5d60d21b60208201526107208201526040516200215f8162003dea565b600581526453746f726d60d81b6020820152610740820152604051620021858162003dea565b600781526615195b5c195cdd60ca1b6020820152610760820152604051620021ad8162003dea565b6007815266151bdc9b595b9d60ca1b6020820152610780820152604051620021d58162003dea565b600981526856656e6765616e636560b81b60208201526107a0820152604051620021ff8162003dea565b6007815266566963746f727960c81b60208201526107c0820152604051620022278162003dea565b60058152642b34b832b960d91b60208201526107e08201526040516200224d8162003dea565b60068152650acdee4e8caf60d31b6020820152610800820152604051620022748162003dea565b6003815262576f6560e81b6020820152610820820152604051620022988162003dea565b60058152640aee4c2e8d60db1b6020820152610840820152604051620022be8162003dea565b60078152664c69676874277360c81b6020820152610860820152604051620022e68162003dea565b600a8152695368696d6d6572696e6760b01b602082015261088082015260195460456019558060451062002a55575b50601982527f944998273e477b495144fb8794c914197f3ccb46be2900f4698fd0ef743c96959082905b60458210620029355783604051620023578162003db0565b604051620023658162003dea565b600481526342616e6560e01b60208201528152604051620023868162003dea565b6004815263149bdbdd60e21b60208201526020820152604051620023aa8162003dea565b60048152634269746560e01b60208201526040820152604051620023ce8162003dea565b6004815263536f6e6760e01b60208201526060820152604051620023f28162003dea565b60048152632937b0b960e11b60208201526080820152604051620024168162003dea565b6005815264047726173760dc1b602082015260a08201526040516200243b8162003dea565b600a815269125b9cdd1c9d5b595b9d60b21b602082015260c0820152604051620024658162003dea565b6004815263476c6f7760e01b602082015260e0820152604051620024898162003dea565b60068152652132b73232b960d11b6020820152610100820152604051620024b08162003dea565b6006815265536861646f7760d01b6020820152610120820152604051620024d78162003dea565b60078152662bb434b9b832b960c91b6020820152610140820152604051620024ff8162003dea565b600581526414da1bdd5d60da1b6020820152610160820152604051620025258162003dea565b600581526411dc9bdddb60da1b60208201526101808201526040516200254b8162003dea565b60048152632a32b0b960e11b60208201526101a0820152604051620025708162003dea565b60048152635065616b60e01b60208201526101c0820152604051620025958162003dea565b6004815263466f726d60e01b60208201526101e0820152604051620025ba8162003dea565b600381526229bab760e91b6020820152610200820152604051620025de8162003dea565b600481526326b7b7b760e11b6020820152610220820152601a546012601a558060121062002888575b50601a825260008051602062007bed8339815191529082905b60128210620027485733156200270357604080519081016001600160401b03811182821017620026ed576102b291602091604052338152015261015960a11b3317600b5560085460ff8116620026b55760019060ff1916176008557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a1604051613cf0908162003e5d8239f35b60405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606490fd5b634e487b7160e01b600052604160045260246000fd5b60405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606490fd5b80518051906001600160401b038211620028745762002768855462003e06565b601f811162002834575b50602090601f8311600114620027c25792826001949360209386958a92620027b6575b5050600019600383901b1c191690841b1786555b0193019101909162002620565b01519050898062002795565b908587526020872091875b601f19851681106200281b575083602093600196938796938794601f1981161062002801575b505050811b018655620027a9565b015160001960f88460031b161c19169055898080620027f3565b91926020600181928685015181550194019201620027cd565b620028629086885260208820601f850160051c8101916020861062002869575b601f0160051c019062003e43565b8662002772565b909150819062002854565b634e487b7160e01b86526041600452602486fd5b601a60005260008051602062007bed833981519152017f057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff6505b818110620028cf575062002607565b80620028de6001925462003e06565b80620028ed575b5001620028c0565b601f81118314620029055750600081555b85620028e5565b62002925908260005283601f6020600020920160051c8201910162003e43565b60006020812081835555620028fe565b80518051906001600160401b038211620028745762002955855462003e06565b601f811162002a21575b50602090601f8311600114620029af5792826001949360209386958a92620029a3575b5050600019600383901b1c191690841b1786555b019301910190916200233f565b01519050898062002982565b908587526020872091875b601f198516811062002a08575083602093600196938796938794601f19811610620029ee575b505050811b01865562002996565b015160001960f88460031b161c19169055898080620029e0565b91926020600181928685015181550194019201620029ba565b62002a4e9086885260208820601f850160051c810191602086106200286957601f0160051c019062003e43565b866200295f565b60196000527f944998273e477b495144fb8794c914197f3ccb46be2900f4698fd0ef743c9695907f944998273e477b495144fb8794c914197f3ccb46be2900f4698fd0ef743c96da5b818301811062002ab057505062002315565b8062002abf6001925462003e06565b8062002ace575b500162002a9e565b601f8111831462002ae65750600081555b8662002ac6565b62002b06908260005283601f6020600020920160051c8201910162003e43565b6000602081208183555562002adf565b80518051906001600160401b038211620028745762002b36855462003e06565b601f811162002c02575b50602090601f831160011462002b905792826001949360209386958a9262002b84575b5050600019600383901b1c191690841b1786555b0193019101909162001850565b01519050898062002b63565b908587526020872091875b601f198516811062002be9575083602093600196938796938794601f1981161062002bcf575b505050811b01865562002b77565b015160001960f88460031b161c1916905589808062002bc1565b9192602060018192868501518155019401920162002b9b565b62002c2f9086885260208820601f850160051c810191602086106200286957601f0160051c019062003e43565b8662002b40565b60186000527fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2e907fb13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d3e5b818301811062002c9157505062001826565b8062002ca06001925462003e06565b8062002caf575b500162002c7f565b601f8111831462002cc75750600081555b8662002ca7565b62002ce7908260005283601f6020600020920160051c8201910162003e43565b6000602081208183555562002cc0565b80518051906001600160401b038211620028745762002d17855462003e06565b601f811162002de3575b50602090601f831160011462002d715792826001949360209386958a9262002d65575b5050600019600383901b1c191690841b1786555b019301910190916200152e565b01519050898062002d44565b908587526020872091875b601f198516811062002dca575083602093600196938796938794601f1981161062002db0575b505050811b01865562002d58565b015160001960f88460031b161c1916905589808062002da2565b9192602060018192868501518155019401920162002d7c565b62002e109086885260208820601f850160051c810191602086106200286957601f0160051c019062003e43565b8662002d21565b601760005260008051602062007c0d833981519152907fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c1a5b818301811062002e6157505062001515565b8062002e706001925462003e06565b8062002e7f575b500162002e4f565b601f8111831462002e975750600081555b8662002e77565b62002eb7908260005283601f6020600020920160051c8201910162003e43565b6000602081208183555562002e90565b80518051906001600160401b038211620028745762002ee7855462003e06565b601f811162002fb3575b50602090601f831160011462002f415792826001949360209386958a9262002f35575b5050600019600383901b1c191690841b1786555b01930191019091620013fb565b01519050898062002f14565b908587526020872091875b601f198516811062002f9a575083602093600196938796938794601f1981161062002f80575b505050811b01865562002f28565b015160001960f88460031b161c1916905589808062002f72565b9192602060018192868501518155019401920162002f4c565b62002fe09086885260208820601f850160051c810191602086106200286957601f0160051c019062003e43565b8662002ef1565b601660005260008051602062007c6d833981519152907fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b512428c5b818301811062003031575050620013e2565b80620030406001925462003e06565b806200304f575b50016200301f565b601f81118314620030675750600081555b8662003047565b62003087908260005283601f6020600020920160051c8201910162003e43565b6000602081208183555562003060565b80518051906001600160401b0382116200287457620030b7855462003e06565b601f811162003183575b50602090601f8311600114620031115792826001949360209386958a9262003105575b5050600019600383901b1c191690841b1786555b019301910190916200132c565b015190508980620030e4565b908587526020872091875b601f19851681106200316a575083602093600196938796938794601f1981161062003150575b505050811b018655620030f8565b015160001960f88460031b161c1916905589808062003142565b919260206001819286850151815501940192016200311c565b620031b09086885260208820601f850160051c810191602086106200286957601f0160051c019062003e43565b86620030c1565b601560005260008051602062007b8d833981519152907f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec4845b81830181106200320157505062001313565b80620032106001925462003e06565b806200321f575b5001620031ef565b601f81118314620032375750600081555b8662003217565b62003257908260005283601f6020600020920160051c8201910162003e43565b6000602081208183555562003230565b80518051906001600160401b038211620028745762003287855462003e06565b601f811162003353575b50602090601f8311600114620032e15792826001949360209386958a92620032d5575b5050600019600383901b1c191690841b1786555b0193019101909162001014565b015190508980620032b4565b908587526020872091875b601f19851681106200333a575083602093600196938796938794601f1981161062003320575b505050811b018655620032c8565b015160001960f88460031b161c1916905589808062003312565b91926020600181928685015181550194019201620032ec565b620033809086885260208820601f850160051c810191602086106200286957601f0160051c019062003e43565b8662003291565b601460005260008051602062007c2d833981519152907fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4fb5b8183018110620033d157505062000ffb565b80620033e06001925462003e06565b80620033ef575b5001620033bf565b601f81118314620034075750600081555b86620033e7565b62003427908260005283601f6020600020920160051c8201910162003e43565b6000602081208183555562003400565b80518051906001600160401b038211620028745762003457855462003e06565b601f811162003523575b50602090601f8311600114620034b15792826001949360209386958a92620034a5575b5050600019600383901b1c191690841b1786555b0193019101909162000d21565b01519050898062003484565b908587526020872091875b601f19851681106200350a575083602093600196938796938794601f19811610620034f0575b505050811b01865562003498565b015160001960f88460031b161c19169055898080620034e2565b91926020600181928685015181550194019201620034bc565b620035509086885260208820601f850160051c810191602086106200286957601f0160051c019062003e43565b8662003461565b601360005260008051602062007bcd833981519152907f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a09f5b8183018110620035a157505062000d08565b80620035b06001925462003e06565b80620035bf575b50016200358f565b601f81118314620035d75750600081555b86620035b7565b620035f7908260005283601f6020600020920160051c8201910162003e43565b60006020812081835555620035d0565b80518051906001600160401b038211620028745762003627855462003e06565b601f8111620036f3575b50602090601f8311600114620036815792826001949360209386958a9262003675575b5050600019600383901b1c191690841b1786555b0193019101909162000a43565b01519050898062003654565b908587526020872091875b601f1985168110620036da575083602093600196938796938794601f19811610620036c0575b505050811b01865562003668565b015160001960f88460031b161c19169055898080620036b2565b919260206001819286850151815501940192016200368c565b620037209086885260208820601f850160051c810191602086106200286957601f0160051c019062003e43565b8662003631565b601260005260008051602062007b6d833981519152907fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec34535b81830181106200377157505062000a2a565b80620037806001925462003e06565b806200378f575b50016200375f565b601f81118314620037a75750600081555b8662003787565b620037c7908260005283601f6020600020920160051c8201910162003e43565b60006020812081835555620037a0565b80518051906001600160401b0382116200287457620037f7855462003e06565b601f8111620038c3575b50602090601f8311600114620038515792826001949360209386958a9262003845575b5050600019600383901b1c191690841b1786555b0193019101909162000799565b01519050898062003824565b908587526020872091875b601f1985168110620038aa575083602093600196938796938794601f1981161062003890575b505050811b01865562003838565b015160001960f88460031b161c1916905589808062003882565b919260206001819286850151815501940192016200385c565b620038f09086885260208820601f850160051c810191602086106200286957601f0160051c019062003e43565b8662003801565b601160005260008051602062007bad833981519152907f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c775b81830181106200394157505062000780565b80620039506001925462003e06565b806200395f575b50016200392f565b601f81118314620039775750600081555b8662003957565b62003997908260005283601f6020600020920160051c8201910162003e43565b6000602081208183555562003970565b80518051906001600160401b0382116200287457620039c7855462003e06565b601f811162003a93575b50602090601f831160011462003a215792826001949360209386958a9262003a15575b5050600019600383901b1c191690841b1786555b01930191019091620004b8565b015190503880620039f4565b908587526020872091875b601f198516811062003a7a575083602093600196938796938794601f1981161062003a60575b505050811b01865562003a08565b015160001960f88460031b161c1916905538808062003a52565b9192602060018192868501518155019401920162003a2c565b62003ac09086885260208820601f850160051c810191602086106200286957601f0160051c019062003e43565b38620039d1565b601060005260008051602062007c4d833981519152907f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae6845b818301811062003b115750506200049f565b8062003b206001925462003e06565b8062003b2f575b500162003aff565b601f8111831462003b475750600081555b3862003b27565b62003b67908260005283601f6020600020920160051c8201910162003e43565b6000602081208183555562003b40565b803b1562003c03578190604460405180948193633e9f1edf60e11b8352306004840152733cc6cdda760b79bafa08df41ecfa224f810dceb660248401525af1801562003bf85762003bcb575b81906200011a565b6001600160401b03811162003be4576040523862003bc3565b634e487b7160e01b82526041600452602482fd5b6040513d84823e3d90fd5b50fd5b015190503880620000e8565b60038352601f198216937fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b91845b86811062003c7e575083600195961062003c64575b505050811b01600355620000fe565b015160001960f88460031b161c1916905538808062003c55565b9192602060018192868501518155019401920162003c40565b6003835262003ce2907fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b601f840160051c810191602085106200286957601f0160051c019062003e43565b38620000cc565b0151905038806200008e565b6002835260008051602062007b4d83398151915290601f198316845b81811062003d515750958360019596971062003d37575b505050811b01600255620000a4565b015160001960f88460031b161c1916905538808062003d28565b9192602060018192868b01518155019401920162003d11565b6002835262003da49060008051602062007b4d833981519152601f840160051c810191602085106200286957601f0160051c019062003e43565b3862000073565b600080fd5b61024081019081106001600160401b03821117620026ed57604052565b6101e081019081106001600160401b03821117620026ed57604052565b604081019081106001600160401b03821117620026ed57604052565b90600182811c9216801562003e38575b602083101462003e2257565b634e487b7160e01b600052602260045260246000fd5b91607f169162003e16565b81811062003e4f575050565b6000815560010162003e4356fe60806040526004361015610013575b600080fd5b60003560e01c806301ffc9a7146103ab57806304634d8d146103a257806306421c2f1461039957806306fdde0314610390578063081812fc14610387578063095ea7b31461037e5780630e99990d146103755780630f2cdd6c1461036c57806318160ddd1461036357806323b872dd1461035a5780632a55205a1461035157806332cb6b0c146103485780633aef973d1461033f5780633ccfd60b146103365780633f4ba83a1461032d5780633fcb0cc81461032457806341f434341461031b57806342842e0e1461031257806342966c68146103095780635c975abb146103005780636352211e146102f757806367209aa8146102ee5780636ecd2306146102e557806370a08231146102dc578063715018a6146102d35780637bde4401146102ca5780638456cb59146102c157806386cdc0cf146102b857806386e1af25146102af5780638da5cb5b146102a65780638ecad7211461029d57806395d89b41146102945780639720c9691461028b5780639bdc1b69146102825780639e41b73f14610279578063a22cb46514610270578063b88d4fde14610267578063bc8e9cf91461025e578063c002d23d14610255578063c08a5dd51461024c578063c87b56dd14610243578063d47f269e1461023a578063e985e9c514610231578063ef68075a14610228578063f11ef5cf1461021f5763f2fde38b1461021757600080fd5b61000e611cd5565b5061000e611c86565b5061000e611c66565b5061000e611c14565b5061000e611bf4565b5061000e6117a0565b5061000e611780565b5061000e611761565b5061000e611735565b5061000e611592565b5061000e61150c565b5061000e6114e2565b5061000e6114c2565b5061000e6114a2565b5061000e6113fd565b5061000e6113d8565b5061000e6113ae565b5061000e6112e4565b5061000e611193565b5061000e611138565b5061000e611113565b5061000e6110c6565b5061000e61106b565b5061000e610f43565b5061000e610f07565b5061000e610ed7565b5061000e610eb3565b5061000e610e96565b5061000e610cf8565b5061000e610cce565b5061000e610c91565b5061000e610bfc565b5061000e610bb5565b5061000e610b8e565b5061000e610b6b565b5061000e610ac0565b5061000e610960565b5061000e610903565b5061000e6108df565b5061000e6108ab565b5061000e6107f5565b5061000e61076c565b5061000e610678565b5061000e610594565b5061000e61048d565b5061000e6103c6565b6001600160e01b031981160361000e57565b503461000e57602036600319011261000e5760206004356103e6816103b4565b63ffffffff60e01b166301ffc9a760e01b81149081908215610450575b821561043f575b821561041d575b50506040519015158152f35b63152a902d60e11b1491508115610437575b503880610411565b90503861042f565b635b5e139f60e01b8114925061040a565b6380ac58cd60e01b81149250610403565b600435906001600160a01b038216820361000e57565b602435906001600160a01b038216820361000e57565b503461000e57604036600319011261000e576104a7610461565b602435906001600160601b03821680830361000e57612710906104c8611d87565b1161053c5761053a91610513906104e96001600160a01b0384161515612249565b6105036104f4611274565b6001600160a01b039094168452565b6001600160601b03166020830152565b805160209091015160a01b6001600160a01b0319166001600160a01b039190911617600b55565b005b60405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608490fd5b503461000e57602036600319011261000e5760043561ffff811680910361000e576105bd611d87565b611e6381116105d75761ffff19600f541617600f55600080f35b60405162461bcd60e51b815260206004820152601d60248201527f496e6372656173696e6720737570706c79206e6f7420616c6c6f7765640000006044820152606490fd5b60005b83811061062f5750506000910152565b818101518382015260200161061f565b906020916106588151809281855285808601910161061c565b601f01601f1916010190565b90602061067592818152019061063f565b90565b503461000e57600080600319360112610756576040518160025461069b8161202e565b8084529060019081811690811561072e57506001146106d5575b6106d1846106c581880382611251565b60405191829182610664565b0390f35b60028352602094507f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b82841061071b57505050816106d1936106c592820101936106b5565b80548585018701529285019281016106ff565b6106d196506106c59450602092508593915060ff191682840152151560051b820101936106b5565b80fd5b6001600160a01b03909116815260200190565b503461000e57602036600319011261000e576004358060011115806107ea575b806107ce575b156107bc5760005260066020526106d160018060a01b036040600020541660405191829182610759565b6040516333d1c03960e21b8152600490fd5b50600081815260046020526040902054600160e01b1615610792565b50600054811061078c565b50604036600319011261000e5761080a610461565b6024356001600160a01b038061081f836137fd565b169081330361087a575b600083815260066020526040812080546001600160a01b0319166001600160a01b0387161790559316907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b81600052600760205260ff6108933360406000206137be565b5416610829576040516367d9dca160e11b8152600490fd5b503461000e57602036600319011261000e576106d16108cb60043561253e565b60405191829160208352602083019061063f565b503461000e57600036600319011261000e576020600f5460ff60405191831c168152f35b503461000e57600036600319011261000e576000546001546040519103600019018152602090f35b606090600319011261000e576001600160a01b0390600435828116810361000e5791602435908116810361000e579060443590565b5061096a3661092b565b91906001600160a01b038083169190338303610ab2575b61098a856137fd565b918382841603610aa15761099d8661388d565b90926109b16109ad338985613875565b1590565b610a6b575b8216958615610a59576109df936109d292610a4f575b506137a4565b80546000190190556137a4565b80546001019055600160e11b4260a01b841781176109fc86611ddf565b55811615610a1b575b50600080516020613c9b833981519152600080a4005b60018401610a2881611ddf565b5415610a35575b50610a05565b6000548114610a2f57610a4790611ddf565b553880610a2f565b60009055386109cc565b604051633a954ecd60e21b8152600490fd5b610a8a6109ad610a8333610a7e8b61378a565b6137be565b5460ff1690565b156109b657604051632ce44b5f60e11b8152600490fd5b60405162a1148160e81b8152600490fd5b610abb33613bbd565b610981565b503461000e57604036600319011261000e57600435600052600c602052604060002060405190610aef826111d7565b546001600160a01b03811680835260a09190911c602083015215610b5d575b6020810151610b419061271090610b30906001600160601b0316602435611e4c565b92519204916001600160a01b031690565b604080516001600160a01b039290921682526020820192909252f35b50610b66611def565b610b0e565b503461000e57600036600319011261000e57602061ffff600f5416604051908152f35b503461000e57600036600319011261000e57602060ff600f5460281c166040519015158152f35b503461000e5760008060031936011261075657610bd0611d87565b8080808047818115610bf3575b3390f115610be85780f35b610bf061223c565b80f35b506108fc610bdd565b503461000e57600036600319011261000e57610c16611d87565b60085460ff811615610c555760ff19166008557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020604051338152a1005b60405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606490fd5b503461000e57600036600319011261000e57610cab611d87565b600f805460ff60281b198116602891821c60ff161590911b60ff60281b16179055005b503461000e57600036600319011261000e5760206040516daaeb6d7670e522a718067333cd4e8152f35b50610d023661092b565b336001600160a01b038085169182141594929085610e88575b60405192610d28846111ff565b60009680888652610e7a575b610e6c575b610d42836137fd565b908083831603610aa157610d558461388d565b929093610d666109ad338a87613875565b610e42575b8816928315610a595785948a91610e3a575b5050610d88876137a4565b8054600019019055610d99886137a4565b80546001019055600160e11b4260a01b84178117610db686611ddf565b55811615610e07575b50600080516020613c9b8339815191528880a4833b610ddc578480f35b610de9936109ad93613916565b610df557388080808480f35b6040516368d2bf6b60e11b8152600490fd5b60018401610e1481611ddf565b5415610e21575b50610dbf565b89548114610e1b57610e3290611ddf565b553880610e1b565b558838610d7d565b610e556109ad610a8333610a7e8c61378a565b15610d6b57604051632ce44b5f60e11b8152600490fd5b610e7533613bbd565b610d39565b610e8333613bbd565b610d34565b610e9133613bbd565b610d1b565b503461000e57602036600319011261000e5761053a600435613aa8565b503461000e57600036600319011261000e57602060ff600854166040519015158152f35b503461000e57602036600319011261000e5760206001600160a01b03610efe6004356137fd565b16604051908152f35b503461000e57602036600319011261000e576106d16108cb60043561267a565b602090600319011261000e5760043560ff8116810361000e5790565b50610f4d36610f27565b610f55611f8a565b600260095414611026576002600955610f7560ff600e5492168092611e4c565b3410610ff157610fe790610fd6600f54610f9760ff8260181c16841115611e5f565b610fb6610faa6000196000540185611eb4565b61ffff83161015611ec1565b60ff610fca84610fc5336137d5565b611eb4565b9160201c161015611f0b565b610fe1323314611f4d565b336139bf565b61053a6001600955565b60405162461bcd60e51b815260206004820152600d60248201526c0a6cadcc840dadee4ca408aa89609b1b6044820152606490fd5b60405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b503461000e57602036600319011261000e576001600160a01b0361108d610461565b1680156110b4576000526005602052602060018060401b0360406000205416604051908152f35b6040516323d3ad8160e21b8152600490fd5b503461000e57600080600319360112610756576110e1611d87565b600a80546001600160a01b0319811690915581906001600160a01b0316600080516020613c7b8339815191528280a380f35b503461000e57600036600319011261000e57602060ff600f5460101c16604051908152f35b503461000e57600036600319011261000e57611152611d87565b61115a611f8a565b600160ff1960085416176008557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a1005b503461000e57602036600319011261000e57600435600052600d6020526106d16108cb6040600020612198565b50634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b038211176111f257604052565b6111fa6111c0565b604052565b602081019081106001600160401b038211176111f257604052565b606081019081106001600160401b038211176111f257604052565b6105e081019081106001600160401b038211176111f257604052565b601f909101601f19168101906001600160401b038211908210176111f257604052565b60405190611281826111d7565b565b6020906001600160401b0381116112a0575b601f01601f19160190565b6112a86111c0565b611295565b9291926112b982611283565b916112c76040519384611251565b82948184528183011161000e578281602093846000960137010152565b503461000e57604036600319011261000e576004356024356001600160401b03811161000e573660238201121561000e576113299036906024816004013591016112ad565b90600f5460ff8160281c1615611371578261135361136c9260ff61053a96519160101c1614611fce565b61136783600052600d602052604060002090565b6120bc565b613aa8565b60405162461bcd60e51b8152602060048201526015602482015274109d5c9b9cc8185c99481b9bdd08195b98589b1959605a1b6044820152606490fd5b503461000e57600036600319011261000e57600a546040516001600160a01b039091168152602090f35b503461000e57600036600319011261000e57602060ff600f5460181c16604051908152f35b503461000e5760008060031936011261075657604051816003546114208161202e565b8084529060019081811690811561072e5750600114611449576106d1846106c581880382611251565b60038352602094507fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b82841061148f57505050816106d1936106c592820101936106b5565b8054858501870152928501928101611473565b503461000e57602036600319011261000e576106d16108cb600435612401565b503461000e57602036600319011261000e576106d16108cb60043561249f565b503461000e57602036600319011261000e576106d16108cb6004356122c2565b8015150361000e57565b503461000e57604036600319011261000e57611526610461565b6024359061153382611502565b33600052600760205261154a8160406000206137be565b9115159160ff1981541660ff841617905560405191825260018060a01b0316907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b50608036600319011261000e576115a7610461565b6115af610477565b906044356064356001600160401b03811161000e573660238201121561000e576115e39036906024816004013591016112ad565b906001600160a01b03838116903382141580611727575b611719575b611608836137fd565b918082841603610aa15761161b8461388d565b93909261162c6109ad338a88613875565b6116ef575b8816928315610a595785946116e5575b5061164b876137a4565b805460001901905561165c886137a4565b80546001019055600160e11b4260a01b8417811761167986611ddf565b558116156116b1575b50600080516020613c9b833981519152600080a4833b61169e57005b6116ab936109ad93613916565b610df557005b600184016116be81611ddf565b54156116cb575b50611682565b60005481146116c5576116dd90611ddf565b5538806116c5565b6000905538611641565b6117026109ad610a8333610a7e8c61378a565b1561163157604051632ce44b5f60e11b8152600490fd5b61172233613bbd565b6115ff565b61173033613bbd565b6115fa565b503461000e57602036600319011261000e576020611759611754610461565b6137d5565b604051908152f35b503461000e57600036600319011261000e576020600e54604051908152f35b503461000e57602036600319011261000e576106d16108cb600435612718565b503461000e57602036600319011261000e576117ba612924565b6117c2612b90565b81526117cf6004356122c2565b60208201526117dc612cf3565b60408201526117ec600435612362565b60608201526117f9612d3d565b6080820152611809600435612401565b60a0820152611816612d87565b60c082015261182660043561249f565b60e0820152611833612dd1565b61010082015261184460043561253e565b610120820152611852612e1c565b6101408201526118636004356125dc565b610160820152611871612e67565b61018082015261188260043561267a565b6101a0820152611890612eb2565b6101c08201526118a1600435612718565b6101e08201526118af612efd565b6102008201526118bd612f20565b61022082015280519060208101519160408201516060830151608084015160a085015160c08601519160e08701519361010088015195604051998a9860208a01611906916127b6565b61190f916127b6565b611918916127b6565b611921916127b6565b61192a916127b6565b611933916127b6565b61193c916127b6565b611945916127b6565b61194e916127b6565b0391601f199283810182526119639082611251565b61012082015191610140810151906101608101516101808201516101a08301516101c0840151916101e08501519361020086015195610220015196604051998a9960208b016119b1916127b6565b6119ba916127b6565b6119c3916127b6565b6119cc916127b6565b6119d5916127b6565b6119de916127b6565b6119e7916127b6565b6119f0916127b6565b6119f9916127b6565b611a02916127b6565b038281018252611a129082611251565b611a1d600435613a69565b90611a27906136af565b6040516e7b226e616d65223a2022426167202360881b602082015291829190602f8301611a53916127b6565b7f222c20226465736372697074696f6e223a20226f4c6f6f742069732072616e6481527f6f6d697a656420616476656e747572657220676561722067656e65726174656460208201527f20616e642073746f726564206f6e20636861696e206163726f7373204554482060408201527f616e64204254432e2053746174732c20696d616765732c20616e64206f74686560608201527f722066756e6374696f6e616c6974792061726520696e74656e74696f6e616c6c60808201527f79206f6d697474656420666f72206f746865727320746f20696e74657270726560a08201527f742e222c2022696d616765223a2022646174613a696d6167652f7376672b786d60c0820152681b0ed8985cd94d8d0b60ba1b60e082015260e901611b78916127b6565b61227d60f01b8152600201038281018252611b939082611251565b611b9c906136af565b6040517f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000602082015291908290603d8201611bd6916127b6565b039081018252611be69082611251565b6040516106d1819282610664565b503461000e57602036600319011261000e576106d16108cb6004356125dc565b503461000e57604036600319011261000e57602060ff611c5a611c35610461565b611c3d610477565b6001600160a01b03909116600090815260078552604090206137be565b54166040519015158152f35b503461000e57602036600319011261000e576106d16108cb600435612362565b503461000e5761053a611c9836610f27565b611ca0611d87565b610fe160ff60005492169160001990830101808311611cc8575b61ffff600f54161015611ec1565b611cd0611e15565b611cba565b503461000e57602036600319011261000e57611cef610461565b611cf7611d87565b6001600160a01b03908116908115611d3357600a80546001600160a01b03198116841790915516600080516020613c7b833981519152600080a3005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b600a546001600160a01b03163303611d9b57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6000526004602052604060002090565b60405190611dfc826111d7565b600b546001600160a01b038116835260a01c6020830152565b50634e487b7160e01b600052601160045260246000fd5b600281901b91906001600160fe1b03811603611e4457565b611281611e15565b81810292918115918404141715611e4457565b15611e6657565b60405162461bcd60e51b81526020600482015260186024820152772634b6b4ba101898103832b9103a3930b739b0b1ba34b7b760411b6044820152606490fd5b9060028201809211611e4457565b91908201809211611e4457565b15611ec857565b60405162461bcd60e51b815260206004820152601b60248201527a43616e6e6f74206d696e742070617374206d617820737570706c7960281b6044820152606490fd5b15611f1257565b60405162461bcd60e51b8152602060048201526013602482015272131a5b5a5d080c8c081c195c881dd85b1b195d606a1b6044820152606490fd5b15611f5457565b60405162461bcd60e51b815260206004820152600e60248201526d41726520796f752068756d616e3f60901b6044820152606490fd5b60ff60085416611f9657565b60405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606490fd5b15611fd557565b60405162461bcd60e51b815260206004820152602b60248201527f4f6e6c7920746170726f6f74206164647265737365732063616e20726563656960448201526a7665206f7264696e616c7360a81b6064820152608490fd5b90600182811c9216801561205e575b602083101461204857565b634e487b7160e01b600052602260045260246000fd5b91607f169161203d565b90601f811161207657505050565b600091825260208220906020601f850160051c830194106120b2575b601f0160051c01915b8281106120a757505050565b81815560010161209b565b9092508290612092565b81519192916001600160401b03811161218b575b6120e4816120de845461202e565b84612068565b602080601f8311600114612120575081929394600092612115575b50508160011b916000199060031b1c1916179055565b0151905038806120ff565b90601f1983169561213685600052602060002090565b926000905b8882106121735750508360019596971061215a575b505050811b019055565b015160001960f88460031b161c19169055388080612150565b8060018596829496860151815501950193019061213b565b6121936111c0565b6120d0565b90604051918260008254926121ac8461202e565b90818452600194858116908160001461221957506001146121d6575b505061128192500383611251565b9093915060005260209081600020936000915b818310612201575050611281935082010138806121c8565b855488840185015294850194879450918301916121e9565b91505061128194506020925060ff191682840152151560051b82010138806121c8565b506040513d6000823e3d90fd5b1561225057565b60405162461bcd60e51b815260206004820152601960248201527822a921991c9c189d1034b73b30b634b2103932b1b2b4bb32b960391b6044820152606490fd5b60405190602082016001600160401b038111838210176122b5575b60405260008252565b6122bd6111c0565b6122ac565b90604051916122d0836111d7565b600b83526020926a27a627a7aa2ba2a0a827a760a91b848201526010549160018060401b038311612355575b6040519261230f868260051b0185611251565b808452858401601060005286600020966000915b838310612339575050505061067593945061299c565b60018281926123478c612198565b815201990192019197612323565b61235d6111c0565b6122fc565b9060405191612370836111d7565b600a83526020926913d313d3d510d21154d560b21b848201526011549160018060401b0383116123f4575b604051926123ae868260051b0185611251565b808452858401601160005286600020966000915b8383106123d8575050505061067593945061299c565b60018281926123e68c612198565b8152019901920191976123c2565b6123fc6111c0565b61239b565b906040519161240f836111d7565b600983526020926813d313d3d51211505160ba1b848201526012549160018060401b038311612492575b6040519261244c868260051b0185611251565b808452858401601260005286600020966000915b838310612476575050505061067593945061299c565b60018281926124848c612198565b815201990192019197612460565b61249a6111c0565b612439565b90604051916124ad836111d7565b600a83526020926913d313d3d515d05254d560b21b848201526013549160018060401b038311612531575b604051926124eb868260051b0185611251565b808452858401601360005286600020966000915b838310612515575050505061067593945061299c565b60018281926125238c612198565b8152019901920191976124ff565b6125396111c0565b6124d8565b906040519161254c836111d7565b600983526020926813d313d3d51193d3d560ba1b848201526014549160018060401b0383116125cf575b60405192612589868260051b0185611251565b808452858401601460005286600020966000915b8383106125b3575050505061067593945061299c565b60018281926125c18c612198565b81520199019201919761259d565b6125d76111c0565b612576565b90604051916125ea836111d7565b600983526020926813d313d3d51210539160ba1b848201526015549160018060401b03831161266d575b60405192612627868260051b0185611251565b808452858401601560005286600020966000915b838310612651575050505061067593945061299c565b600182819261265f8c612198565b81520199019201919761263b565b6126756111c0565b612614565b9060405191612688836111d7565b60098352602092684f4c4f4f544e45434b60b81b848201526016549160018060401b03831161270b575b604051926126c5868260051b0185611251565b808452858401601660005286600020966000915b8383106126ef575050505061067593945061299c565b60018281926126fd8c612198565b8152019901920191976126d9565b6127136111c0565b6126b2565b9060405191612726836111d7565b60098352602092684f4c4f4f5452494e4760b81b848201526017549160018060401b0383116127a9575b60405192612763868260051b0185611251565b808452858401601760005286600020966000915b83831061278d575050505061067593945061299c565b600182819261279b8c612198565b815201990192019197612777565b6127b16111c0565b612750565b906127c96020928281519485920161061c565b0190565b81156127d7570690565b634e487b7160e01b600052601260045260246000fd5b50634e487b7160e01b600052603260045260246000fd5b6020918151811015612819575b60051b010190565b6128216127ed565b612811565b601854811015612842575b601860005260206000200190600090565b61284a6127ed565b612831565b60195481101561286b575b601960005260206000200190600090565b6128736127ed565b61285a565b601a54811015612894575b601a60005260206000200190600090565b61289c6127ed565b612883565b6000929181546128b08161202e565b9260019180831690811561290957506001146128cd575b50505050565b90919293945060005260209081600020906000915b8583106128f857505050500190388080806128c7565b8054858401529183019181016128e2565b60ff19168452505050811515909102019150388080806128c7565b604051906102408083016001600160401b03811184821017612962575b6040528260005b82811061295457505050565b606082820152602001612948565b61296a6111c0565b612941565b60409081519161297e836111d7565b8260005b82811061298e57505050565b606082820152602001612982565b6129e16129c2926129c86129b26129f394613a69565b60405195869360208501906127b6565b906127b6565b03926129dc601f1994858101835282611251565b612b60565b926129ed8151856127cd565b90612804565b51916015810690600e8211612b15575b6013821015612a13575b50505090565b612a56612a40612a51612a289694959661296f565b93612a46612a40612a3b601954846127cd565b61284f565b50612198565b8552601a54906127cd565b612878565b6020820181815293601303612ac9575091612ab5612a9a94926129c2612aa7612ac1965194516129c2604051998a976129c260208a01600190601160f91b81520190565b600160fd1b815260010190565b61011160f51b815260020190565b03908101835282611251565b388080612a0d565b90612b109350612b01612a9a95936129c2612aa7612ab59451956129c26040519a8b986129c260208b01600190601160f91b81520190565b62202b3160e81b815260030190565b612ac1565b92612b5a612a9a91612b4e612b34612b2f601854896127cd565b612826565b50612b4860405195869460208601906127b6565b906128a1565b03848101835282611251565b92612a03565b604051612b8a60208281612b7d818301968781519384920161061c565b8101038084520182611251565b51902090565b6040519061012082016001600160401b03811183821017612ce6575b60405260fd82527f7420783d2231302220793d2232302220636c6173733d2262617365223e000000610100837f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323060208201527f30302f73766722207072657365727665417370656374526174696f3d22784d6960408201527f6e594d696e206d656574222076696577426f783d22302030203335302033353060608201527f223e3c7374796c653e2e62617365207b2066696c6c3a2077686974653b20666f60808201527f6e742d66616d696c793a2073657269663b20666f6e742d73697a653a2031347060a08201527f783b207d3c2f7374796c653e3c726563742077696474683d223130302522206860c08201527f65696768743d2231303025222066696c6c3d22626c61636b22202f3e3c74657860e08201520152565b612cee6111c0565b612bac565b60405190612d008261121a565b602882527f3c2f746578743e3c7465787420783d2231302220793d2234302220636c6173736020830152671e913130b9b2911f60c11b6040830152565b60405190612d4a8261121a565b602882527f3c2f746578743e3c7465787420783d2231302220793d2236302220636c6173736020830152671e913130b9b2911f60c11b6040830152565b60405190612d948261121a565b602882527f3c2f746578743e3c7465787420783d2231302220793d2238302220636c6173736020830152671e913130b9b2911f60c11b6040830152565b60405190612dde8261121a565b602982527f3c2f746578743e3c7465787420783d2231302220793d223130302220636c6173602083015268399e913130b9b2911f60b91b6040830152565b60405190612e298261121a565b602982527f3c2f746578743e3c7465787420783d2231302220793d223132302220636c6173602083015268399e913130b9b2911f60b91b6040830152565b60405190612e748261121a565b602982527f3c2f746578743e3c7465787420783d2231302220793d223134302220636c6173602083015268399e913130b9b2911f60b91b6040830152565b60405190612ebf8261121a565b602982527f3c2f746578743e3c7465787420783d2231302220793d223136302220636c6173602083015268399e913130b9b2911f60b91b6040830152565b60405190612f0a826111d7565b60078252661e17ba32bc3a1f60c91b6020830152565b60405190612f2d82611235565b6105ac82527f3c656c6c69707365207374796c653d2266696c6c3a233533353335333b66696c60208301527f6c2d6f7061636974793a2e3832393031353535222063783d223332302e37343560408301527f3537222063793d223331392e3239393638222072783d2231382e35353535323960608301527f222072793d2231392e35313934353122202f3e3c706174682066696c6c3d222360808301527f666666666666222066696c6c2d72756c653d226e6f6e7a65726f2220643d226d60a08301527f203332362e34393332392c3331362e35303931312063202d302e36373634322c60c08301527f322e3239383332202d342e383032322c312e3132303231202d362e313431343260e08301527f2c302e3833383932206c20312e31383333392c2d342e3032313635206320312e6101008301527f33313837362c302e323735393220352e36333434362c302e383034313620342e6101208301527f39333735382c332e3138323733207a206d202d302e373337332c362e343938366101408301527f362063202d302e37333034382c322e3530343333202d352e36393438352c312e6101608301527f3134393136202d372e33303438342c302e3830393534206c20312e33303531336101808301527f2c2d342e3434313039206320312e36303939382c302e333434353820362e37366101a08301527f33382c312e303136373820352e39393937312c332e3633313535207a206d20356101c08301527f2e34313039342c2d362e3436333931206320302e34323631312c2d322e3434376101e08301527f3635202d312e37363533342c2d332e37363331202d342e37333435312c2d342e6102008301527f3633363334206c20302e39373339382c2d332e3331353131202d322e343030386102208301527f362c2d302e35303535202d302e39343637312c332e32323930362063202d302e6102408301527f36323233372c2d302e3133313936202d312e32363437312c2d302e32353835346102608301527f202d312e39303037312c2d302e3337393333206c20302e393436372c2d332e326102808301527f36333339202d322e33373430372c2d302e35303535202d302e39373339392c336102a08301527f2e33313531202d312e35313530312c2d302e3238373038202d332e32383033376102c08301527f2c2d302e3639353337202d302e36323931392c322e3135343738206320302c306102e08301527f20312e37353835322c302e333434353720312e37323439322c302e33363737356103008301527f20302e36373135362c302e3036393120312e31363134372c302e3537353831206103208301527f312e31303933362c312e3134393135206c202d312e31303933362c332e3737346103408301527f3639206320302e303833332c302e3031363120302e31363530392c302e3033386103608301527f3920302e323433352c302e30363931206c202d302e32353033312c2d302e30356103808301527f3735202d312e35343931322c352e32393135382063202d302e31343531332c306103a08301527f2e3338373139202d302e36333231312c302e3630303233202d312e30383834326103c08301527f2c302e34373639362068202d342e39652d34206320302c302e30323836202d316103e08301527f2e37333137332c2d302e3336313935202d312e37333137332c2d302e333631396104008301527f35206c202d312e31373730352c322e323938333120332e30393039312c302e366104208301527f3439343620312e36393038332c302e3337333533202d302e39383037392c332e6104408301527f333439343420322e33373430372c302e3530353520302e39373339382c2d332e6104608301527f33313531206320302e363339392c302e313439333320312e32363935382c302e6104808301527f323837303820312e38383730382c302e3431333636206c202d302e39363033346104a08301527f2c332e333236363920322e33373430382c302e3439393720302e39383037392c6104c08301527f2d332e3334333634206320342e30353830382c302e363439383720372e3039346104e08301527f39352c302e3339303520382e33383031312c2d322e373233313620312e3033346105008301527f38352c2d322e3530353134202d302e303534312c2d332e3934373138202d322e6105208301527f31383436332c2d342e383839353120312e35353534342c2d302e3330343435206105408301527f322e37303537312c2d312e313439313520332e30333638362c2d322e393634376105608301527f33207a22207374796c653d227374726f6b652d77696474683a2e3034343838336105808301527f323b66696c6c3a236666663b66696c6c2d6f7061636974793a2e3735333532316105a08301526b189a1110179f1e17b9bb339f60a11b6105c0830152565b6040519061362b8261121a565b604082527f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f6040837f4142434445464748494a4b4c4d4e4f505152535455565758595a61626364656660208201520152565b9061368782611283565b6136946040519182611251565b82815280926136a5601f1991611283565b0190602036910137565b805115613781576136be61361e565b6136e26136dd6136d86136d18551611ea6565b6003900490565b611e2c565b61367d565b9160208301918182518301915b82821061372f5750505060039051068060011461371c57600214613711575090565b603d90600019015390565b50603d9081600019820153600119015390565b9091936004906003809401938451600190603f9082828260121c16880101518553828282600c1c16880101518386015382828260061c16880101516002860153168501015190820153019391906136ef565b50610675612291565b6001600160a01b0316600090815260076020526040902090565b6001600160a01b0316600090815260056020526040902090565b9060018060a01b0316600052602052604060002090565b6001600160a01b03166000908152600560205260409081902054901c6001600160401b031690565b600081806001111561381c575b604051636f96cda160e11b8152600490fd5b815481101561380a5781526004906020918083526040928383205494600160e01b86161561384c5750505061380a565b93929190935b851561386057505050505090565b60001901808352818552838320549550613852565b6001600160a01b039182169190921690811491141790565b6000526006602052604060002090815490565b9081602091031261000e5751610675816103b4565b6001600160a01b0391821681529116602082015260408101919091526080606082018190526106759291019061063f565b3d15613911573d906138f782611283565b916139056040519384611251565b82523d6000602084013e565b606090565b9260209161393f936000604051809681958294630a85bd0160e11b9a8b855233600486016138b5565b03926001600160a01b03165af16000918161398f575b50613981576139626138e6565b8051908161397c576040516368d2bf6b60e11b8152600490fd5b602001fd5b6001600160e01b0319161490565b6139b191925060203d81116139b8575b6139a98183611251565b8101906138a0565b9038613955565b503d61399f565b906000908154928115613a57576139d5816137a4565b80546001600160401b0184020190556001600160a01b0316906001904260a01b81831460e11b178317613a0786611ddf565b5584019381600080516020613c9b83398151915291808587858180a4015b858103613a485750505015613a375755565b604051622e076360e81b8152600490fd5b8083918587858180a401613a25565b60405163b562e8dd60e01b8152600490fd5b9060405160a08101604052608081019260008452925b6000190192600a906030828206018553049283613a7f57809350608091030191601f1901918252565b613ab1816137fd565b6001600160a01b038116613ac48361388d565b9290613ad46109ad338587613875565b613b7e575b600093613b75575b50613aeb826137a4565b80546001600160801b030190554260a01b8217600360e01b17613b0d85611ddf565b55600160e11b811615613b42575b50600080516020613c9b8339815191528280a4611281613b3d60015460010190565b600155565b60018401613b4f81611ddf565b5415613b5c575b50613b1b565b83548114613b5657613b6d90611ddf565b553880613b56565b83905538613ae1565b613b916109ad610a8333610a7e8761378a565b15613ad957604051632ce44b5f60e11b8152600490fd5b9081602091031261000e575161067581611502565b6daaeb6d7670e522a718067333cd4e803b613bd6575050565b604051633185c44d60e21b81523060048201526001600160a01b038316602482015290602090829060449082905afa908115613c6d575b600091613c3f575b5015613c1e5750565b604051633b79c77360e21b8152908190613c3b9060048301610759565b0390fd5b613c60915060203d8111613c66575b613c588183611251565b810190613ba8565b38613c15565b503d613c4e565b613c7561223c565b613c0d56fe8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220818afe312e7aa7e050d65348cf9fc308dca300fd8a93cd4c319f5137c2a5238b64736f6c63430008110033405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acebb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec344455f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec47531ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c6866de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a090057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63ec624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c15ce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae672d833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b5124289
Deployed Bytecode
0x60806040526004361015610013575b600080fd5b60003560e01c806301ffc9a7146103ab57806304634d8d146103a257806306421c2f1461039957806306fdde0314610390578063081812fc14610387578063095ea7b31461037e5780630e99990d146103755780630f2cdd6c1461036c57806318160ddd1461036357806323b872dd1461035a5780632a55205a1461035157806332cb6b0c146103485780633aef973d1461033f5780633ccfd60b146103365780633f4ba83a1461032d5780633fcb0cc81461032457806341f434341461031b57806342842e0e1461031257806342966c68146103095780635c975abb146103005780636352211e146102f757806367209aa8146102ee5780636ecd2306146102e557806370a08231146102dc578063715018a6146102d35780637bde4401146102ca5780638456cb59146102c157806386cdc0cf146102b857806386e1af25146102af5780638da5cb5b146102a65780638ecad7211461029d57806395d89b41146102945780639720c9691461028b5780639bdc1b69146102825780639e41b73f14610279578063a22cb46514610270578063b88d4fde14610267578063bc8e9cf91461025e578063c002d23d14610255578063c08a5dd51461024c578063c87b56dd14610243578063d47f269e1461023a578063e985e9c514610231578063ef68075a14610228578063f11ef5cf1461021f5763f2fde38b1461021757600080fd5b61000e611cd5565b5061000e611c86565b5061000e611c66565b5061000e611c14565b5061000e611bf4565b5061000e6117a0565b5061000e611780565b5061000e611761565b5061000e611735565b5061000e611592565b5061000e61150c565b5061000e6114e2565b5061000e6114c2565b5061000e6114a2565b5061000e6113fd565b5061000e6113d8565b5061000e6113ae565b5061000e6112e4565b5061000e611193565b5061000e611138565b5061000e611113565b5061000e6110c6565b5061000e61106b565b5061000e610f43565b5061000e610f07565b5061000e610ed7565b5061000e610eb3565b5061000e610e96565b5061000e610cf8565b5061000e610cce565b5061000e610c91565b5061000e610bfc565b5061000e610bb5565b5061000e610b8e565b5061000e610b6b565b5061000e610ac0565b5061000e610960565b5061000e610903565b5061000e6108df565b5061000e6108ab565b5061000e6107f5565b5061000e61076c565b5061000e610678565b5061000e610594565b5061000e61048d565b5061000e6103c6565b6001600160e01b031981160361000e57565b503461000e57602036600319011261000e5760206004356103e6816103b4565b63ffffffff60e01b166301ffc9a760e01b81149081908215610450575b821561043f575b821561041d575b50506040519015158152f35b63152a902d60e11b1491508115610437575b503880610411565b90503861042f565b635b5e139f60e01b8114925061040a565b6380ac58cd60e01b81149250610403565b600435906001600160a01b038216820361000e57565b602435906001600160a01b038216820361000e57565b503461000e57604036600319011261000e576104a7610461565b602435906001600160601b03821680830361000e57612710906104c8611d87565b1161053c5761053a91610513906104e96001600160a01b0384161515612249565b6105036104f4611274565b6001600160a01b039094168452565b6001600160601b03166020830152565b805160209091015160a01b6001600160a01b0319166001600160a01b039190911617600b55565b005b60405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608490fd5b503461000e57602036600319011261000e5760043561ffff811680910361000e576105bd611d87565b611e6381116105d75761ffff19600f541617600f55600080f35b60405162461bcd60e51b815260206004820152601d60248201527f496e6372656173696e6720737570706c79206e6f7420616c6c6f7765640000006044820152606490fd5b60005b83811061062f5750506000910152565b818101518382015260200161061f565b906020916106588151809281855285808601910161061c565b601f01601f1916010190565b90602061067592818152019061063f565b90565b503461000e57600080600319360112610756576040518160025461069b8161202e565b8084529060019081811690811561072e57506001146106d5575b6106d1846106c581880382611251565b60405191829182610664565b0390f35b60028352602094507f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace5b82841061071b57505050816106d1936106c592820101936106b5565b80548585018701529285019281016106ff565b6106d196506106c59450602092508593915060ff191682840152151560051b820101936106b5565b80fd5b6001600160a01b03909116815260200190565b503461000e57602036600319011261000e576004358060011115806107ea575b806107ce575b156107bc5760005260066020526106d160018060a01b036040600020541660405191829182610759565b6040516333d1c03960e21b8152600490fd5b50600081815260046020526040902054600160e01b1615610792565b50600054811061078c565b50604036600319011261000e5761080a610461565b6024356001600160a01b038061081f836137fd565b169081330361087a575b600083815260066020526040812080546001600160a01b0319166001600160a01b0387161790559316907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b81600052600760205260ff6108933360406000206137be565b5416610829576040516367d9dca160e11b8152600490fd5b503461000e57602036600319011261000e576106d16108cb60043561253e565b60405191829160208352602083019061063f565b503461000e57600036600319011261000e576020600f5460ff60405191831c168152f35b503461000e57600036600319011261000e576000546001546040519103600019018152602090f35b606090600319011261000e576001600160a01b0390600435828116810361000e5791602435908116810361000e579060443590565b5061096a3661092b565b91906001600160a01b038083169190338303610ab2575b61098a856137fd565b918382841603610aa15761099d8661388d565b90926109b16109ad338985613875565b1590565b610a6b575b8216958615610a59576109df936109d292610a4f575b506137a4565b80546000190190556137a4565b80546001019055600160e11b4260a01b841781176109fc86611ddf565b55811615610a1b575b50600080516020613c9b833981519152600080a4005b60018401610a2881611ddf565b5415610a35575b50610a05565b6000548114610a2f57610a4790611ddf565b553880610a2f565b60009055386109cc565b604051633a954ecd60e21b8152600490fd5b610a8a6109ad610a8333610a7e8b61378a565b6137be565b5460ff1690565b156109b657604051632ce44b5f60e11b8152600490fd5b60405162a1148160e81b8152600490fd5b610abb33613bbd565b610981565b503461000e57604036600319011261000e57600435600052600c602052604060002060405190610aef826111d7565b546001600160a01b03811680835260a09190911c602083015215610b5d575b6020810151610b419061271090610b30906001600160601b0316602435611e4c565b92519204916001600160a01b031690565b604080516001600160a01b039290921682526020820192909252f35b50610b66611def565b610b0e565b503461000e57600036600319011261000e57602061ffff600f5416604051908152f35b503461000e57600036600319011261000e57602060ff600f5460281c166040519015158152f35b503461000e5760008060031936011261075657610bd0611d87565b8080808047818115610bf3575b3390f115610be85780f35b610bf061223c565b80f35b506108fc610bdd565b503461000e57600036600319011261000e57610c16611d87565b60085460ff811615610c555760ff19166008557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020604051338152a1005b60405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606490fd5b503461000e57600036600319011261000e57610cab611d87565b600f805460ff60281b198116602891821c60ff161590911b60ff60281b16179055005b503461000e57600036600319011261000e5760206040516daaeb6d7670e522a718067333cd4e8152f35b50610d023661092b565b336001600160a01b038085169182141594929085610e88575b60405192610d28846111ff565b60009680888652610e7a575b610e6c575b610d42836137fd565b908083831603610aa157610d558461388d565b929093610d666109ad338a87613875565b610e42575b8816928315610a595785948a91610e3a575b5050610d88876137a4565b8054600019019055610d99886137a4565b80546001019055600160e11b4260a01b84178117610db686611ddf565b55811615610e07575b50600080516020613c9b8339815191528880a4833b610ddc578480f35b610de9936109ad93613916565b610df557388080808480f35b6040516368d2bf6b60e11b8152600490fd5b60018401610e1481611ddf565b5415610e21575b50610dbf565b89548114610e1b57610e3290611ddf565b553880610e1b565b558838610d7d565b610e556109ad610a8333610a7e8c61378a565b15610d6b57604051632ce44b5f60e11b8152600490fd5b610e7533613bbd565b610d39565b610e8333613bbd565b610d34565b610e9133613bbd565b610d1b565b503461000e57602036600319011261000e5761053a600435613aa8565b503461000e57600036600319011261000e57602060ff600854166040519015158152f35b503461000e57602036600319011261000e5760206001600160a01b03610efe6004356137fd565b16604051908152f35b503461000e57602036600319011261000e576106d16108cb60043561267a565b602090600319011261000e5760043560ff8116810361000e5790565b50610f4d36610f27565b610f55611f8a565b600260095414611026576002600955610f7560ff600e5492168092611e4c565b3410610ff157610fe790610fd6600f54610f9760ff8260181c16841115611e5f565b610fb6610faa6000196000540185611eb4565b61ffff83161015611ec1565b60ff610fca84610fc5336137d5565b611eb4565b9160201c161015611f0b565b610fe1323314611f4d565b336139bf565b61053a6001600955565b60405162461bcd60e51b815260206004820152600d60248201526c0a6cadcc840dadee4ca408aa89609b1b6044820152606490fd5b60405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b503461000e57602036600319011261000e576001600160a01b0361108d610461565b1680156110b4576000526005602052602060018060401b0360406000205416604051908152f35b6040516323d3ad8160e21b8152600490fd5b503461000e57600080600319360112610756576110e1611d87565b600a80546001600160a01b0319811690915581906001600160a01b0316600080516020613c7b8339815191528280a380f35b503461000e57600036600319011261000e57602060ff600f5460101c16604051908152f35b503461000e57600036600319011261000e57611152611d87565b61115a611f8a565b600160ff1960085416176008557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a1005b503461000e57602036600319011261000e57600435600052600d6020526106d16108cb6040600020612198565b50634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b038211176111f257604052565b6111fa6111c0565b604052565b602081019081106001600160401b038211176111f257604052565b606081019081106001600160401b038211176111f257604052565b6105e081019081106001600160401b038211176111f257604052565b601f909101601f19168101906001600160401b038211908210176111f257604052565b60405190611281826111d7565b565b6020906001600160401b0381116112a0575b601f01601f19160190565b6112a86111c0565b611295565b9291926112b982611283565b916112c76040519384611251565b82948184528183011161000e578281602093846000960137010152565b503461000e57604036600319011261000e576004356024356001600160401b03811161000e573660238201121561000e576113299036906024816004013591016112ad565b90600f5460ff8160281c1615611371578261135361136c9260ff61053a96519160101c1614611fce565b61136783600052600d602052604060002090565b6120bc565b613aa8565b60405162461bcd60e51b8152602060048201526015602482015274109d5c9b9cc8185c99481b9bdd08195b98589b1959605a1b6044820152606490fd5b503461000e57600036600319011261000e57600a546040516001600160a01b039091168152602090f35b503461000e57600036600319011261000e57602060ff600f5460181c16604051908152f35b503461000e5760008060031936011261075657604051816003546114208161202e565b8084529060019081811690811561072e5750600114611449576106d1846106c581880382611251565b60038352602094507fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b82841061148f57505050816106d1936106c592820101936106b5565b8054858501870152928501928101611473565b503461000e57602036600319011261000e576106d16108cb600435612401565b503461000e57602036600319011261000e576106d16108cb60043561249f565b503461000e57602036600319011261000e576106d16108cb6004356122c2565b8015150361000e57565b503461000e57604036600319011261000e57611526610461565b6024359061153382611502565b33600052600760205261154a8160406000206137be565b9115159160ff1981541660ff841617905560405191825260018060a01b0316907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b50608036600319011261000e576115a7610461565b6115af610477565b906044356064356001600160401b03811161000e573660238201121561000e576115e39036906024816004013591016112ad565b906001600160a01b03838116903382141580611727575b611719575b611608836137fd565b918082841603610aa15761161b8461388d565b93909261162c6109ad338a88613875565b6116ef575b8816928315610a595785946116e5575b5061164b876137a4565b805460001901905561165c886137a4565b80546001019055600160e11b4260a01b8417811761167986611ddf565b558116156116b1575b50600080516020613c9b833981519152600080a4833b61169e57005b6116ab936109ad93613916565b610df557005b600184016116be81611ddf565b54156116cb575b50611682565b60005481146116c5576116dd90611ddf565b5538806116c5565b6000905538611641565b6117026109ad610a8333610a7e8c61378a565b1561163157604051632ce44b5f60e11b8152600490fd5b61172233613bbd565b6115ff565b61173033613bbd565b6115fa565b503461000e57602036600319011261000e576020611759611754610461565b6137d5565b604051908152f35b503461000e57600036600319011261000e576020600e54604051908152f35b503461000e57602036600319011261000e576106d16108cb600435612718565b503461000e57602036600319011261000e576117ba612924565b6117c2612b90565b81526117cf6004356122c2565b60208201526117dc612cf3565b60408201526117ec600435612362565b60608201526117f9612d3d565b6080820152611809600435612401565b60a0820152611816612d87565b60c082015261182660043561249f565b60e0820152611833612dd1565b61010082015261184460043561253e565b610120820152611852612e1c565b6101408201526118636004356125dc565b610160820152611871612e67565b61018082015261188260043561267a565b6101a0820152611890612eb2565b6101c08201526118a1600435612718565b6101e08201526118af612efd565b6102008201526118bd612f20565b61022082015280519060208101519160408201516060830151608084015160a085015160c08601519160e08701519361010088015195604051998a9860208a01611906916127b6565b61190f916127b6565b611918916127b6565b611921916127b6565b61192a916127b6565b611933916127b6565b61193c916127b6565b611945916127b6565b61194e916127b6565b0391601f199283810182526119639082611251565b61012082015191610140810151906101608101516101808201516101a08301516101c0840151916101e08501519361020086015195610220015196604051998a9960208b016119b1916127b6565b6119ba916127b6565b6119c3916127b6565b6119cc916127b6565b6119d5916127b6565b6119de916127b6565b6119e7916127b6565b6119f0916127b6565b6119f9916127b6565b611a02916127b6565b038281018252611a129082611251565b611a1d600435613a69565b90611a27906136af565b6040516e7b226e616d65223a2022426167202360881b602082015291829190602f8301611a53916127b6565b7f222c20226465736372697074696f6e223a20226f4c6f6f742069732072616e6481527f6f6d697a656420616476656e747572657220676561722067656e65726174656460208201527f20616e642073746f726564206f6e20636861696e206163726f7373204554482060408201527f616e64204254432e2053746174732c20696d616765732c20616e64206f74686560608201527f722066756e6374696f6e616c6974792061726520696e74656e74696f6e616c6c60808201527f79206f6d697474656420666f72206f746865727320746f20696e74657270726560a08201527f742e222c2022696d616765223a2022646174613a696d6167652f7376672b786d60c0820152681b0ed8985cd94d8d0b60ba1b60e082015260e901611b78916127b6565b61227d60f01b8152600201038281018252611b939082611251565b611b9c906136af565b6040517f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000602082015291908290603d8201611bd6916127b6565b039081018252611be69082611251565b6040516106d1819282610664565b503461000e57602036600319011261000e576106d16108cb6004356125dc565b503461000e57604036600319011261000e57602060ff611c5a611c35610461565b611c3d610477565b6001600160a01b03909116600090815260078552604090206137be565b54166040519015158152f35b503461000e57602036600319011261000e576106d16108cb600435612362565b503461000e5761053a611c9836610f27565b611ca0611d87565b610fe160ff60005492169160001990830101808311611cc8575b61ffff600f54161015611ec1565b611cd0611e15565b611cba565b503461000e57602036600319011261000e57611cef610461565b611cf7611d87565b6001600160a01b03908116908115611d3357600a80546001600160a01b03198116841790915516600080516020613c7b833981519152600080a3005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b600a546001600160a01b03163303611d9b57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6000526004602052604060002090565b60405190611dfc826111d7565b600b546001600160a01b038116835260a01c6020830152565b50634e487b7160e01b600052601160045260246000fd5b600281901b91906001600160fe1b03811603611e4457565b611281611e15565b81810292918115918404141715611e4457565b15611e6657565b60405162461bcd60e51b81526020600482015260186024820152772634b6b4ba101898103832b9103a3930b739b0b1ba34b7b760411b6044820152606490fd5b9060028201809211611e4457565b91908201809211611e4457565b15611ec857565b60405162461bcd60e51b815260206004820152601b60248201527a43616e6e6f74206d696e742070617374206d617820737570706c7960281b6044820152606490fd5b15611f1257565b60405162461bcd60e51b8152602060048201526013602482015272131a5b5a5d080c8c081c195c881dd85b1b195d606a1b6044820152606490fd5b15611f5457565b60405162461bcd60e51b815260206004820152600e60248201526d41726520796f752068756d616e3f60901b6044820152606490fd5b60ff60085416611f9657565b60405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606490fd5b15611fd557565b60405162461bcd60e51b815260206004820152602b60248201527f4f6e6c7920746170726f6f74206164647265737365732063616e20726563656960448201526a7665206f7264696e616c7360a81b6064820152608490fd5b90600182811c9216801561205e575b602083101461204857565b634e487b7160e01b600052602260045260246000fd5b91607f169161203d565b90601f811161207657505050565b600091825260208220906020601f850160051c830194106120b2575b601f0160051c01915b8281106120a757505050565b81815560010161209b565b9092508290612092565b81519192916001600160401b03811161218b575b6120e4816120de845461202e565b84612068565b602080601f8311600114612120575081929394600092612115575b50508160011b916000199060031b1c1916179055565b0151905038806120ff565b90601f1983169561213685600052602060002090565b926000905b8882106121735750508360019596971061215a575b505050811b019055565b015160001960f88460031b161c19169055388080612150565b8060018596829496860151815501950193019061213b565b6121936111c0565b6120d0565b90604051918260008254926121ac8461202e565b90818452600194858116908160001461221957506001146121d6575b505061128192500383611251565b9093915060005260209081600020936000915b818310612201575050611281935082010138806121c8565b855488840185015294850194879450918301916121e9565b91505061128194506020925060ff191682840152151560051b82010138806121c8565b506040513d6000823e3d90fd5b1561225057565b60405162461bcd60e51b815260206004820152601960248201527822a921991c9c189d1034b73b30b634b2103932b1b2b4bb32b960391b6044820152606490fd5b60405190602082016001600160401b038111838210176122b5575b60405260008252565b6122bd6111c0565b6122ac565b90604051916122d0836111d7565b600b83526020926a27a627a7aa2ba2a0a827a760a91b848201526010549160018060401b038311612355575b6040519261230f868260051b0185611251565b808452858401601060005286600020966000915b838310612339575050505061067593945061299c565b60018281926123478c612198565b815201990192019197612323565b61235d6111c0565b6122fc565b9060405191612370836111d7565b600a83526020926913d313d3d510d21154d560b21b848201526011549160018060401b0383116123f4575b604051926123ae868260051b0185611251565b808452858401601160005286600020966000915b8383106123d8575050505061067593945061299c565b60018281926123e68c612198565b8152019901920191976123c2565b6123fc6111c0565b61239b565b906040519161240f836111d7565b600983526020926813d313d3d51211505160ba1b848201526012549160018060401b038311612492575b6040519261244c868260051b0185611251565b808452858401601260005286600020966000915b838310612476575050505061067593945061299c565b60018281926124848c612198565b815201990192019197612460565b61249a6111c0565b612439565b90604051916124ad836111d7565b600a83526020926913d313d3d515d05254d560b21b848201526013549160018060401b038311612531575b604051926124eb868260051b0185611251565b808452858401601360005286600020966000915b838310612515575050505061067593945061299c565b60018281926125238c612198565b8152019901920191976124ff565b6125396111c0565b6124d8565b906040519161254c836111d7565b600983526020926813d313d3d51193d3d560ba1b848201526014549160018060401b0383116125cf575b60405192612589868260051b0185611251565b808452858401601460005286600020966000915b8383106125b3575050505061067593945061299c565b60018281926125c18c612198565b81520199019201919761259d565b6125d76111c0565b612576565b90604051916125ea836111d7565b600983526020926813d313d3d51210539160ba1b848201526015549160018060401b03831161266d575b60405192612627868260051b0185611251565b808452858401601560005286600020966000915b838310612651575050505061067593945061299c565b600182819261265f8c612198565b81520199019201919761263b565b6126756111c0565b612614565b9060405191612688836111d7565b60098352602092684f4c4f4f544e45434b60b81b848201526016549160018060401b03831161270b575b604051926126c5868260051b0185611251565b808452858401601660005286600020966000915b8383106126ef575050505061067593945061299c565b60018281926126fd8c612198565b8152019901920191976126d9565b6127136111c0565b6126b2565b9060405191612726836111d7565b60098352602092684f4c4f4f5452494e4760b81b848201526017549160018060401b0383116127a9575b60405192612763868260051b0185611251565b808452858401601760005286600020966000915b83831061278d575050505061067593945061299c565b600182819261279b8c612198565b815201990192019197612777565b6127b16111c0565b612750565b906127c96020928281519485920161061c565b0190565b81156127d7570690565b634e487b7160e01b600052601260045260246000fd5b50634e487b7160e01b600052603260045260246000fd5b6020918151811015612819575b60051b010190565b6128216127ed565b612811565b601854811015612842575b601860005260206000200190600090565b61284a6127ed565b612831565b60195481101561286b575b601960005260206000200190600090565b6128736127ed565b61285a565b601a54811015612894575b601a60005260206000200190600090565b61289c6127ed565b612883565b6000929181546128b08161202e565b9260019180831690811561290957506001146128cd575b50505050565b90919293945060005260209081600020906000915b8583106128f857505050500190388080806128c7565b8054858401529183019181016128e2565b60ff19168452505050811515909102019150388080806128c7565b604051906102408083016001600160401b03811184821017612962575b6040528260005b82811061295457505050565b606082820152602001612948565b61296a6111c0565b612941565b60409081519161297e836111d7565b8260005b82811061298e57505050565b606082820152602001612982565b6129e16129c2926129c86129b26129f394613a69565b60405195869360208501906127b6565b906127b6565b03926129dc601f1994858101835282611251565b612b60565b926129ed8151856127cd565b90612804565b51916015810690600e8211612b15575b6013821015612a13575b50505090565b612a56612a40612a51612a289694959661296f565b93612a46612a40612a3b601954846127cd565b61284f565b50612198565b8552601a54906127cd565b612878565b6020820181815293601303612ac9575091612ab5612a9a94926129c2612aa7612ac1965194516129c2604051998a976129c260208a01600190601160f91b81520190565b600160fd1b815260010190565b61011160f51b815260020190565b03908101835282611251565b388080612a0d565b90612b109350612b01612a9a95936129c2612aa7612ab59451956129c26040519a8b986129c260208b01600190601160f91b81520190565b62202b3160e81b815260030190565b612ac1565b92612b5a612a9a91612b4e612b34612b2f601854896127cd565b612826565b50612b4860405195869460208601906127b6565b906128a1565b03848101835282611251565b92612a03565b604051612b8a60208281612b7d818301968781519384920161061c565b8101038084520182611251565b51902090565b6040519061012082016001600160401b03811183821017612ce6575b60405260fd82527f7420783d2231302220793d2232302220636c6173733d2262617365223e000000610100837f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323060208201527f30302f73766722207072657365727665417370656374526174696f3d22784d6960408201527f6e594d696e206d656574222076696577426f783d22302030203335302033353060608201527f223e3c7374796c653e2e62617365207b2066696c6c3a2077686974653b20666f60808201527f6e742d66616d696c793a2073657269663b20666f6e742d73697a653a2031347060a08201527f783b207d3c2f7374796c653e3c726563742077696474683d223130302522206860c08201527f65696768743d2231303025222066696c6c3d22626c61636b22202f3e3c74657860e08201520152565b612cee6111c0565b612bac565b60405190612d008261121a565b602882527f3c2f746578743e3c7465787420783d2231302220793d2234302220636c6173736020830152671e913130b9b2911f60c11b6040830152565b60405190612d4a8261121a565b602882527f3c2f746578743e3c7465787420783d2231302220793d2236302220636c6173736020830152671e913130b9b2911f60c11b6040830152565b60405190612d948261121a565b602882527f3c2f746578743e3c7465787420783d2231302220793d2238302220636c6173736020830152671e913130b9b2911f60c11b6040830152565b60405190612dde8261121a565b602982527f3c2f746578743e3c7465787420783d2231302220793d223130302220636c6173602083015268399e913130b9b2911f60b91b6040830152565b60405190612e298261121a565b602982527f3c2f746578743e3c7465787420783d2231302220793d223132302220636c6173602083015268399e913130b9b2911f60b91b6040830152565b60405190612e748261121a565b602982527f3c2f746578743e3c7465787420783d2231302220793d223134302220636c6173602083015268399e913130b9b2911f60b91b6040830152565b60405190612ebf8261121a565b602982527f3c2f746578743e3c7465787420783d2231302220793d223136302220636c6173602083015268399e913130b9b2911f60b91b6040830152565b60405190612f0a826111d7565b60078252661e17ba32bc3a1f60c91b6020830152565b60405190612f2d82611235565b6105ac82527f3c656c6c69707365207374796c653d2266696c6c3a233533353335333b66696c60208301527f6c2d6f7061636974793a2e3832393031353535222063783d223332302e37343560408301527f3537222063793d223331392e3239393638222072783d2231382e35353535323960608301527f222072793d2231392e35313934353122202f3e3c706174682066696c6c3d222360808301527f666666666666222066696c6c2d72756c653d226e6f6e7a65726f2220643d226d60a08301527f203332362e34393332392c3331362e35303931312063202d302e36373634322c60c08301527f322e3239383332202d342e383032322c312e3132303231202d362e313431343260e08301527f2c302e3833383932206c20312e31383333392c2d342e3032313635206320312e6101008301527f33313837362c302e323735393220352e36333434362c302e383034313620342e6101208301527f39333735382c332e3138323733207a206d202d302e373337332c362e343938366101408301527f362063202d302e37333034382c322e3530343333202d352e36393438352c312e6101608301527f3134393136202d372e33303438342c302e3830393534206c20312e33303531336101808301527f2c2d342e3434313039206320312e36303939382c302e333434353820362e37366101a08301527f33382c312e303136373820352e39393937312c332e3633313535207a206d20356101c08301527f2e34313039342c2d362e3436333931206320302e34323631312c2d322e3434376101e08301527f3635202d312e37363533342c2d332e37363331202d342e37333435312c2d342e6102008301527f3633363334206c20302e39373339382c2d332e3331353131202d322e343030386102208301527f362c2d302e35303535202d302e39343637312c332e32323930362063202d302e6102408301527f36323233372c2d302e3133313936202d312e32363437312c2d302e32353835346102608301527f202d312e39303037312c2d302e3337393333206c20302e393436372c2d332e326102808301527f36333339202d322e33373430372c2d302e35303535202d302e39373339392c336102a08301527f2e33313531202d312e35313530312c2d302e3238373038202d332e32383033376102c08301527f2c2d302e3639353337202d302e36323931392c322e3135343738206320302c306102e08301527f20312e37353835322c302e333434353720312e37323439322c302e33363737356103008301527f20302e36373135362c302e3036393120312e31363134372c302e3537353831206103208301527f312e31303933362c312e3134393135206c202d312e31303933362c332e3737346103408301527f3639206320302e303833332c302e3031363120302e31363530392c302e3033386103608301527f3920302e323433352c302e30363931206c202d302e32353033312c2d302e30356103808301527f3735202d312e35343931322c352e32393135382063202d302e31343531332c306103a08301527f2e3338373139202d302e36333231312c302e3630303233202d312e30383834326103c08301527f2c302e34373639362068202d342e39652d34206320302c302e30323836202d316103e08301527f2e37333137332c2d302e3336313935202d312e37333137332c2d302e333631396104008301527f35206c202d312e31373730352c322e323938333120332e30393039312c302e366104208301527f3439343620312e36393038332c302e3337333533202d302e39383037392c332e6104408301527f333439343420322e33373430372c302e3530353520302e39373339382c2d332e6104608301527f33313531206320302e363339392c302e313439333320312e32363935382c302e6104808301527f323837303820312e38383730382c302e3431333636206c202d302e39363033346104a08301527f2c332e333236363920322e33373430382c302e3439393720302e39383037392c6104c08301527f2d332e3334333634206320342e30353830382c302e363439383720372e3039346104e08301527f39352c302e3339303520382e33383031312c2d322e373233313620312e3033346105008301527f38352c2d322e3530353134202d302e303534312c2d332e3934373138202d322e6105208301527f31383436332c2d342e383839353120312e35353534342c2d302e3330343435206105408301527f322e37303537312c2d312e313439313520332e30333638362c2d322e393634376105608301527f33207a22207374796c653d227374726f6b652d77696474683a2e3034343838336105808301527f323b66696c6c3a236666663b66696c6c2d6f7061636974793a2e3735333532316105a08301526b189a1110179f1e17b9bb339f60a11b6105c0830152565b6040519061362b8261121a565b604082527f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f6040837f4142434445464748494a4b4c4d4e4f505152535455565758595a61626364656660208201520152565b9061368782611283565b6136946040519182611251565b82815280926136a5601f1991611283565b0190602036910137565b805115613781576136be61361e565b6136e26136dd6136d86136d18551611ea6565b6003900490565b611e2c565b61367d565b9160208301918182518301915b82821061372f5750505060039051068060011461371c57600214613711575090565b603d90600019015390565b50603d9081600019820153600119015390565b9091936004906003809401938451600190603f9082828260121c16880101518553828282600c1c16880101518386015382828260061c16880101516002860153168501015190820153019391906136ef565b50610675612291565b6001600160a01b0316600090815260076020526040902090565b6001600160a01b0316600090815260056020526040902090565b9060018060a01b0316600052602052604060002090565b6001600160a01b03166000908152600560205260409081902054901c6001600160401b031690565b600081806001111561381c575b604051636f96cda160e11b8152600490fd5b815481101561380a5781526004906020918083526040928383205494600160e01b86161561384c5750505061380a565b93929190935b851561386057505050505090565b60001901808352818552838320549550613852565b6001600160a01b039182169190921690811491141790565b6000526006602052604060002090815490565b9081602091031261000e5751610675816103b4565b6001600160a01b0391821681529116602082015260408101919091526080606082018190526106759291019061063f565b3d15613911573d906138f782611283565b916139056040519384611251565b82523d6000602084013e565b606090565b9260209161393f936000604051809681958294630a85bd0160e11b9a8b855233600486016138b5565b03926001600160a01b03165af16000918161398f575b50613981576139626138e6565b8051908161397c576040516368d2bf6b60e11b8152600490fd5b602001fd5b6001600160e01b0319161490565b6139b191925060203d81116139b8575b6139a98183611251565b8101906138a0565b9038613955565b503d61399f565b906000908154928115613a57576139d5816137a4565b80546001600160401b0184020190556001600160a01b0316906001904260a01b81831460e11b178317613a0786611ddf565b5584019381600080516020613c9b83398151915291808587858180a4015b858103613a485750505015613a375755565b604051622e076360e81b8152600490fd5b8083918587858180a401613a25565b60405163b562e8dd60e01b8152600490fd5b9060405160a08101604052608081019260008452925b6000190192600a906030828206018553049283613a7f57809350608091030191601f1901918252565b613ab1816137fd565b6001600160a01b038116613ac48361388d565b9290613ad46109ad338587613875565b613b7e575b600093613b75575b50613aeb826137a4565b80546001600160801b030190554260a01b8217600360e01b17613b0d85611ddf565b55600160e11b811615613b42575b50600080516020613c9b8339815191528280a4611281613b3d60015460010190565b600155565b60018401613b4f81611ddf565b5415613b5c575b50613b1b565b83548114613b5657613b6d90611ddf565b553880613b56565b83905538613ae1565b613b916109ad610a8333610a7e8761378a565b15613ad957604051632ce44b5f60e11b8152600490fd5b9081602091031261000e575161067581611502565b6daaeb6d7670e522a718067333cd4e803b613bd6575050565b604051633185c44d60e21b81523060048201526001600160a01b038316602482015290602090829060449082905afa908115613c6d575b600091613c3f575b5015613c1e5750565b604051633b79c77360e21b8152908190613c3b9060048301610759565b0390fd5b613c60915060203d8111613c66575b613c588183611251565b810190613ba8565b38613c15565b503d613c4e565b613c7561223c565b613c0d56fe8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220818afe312e7aa7e050d65348cf9fc308dca300fd8a93cd4c319f5137c2a5238b64736f6c63430008110033
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.