ERC-721
Overview
Max Total Supply
574 smokeweedeveryday
Holders
222
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 smokeweedeverydayLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Smoke
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import "@openzeppelin/contracts/access/Ownable.sol"; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "erc721a/contracts/extensions/ERC721AQueryable.sol"; import "operator-filter-registry/src/DefaultOperatorFilterer.sol"; contract Whitelist is Ownable { event WhitelistAdd(address indexed account); event WhitelistRemove(address indexed account); mapping(address => bool) private _whitelists; modifier onlyWhitelist() { require(isWhitelist(_msgSender()), "Caller is not whitelist"); _; } function isWhitelist(address account) public view returns (bool) { return _whitelists[account] || account == owner(); } function addWhitelist(address account) external onlyOwner { _addWhitelist(account); } function removeWhitelist(address account) external onlyOwner { _removeWhitelist(account); } function renounceWhitelist() external { _removeWhitelist(_msgSender()); } function _addWhitelist(address account) internal { _whitelists[account] = true; emit WhitelistAdd(account); } function _removeWhitelist(address account) internal { delete _whitelists[account]; emit WhitelistRemove(account); } } contract Smoke is Ownable, ERC721AQueryable, ReentrancyGuard,ERC2981,DefaultOperatorFilterer,Whitelist { using SafeMath for uint256; uint256 public constant maxSupply = 3000; uint256 public PRICE1 = 0 ether; uint256 public PRICE2 = 0.01 ether; uint256 public MINTED1; uint256 public MINTED2; uint256 public AMOUNT1 = 500; uint256 public AMOUNT2 = 2500; uint256 public LIMIT1 = 1; uint256 public LIMIT2 = 5; uint256 _step = 0; mapping(address => uint256) public WALLET1_CAP; mapping(address => uint256) public WALLET2_CAP; address public _burner; address recipient = 0xf5D310Efa2030C1188bCF693FF4d885c1AA33Ac9; uint96 fee = 750; string public BASE_URI="https://data.smokeweed.wtf/metadata/"; bool isBlack = false; struct Info { uint256 all_amount; uint256 minted; uint256 price; uint256 start_time; uint256 numberMinted; uint256 step; uint256 limit; uint256 step_minted; uint256 step_amount; } constructor() ERC721A("SmokeWeedEveryday", "smokeweedeveryday") { _safeMint(msg.sender, 1); MINTED1 = MINTED1.add(1); _setDefaultRoyalty(recipient, fee); } function info(address user) public view returns (Info memory) { if(_step == 1){ return Info(maxSupply,totalSupply(),PRICE1,0,WALLET1_CAP[user],_step,LIMIT1,MINTED1,AMOUNT1); }else if(_step == 2){ return Info(maxSupply,totalSupply(),PRICE2,0,WALLET2_CAP[user],_step,LIMIT2,MINTED2,AMOUNT2); } } function freemint(uint256 amount) external { require(msg.sender == tx.origin, "Cannot mint from contract"); require(_step == 1, "must be active to mint tokens"); require(amount > 0, "amount must be greater than 0"); require(WALLET1_CAP[msg.sender].add(amount) <= LIMIT1, "max mint per wallet would be exceeded"); require(MINTED1.add(amount) <= AMOUNT1,"Max supply for freemint reached!"); require(totalSupply().add(amount) <= maxSupply, "max supply would be exceeded"); if (MINTED1.add(amount) == AMOUNT1){ _step = 2; } MINTED1 = MINTED1.add(amount); WALLET1_CAP[msg.sender] = WALLET1_CAP[msg.sender].add(amount); _safeMint(msg.sender, amount); } function mintpublic(uint256 amount) external payable { require(msg.sender == tx.origin, "Cannot mint from contract"); require(_step == 2, "must be active to mint tokens"); require(amount > 0, "amount must be greater than 0"); require(WALLET2_CAP[msg.sender].add(amount) <= LIMIT2, "max mint per wallet would be exceeded"); require(MINTED2.add(amount) <= AMOUNT2,"Max supply for mintpublic reached!"); require(totalSupply().add(amount) <= maxSupply, "max supply would be exceeded"); require(msg.value >= PRICE2 * amount, "value not met"); MINTED2 = MINTED2.add(amount); WALLET2_CAP[msg.sender] = WALLET2_CAP[msg.sender].add(amount); _safeMint(msg.sender, amount); } function withdraw() public onlyOwner nonReentrant { (bool succ, ) = payable(owner()).call{value: address(this).balance}(''); require(succ, "transfer failed"); } function setBaseURI(string memory _baseURI) public onlyOwner { BASE_URI = _baseURI; } function tokenURI(uint256 _tokenId) public view override(IERC721A, ERC721A) returns (string memory) { return string(abi.encodePacked(BASE_URI, Strings.toString(_tokenId), ".json")); } function flipStep(uint256 step) external onlyOwner { _step = step; } function setPrice2(uint256 price) public onlyOwner { PRICE2 = price; } function burn(uint256 tokenId) public { require(msg.sender == _burner, "Permission denied for burn"); _burn(tokenId); } function setBurner(address burner) external onlyOwner { _burner = burner; } function setIsBlack(bool _isBlack) external onlyOwner { isBlack = _isBlack; } 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); } // =============================================================== // Operator Filtering //=============================================================== function setApprovalForAll(address operator, bool approved) public override(IERC721A, ERC721A) onlyAllowedOperatorApproval(operator) { if(isBlack){ require(!isWhitelist(operator), "Permission denied"); } super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public payable override(IERC721A, ERC721A) onlyAllowedOperatorApproval(operator) { if(isBlack){ require(!isWhitelist(operator), "Permission denied"); } super.approve(operator, tokenId); } 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); } //=============================================================== // ERC2981 Implementation //=============================================================== function setDefaultRoyalty(address receiver, uint96 feeNumerator) external onlyOwner { _setDefaultRoyalty(receiver, feeNumerator); } }
// 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 // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721AQueryable.sol'; import '../ERC721A.sol'; /** * @title ERC721AQueryable. * * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] calldata tokenIds) external view virtual override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view virtual override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } }
// 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.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// 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) (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.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// 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 pragma solidity ^0.8.13; 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); } } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of ERC721AQueryable. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); }
// 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 // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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 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 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 // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","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":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":true,"internalType":"address","name":"account","type":"address"}],"name":"WhitelistAdd","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"WhitelistRemove","type":"event"},{"inputs":[],"name":"AMOUNT1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"AMOUNT2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BASE_URI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LIMIT1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LIMIT2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTED1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTED2","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":"PRICE1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"WALLET1_CAP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"WALLET2_CAP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_burner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","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":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"step","type":"uint256"}],"name":"flipStep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"freemint","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":"address","name":"user","type":"address"}],"name":"info","outputs":[{"components":[{"internalType":"uint256","name":"all_amount","type":"uint256"},{"internalType":"uint256","name":"minted","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"start_time","type":"uint256"},{"internalType":"uint256","name":"numberMinted","type":"uint256"},{"internalType":"uint256","name":"step","type":"uint256"},{"internalType":"uint256","name":"limit","type":"uint256"},{"internalType":"uint256","name":"step_minted","type":"uint256"},{"internalType":"uint256","name":"step_amount","type":"uint256"}],"internalType":"struct Smoke.Info","name":"","type":"tuple"}],"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":"address","name":"account","type":"address"}],"name":"isWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintpublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"removeWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceWhitelist","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":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"burner","type":"address"}],"name":"setBurner","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":"bool","name":"_isBlack","type":"bool"}],"name":"setIsBlack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPrice2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000600d55662386f26fc10000600e556101f46011556109c460125560016013556005601455600060155573f5d310efa2030c1188bcf693ff4d885c1aa33ac9601960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506102ee601960146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555060405180606001604052806024815260200162006b6c60249139601a9081620000e1919062000e2c565b506000601b60006101000a81548160ff0219169083151502179055503480156200010a57600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280601181526020017f536d6f6b655765656445766572796461790000000000000000000000000000008152506040518060400160405280601181526020017f736d6f6b6577656564657665727964617900000000000000000000000000000081525081600290816200019f919062000e2c565b508060039081620001b1919062000e2c565b50620001c26200047360201b60201c565b6000819055505050620001ea620001de6200047860201b60201c565b6200048060201b60201c565b600160098190555060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115620003e7578015620002ad576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b81526004016200027392919062000f58565b600060405180830381600087803b1580156200028e57600080fd5b505af1158015620002a3573d6000803e3d6000fd5b50505050620003e6565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161462000367576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b81526004016200032d92919062000f58565b600060405180830381600087803b1580156200034857600080fd5b505af11580156200035d573d6000803e3d6000fd5b50505050620003e5565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b8152600401620003b0919062000f85565b600060405180830381600087803b158015620003cb57600080fd5b505af1158015620003e0573d6000803e3d6000fd5b505050505b5b5b5050620003fc3360016200054660201b60201c565b620004196001600f546200056c60201b620024531790919060201c565b600f819055506200046d601960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16601960149054906101000a90046bffffffffffffffffffffffff166200058460201b60201c565b620012ba565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620005688282604051806020016040528060008152506200072760201b60201c565b5050565b600081836200057c919062000fd1565b905092915050565b62000594620007d860201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115620005f5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620005ec9062001093565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160362000667576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200065e9062001105565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600a60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b620007398383620007e260201b60201c565b60008373ffffffffffffffffffffffffffffffffffffffff163b14620007d357600080549050600083820390505b620007826000868380600101945086620009c960201b60201c565b620007b9576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811062000767578160005414620007d057600080fd5b50505b505050565b6000612710905090565b6000805490506000820362000823576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b62000838600084838562000b2a60201b60201c565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550620008c783620008a9600086600062000b3060201b60201c565b620008ba8562000b6060201b60201c565b1762000b7060201b60201c565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146200096a57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506200092d565b5060008203620009a6576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050620009c4600084838562000b9b60201b60201c565b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02620009f762000ba160201b60201c565b8786866040518563ffffffff1660e01b815260040162000a1b9493929190620011d2565b6020604051808303816000875af192505050801562000a5a57506040513d601f19601f8201168201806040525081019062000a57919062001288565b60015b62000ad7573d806000811462000a8d576040519150601f19603f3d011682016040523d82523d6000602084013e62000a92565b606091505b50600081510362000acf576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b50505050565b60008060e883901c905060e862000b4f86868462000ba960201b60201c565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b60009392505050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062000c3457607f821691505b60208210810362000c4a5762000c4962000bec565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830262000cb47fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000c75565b62000cc0868362000c75565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062000d0d62000d0762000d018462000cd8565b62000ce2565b62000cd8565b9050919050565b6000819050919050565b62000d298362000cec565b62000d4162000d388262000d14565b84845462000c82565b825550505050565b600090565b62000d5862000d49565b62000d6581848462000d1e565b505050565b5b8181101562000d8d5762000d8160008262000d4e565b60018101905062000d6b565b5050565b601f82111562000ddc5762000da68162000c50565b62000db18462000c65565b8101602085101562000dc1578190505b62000dd962000dd08562000c65565b83018262000d6a565b50505b505050565b600082821c905092915050565b600062000e016000198460080262000de1565b1980831691505092915050565b600062000e1c838362000dee565b9150826002028217905092915050565b62000e378262000bb2565b67ffffffffffffffff81111562000e535762000e5262000bbd565b5b62000e5f825462000c1b565b62000e6c82828562000d91565b600060209050601f83116001811462000ea4576000841562000e8f578287015190505b62000e9b858262000e0e565b86555062000f0b565b601f19841662000eb48662000c50565b60005b8281101562000ede5784890151825560018201915060208501945060208101905062000eb7565b8683101562000efe578489015162000efa601f89168262000dee565b8355505b6001600288020188555050505b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000f408262000f13565b9050919050565b62000f528162000f33565b82525050565b600060408201905062000f6f600083018562000f47565b62000f7e602083018462000f47565b9392505050565b600060208201905062000f9c600083018462000f47565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600062000fde8262000cd8565b915062000feb8362000cd8565b925082820190508082111562001006576200100562000fa2565b5b92915050565b600082825260208201905092915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b60006200107b602a836200100c565b915062001088826200101d565b604082019050919050565b60006020820190508181036000830152620010ae816200106c565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000620010ed6019836200100c565b9150620010fa82620010b5565b602082019050919050565b600060208201905081810360008301526200112081620010de565b9050919050565b620011328162000cd8565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b838110156200117457808201518184015260208101905062001157565b60008484015250505050565b6000601f19601f8301169050919050565b60006200119e8262001138565b620011aa818562001143565b9350620011bc81856020860162001154565b620011c78162001180565b840191505092915050565b6000608082019050620011e9600083018762000f47565b620011f8602083018662000f47565b62001207604083018562001127565b81810360608301526200121b818462001191565b905095945050505050565b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b62001262816200122b565b81146200126e57600080fd5b50565b600081519050620012828162001257565b92915050565b600060208284031215620012a157620012a062001226565b5b6000620012b18482850162001271565b91505092915050565b6158a280620012ca6000396000f3fe6080604052600436106102e45760003560e01c80636a7e8e1611610190578063b88d4fde116100dc578063da39ee7011610095578063e985e9c51161006f578063e985e9c514610b30578063f2fde38b14610b6d578063f80f5dd514610b96578063fbd31eed14610bbf576102e4565b8063da39ee7014610abe578063dbb99c5914610ada578063dbddb26a14610b05576102e4565b8063b88d4fde14610997578063c23dc68f146109b3578063c683630d146109f0578063c87b56dd14610a2d578063ccf27a4e14610a6a578063d5abeb0114610a93576102e4565b80638da5cb5b11610149578063a1542bd211610123578063a1542bd2146108f1578063a22cb4651461091c578063a996d6ce14610945578063af9e512a1461096e576102e4565b80638da5cb5b1461085e57806395d89b411461088957806399a2557a146108b4576102e4565b80636a7e8e161461073c5780636bc07cf01461076757806370a08231146107a4578063715018a6146107e157806378c8cda7146107f85780638462151c14610821576102e4565b80632f7eb2911161024f57806342966c68116102085780635bbb2177116101e25780635bbb21771461066c578063610936b9146106a95780636352211e146106d457806369722b1214610711576102e4565b806342966c68146105ef5780635127097a1461061857806355f804b314610643576102e4565b80632f7eb2911461052657806338c9c7141461055157806339137f8b1461057a5780633ccfd60b1461059157806341f43434146105a857806342842e0e146105d3576102e4565b80630fbe4fe2116102a15780630fbe4fe21461041057806318160ddd1461043957806323b872dd1461046457806327595a80146104805780632a55205a146104ab5780632b8c7cb5146104e9576102e4565b806301ffc9a7146102e957806304634d8d1461032657806306fdde031461034f578063081812fc1461037a578063095ea7b3146103b75780630aae7a6b146103d3575b600080fd5b3480156102f557600080fd5b50610310600480360381019061030b9190613dca565b610bea565b60405161031d9190613e12565b60405180910390f35b34801561033257600080fd5b5061034d60048036038101906103489190613ecf565b610c0c565b005b34801561035b57600080fd5b50610364610c22565b6040516103719190613f9f565b60405180910390f35b34801561038657600080fd5b506103a1600480360381019061039c9190613ff7565b610cb4565b6040516103ae9190614033565b60405180910390f35b6103d160048036038101906103cc919061404e565b610d33565b005b3480156103df57600080fd5b506103fa60048036038101906103f5919061408e565b610dab565b6040516104079190614181565b60405180910390f35b34801561041c57600080fd5b5061043760048036038101906104329190613ff7565b610f01565b005b34801561044557600080fd5b5061044e611227565b60405161045b91906141ac565b60405180910390f35b61047e600480360381019061047991906141c7565b61123e565b005b34801561048c57600080fd5b5061049561128d565b6040516104a291906141ac565b60405180910390f35b3480156104b757600080fd5b506104d260048036038101906104cd919061421a565b611293565b6040516104e092919061425a565b60405180910390f35b3480156104f557600080fd5b50610510600480360381019061050b919061408e565b61147d565b60405161051d91906141ac565b60405180910390f35b34801561053257600080fd5b5061053b611495565b60405161054891906141ac565b60405180910390f35b34801561055d57600080fd5b5061057860048036038101906105739190613ff7565b61149b565b005b34801561058657600080fd5b5061058f6114ad565b005b34801561059d57600080fd5b506105a66114bf565b005b3480156105b457600080fd5b506105bd61158d565b6040516105ca91906142e2565b60405180910390f35b6105ed60048036038101906105e891906141c7565b61159f565b005b3480156105fb57600080fd5b5061061660048036038101906106119190613ff7565b6115ee565b005b34801561062457600080fd5b5061062d61168a565b60405161063a91906141ac565b60405180910390f35b34801561064f57600080fd5b5061066a60048036038101906106659190614432565b611690565b005b34801561067857600080fd5b50610693600480360381019061068e91906144db565b6116ab565b6040516106a0919061468b565b60405180910390f35b3480156106b557600080fd5b506106be61176e565b6040516106cb9190614033565b60405180910390f35b3480156106e057600080fd5b506106fb60048036038101906106f69190613ff7565b611794565b6040516107089190614033565b60405180910390f35b34801561071d57600080fd5b506107266117a6565b60405161073391906141ac565b60405180910390f35b34801561074857600080fd5b506107516117ac565b60405161075e91906141ac565b60405180910390f35b34801561077357600080fd5b5061078e6004803603810190610789919061408e565b6117b2565b60405161079b91906141ac565b60405180910390f35b3480156107b057600080fd5b506107cb60048036038101906107c6919061408e565b6117ca565b6040516107d891906141ac565b60405180910390f35b3480156107ed57600080fd5b506107f6611882565b005b34801561080457600080fd5b5061081f600480360381019061081a919061408e565b611896565b005b34801561082d57600080fd5b506108486004803603810190610843919061408e565b6118aa565b604051610855919061475c565b60405180910390f35b34801561086a57600080fd5b506108736119ed565b6040516108809190614033565b60405180910390f35b34801561089557600080fd5b5061089e611a17565b6040516108ab9190613f9f565b60405180910390f35b3480156108c057600080fd5b506108db60048036038101906108d6919061477e565b611aa9565b6040516108e8919061475c565b60405180910390f35b3480156108fd57600080fd5b50610906611cb5565b60405161091391906141ac565b60405180910390f35b34801561092857600080fd5b50610943600480360381019061093e91906147fd565b611cbb565b005b34801561095157600080fd5b5061096c6004803603810190610967919061408e565b611d33565b005b34801561097a57600080fd5b506109956004803603810190610990919061483d565b611d7f565b005b6109b160048036038101906109ac919061490b565b611da4565b005b3480156109bf57600080fd5b506109da60048036038101906109d59190613ff7565b611df5565b6040516109e791906149e3565b60405180910390f35b3480156109fc57600080fd5b50610a176004803603810190610a12919061408e565b611e5f565b604051610a249190613e12565b60405180910390f35b348015610a3957600080fd5b50610a546004803603810190610a4f9190613ff7565b611ef2565b604051610a619190613f9f565b60405180910390f35b348015610a7657600080fd5b50610a916004803603810190610a8c9190613ff7565b611f26565b005b348015610a9f57600080fd5b50610aa8611f38565b604051610ab591906141ac565b60405180910390f35b610ad86004803603810190610ad39190613ff7565b611f3e565b005b348015610ae657600080fd5b50610aef61228e565b604051610afc91906141ac565b60405180910390f35b348015610b1157600080fd5b50610b1a612294565b604051610b279190613f9f565b60405180910390f35b348015610b3c57600080fd5b50610b576004803603810190610b5291906149fe565b612322565b604051610b649190613e12565b60405180910390f35b348015610b7957600080fd5b50610b946004803603810190610b8f919061408e565b6123b6565b005b348015610ba257600080fd5b50610bbd6004803603810190610bb8919061408e565b612439565b005b348015610bcb57600080fd5b50610bd461244d565b604051610be191906141ac565b60405180910390f35b6000610bf582612469565b80610c055750610c04826124fb565b5b9050919050565b610c14612575565b610c1e82826125f3565b5050565b606060028054610c3190614a6d565b80601f0160208091040260200160405190810160405280929190818152602001828054610c5d90614a6d565b8015610caa5780601f10610c7f57610100808354040283529160200191610caa565b820191906000526020600020905b815481529060010190602001808311610c8d57829003601f168201915b5050505050905090565b6000610cbf82612788565b610cf5576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610d3d816127e7565b601b60009054906101000a900460ff1615610d9c57610d5b83611e5f565b15610d9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9290614aea565b60405180910390fd5b5b610da683836128e4565b505050565b610db3613cc3565b600160155403610e5757604051806101200160405280610bb88152602001610dd9611227565b8152602001600d54815260200160008152602001601660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054815260200160155481526020016013548152602001600f5481526020016011548152509050610efc565b600260155403610efb57604051806101200160405280610bb88152602001610e7d611227565b8152602001600e54815260200160008152602001601760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481526020016015548152602001601454815260200160105481526020016012548152509050610efc565b5b919050565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610f6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6690614b56565b60405180910390fd5b600160155414610fb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fab90614bc2565b60405180910390fd5b60008111610ff7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fee90614c2e565b60405180910390fd5b60135461104c82601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461245390919063ffffffff16565b111561108d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108490614cc0565b60405180910390fd5b6011546110a582600f5461245390919063ffffffff16565b11156110e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110dd90614d2c565b60405180910390fd5b610bb8611103826110f5611227565b61245390919063ffffffff16565b1115611144576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113b90614d98565b60405180910390fd5b60115461115c82600f5461245390919063ffffffff16565b0361116a5760026015819055505b61117f81600f5461245390919063ffffffff16565b600f819055506111d781601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461245390919063ffffffff16565b601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506112243382612a28565b50565b6000611231612a46565b6001546000540303905090565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461127c5761127b336127e7565b5b611287848484612a4b565b50505050565b600d5481565b6000806000600b60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff160361142857600a6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000611432612d6d565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff168661145e9190614de7565b6114689190614e58565b90508160000151819350935050509250929050565b60166020528060005260406000206000915090505481565b600f5481565b6114a3612575565b8060158190555050565b6114bd6114b8612d77565b612d7f565b565b6114c7612575565b6114cf612e14565b60006114d96119ed565b73ffffffffffffffffffffffffffffffffffffffff16476040516114fc90614eba565b60006040518083038185875af1925050503d8060008114611539576040519150601f19603f3d011682016040523d82523d6000602084013e61153e565b606091505b5050905080611582576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157990614f1b565b60405180910390fd5b5061158b612e63565b565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146115dd576115dc336127e7565b5b6115e8848484612e6d565b50505050565b601860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461167e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167590614f87565b60405180910390fd5b61168781612e8d565b50565b60105481565b611698612575565b80601a90816116a79190615149565b5050565b6060600083839050905060008167ffffffffffffffff8111156116d1576116d0614307565b5b60405190808252806020026020018201604052801561170a57816020015b6116f7613d0f565b8152602001906001900390816116ef5790505b50905060005b8281146117625761173986868381811061172d5761172c61521b565b5b90506020020135611df5565b82828151811061174c5761174b61521b565b5b6020026020010181905250806001019050611710565b50809250505092915050565b601860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600061179f82612e9b565b9050919050565b60115481565b60145481565b60176020528060005260406000206000915090505481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611831576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61188a612575565b6118946000612f67565b565b61189e612575565b6118a781612d7f565b50565b606060008060006118ba856117ca565b905060008167ffffffffffffffff8111156118d8576118d7614307565b5b6040519080825280602002602001820160405280156119065781602001602082028036833780820191505090505b509050611911613d0f565b600061191b612a46565b90505b8386146119df5761192e8161302d565b915081604001516119d457600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461197957816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036119d357808387806001019850815181106119c6576119c561521b565b5b6020026020010181815250505b5b80600101905061191e565b508195505050505050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611a2690614a6d565b80601f0160208091040260200160405190810160405280929190818152602001828054611a5290614a6d565b8015611a9f5780601f10611a7457610100808354040283529160200191611a9f565b820191906000526020600020905b815481529060010190602001808311611a8257829003601f168201915b5050505050905090565b6060818310611ae4576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611aef613058565b9050611af9612a46565b851015611b0b57611b08612a46565b94505b80841115611b17578093505b6000611b22876117ca565b905084861015611b45576000868603905081811015611b3f578091505b50611b4a565b600090505b60008167ffffffffffffffff811115611b6657611b65614307565b5b604051908082528060200260200182016040528015611b945781602001602082028036833780820191505090505b50905060008203611bab5780945050505050611cae565b6000611bb688611df5565b905060008160400151611bcb57816000015190505b60008990505b888114158015611be15750848714155b15611ca057611bef8161302d565b92508260400151611c9557600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff1614611c3a57826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c945780848880600101995081518110611c8757611c8661521b565b5b6020026020010181815250505b5b806001019050611bd1565b508583528296505050505050505b9392505050565b600e5481565b81611cc5816127e7565b601b60009054906101000a900460ff1615611d2457611ce383611e5f565b15611d23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d1a90614aea565b60405180910390fd5b5b611d2e8383613061565b505050565b611d3b612575565b80601860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611d87612575565b80601b60006101000a81548160ff02191690831515021790555050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611de257611de1336127e7565b5b611dee8585858561316c565b5050505050565b611dfd613d0f565b611e05613d0f565b611e0d612a46565b831080611e215750611e1d613058565b8310155b15611e2f5780915050611e5a565b611e388361302d565b9050806040015115611e4d5780915050611e5a565b611e56836131df565b9150505b919050565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680611eeb5750611ebc6119ed565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b9050919050565b6060601a611eff836131ff565b604051602001611f10929190615355565b6040516020818303038152906040529050919050565b611f2e612575565b80600e8190555050565b610bb881565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611fac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fa390614b56565b60405180910390fd5b600260155414611ff1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fe890614bc2565b60405180910390fd5b60008111612034576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202b90614c2e565b60405180910390fd5b60145461208982601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461245390919063ffffffff16565b11156120ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c190614cc0565b60405180910390fd5b6012546120e28260105461245390919063ffffffff16565b1115612123576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161211a906153f6565b60405180910390fd5b610bb861214082612132611227565b61245390919063ffffffff16565b1115612181576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217890614d98565b60405180910390fd5b80600e5461218f9190614de7565b3410156121d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c890615462565b60405180910390fd5b6121e68160105461245390919063ffffffff16565b60108190555061223e81601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461245390919063ffffffff16565b601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061228b3382612a28565b50565b60125481565b601a80546122a190614a6d565b80601f01602080910402602001604051908101604052809291908181526020018280546122cd90614a6d565b801561231a5780601f106122ef5761010080835404028352916020019161231a565b820191906000526020600020905b8154815290600101906020018083116122fd57829003601f168201915b505050505081565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6123be612575565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361242d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612424906154f4565b60405180910390fd5b61243681612f67565b50565b612441612575565b61244a816132cd565b50565b60135481565b600081836124619190615514565b905092915050565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806124c457506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806124f45750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061256e575061256d8261336b565b5b9050919050565b61257d612d77565b73ffffffffffffffffffffffffffffffffffffffff1661259b6119ed565b73ffffffffffffffffffffffffffffffffffffffff16146125f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125e890615594565b60405180910390fd5b565b6125fb612d6d565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612659576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265090615626565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036126c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126bf90615692565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600a60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b600081612793612a46565b111580156127a2575060005482105b80156127e0575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156128e1576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b815260040161285e9291906156b2565b602060405180830381865afa15801561287b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061289f91906156f0565b6128e057806040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016128d79190614033565b60405180910390fd5b5b50565b60006128ef82611794565b90508073ffffffffffffffffffffffffffffffffffffffff166129106133d5565b73ffffffffffffffffffffffffffffffffffffffff16146129735761293c816129376133d5565b612322565b612972576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b612a428282604051806020016040528060008152506133dd565b5050565b600090565b6000612a5682612e9b565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612abd576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080612ac98461347a565b91509150612adf8187612ada6133d5565b6134a1565b612b2b57612af486612aef6133d5565b612322565b612b2a576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612b91576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612b9e86868660016134e5565b8015612ba957600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550612c7785612c538888876134eb565b7c020000000000000000000000000000000000000000000000000000000017613513565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603612cfd5760006001850190506000600460008381526020019081526020016000205403612cfb576000548114612cfa578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612d65868686600161353e565b505050505050565b6000612710905090565b600033905090565b600c60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549060ff02191690558073ffffffffffffffffffffffffffffffffffffffff167fc02124c68d1738bfb74eeba2c844061a3374d1e6f912c3c845c6c8aef67e649060405160405180910390a250565b600260095403612e59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e5090615769565b60405180910390fd5b6002600981905550565b6001600981905550565b612e8883838360405180602001604052806000815250611da4565b505050565b612e98816000613544565b50565b60008082905080612eaa612a46565b11612f3057600054811015612f2f5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612f2d575b60008103612f23576004600083600190039350838152602001908152602001600020549050612ef9565b8092505050612f62565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b613035613d0f565b6130516004600084815260200190815260200160002054613796565b9050919050565b60008054905090565b806007600061306e6133d5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661311b6133d5565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516131609190613e12565b60405180910390a35050565b61317784848461123e565b60008373ffffffffffffffffffffffffffffffffffffffff163b146131d9576131a28484848461384c565b6131d8576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6131e7613d0f565b6131f86131f383612e9b565b613796565b9050919050565b60606000600161320e8461399c565b01905060008167ffffffffffffffff81111561322d5761322c614307565b5b6040519080825280601f01601f19166020018201604052801561325f5781602001600182028036833780820191505090505b509050600082602001820190505b6001156132c2578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816132b6576132b5614e29565b5b0494506000850361326d575b819350505050919050565b6001600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167f4a92e3fad22046b744a1d74eeacc4fd529bfd154dc3ff26d90203e692fd7514660405160405180910390a250565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b6133e78383613aef565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461347557600080549050600083820390505b613427600086838060010194508661384c565b61345d576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061341457816000541461347257600080fd5b50505b505050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8613502868684613caa565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600061354f83612e9b565b905060008190506000806135628661347a565b9150915084156135cb5761357e81846135796133d5565b6134a1565b6135ca576135938361358e6133d5565b612322565b6135c9576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b6135d98360008860016134e5565b80156135e457600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061368c83613649856000886134eb565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717613513565b600460008881526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000851603613712576000600187019050600060046000838152602001908152602001600020540361371057600054811461370f578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461377c83600088600161353e565b600160008154809291906001019190505550505050505050565b61379e613d0f565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026138726133d5565b8786866040518563ffffffff1660e01b815260040161389494939291906157de565b6020604051808303816000875af19250505080156138d057506040513d601f19601f820116820180604052508101906138cd919061583f565b60015b613949573d8060008114613900576040519150601f19603f3d011682016040523d82523d6000602084013e613905565b606091505b506000815103613941576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106139fa577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816139f0576139ef614e29565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613a37576d04ee2d6d415b85acef81000000008381613a2d57613a2c614e29565b5b0492506020810190505b662386f26fc100008310613a6657662386f26fc100008381613a5c57613a5b614e29565b5b0492506010810190505b6305f5e1008310613a8f576305f5e1008381613a8557613a84614e29565b5b0492506008810190505b6127108310613ab4576127108381613aaa57613aa9614e29565b5b0492506004810190505b60648310613ad75760648381613acd57613acc614e29565b5b0492506002810190505b600a8310613ae6576001810190505b80915050919050565b60008054905060008203613b2f576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613b3c60008483856134e5565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613bb383613ba460008660006134eb565b613bad85613cb3565b17613513565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114613c5457808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613c19565b5060008203613c8f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050613ca5600084838561353e565b505050565b60009392505050565b60006001821460e11b9050919050565b6040518061012001604052806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613da781613d72565b8114613db257600080fd5b50565b600081359050613dc481613d9e565b92915050565b600060208284031215613de057613ddf613d68565b5b6000613dee84828501613db5565b91505092915050565b60008115159050919050565b613e0c81613df7565b82525050565b6000602082019050613e276000830184613e03565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613e5882613e2d565b9050919050565b613e6881613e4d565b8114613e7357600080fd5b50565b600081359050613e8581613e5f565b92915050565b60006bffffffffffffffffffffffff82169050919050565b613eac81613e8b565b8114613eb757600080fd5b50565b600081359050613ec981613ea3565b92915050565b60008060408385031215613ee657613ee5613d68565b5b6000613ef485828601613e76565b9250506020613f0585828601613eba565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613f49578082015181840152602081019050613f2e565b60008484015250505050565b6000601f19601f8301169050919050565b6000613f7182613f0f565b613f7b8185613f1a565b9350613f8b818560208601613f2b565b613f9481613f55565b840191505092915050565b60006020820190508181036000830152613fb98184613f66565b905092915050565b6000819050919050565b613fd481613fc1565b8114613fdf57600080fd5b50565b600081359050613ff181613fcb565b92915050565b60006020828403121561400d5761400c613d68565b5b600061401b84828501613fe2565b91505092915050565b61402d81613e4d565b82525050565b60006020820190506140486000830184614024565b92915050565b6000806040838503121561406557614064613d68565b5b600061407385828601613e76565b925050602061408485828601613fe2565b9150509250929050565b6000602082840312156140a4576140a3613d68565b5b60006140b284828501613e76565b91505092915050565b6140c481613fc1565b82525050565b610120820160008201516140e160008501826140bb565b5060208201516140f460208501826140bb565b50604082015161410760408501826140bb565b50606082015161411a60608501826140bb565b50608082015161412d60808501826140bb565b5060a082015161414060a08501826140bb565b5060c082015161415360c08501826140bb565b5060e082015161416660e08501826140bb565b5061010082015161417b6101008501826140bb565b50505050565b60006101208201905061419760008301846140ca565b92915050565b6141a681613fc1565b82525050565b60006020820190506141c1600083018461419d565b92915050565b6000806000606084860312156141e0576141df613d68565b5b60006141ee86828701613e76565b93505060206141ff86828701613e76565b925050604061421086828701613fe2565b9150509250925092565b6000806040838503121561423157614230613d68565b5b600061423f85828601613fe2565b925050602061425085828601613fe2565b9150509250929050565b600060408201905061426f6000830185614024565b61427c602083018461419d565b9392505050565b6000819050919050565b60006142a86142a361429e84613e2d565b614283565b613e2d565b9050919050565b60006142ba8261428d565b9050919050565b60006142cc826142af565b9050919050565b6142dc816142c1565b82525050565b60006020820190506142f760008301846142d3565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61433f82613f55565b810181811067ffffffffffffffff8211171561435e5761435d614307565b5b80604052505050565b6000614371613d5e565b905061437d8282614336565b919050565b600067ffffffffffffffff82111561439d5761439c614307565b5b6143a682613f55565b9050602081019050919050565b82818337600083830152505050565b60006143d56143d084614382565b614367565b9050828152602081018484840111156143f1576143f0614302565b5b6143fc8482856143b3565b509392505050565b600082601f830112614419576144186142fd565b5b81356144298482602086016143c2565b91505092915050565b60006020828403121561444857614447613d68565b5b600082013567ffffffffffffffff81111561446657614465613d6d565b5b61447284828501614404565b91505092915050565b600080fd5b600080fd5b60008083601f84011261449b5761449a6142fd565b5b8235905067ffffffffffffffff8111156144b8576144b761447b565b5b6020830191508360208202830111156144d4576144d3614480565b5b9250929050565b600080602083850312156144f2576144f1613d68565b5b600083013567ffffffffffffffff8111156145105761450f613d6d565b5b61451c85828601614485565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61455d81613e4d565b82525050565b600067ffffffffffffffff82169050919050565b61458081614563565b82525050565b61458f81613df7565b82525050565b600062ffffff82169050919050565b6145ad81614595565b82525050565b6080820160008201516145c96000850182614554565b5060208201516145dc6020850182614577565b5060408201516145ef6040850182614586565b50606082015161460260608501826145a4565b50505050565b600061461483836145b3565b60808301905092915050565b6000602082019050919050565b600061463882614528565b6146428185614533565b935061464d83614544565b8060005b8381101561467e5781516146658882614608565b975061467083614620565b925050600181019050614651565b5085935050505092915050565b600060208201905081810360008301526146a5818461462d565b905092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60006146e583836140bb565b60208301905092915050565b6000602082019050919050565b6000614709826146ad565b61471381856146b8565b935061471e836146c9565b8060005b8381101561474f57815161473688826146d9565b9750614741836146f1565b925050600181019050614722565b5085935050505092915050565b6000602082019050818103600083015261477681846146fe565b905092915050565b60008060006060848603121561479757614796613d68565b5b60006147a586828701613e76565b93505060206147b686828701613fe2565b92505060406147c786828701613fe2565b9150509250925092565b6147da81613df7565b81146147e557600080fd5b50565b6000813590506147f7816147d1565b92915050565b6000806040838503121561481457614813613d68565b5b600061482285828601613e76565b9250506020614833858286016147e8565b9150509250929050565b60006020828403121561485357614852613d68565b5b6000614861848285016147e8565b91505092915050565b600067ffffffffffffffff82111561488557614884614307565b5b61488e82613f55565b9050602081019050919050565b60006148ae6148a98461486a565b614367565b9050828152602081018484840111156148ca576148c9614302565b5b6148d58482856143b3565b509392505050565b600082601f8301126148f2576148f16142fd565b5b813561490284826020860161489b565b91505092915050565b6000806000806080858703121561492557614924613d68565b5b600061493387828801613e76565b945050602061494487828801613e76565b935050604061495587828801613fe2565b925050606085013567ffffffffffffffff81111561497657614975613d6d565b5b614982878288016148dd565b91505092959194509250565b6080820160008201516149a46000850182614554565b5060208201516149b76020850182614577565b5060408201516149ca6040850182614586565b5060608201516149dd60608501826145a4565b50505050565b60006080820190506149f8600083018461498e565b92915050565b60008060408385031215614a1557614a14613d68565b5b6000614a2385828601613e76565b9250506020614a3485828601613e76565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614a8557607f821691505b602082108103614a9857614a97614a3e565b5b50919050565b7f5065726d697373696f6e2064656e696564000000000000000000000000000000600082015250565b6000614ad4601183613f1a565b9150614adf82614a9e565b602082019050919050565b60006020820190508181036000830152614b0381614ac7565b9050919050565b7f43616e6e6f74206d696e742066726f6d20636f6e747261637400000000000000600082015250565b6000614b40601983613f1a565b9150614b4b82614b0a565b602082019050919050565b60006020820190508181036000830152614b6f81614b33565b9050919050565b7f6d7573742062652061637469766520746f206d696e7420746f6b656e73000000600082015250565b6000614bac601d83613f1a565b9150614bb782614b76565b602082019050919050565b60006020820190508181036000830152614bdb81614b9f565b9050919050565b7f616d6f756e74206d7573742062652067726561746572207468616e2030000000600082015250565b6000614c18601d83613f1a565b9150614c2382614be2565b602082019050919050565b60006020820190508181036000830152614c4781614c0b565b9050919050565b7f6d6178206d696e74207065722077616c6c657420776f756c642062652065786360008201527f6565646564000000000000000000000000000000000000000000000000000000602082015250565b6000614caa602583613f1a565b9150614cb582614c4e565b604082019050919050565b60006020820190508181036000830152614cd981614c9d565b9050919050565b7f4d617820737570706c7920666f7220667265656d696e74207265616368656421600082015250565b6000614d16602083613f1a565b9150614d2182614ce0565b602082019050919050565b60006020820190508181036000830152614d4581614d09565b9050919050565b7f6d617820737570706c7920776f756c6420626520657863656564656400000000600082015250565b6000614d82601c83613f1a565b9150614d8d82614d4c565b602082019050919050565b60006020820190508181036000830152614db181614d75565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614df282613fc1565b9150614dfd83613fc1565b9250828202614e0b81613fc1565b91508282048414831517614e2257614e21614db8565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614e6382613fc1565b9150614e6e83613fc1565b925082614e7e57614e7d614e29565b5b828204905092915050565b600081905092915050565b50565b6000614ea4600083614e89565b9150614eaf82614e94565b600082019050919050565b6000614ec582614e97565b9150819050919050565b7f7472616e73666572206661696c65640000000000000000000000000000000000600082015250565b6000614f05600f83613f1a565b9150614f1082614ecf565b602082019050919050565b60006020820190508181036000830152614f3481614ef8565b9050919050565b7f5065726d697373696f6e2064656e69656420666f72206275726e000000000000600082015250565b6000614f71601a83613f1a565b9150614f7c82614f3b565b602082019050919050565b60006020820190508181036000830152614fa081614f64565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026150097fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614fcc565b6150138683614fcc565b95508019841693508086168417925050509392505050565b600061504661504161503c84613fc1565b614283565b613fc1565b9050919050565b6000819050919050565b6150608361502b565b61507461506c8261504d565b848454614fd9565b825550505050565b600090565b61508961507c565b615094818484615057565b505050565b5b818110156150b8576150ad600082615081565b60018101905061509a565b5050565b601f8211156150fd576150ce81614fa7565b6150d784614fbc565b810160208510156150e6578190505b6150fa6150f285614fbc565b830182615099565b50505b505050565b600082821c905092915050565b600061512060001984600802615102565b1980831691505092915050565b6000615139838361510f565b9150826002028217905092915050565b61515282613f0f565b67ffffffffffffffff81111561516b5761516a614307565b5b6151758254614a6d565b6151808282856150bc565b600060209050601f8311600181146151b357600084156151a1578287015190505b6151ab858261512d565b865550615213565b601f1984166151c186614fa7565b60005b828110156151e9578489015182556001820191506020850194506020810190506151c4565b868310156152065784890151615202601f89168261510f565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081905092915050565b6000815461526281614a6d565b61526c818661524a565b94506001821660008114615287576001811461529c576152cf565b60ff19831686528115158202860193506152cf565b6152a585614fa7565b60005b838110156152c7578154818901526001820191506020810190506152a8565b838801955050505b50505092915050565b60006152e382613f0f565b6152ed818561524a565b93506152fd818560208601613f2b565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b600061533f60058361524a565b915061534a82615309565b600582019050919050565b60006153618285615255565b915061536d82846152d8565b915061537882615332565b91508190509392505050565b7f4d617820737570706c7920666f72206d696e747075626c69632072656163686560008201527f6421000000000000000000000000000000000000000000000000000000000000602082015250565b60006153e0602283613f1a565b91506153eb82615384565b604082019050919050565b6000602082019050818103600083015261540f816153d3565b9050919050565b7f76616c7565206e6f74206d657400000000000000000000000000000000000000600082015250565b600061544c600d83613f1a565b915061545782615416565b602082019050919050565b6000602082019050818103600083015261547b8161543f565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006154de602683613f1a565b91506154e982615482565b604082019050919050565b6000602082019050818103600083015261550d816154d1565b9050919050565b600061551f82613fc1565b915061552a83613fc1565b925082820190508082111561554257615541614db8565b5b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061557e602083613f1a565b915061558982615548565b602082019050919050565b600060208201905081810360008301526155ad81615571565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000615610602a83613f1a565b915061561b826155b4565b604082019050919050565b6000602082019050818103600083015261563f81615603565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b600061567c601983613f1a565b915061568782615646565b602082019050919050565b600060208201905081810360008301526156ab8161566f565b9050919050565b60006040820190506156c76000830185614024565b6156d46020830184614024565b9392505050565b6000815190506156ea816147d1565b92915050565b60006020828403121561570657615705613d68565b5b6000615714848285016156db565b91505092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000615753601f83613f1a565b915061575e8261571d565b602082019050919050565b6000602082019050818103600083015261578281615746565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006157b082615789565b6157ba8185615794565b93506157ca818560208601613f2b565b6157d381613f55565b840191505092915050565b60006080820190506157f36000830187614024565b6158006020830186614024565b61580d604083018561419d565b818103606083015261581f81846157a5565b905095945050505050565b60008151905061583981613d9e565b92915050565b60006020828403121561585557615854613d68565b5b60006158638482850161582a565b9150509291505056fea26469706673582212202841996ed60f4abd08de6af5126dfb6d68ad2013f30290ef61c20a0d8bb3bb4964736f6c6343000811003368747470733a2f2f646174612e736d6f6b65776565642e7774662f6d657461646174612f
Deployed Bytecode
0x6080604052600436106102e45760003560e01c80636a7e8e1611610190578063b88d4fde116100dc578063da39ee7011610095578063e985e9c51161006f578063e985e9c514610b30578063f2fde38b14610b6d578063f80f5dd514610b96578063fbd31eed14610bbf576102e4565b8063da39ee7014610abe578063dbb99c5914610ada578063dbddb26a14610b05576102e4565b8063b88d4fde14610997578063c23dc68f146109b3578063c683630d146109f0578063c87b56dd14610a2d578063ccf27a4e14610a6a578063d5abeb0114610a93576102e4565b80638da5cb5b11610149578063a1542bd211610123578063a1542bd2146108f1578063a22cb4651461091c578063a996d6ce14610945578063af9e512a1461096e576102e4565b80638da5cb5b1461085e57806395d89b411461088957806399a2557a146108b4576102e4565b80636a7e8e161461073c5780636bc07cf01461076757806370a08231146107a4578063715018a6146107e157806378c8cda7146107f85780638462151c14610821576102e4565b80632f7eb2911161024f57806342966c68116102085780635bbb2177116101e25780635bbb21771461066c578063610936b9146106a95780636352211e146106d457806369722b1214610711576102e4565b806342966c68146105ef5780635127097a1461061857806355f804b314610643576102e4565b80632f7eb2911461052657806338c9c7141461055157806339137f8b1461057a5780633ccfd60b1461059157806341f43434146105a857806342842e0e146105d3576102e4565b80630fbe4fe2116102a15780630fbe4fe21461041057806318160ddd1461043957806323b872dd1461046457806327595a80146104805780632a55205a146104ab5780632b8c7cb5146104e9576102e4565b806301ffc9a7146102e957806304634d8d1461032657806306fdde031461034f578063081812fc1461037a578063095ea7b3146103b75780630aae7a6b146103d3575b600080fd5b3480156102f557600080fd5b50610310600480360381019061030b9190613dca565b610bea565b60405161031d9190613e12565b60405180910390f35b34801561033257600080fd5b5061034d60048036038101906103489190613ecf565b610c0c565b005b34801561035b57600080fd5b50610364610c22565b6040516103719190613f9f565b60405180910390f35b34801561038657600080fd5b506103a1600480360381019061039c9190613ff7565b610cb4565b6040516103ae9190614033565b60405180910390f35b6103d160048036038101906103cc919061404e565b610d33565b005b3480156103df57600080fd5b506103fa60048036038101906103f5919061408e565b610dab565b6040516104079190614181565b60405180910390f35b34801561041c57600080fd5b5061043760048036038101906104329190613ff7565b610f01565b005b34801561044557600080fd5b5061044e611227565b60405161045b91906141ac565b60405180910390f35b61047e600480360381019061047991906141c7565b61123e565b005b34801561048c57600080fd5b5061049561128d565b6040516104a291906141ac565b60405180910390f35b3480156104b757600080fd5b506104d260048036038101906104cd919061421a565b611293565b6040516104e092919061425a565b60405180910390f35b3480156104f557600080fd5b50610510600480360381019061050b919061408e565b61147d565b60405161051d91906141ac565b60405180910390f35b34801561053257600080fd5b5061053b611495565b60405161054891906141ac565b60405180910390f35b34801561055d57600080fd5b5061057860048036038101906105739190613ff7565b61149b565b005b34801561058657600080fd5b5061058f6114ad565b005b34801561059d57600080fd5b506105a66114bf565b005b3480156105b457600080fd5b506105bd61158d565b6040516105ca91906142e2565b60405180910390f35b6105ed60048036038101906105e891906141c7565b61159f565b005b3480156105fb57600080fd5b5061061660048036038101906106119190613ff7565b6115ee565b005b34801561062457600080fd5b5061062d61168a565b60405161063a91906141ac565b60405180910390f35b34801561064f57600080fd5b5061066a60048036038101906106659190614432565b611690565b005b34801561067857600080fd5b50610693600480360381019061068e91906144db565b6116ab565b6040516106a0919061468b565b60405180910390f35b3480156106b557600080fd5b506106be61176e565b6040516106cb9190614033565b60405180910390f35b3480156106e057600080fd5b506106fb60048036038101906106f69190613ff7565b611794565b6040516107089190614033565b60405180910390f35b34801561071d57600080fd5b506107266117a6565b60405161073391906141ac565b60405180910390f35b34801561074857600080fd5b506107516117ac565b60405161075e91906141ac565b60405180910390f35b34801561077357600080fd5b5061078e6004803603810190610789919061408e565b6117b2565b60405161079b91906141ac565b60405180910390f35b3480156107b057600080fd5b506107cb60048036038101906107c6919061408e565b6117ca565b6040516107d891906141ac565b60405180910390f35b3480156107ed57600080fd5b506107f6611882565b005b34801561080457600080fd5b5061081f600480360381019061081a919061408e565b611896565b005b34801561082d57600080fd5b506108486004803603810190610843919061408e565b6118aa565b604051610855919061475c565b60405180910390f35b34801561086a57600080fd5b506108736119ed565b6040516108809190614033565b60405180910390f35b34801561089557600080fd5b5061089e611a17565b6040516108ab9190613f9f565b60405180910390f35b3480156108c057600080fd5b506108db60048036038101906108d6919061477e565b611aa9565b6040516108e8919061475c565b60405180910390f35b3480156108fd57600080fd5b50610906611cb5565b60405161091391906141ac565b60405180910390f35b34801561092857600080fd5b50610943600480360381019061093e91906147fd565b611cbb565b005b34801561095157600080fd5b5061096c6004803603810190610967919061408e565b611d33565b005b34801561097a57600080fd5b506109956004803603810190610990919061483d565b611d7f565b005b6109b160048036038101906109ac919061490b565b611da4565b005b3480156109bf57600080fd5b506109da60048036038101906109d59190613ff7565b611df5565b6040516109e791906149e3565b60405180910390f35b3480156109fc57600080fd5b50610a176004803603810190610a12919061408e565b611e5f565b604051610a249190613e12565b60405180910390f35b348015610a3957600080fd5b50610a546004803603810190610a4f9190613ff7565b611ef2565b604051610a619190613f9f565b60405180910390f35b348015610a7657600080fd5b50610a916004803603810190610a8c9190613ff7565b611f26565b005b348015610a9f57600080fd5b50610aa8611f38565b604051610ab591906141ac565b60405180910390f35b610ad86004803603810190610ad39190613ff7565b611f3e565b005b348015610ae657600080fd5b50610aef61228e565b604051610afc91906141ac565b60405180910390f35b348015610b1157600080fd5b50610b1a612294565b604051610b279190613f9f565b60405180910390f35b348015610b3c57600080fd5b50610b576004803603810190610b5291906149fe565b612322565b604051610b649190613e12565b60405180910390f35b348015610b7957600080fd5b50610b946004803603810190610b8f919061408e565b6123b6565b005b348015610ba257600080fd5b50610bbd6004803603810190610bb8919061408e565b612439565b005b348015610bcb57600080fd5b50610bd461244d565b604051610be191906141ac565b60405180910390f35b6000610bf582612469565b80610c055750610c04826124fb565b5b9050919050565b610c14612575565b610c1e82826125f3565b5050565b606060028054610c3190614a6d565b80601f0160208091040260200160405190810160405280929190818152602001828054610c5d90614a6d565b8015610caa5780601f10610c7f57610100808354040283529160200191610caa565b820191906000526020600020905b815481529060010190602001808311610c8d57829003601f168201915b5050505050905090565b6000610cbf82612788565b610cf5576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610d3d816127e7565b601b60009054906101000a900460ff1615610d9c57610d5b83611e5f565b15610d9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9290614aea565b60405180910390fd5b5b610da683836128e4565b505050565b610db3613cc3565b600160155403610e5757604051806101200160405280610bb88152602001610dd9611227565b8152602001600d54815260200160008152602001601660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054815260200160155481526020016013548152602001600f5481526020016011548152509050610efc565b600260155403610efb57604051806101200160405280610bb88152602001610e7d611227565b8152602001600e54815260200160008152602001601760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481526020016015548152602001601454815260200160105481526020016012548152509050610efc565b5b919050565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610f6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6690614b56565b60405180910390fd5b600160155414610fb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fab90614bc2565b60405180910390fd5b60008111610ff7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fee90614c2e565b60405180910390fd5b60135461104c82601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461245390919063ffffffff16565b111561108d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108490614cc0565b60405180910390fd5b6011546110a582600f5461245390919063ffffffff16565b11156110e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110dd90614d2c565b60405180910390fd5b610bb8611103826110f5611227565b61245390919063ffffffff16565b1115611144576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113b90614d98565b60405180910390fd5b60115461115c82600f5461245390919063ffffffff16565b0361116a5760026015819055505b61117f81600f5461245390919063ffffffff16565b600f819055506111d781601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461245390919063ffffffff16565b601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506112243382612a28565b50565b6000611231612a46565b6001546000540303905090565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461127c5761127b336127e7565b5b611287848484612a4b565b50505050565b600d5481565b6000806000600b60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff160361142857600a6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000611432612d6d565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff168661145e9190614de7565b6114689190614e58565b90508160000151819350935050509250929050565b60166020528060005260406000206000915090505481565b600f5481565b6114a3612575565b8060158190555050565b6114bd6114b8612d77565b612d7f565b565b6114c7612575565b6114cf612e14565b60006114d96119ed565b73ffffffffffffffffffffffffffffffffffffffff16476040516114fc90614eba565b60006040518083038185875af1925050503d8060008114611539576040519150601f19603f3d011682016040523d82523d6000602084013e61153e565b606091505b5050905080611582576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157990614f1b565b60405180910390fd5b5061158b612e63565b565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146115dd576115dc336127e7565b5b6115e8848484612e6d565b50505050565b601860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461167e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167590614f87565b60405180910390fd5b61168781612e8d565b50565b60105481565b611698612575565b80601a90816116a79190615149565b5050565b6060600083839050905060008167ffffffffffffffff8111156116d1576116d0614307565b5b60405190808252806020026020018201604052801561170a57816020015b6116f7613d0f565b8152602001906001900390816116ef5790505b50905060005b8281146117625761173986868381811061172d5761172c61521b565b5b90506020020135611df5565b82828151811061174c5761174b61521b565b5b6020026020010181905250806001019050611710565b50809250505092915050565b601860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600061179f82612e9b565b9050919050565b60115481565b60145481565b60176020528060005260406000206000915090505481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611831576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61188a612575565b6118946000612f67565b565b61189e612575565b6118a781612d7f565b50565b606060008060006118ba856117ca565b905060008167ffffffffffffffff8111156118d8576118d7614307565b5b6040519080825280602002602001820160405280156119065781602001602082028036833780820191505090505b509050611911613d0f565b600061191b612a46565b90505b8386146119df5761192e8161302d565b915081604001516119d457600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461197957816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036119d357808387806001019850815181106119c6576119c561521b565b5b6020026020010181815250505b5b80600101905061191e565b508195505050505050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611a2690614a6d565b80601f0160208091040260200160405190810160405280929190818152602001828054611a5290614a6d565b8015611a9f5780601f10611a7457610100808354040283529160200191611a9f565b820191906000526020600020905b815481529060010190602001808311611a8257829003601f168201915b5050505050905090565b6060818310611ae4576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611aef613058565b9050611af9612a46565b851015611b0b57611b08612a46565b94505b80841115611b17578093505b6000611b22876117ca565b905084861015611b45576000868603905081811015611b3f578091505b50611b4a565b600090505b60008167ffffffffffffffff811115611b6657611b65614307565b5b604051908082528060200260200182016040528015611b945781602001602082028036833780820191505090505b50905060008203611bab5780945050505050611cae565b6000611bb688611df5565b905060008160400151611bcb57816000015190505b60008990505b888114158015611be15750848714155b15611ca057611bef8161302d565b92508260400151611c9557600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff1614611c3a57826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c945780848880600101995081518110611c8757611c8661521b565b5b6020026020010181815250505b5b806001019050611bd1565b508583528296505050505050505b9392505050565b600e5481565b81611cc5816127e7565b601b60009054906101000a900460ff1615611d2457611ce383611e5f565b15611d23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d1a90614aea565b60405180910390fd5b5b611d2e8383613061565b505050565b611d3b612575565b80601860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611d87612575565b80601b60006101000a81548160ff02191690831515021790555050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611de257611de1336127e7565b5b611dee8585858561316c565b5050505050565b611dfd613d0f565b611e05613d0f565b611e0d612a46565b831080611e215750611e1d613058565b8310155b15611e2f5780915050611e5a565b611e388361302d565b9050806040015115611e4d5780915050611e5a565b611e56836131df565b9150505b919050565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680611eeb5750611ebc6119ed565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b9050919050565b6060601a611eff836131ff565b604051602001611f10929190615355565b6040516020818303038152906040529050919050565b611f2e612575565b80600e8190555050565b610bb881565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611fac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fa390614b56565b60405180910390fd5b600260155414611ff1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fe890614bc2565b60405180910390fd5b60008111612034576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202b90614c2e565b60405180910390fd5b60145461208982601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461245390919063ffffffff16565b11156120ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c190614cc0565b60405180910390fd5b6012546120e28260105461245390919063ffffffff16565b1115612123576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161211a906153f6565b60405180910390fd5b610bb861214082612132611227565b61245390919063ffffffff16565b1115612181576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217890614d98565b60405180910390fd5b80600e5461218f9190614de7565b3410156121d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c890615462565b60405180910390fd5b6121e68160105461245390919063ffffffff16565b60108190555061223e81601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461245390919063ffffffff16565b601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061228b3382612a28565b50565b60125481565b601a80546122a190614a6d565b80601f01602080910402602001604051908101604052809291908181526020018280546122cd90614a6d565b801561231a5780601f106122ef5761010080835404028352916020019161231a565b820191906000526020600020905b8154815290600101906020018083116122fd57829003601f168201915b505050505081565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6123be612575565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361242d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612424906154f4565b60405180910390fd5b61243681612f67565b50565b612441612575565b61244a816132cd565b50565b60135481565b600081836124619190615514565b905092915050565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806124c457506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806124f45750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061256e575061256d8261336b565b5b9050919050565b61257d612d77565b73ffffffffffffffffffffffffffffffffffffffff1661259b6119ed565b73ffffffffffffffffffffffffffffffffffffffff16146125f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125e890615594565b60405180910390fd5b565b6125fb612d6d565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612659576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265090615626565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036126c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126bf90615692565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600a60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b600081612793612a46565b111580156127a2575060005482105b80156127e0575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156128e1576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b815260040161285e9291906156b2565b602060405180830381865afa15801561287b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061289f91906156f0565b6128e057806040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016128d79190614033565b60405180910390fd5b5b50565b60006128ef82611794565b90508073ffffffffffffffffffffffffffffffffffffffff166129106133d5565b73ffffffffffffffffffffffffffffffffffffffff16146129735761293c816129376133d5565b612322565b612972576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b612a428282604051806020016040528060008152506133dd565b5050565b600090565b6000612a5682612e9b565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612abd576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080612ac98461347a565b91509150612adf8187612ada6133d5565b6134a1565b612b2b57612af486612aef6133d5565b612322565b612b2a576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612b91576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612b9e86868660016134e5565b8015612ba957600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550612c7785612c538888876134eb565b7c020000000000000000000000000000000000000000000000000000000017613513565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603612cfd5760006001850190506000600460008381526020019081526020016000205403612cfb576000548114612cfa578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612d65868686600161353e565b505050505050565b6000612710905090565b600033905090565b600c60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549060ff02191690558073ffffffffffffffffffffffffffffffffffffffff167fc02124c68d1738bfb74eeba2c844061a3374d1e6f912c3c845c6c8aef67e649060405160405180910390a250565b600260095403612e59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e5090615769565b60405180910390fd5b6002600981905550565b6001600981905550565b612e8883838360405180602001604052806000815250611da4565b505050565b612e98816000613544565b50565b60008082905080612eaa612a46565b11612f3057600054811015612f2f5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612f2d575b60008103612f23576004600083600190039350838152602001908152602001600020549050612ef9565b8092505050612f62565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b613035613d0f565b6130516004600084815260200190815260200160002054613796565b9050919050565b60008054905090565b806007600061306e6133d5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661311b6133d5565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516131609190613e12565b60405180910390a35050565b61317784848461123e565b60008373ffffffffffffffffffffffffffffffffffffffff163b146131d9576131a28484848461384c565b6131d8576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6131e7613d0f565b6131f86131f383612e9b565b613796565b9050919050565b60606000600161320e8461399c565b01905060008167ffffffffffffffff81111561322d5761322c614307565b5b6040519080825280601f01601f19166020018201604052801561325f5781602001600182028036833780820191505090505b509050600082602001820190505b6001156132c2578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816132b6576132b5614e29565b5b0494506000850361326d575b819350505050919050565b6001600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167f4a92e3fad22046b744a1d74eeacc4fd529bfd154dc3ff26d90203e692fd7514660405160405180910390a250565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b6133e78383613aef565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461347557600080549050600083820390505b613427600086838060010194508661384c565b61345d576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061341457816000541461347257600080fd5b50505b505050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8613502868684613caa565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600061354f83612e9b565b905060008190506000806135628661347a565b9150915084156135cb5761357e81846135796133d5565b6134a1565b6135ca576135938361358e6133d5565b612322565b6135c9576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b6135d98360008860016134e5565b80156135e457600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061368c83613649856000886134eb565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717613513565b600460008881526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000851603613712576000600187019050600060046000838152602001908152602001600020540361371057600054811461370f578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461377c83600088600161353e565b600160008154809291906001019190505550505050505050565b61379e613d0f565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026138726133d5565b8786866040518563ffffffff1660e01b815260040161389494939291906157de565b6020604051808303816000875af19250505080156138d057506040513d601f19601f820116820180604052508101906138cd919061583f565b60015b613949573d8060008114613900576040519150601f19603f3d011682016040523d82523d6000602084013e613905565b606091505b506000815103613941576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106139fa577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816139f0576139ef614e29565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613a37576d04ee2d6d415b85acef81000000008381613a2d57613a2c614e29565b5b0492506020810190505b662386f26fc100008310613a6657662386f26fc100008381613a5c57613a5b614e29565b5b0492506010810190505b6305f5e1008310613a8f576305f5e1008381613a8557613a84614e29565b5b0492506008810190505b6127108310613ab4576127108381613aaa57613aa9614e29565b5b0492506004810190505b60648310613ad75760648381613acd57613acc614e29565b5b0492506002810190505b600a8310613ae6576001810190505b80915050919050565b60008054905060008203613b2f576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613b3c60008483856134e5565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613bb383613ba460008660006134eb565b613bad85613cb3565b17613513565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114613c5457808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613c19565b5060008203613c8f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050613ca5600084838561353e565b505050565b60009392505050565b60006001821460e11b9050919050565b6040518061012001604052806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613da781613d72565b8114613db257600080fd5b50565b600081359050613dc481613d9e565b92915050565b600060208284031215613de057613ddf613d68565b5b6000613dee84828501613db5565b91505092915050565b60008115159050919050565b613e0c81613df7565b82525050565b6000602082019050613e276000830184613e03565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613e5882613e2d565b9050919050565b613e6881613e4d565b8114613e7357600080fd5b50565b600081359050613e8581613e5f565b92915050565b60006bffffffffffffffffffffffff82169050919050565b613eac81613e8b565b8114613eb757600080fd5b50565b600081359050613ec981613ea3565b92915050565b60008060408385031215613ee657613ee5613d68565b5b6000613ef485828601613e76565b9250506020613f0585828601613eba565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613f49578082015181840152602081019050613f2e565b60008484015250505050565b6000601f19601f8301169050919050565b6000613f7182613f0f565b613f7b8185613f1a565b9350613f8b818560208601613f2b565b613f9481613f55565b840191505092915050565b60006020820190508181036000830152613fb98184613f66565b905092915050565b6000819050919050565b613fd481613fc1565b8114613fdf57600080fd5b50565b600081359050613ff181613fcb565b92915050565b60006020828403121561400d5761400c613d68565b5b600061401b84828501613fe2565b91505092915050565b61402d81613e4d565b82525050565b60006020820190506140486000830184614024565b92915050565b6000806040838503121561406557614064613d68565b5b600061407385828601613e76565b925050602061408485828601613fe2565b9150509250929050565b6000602082840312156140a4576140a3613d68565b5b60006140b284828501613e76565b91505092915050565b6140c481613fc1565b82525050565b610120820160008201516140e160008501826140bb565b5060208201516140f460208501826140bb565b50604082015161410760408501826140bb565b50606082015161411a60608501826140bb565b50608082015161412d60808501826140bb565b5060a082015161414060a08501826140bb565b5060c082015161415360c08501826140bb565b5060e082015161416660e08501826140bb565b5061010082015161417b6101008501826140bb565b50505050565b60006101208201905061419760008301846140ca565b92915050565b6141a681613fc1565b82525050565b60006020820190506141c1600083018461419d565b92915050565b6000806000606084860312156141e0576141df613d68565b5b60006141ee86828701613e76565b93505060206141ff86828701613e76565b925050604061421086828701613fe2565b9150509250925092565b6000806040838503121561423157614230613d68565b5b600061423f85828601613fe2565b925050602061425085828601613fe2565b9150509250929050565b600060408201905061426f6000830185614024565b61427c602083018461419d565b9392505050565b6000819050919050565b60006142a86142a361429e84613e2d565b614283565b613e2d565b9050919050565b60006142ba8261428d565b9050919050565b60006142cc826142af565b9050919050565b6142dc816142c1565b82525050565b60006020820190506142f760008301846142d3565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61433f82613f55565b810181811067ffffffffffffffff8211171561435e5761435d614307565b5b80604052505050565b6000614371613d5e565b905061437d8282614336565b919050565b600067ffffffffffffffff82111561439d5761439c614307565b5b6143a682613f55565b9050602081019050919050565b82818337600083830152505050565b60006143d56143d084614382565b614367565b9050828152602081018484840111156143f1576143f0614302565b5b6143fc8482856143b3565b509392505050565b600082601f830112614419576144186142fd565b5b81356144298482602086016143c2565b91505092915050565b60006020828403121561444857614447613d68565b5b600082013567ffffffffffffffff81111561446657614465613d6d565b5b61447284828501614404565b91505092915050565b600080fd5b600080fd5b60008083601f84011261449b5761449a6142fd565b5b8235905067ffffffffffffffff8111156144b8576144b761447b565b5b6020830191508360208202830111156144d4576144d3614480565b5b9250929050565b600080602083850312156144f2576144f1613d68565b5b600083013567ffffffffffffffff8111156145105761450f613d6d565b5b61451c85828601614485565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61455d81613e4d565b82525050565b600067ffffffffffffffff82169050919050565b61458081614563565b82525050565b61458f81613df7565b82525050565b600062ffffff82169050919050565b6145ad81614595565b82525050565b6080820160008201516145c96000850182614554565b5060208201516145dc6020850182614577565b5060408201516145ef6040850182614586565b50606082015161460260608501826145a4565b50505050565b600061461483836145b3565b60808301905092915050565b6000602082019050919050565b600061463882614528565b6146428185614533565b935061464d83614544565b8060005b8381101561467e5781516146658882614608565b975061467083614620565b925050600181019050614651565b5085935050505092915050565b600060208201905081810360008301526146a5818461462d565b905092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60006146e583836140bb565b60208301905092915050565b6000602082019050919050565b6000614709826146ad565b61471381856146b8565b935061471e836146c9565b8060005b8381101561474f57815161473688826146d9565b9750614741836146f1565b925050600181019050614722565b5085935050505092915050565b6000602082019050818103600083015261477681846146fe565b905092915050565b60008060006060848603121561479757614796613d68565b5b60006147a586828701613e76565b93505060206147b686828701613fe2565b92505060406147c786828701613fe2565b9150509250925092565b6147da81613df7565b81146147e557600080fd5b50565b6000813590506147f7816147d1565b92915050565b6000806040838503121561481457614813613d68565b5b600061482285828601613e76565b9250506020614833858286016147e8565b9150509250929050565b60006020828403121561485357614852613d68565b5b6000614861848285016147e8565b91505092915050565b600067ffffffffffffffff82111561488557614884614307565b5b61488e82613f55565b9050602081019050919050565b60006148ae6148a98461486a565b614367565b9050828152602081018484840111156148ca576148c9614302565b5b6148d58482856143b3565b509392505050565b600082601f8301126148f2576148f16142fd565b5b813561490284826020860161489b565b91505092915050565b6000806000806080858703121561492557614924613d68565b5b600061493387828801613e76565b945050602061494487828801613e76565b935050604061495587828801613fe2565b925050606085013567ffffffffffffffff81111561497657614975613d6d565b5b614982878288016148dd565b91505092959194509250565b6080820160008201516149a46000850182614554565b5060208201516149b76020850182614577565b5060408201516149ca6040850182614586565b5060608201516149dd60608501826145a4565b50505050565b60006080820190506149f8600083018461498e565b92915050565b60008060408385031215614a1557614a14613d68565b5b6000614a2385828601613e76565b9250506020614a3485828601613e76565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614a8557607f821691505b602082108103614a9857614a97614a3e565b5b50919050565b7f5065726d697373696f6e2064656e696564000000000000000000000000000000600082015250565b6000614ad4601183613f1a565b9150614adf82614a9e565b602082019050919050565b60006020820190508181036000830152614b0381614ac7565b9050919050565b7f43616e6e6f74206d696e742066726f6d20636f6e747261637400000000000000600082015250565b6000614b40601983613f1a565b9150614b4b82614b0a565b602082019050919050565b60006020820190508181036000830152614b6f81614b33565b9050919050565b7f6d7573742062652061637469766520746f206d696e7420746f6b656e73000000600082015250565b6000614bac601d83613f1a565b9150614bb782614b76565b602082019050919050565b60006020820190508181036000830152614bdb81614b9f565b9050919050565b7f616d6f756e74206d7573742062652067726561746572207468616e2030000000600082015250565b6000614c18601d83613f1a565b9150614c2382614be2565b602082019050919050565b60006020820190508181036000830152614c4781614c0b565b9050919050565b7f6d6178206d696e74207065722077616c6c657420776f756c642062652065786360008201527f6565646564000000000000000000000000000000000000000000000000000000602082015250565b6000614caa602583613f1a565b9150614cb582614c4e565b604082019050919050565b60006020820190508181036000830152614cd981614c9d565b9050919050565b7f4d617820737570706c7920666f7220667265656d696e74207265616368656421600082015250565b6000614d16602083613f1a565b9150614d2182614ce0565b602082019050919050565b60006020820190508181036000830152614d4581614d09565b9050919050565b7f6d617820737570706c7920776f756c6420626520657863656564656400000000600082015250565b6000614d82601c83613f1a565b9150614d8d82614d4c565b602082019050919050565b60006020820190508181036000830152614db181614d75565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614df282613fc1565b9150614dfd83613fc1565b9250828202614e0b81613fc1565b91508282048414831517614e2257614e21614db8565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614e6382613fc1565b9150614e6e83613fc1565b925082614e7e57614e7d614e29565b5b828204905092915050565b600081905092915050565b50565b6000614ea4600083614e89565b9150614eaf82614e94565b600082019050919050565b6000614ec582614e97565b9150819050919050565b7f7472616e73666572206661696c65640000000000000000000000000000000000600082015250565b6000614f05600f83613f1a565b9150614f1082614ecf565b602082019050919050565b60006020820190508181036000830152614f3481614ef8565b9050919050565b7f5065726d697373696f6e2064656e69656420666f72206275726e000000000000600082015250565b6000614f71601a83613f1a565b9150614f7c82614f3b565b602082019050919050565b60006020820190508181036000830152614fa081614f64565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026150097fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614fcc565b6150138683614fcc565b95508019841693508086168417925050509392505050565b600061504661504161503c84613fc1565b614283565b613fc1565b9050919050565b6000819050919050565b6150608361502b565b61507461506c8261504d565b848454614fd9565b825550505050565b600090565b61508961507c565b615094818484615057565b505050565b5b818110156150b8576150ad600082615081565b60018101905061509a565b5050565b601f8211156150fd576150ce81614fa7565b6150d784614fbc565b810160208510156150e6578190505b6150fa6150f285614fbc565b830182615099565b50505b505050565b600082821c905092915050565b600061512060001984600802615102565b1980831691505092915050565b6000615139838361510f565b9150826002028217905092915050565b61515282613f0f565b67ffffffffffffffff81111561516b5761516a614307565b5b6151758254614a6d565b6151808282856150bc565b600060209050601f8311600181146151b357600084156151a1578287015190505b6151ab858261512d565b865550615213565b601f1984166151c186614fa7565b60005b828110156151e9578489015182556001820191506020850194506020810190506151c4565b868310156152065784890151615202601f89168261510f565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081905092915050565b6000815461526281614a6d565b61526c818661524a565b94506001821660008114615287576001811461529c576152cf565b60ff19831686528115158202860193506152cf565b6152a585614fa7565b60005b838110156152c7578154818901526001820191506020810190506152a8565b838801955050505b50505092915050565b60006152e382613f0f565b6152ed818561524a565b93506152fd818560208601613f2b565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b600061533f60058361524a565b915061534a82615309565b600582019050919050565b60006153618285615255565b915061536d82846152d8565b915061537882615332565b91508190509392505050565b7f4d617820737570706c7920666f72206d696e747075626c69632072656163686560008201527f6421000000000000000000000000000000000000000000000000000000000000602082015250565b60006153e0602283613f1a565b91506153eb82615384565b604082019050919050565b6000602082019050818103600083015261540f816153d3565b9050919050565b7f76616c7565206e6f74206d657400000000000000000000000000000000000000600082015250565b600061544c600d83613f1a565b915061545782615416565b602082019050919050565b6000602082019050818103600083015261547b8161543f565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006154de602683613f1a565b91506154e982615482565b604082019050919050565b6000602082019050818103600083015261550d816154d1565b9050919050565b600061551f82613fc1565b915061552a83613fc1565b925082820190508082111561554257615541614db8565b5b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061557e602083613f1a565b915061558982615548565b602082019050919050565b600060208201905081810360008301526155ad81615571565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000615610602a83613f1a565b915061561b826155b4565b604082019050919050565b6000602082019050818103600083015261563f81615603565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b600061567c601983613f1a565b915061568782615646565b602082019050919050565b600060208201905081810360008301526156ab8161566f565b9050919050565b60006040820190506156c76000830185614024565b6156d46020830184614024565b9392505050565b6000815190506156ea816147d1565b92915050565b60006020828403121561570657615705613d68565b5b6000615714848285016156db565b91505092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000615753601f83613f1a565b915061575e8261571d565b602082019050919050565b6000602082019050818103600083015261578281615746565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006157b082615789565b6157ba8185615794565b93506157ca818560208601613f2b565b6157d381613f55565b840191505092915050565b60006080820190506157f36000830187614024565b6158006020830186614024565b61580d604083018561419d565b818103606083015261581f81846157a5565b905095945050505050565b60008151905061583981613d9e565b92915050565b60006020828403121561585557615854613d68565b5b60006158638482850161582a565b9150509291505056fea26469706673582212202841996ed60f4abd08de6af5126dfb6d68ad2013f30290ef61c20a0d8bb3bb4964736f6c63430008110033
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.