Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
333 YKELITE
Holders
203
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 YKELITELoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
YakuzaElite
Compiler Version
v0.8.15+commit.e14f2714
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.15; /** * Yakuza Inc - ELITE * ERC-721A Minting contract with Token Locking, Burn/Redemption of Yakuza Genesis Tokens. * S/O to owl of moistness for locking inspiration, @ChiruLabs for ERC721A. */ import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./ERC721A.sol"; interface ITempura { function startDripping(address addr, uint128 multiplier) external; function stopDripping(address addr, uint128 multiplier) external; } contract YakuzaElite is ERC721A, Ownable, ReentrancyGuard { using Strings for uint256; struct GenLegend { bool legendary; bool claimed; } string public baseURI; uint256 public constant MAX_SUPPLY = 333; IERC721 public constant YAKUZA = IERC721(0x0EE1448F200e6e65E9bad7A335E3FFb674c0f68C); ITempura public Tempura; address public constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD; mapping(uint256 => uint256) public tierByToken; mapping(uint256 => uint256) public genTier; mapping(uint256 => GenLegend) public genLegendaries; mapping(uint256 => bool) public lockStatus; mapping(uint256 => uint256) public lockData; bool public isSaleActive; bool public lockingAllowed; uint256 public eliteCounter; event Lock(uint256 token, uint256 timeStamp, address user); event Unlock(uint256 token, uint256 timeStamp, address user); /* ================================================ MODIFIERS ================================================ */ modifier SaleActive() { require(isSaleActive, "Sale is not open"); _; } constructor() ERC721A("Yakuza Elite", "YKELITE") {} /* ================================================ Public/External Write Functions ================================================ */ function mintElite(uint256[] calldata tokens) public SaleActive nonReentrant { require(eliteCounter < 310, "All regular elites have been Claimed"); uint256 value = _calculateValue(tokens); require(value == 6 || value == 3, "You are not burning the correct number of tokens"); for (uint256 i; i < tokens.length; i++) { YAKUZA.transferFrom(msg.sender, BURN_ADDRESS, tokens[i]); } if (value == 3) { unchecked { eliteCounter++; } _mint(msg.sender, 1); } if (value == 6) { unchecked { eliteCounter++; } tierByToken[_currentIndex] = 1; _mint(msg.sender, 1); } } function mintLegendary(uint256 legendary, uint256[] calldata tokens) external SaleActive nonReentrant { require(_totalMinted() < 333, "All Elites have been claimed"); require(genLegendaries[legendary].legendary == true, "You must select a valid Legendary"); require( genLegendaries[legendary].claimed == false, "This legendary has already claimed their Elite" ); uint256 value = _calculateValue(tokens); require(value == 3, "You are not burning the correct number of tokens"); for (uint256 i; i < tokens.length; i++) { YAKUZA.transferFrom(msg.sender, BURN_ADDRESS, tokens[i]); } tierByToken[_currentIndex] = 2; genLegendaries[legendary].claimed = true; _mint(msg.sender, 1); } function ownerMint(uint256 quantity) external nonReentrant onlyOwner { require(_totalMinted() < 333, "All Elites have been claimed"); eliteCounter += quantity; _mint(msg.sender, quantity); } function lockTokens(uint256[] calldata tokenIds) external nonReentrant { require(lockingAllowed, "Locking is not currently allowed."); uint128 value; for (uint256 i; i < tokenIds.length; i++) { _lockToken(tokenIds[i]); if (tierByToken[tokenIds[i]] != 0) { unchecked { value += 20; } } else { unchecked { value += 10; } } } Tempura.startDripping(msg.sender, value); } function unlockTokens(uint256[] calldata tokenIds) external { uint128 value; for (uint256 i; i < tokenIds.length; i++) { if (tierByToken[tokenIds[i]] != 0) { unchecked { value += 20; } } else { unchecked { value += 10; } } _unlockToken(tokenIds[i]); } Tempura.stopDripping(msg.sender, value); } /* ================================================ ACCESS RESTRICTED FUNCTIONS ================================================ */ function setBaseURI(string memory _baseURI) external onlyOwner { baseURI = _baseURI; } function setTier(uint256[] calldata tokenIds, uint128 tier) external onlyOwner { for (uint256 i; i < tokenIds.length; i++) { tierByToken[tokenIds[i]] = tier; } } function withdraw() external onlyOwner { uint256 balance = address(this).balance; payable(msg.sender).transfer(balance); } function unlockBadTokens(uint256[] calldata tokens) external onlyOwner { for (uint256 i; i < tokens.length; i++) { uint128 value; if (tierByToken[tokens[i]] != 0) value += 20; else value += 10; Tempura.stopDripping(ownerOf(tokens[i]), value); _unlockToken(tokens[i]); } } function setGenTierData(uint256[] calldata tokens) external onlyOwner { for (uint256 i; i < tokens.length; i++) { genTier[tokens[i]] = 1; } } function setLegendaries(uint256[] calldata tokens) external onlyOwner { for (uint256 i; i < tokens.length; i++) { genLegendaries[tokens[i]].legendary = true; } } function setTempura(address tempura) external onlyOwner { Tempura = ITempura(tempura); } function toggleSale() external onlyOwner { isSaleActive = !isSaleActive; } function toggleLocking() external onlyOwner { lockingAllowed = !lockingAllowed; } /* ================================================ Internal Write Functions ================================================ */ function _lockToken(uint256 tokenId) internal { require(ownerOf(tokenId) == msg.sender, "You must own a token in order to lock it"); lockStatus[tokenId] = true; lockData[tokenId] = block.timestamp; emit Lock(tokenId, block.timestamp, ownerOf(tokenId)); } function _unlockToken(uint256 tokenId) internal { require( ownerOf(tokenId) == msg.sender || owner() == msg.sender, "You must own a token in order to unlock it" ); lockStatus[tokenId] = false; lockData[tokenId] = 0; emit Unlock(tokenId, block.timestamp, ownerOf(tokenId)); } function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual override { bool lock = false; for (uint256 i; i < quantity; i++) { if (lockStatus[startTokenId + i] == true) { lock = true; } } require(lock == false, "Token Locked"); } /* ================================================ VIEW FUNCTIONS ================================================ */ function tokenURI(uint256 _tokenId) public view override returns (string memory) { require(_exists(_tokenId), "Token does not exist."); return string(abi.encodePacked(baseURI, Strings.toString(_tokenId))); } function getBaseURI() external view returns (string memory) { return baseURI; } function _calculateValue(uint256[] calldata tokens) internal view returns (uint256) { uint256 value; for (uint256 i; i < tokens.length; i++) { uint256 tokenVal = genTier[tokens[i]]; if (tokenVal == 0) { unchecked { value += 1; } } else { unchecked { value += 2; } } } return value; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @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 have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_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) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @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.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, * including the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at `_startTokenId()` * (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // 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 tokenId of the next token to be minted. uint256 public _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 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 1; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view 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 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 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 returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ 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: 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. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view 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 { 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; } /** * 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 ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * 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); } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @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 See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { 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 ''; } /** * @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)) } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, 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 { _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 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 { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); 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 tokenId = startTokenId; uint256 end = startTokenId + quantity; do { emit Transfer(address(0), to, tokenId++); } while (tokenId < end); _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 { 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 Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { // Compute the slot. mstore(0x00, tokenId) mstore(0x20, tokenApprovalsPtr.slot) approvedAddressSlot := keccak256(0x00, 0x40) // Load the slot's value from storage. approvedAddress := sload(approvedAddressSlot) } } /** * @dev Returns whether the `approvedAddress` is equals to `from` or `msgSender`. */ function _isOwnerOrApproved( address approvedAddress, address from, address msgSender ) private pure returns (bool result) { assembly { // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from := and(from, BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, BITMASK_ADDRESS) // `msgSender == from || msgSender == approvedAddress`. result := or(eq(msgSender, from), eq(msgSender, approvedAddress)) } } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(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 `_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) = _getApprovedAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(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++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _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)) } } } } /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal { 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 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; } /** * @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 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 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 returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * 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(); struct TokenOwnership { // The address of the owner. address addr; // Keeps track of 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 through `_extraData`. uint24 extraData; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // 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); // ============================== // 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`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev 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 standard. See `_mintERC2309` for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","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":false,"internalType":"uint256","name":"token","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"},{"indexed":false,"internalType":"address","name":"user","type":"address"}],"name":"Lock","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":false,"internalType":"uint256","name":"token","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeStamp","type":"uint256"},{"indexed":false,"internalType":"address","name":"user","type":"address"}],"name":"Unlock","type":"event"},{"inputs":[],"name":"BURN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"Tempura","outputs":[{"internalType":"contract ITempura","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"YAKUZA","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_currentIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"eliteCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"genLegendaries","outputs":[{"internalType":"bool","name":"legendary","type":"bool"},{"internalType":"bool","name":"claimed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"genTier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lockData","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lockStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"lockTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lockingAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokens","type":"uint256[]"}],"name":"mintElite","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"legendary","type":"uint256"},{"internalType":"uint256[]","name":"tokens","type":"uint256[]"}],"name":"mintLegendary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokens","type":"uint256[]"}],"name":"setGenTierData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokens","type":"uint256[]"}],"name":"setLegendaries","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tempura","type":"address"}],"name":"setTempura","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint128","name":"tier","type":"uint128"}],"name":"setTier","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":"","type":"uint256"}],"name":"tierByToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleLocking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokens","type":"uint256[]"}],"name":"unlockBadTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"unlockTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040518060400160405280600c81526020017f59616b757a6120456c69746500000000000000000000000000000000000000008152506040518060400160405280600781526020017f594b454c4954450000000000000000000000000000000000000000000000000081525081600290816200008f919062000439565b508060039081620000a1919062000439565b50620000b2620000e860201b60201c565b6000819055505050620000da620000ce620000f160201b60201c565b620000f960201b60201c565b600160098190555062000520565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200024157607f821691505b602082108103620002575762000256620001f9565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620002c17fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000282565b620002cd868362000282565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b60006200031a620003146200030e84620002e5565b620002ef565b620002e5565b9050919050565b6000819050919050565b6200033683620002f9565b6200034e620003458262000321565b8484546200028f565b825550505050565b600090565b6200036562000356565b620003728184846200032b565b505050565b5b818110156200039a576200038e6000826200035b565b60018101905062000378565b5050565b601f821115620003e957620003b3816200025d565b620003be8462000272565b81016020851015620003ce578190505b620003e6620003dd8562000272565b83018262000377565b50505b505050565b600082821c905092915050565b60006200040e60001984600802620003ee565b1980831691505092915050565b6000620004298383620003fb565b9150826002028217905092915050565b6200044482620001bf565b67ffffffffffffffff81111562000460576200045f620001ca565b5b6200046c825462000228565b620004798282856200039e565b600060209050601f831160018114620004b157600084156200049c578287015190505b620004a885826200041b565b86555062000518565b601f198416620004c1866200025d565b60005b82811015620004eb57848901518255600182019150602085019450602081019050620004c4565b868310156200050b578489015162000507601f891682620003fb565b8355505b6001600288020188555050505b505050505050565b61462080620005306000396000f3fe608060405234801561001057600080fd5b506004361061028a5760003560e01c80636c0360eb1161015c578063b88d4fde116100ce578063dacac82b11610087578063dacac82b1461079a578063dc4e54ca146107a4578063e985e9c5146107c2578063f19e75d4146107f2578063f2fde38b1461080e578063fccc28131461082a5761028a565b8063b88d4fde146106a2578063ba326b87146106be578063c87b56dd146106ee578063cafe57991461071e578063cbd5d4031461074e578063d728f75c1461076a5761028a565b80637d8966e4116101205780637d8966e4146106045780638da5cb5b1461060e5780639451c99a1461062c57806395d89b411461064a5780639fa0b46614610668578063a22cb465146106865761028a565b80636c0360eb1461057257806370a0823114610590578063714c5398146105c0578063715018a6146105de57806376446bce146105e85761028a565b80631e4f5874116102005780634d00196f116101b95780634d00196f1461049b5780634d23453d146104cc57806355f804b3146104ea578063564566a8146105065780636352211e146105245780636489ad95146105545761028a565b80631e4f58741461040357806323b872dd1461041f5780633091b8a51461043b57806332cb6b0c146104575780633ccfd60b1461047557806342842e0e1461047f5761028a565b8063084b731a11610252578063084b731a14610345578063095ea7b3146103615780630d3742a71461037d5780630eb54201146103ad57806318160ddd146103c95780631d57d68d146103e75761028a565b806301ffc9a71461028f578063029318fb146102bf57806306fdde03146102db57806307cef1f3146102f9578063081812fc14610315575b600080fd5b6102a960048036038101906102a49190612eb6565b610848565b6040516102b69190612efe565b60405180910390f35b6102d960048036038101906102d49190612f7e565b6108da565b005b6102e361093a565b6040516102f09190613064565b60405180910390f35b610313600480360381019061030e9190612f7e565b6109cc565b005b61032f600480360381019061032a91906130bc565b610b26565b60405161033c919061312a565b60405180910390f35b61035f600480360381019061035a9190612f7e565b610ba2565b005b61037b60048036038101906103769190613171565b610d65565b005b610397600480360381019061039291906130bc565b610ea6565b6040516103a491906131c0565b60405180910390f35b6103c760048036038101906103c291906131db565b610ebe565b005b6103d16111ec565b6040516103de91906131c0565b60405180910390f35b61040160048036038101906103fc919061323b565b611203565b005b61041d60048036038101906104189190612f7e565b61124f565b005b61043960048036038101906104349190613268565b6114c0565b005b61045560048036038101906104509190613303565b6117e2565b005b61045f611854565b60405161046c91906131c0565b60405180910390f35b61047d61185a565b005b61049960048036038101906104949190613268565b6118b1565b005b6104b560048036038101906104b091906130bc565b6118d1565b6040516104c3929190613363565b60405180910390f35b6104d461190f565b6040516104e191906133eb565b60405180910390f35b61050460048036038101906104ff9190613536565b611935565b005b61050e611950565b60405161051b9190612efe565b60405180910390f35b61053e600480360381019061053991906130bc565b611963565b60405161054b919061312a565b60405180910390f35b61055c611975565b60405161056991906131c0565b60405180910390f35b61057a61197b565b6040516105879190613064565b60405180910390f35b6105aa60048036038101906105a5919061323b565b611a09565b6040516105b791906131c0565b60405180910390f35b6105c8611ac1565b6040516105d59190613064565b60405180910390f35b6105e6611b53565b005b61060260048036038101906105fd9190612f7e565b611b67565b005b61060c611bdd565b005b610616611c11565b604051610623919061312a565b60405180910390f35b610634611c3b565b60405161064191906131c0565b60405180910390f35b610652611c41565b60405161065f9190613064565b60405180910390f35b610670611cd3565b60405161067d91906135a0565b60405180910390f35b6106a0600480360381019061069b91906135e7565b611ceb565b005b6106bc60048036038101906106b791906136c8565b611e62565b005b6106d860048036038101906106d391906130bc565b611ed5565b6040516106e591906131c0565b60405180910390f35b610708600480360381019061070391906130bc565b611eed565b6040516107159190613064565b60405180910390f35b610738600480360381019061073391906130bc565b611f69565b60405161074591906131c0565b60405180910390f35b61076860048036038101906107639190612f7e565b611f81565b005b610784600480360381019061077f91906130bc565b6120a0565b6040516107919190612efe565b60405180910390f35b6107a26120c0565b005b6107ac6120f4565b6040516107b99190612efe565b60405180910390f35b6107dc60048036038101906107d7919061374b565b612107565b6040516107e99190612efe565b60405180910390f35b61080c600480360381019061080791906130bc565b61219b565b005b6108286004803603810190610823919061323b565b612269565b005b6108326122ec565b60405161083f919061312a565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108a357506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108d35750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6108e26122f2565b60005b82829050811015610935576001600d60008585858181106109095761090861378b565b5b90506020020135815260200190815260200160002081905550808061092d906137e9565b9150506108e5565b505050565b60606002805461094990613860565b80601f016020809104026020016040519081016040528092919081815260200182805461097590613860565b80156109c25780601f10610997576101008083540402835291602001916109c2565b820191906000526020600020905b8154815290600101906020018083116109a557829003601f168201915b5050505050905090565b6109d46122f2565b60005b82829050811015610b2157600080600c60008686868181106109fc576109fb61378b565b5b9050602002013581526020019081526020016000205414610a2b57601481610a249190613891565b9050610a3b565b600a81610a389190613891565b90505b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342db1046610a9b868686818110610a8f57610a8e61378b565b5b90506020020135611963565b836040518363ffffffff1660e01b8152600401610ab99291906138e6565b600060405180830381600087803b158015610ad357600080fd5b505af1158015610ae7573d6000803e3d6000fd5b50505050610b0d848484818110610b0157610b0061378b565b5b90506020020135612370565b508080610b19906137e9565b9150506109d7565b505050565b6000610b31826124ae565b610b67576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600260095403610be7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bde9061395b565b60405180910390fd5b6002600981905550601160019054906101000a900460ff16610c3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c35906139ed565b60405180910390fd5b6000805b83839050811015610cc857610c6f848483818110610c6357610c6261378b565b5b9050602002013561250d565b6000600c6000868685818110610c8857610c8761378b565b5b9050602002013581526020019081526020016000205414610cae57601482019150610cb5565b600a820191505b8080610cc0906137e9565b915050610c42565b50600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fd28521933836040518363ffffffff1660e01b8152600401610d269291906138e6565b600060405180830381600087803b158015610d4057600080fd5b505af1158015610d54573d6000803e3d6000fd5b505050505060016009819055505050565b6000610d7082611963565b90508073ffffffffffffffffffffffffffffffffffffffff16610d9161260d565b73ffffffffffffffffffffffffffffffffffffffff1614610df457610dbd81610db861260d565b612107565b610df3576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60106020528060005260406000206000915090505481565b601160009054906101000a900460ff16610f0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0490613a59565b60405180910390fd5b600260095403610f52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f499061395b565b60405180910390fd5b600260098190555061014d610f65612615565b10610fa5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9c90613ac5565b60405180910390fd5b60011515600e600085815260200190815260200160002060000160009054906101000a900460ff1615151461100f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100690613b57565b60405180910390fd5b60001515600e600085815260200190815260200160002060000160019054906101000a900460ff16151514611079576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107090613be9565b60405180910390fd5b60006110858383612628565b9050600381146110ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c190613c7b565b60405180910390fd5b60005b8383905081101561118957730ee1448f200e6e65e9bad7a335e3ffb674c0f68c73ffffffffffffffffffffffffffffffffffffffff166323b872dd3361dead87878681811061111f5761111e61378b565b5b905060200201356040518463ffffffff1660e01b815260040161114493929190613c9b565b600060405180830381600087803b15801561115e57600080fd5b505af1158015611172573d6000803e3d6000fd5b505050508080611181906137e9565b9150506110cd565b506002600c600080548152602001908152602001600020819055506001600e600086815260200190815260200160002060000160016101000a81548160ff0219169083151502179055506111de3360016126a3565b506001600981905550505050565b60006111f6612875565b6001546000540303905090565b61120b6122f2565b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b601160009054906101000a900460ff1661129e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129590613a59565b60405180910390fd5b6002600954036112e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112da9061395b565b60405180910390fd5b600260098190555061013660125410611331576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132890613d44565b60405180910390fd5b600061133d8383612628565b9050600681148061134e5750600381145b61138d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138490613c7b565b60405180910390fd5b60005b8383905081101561144c57730ee1448f200e6e65e9bad7a335e3ffb674c0f68c73ffffffffffffffffffffffffffffffffffffffff166323b872dd3361dead8787868181106113e2576113e161378b565b5b905060200201356040518463ffffffff1660e01b815260040161140793929190613c9b565b600060405180830381600087803b15801561142157600080fd5b505af1158015611435573d6000803e3d6000fd5b505050508080611444906137e9565b915050611390565b5060038103611473576012600081548092919060010191905055506114723360016126a3565b5b600681036114b3576012600081548092919060010191905055506001600c600080548152602001908152602001600020819055506114b23360016126a3565b5b5060016009819055505050565b60006114cb8261287e565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611532576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061153e8461294a565b91509150611554818761154f61260d565b61296c565b6115a0576115698661156461260d565b612107565b61159f576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611606576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61161386868660016129b0565b801561161e57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506116ec856116c8888887612a5a565b7c020000000000000000000000000000000000000000000000000000000017612a82565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603611772576000600185019050600060046000838152602001908152602001600020540361177057600054811461176f578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46117da8686866001612aad565b505050505050565b6117ea6122f2565b60005b8383905081101561184e57816fffffffffffffffffffffffffffffffff16600c60008686858181106118225761182161378b565b5b905060200201358152602001908152602001600020819055508080611846906137e9565b9150506117ed565b50505050565b61014d81565b6118626122f2565b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156118ad573d6000803e3d6000fd5b5050565b6118cc83838360405180602001604052806000815250611e62565b505050565b600e6020528060005260406000206000915090508060000160009054906101000a900460ff16908060000160019054906101000a900460ff16905082565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61193d6122f2565b80600a908161194c9190613f06565b5050565b601160009054906101000a900460ff1681565b600061196e8261287e565b9050919050565b60125481565b600a805461198890613860565b80601f01602080910402602001604051908101604052809291908181526020018280546119b490613860565b8015611a015780601f106119d657610100808354040283529160200191611a01565b820191906000526020600020905b8154815290600101906020018083116119e457829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611a70576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6060600a8054611ad090613860565b80601f0160208091040260200160405190810160405280929190818152602001828054611afc90613860565b8015611b495780601f10611b1e57610100808354040283529160200191611b49565b820191906000526020600020905b815481529060010190602001808311611b2c57829003601f168201915b5050505050905090565b611b5b6122f2565b611b656000612ab3565b565b611b6f6122f2565b60005b82829050811015611bd8576001600e6000858585818110611b9657611b9561378b565b5b90506020020135815260200190815260200160002060000160006101000a81548160ff0219169083151502179055508080611bd0906137e9565b915050611b72565b505050565b611be56122f2565b601160009054906101000a900460ff1615601160006101000a81548160ff021916908315150217905550565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60005481565b606060038054611c5090613860565b80601f0160208091040260200160405190810160405280929190818152602001828054611c7c90613860565b8015611cc95780601f10611c9e57610100808354040283529160200191611cc9565b820191906000526020600020905b815481529060010190602001808311611cac57829003601f168201915b5050505050905090565b730ee1448f200e6e65e9bad7a335e3ffb674c0f68c81565b611cf361260d565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611d57576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611d6461260d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611e1161260d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611e569190612efe565b60405180910390a35050565b611e6d8484846114c0565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611ecf57611e9884848484612b79565b611ece576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600c6020528060005260406000206000915090505481565b6060611ef8826124ae565b611f37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2e90614024565b60405180910390fd5b600a611f4283612cc9565b604051602001611f53929190614103565b6040516020818303038152906040529050919050565b600d6020528060005260406000206000915090505481565b6000805b8383905081101561200b576000600c6000868685818110611fa957611fa861378b565b5b9050602002013581526020019081526020016000205414611fcf57601482019150611fd6565b600a820191505b611ff8848483818110611fec57611feb61378b565b5b90506020020135612370565b8080612003906137e9565b915050611f85565b50600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342db104633836040518363ffffffff1660e01b81526004016120699291906138e6565b600060405180830381600087803b15801561208357600080fd5b505af1158015612097573d6000803e3d6000fd5b50505050505050565b600f6020528060005260406000206000915054906101000a900460ff1681565b6120c86122f2565b601160019054906101000a900460ff1615601160016101000a81548160ff021916908315150217905550565b601160019054906101000a900460ff1681565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6002600954036121e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d79061395b565b60405180910390fd5b60026009819055506121f06122f2565b61014d6121fb612615565b1061223b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161223290613ac5565b60405180910390fd5b806012600082825461224d9190614127565b9250508190555061225e33826126a3565b600160098190555050565b6122716122f2565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036122e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122d7906141ef565b60405180910390fd5b6122e981612ab3565b50565b61dead81565b6122fa612e29565b73ffffffffffffffffffffffffffffffffffffffff16612318611c11565b73ffffffffffffffffffffffffffffffffffffffff161461236e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123659061425b565b60405180910390fd5b565b3373ffffffffffffffffffffffffffffffffffffffff1661239082611963565b73ffffffffffffffffffffffffffffffffffffffff1614806123e457503373ffffffffffffffffffffffffffffffffffffffff166123cc611c11565b73ffffffffffffffffffffffffffffffffffffffff16145b612423576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161241a906142ed565b60405180910390fd5b6000600f600083815260200190815260200160002060006101000a81548160ff021916908315150217905550600060106000838152602001908152602001600020819055507ff4b5dc38d8b4dcee5e7fc6413bf0bd43c170e5179a2bce1450e21f28e183e748814261249484611963565b6040516124a39392919061430d565b60405180910390a150565b6000816124b9612875565b111580156124c8575060005482105b8015612506575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b3373ffffffffffffffffffffffffffffffffffffffff1661252d82611963565b73ffffffffffffffffffffffffffffffffffffffff1614612583576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257a906143b6565b60405180910390fd5b6001600f600083815260200190815260200160002060006101000a81548160ff0219169083151502179055504260106000838152602001908152602001600020819055507f3cb54077b06ebcb9b6e438df27ab6a97453f26b207e6351e8bd4cdfb145d7a6b81426125f384611963565b6040516126029392919061430d565b60405180910390a150565b600033905090565b600061261f612875565b60005403905090565b60008060005b84849050811015612698576000600d60008787858181106126525761265161378b565b5b9050602002013581526020019081526020016000205490506000810361267d57600183019250612684565b6002830192505b508080612690906137e9565b91505061262e565b508091505092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361270f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008203612749576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61275660008483856129b0565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506127cd836127be6000866000612a5a565b6127c785612e31565b17612a82565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48082106127f1578060008190555050506128706000848385612aad565b505050565b60006001905090565b6000808290508061288d612875565b11612913576000548110156129125760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612910575b600081036129065760046000836001900393508381526020019081526020016000205490506128dc565b8092505050612945565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b6000805b82811015612a0b5760011515600f600083876129d09190614127565b815260200190815260200160002060009054906101000a900460ff161515036129f857600191505b8080612a03906137e9565b9150506129b4565b506000151581151514612a53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4a90614422565b60405180910390fd5b5050505050565b60008060e883901c905060e8612a71868684612e41565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612b9f61260d565b8786866040518563ffffffff1660e01b8152600401612bc19493929190614497565b6020604051808303816000875af1925050508015612bfd57506040513d601f19601f82011682018060405250810190612bfa91906144f8565b60015b612c76573d8060008114612c2d576040519150601f19603f3d011682016040523d82523d6000602084013e612c32565b606091505b506000815103612c6e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060008203612d10576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612e24565b600082905060005b60008214612d42578080612d2b906137e9565b915050600a82612d3b9190614554565b9150612d18565b60008167ffffffffffffffff811115612d5e57612d5d61340b565b5b6040519080825280601f01601f191660200182016040528015612d905781602001600182028036833780820191505090505b5090505b60008514612e1d57600182612da99190614585565b9150600a85612db891906145b9565b6030612dc49190614127565b60f81b818381518110612dda57612dd961378b565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612e169190614554565b9450612d94565b8093505050505b919050565b600033905090565b60006001821460e11b9050919050565b60009392505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612e9381612e5e565b8114612e9e57600080fd5b50565b600081359050612eb081612e8a565b92915050565b600060208284031215612ecc57612ecb612e54565b5b6000612eda84828501612ea1565b91505092915050565b60008115159050919050565b612ef881612ee3565b82525050565b6000602082019050612f136000830184612eef565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112612f3e57612f3d612f19565b5b8235905067ffffffffffffffff811115612f5b57612f5a612f1e565b5b602083019150836020820283011115612f7757612f76612f23565b5b9250929050565b60008060208385031215612f9557612f94612e54565b5b600083013567ffffffffffffffff811115612fb357612fb2612e59565b5b612fbf85828601612f28565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613005578082015181840152602081019050612fea565b83811115613014576000848401525b50505050565b6000601f19601f8301169050919050565b600061303682612fcb565b6130408185612fd6565b9350613050818560208601612fe7565b6130598161301a565b840191505092915050565b6000602082019050818103600083015261307e818461302b565b905092915050565b6000819050919050565b61309981613086565b81146130a457600080fd5b50565b6000813590506130b681613090565b92915050565b6000602082840312156130d2576130d1612e54565b5b60006130e0848285016130a7565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613114826130e9565b9050919050565b61312481613109565b82525050565b600060208201905061313f600083018461311b565b92915050565b61314e81613109565b811461315957600080fd5b50565b60008135905061316b81613145565b92915050565b6000806040838503121561318857613187612e54565b5b60006131968582860161315c565b92505060206131a7858286016130a7565b9150509250929050565b6131ba81613086565b82525050565b60006020820190506131d560008301846131b1565b92915050565b6000806000604084860312156131f4576131f3612e54565b5b6000613202868287016130a7565b935050602084013567ffffffffffffffff81111561322357613222612e59565b5b61322f86828701612f28565b92509250509250925092565b60006020828403121561325157613250612e54565b5b600061325f8482850161315c565b91505092915050565b60008060006060848603121561328157613280612e54565b5b600061328f8682870161315c565b93505060206132a08682870161315c565b92505060406132b1868287016130a7565b9150509250925092565b60006fffffffffffffffffffffffffffffffff82169050919050565b6132e0816132bb565b81146132eb57600080fd5b50565b6000813590506132fd816132d7565b92915050565b60008060006040848603121561331c5761331b612e54565b5b600084013567ffffffffffffffff81111561333a57613339612e59565b5b61334686828701612f28565b93509350506020613359868287016132ee565b9150509250925092565b60006040820190506133786000830185612eef565b6133856020830184612eef565b9392505050565b6000819050919050565b60006133b16133ac6133a7846130e9565b61338c565b6130e9565b9050919050565b60006133c382613396565b9050919050565b60006133d5826133b8565b9050919050565b6133e5816133ca565b82525050565b600060208201905061340060008301846133dc565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6134438261301a565b810181811067ffffffffffffffff821117156134625761346161340b565b5b80604052505050565b6000613475612e4a565b9050613481828261343a565b919050565b600067ffffffffffffffff8211156134a1576134a061340b565b5b6134aa8261301a565b9050602081019050919050565b82818337600083830152505050565b60006134d96134d484613486565b61346b565b9050828152602081018484840111156134f5576134f4613406565b5b6135008482856134b7565b509392505050565b600082601f83011261351d5761351c612f19565b5b813561352d8482602086016134c6565b91505092915050565b60006020828403121561354c5761354b612e54565b5b600082013567ffffffffffffffff81111561356a57613569612e59565b5b61357684828501613508565b91505092915050565b600061358a826133b8565b9050919050565b61359a8161357f565b82525050565b60006020820190506135b56000830184613591565b92915050565b6135c481612ee3565b81146135cf57600080fd5b50565b6000813590506135e1816135bb565b92915050565b600080604083850312156135fe576135fd612e54565b5b600061360c8582860161315c565b925050602061361d858286016135d2565b9150509250929050565b600067ffffffffffffffff8211156136425761364161340b565b5b61364b8261301a565b9050602081019050919050565b600061366b61366684613627565b61346b565b90508281526020810184848401111561368757613686613406565b5b6136928482856134b7565b509392505050565b600082601f8301126136af576136ae612f19565b5b81356136bf848260208601613658565b91505092915050565b600080600080608085870312156136e2576136e1612e54565b5b60006136f08782880161315c565b94505060206137018782880161315c565b9350506040613712878288016130a7565b925050606085013567ffffffffffffffff81111561373357613732612e59565b5b61373f8782880161369a565b91505092959194509250565b6000806040838503121561376257613761612e54565b5b60006137708582860161315c565b92505060206137818582860161315c565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006137f482613086565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613826576138256137ba565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061387857607f821691505b60208210810361388b5761388a613831565b5b50919050565b600061389c826132bb565b91506138a7836132bb565b9250826fffffffffffffffffffffffffffffffff038211156138cc576138cb6137ba565b5b828201905092915050565b6138e0816132bb565b82525050565b60006040820190506138fb600083018561311b565b61390860208301846138d7565b9392505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613945601f83612fd6565b91506139508261390f565b602082019050919050565b6000602082019050818103600083015261397481613938565b9050919050565b7f4c6f636b696e67206973206e6f742063757272656e746c7920616c6c6f77656460008201527f2e00000000000000000000000000000000000000000000000000000000000000602082015250565b60006139d7602183612fd6565b91506139e28261397b565b604082019050919050565b60006020820190508181036000830152613a06816139ca565b9050919050565b7f53616c65206973206e6f74206f70656e00000000000000000000000000000000600082015250565b6000613a43601083612fd6565b9150613a4e82613a0d565b602082019050919050565b60006020820190508181036000830152613a7281613a36565b9050919050565b7f416c6c20456c697465732068617665206265656e20636c61696d656400000000600082015250565b6000613aaf601c83612fd6565b9150613aba82613a79565b602082019050919050565b60006020820190508181036000830152613ade81613aa2565b9050919050565b7f596f75206d7573742073656c65637420612076616c6964204c6567656e64617260008201527f7900000000000000000000000000000000000000000000000000000000000000602082015250565b6000613b41602183612fd6565b9150613b4c82613ae5565b604082019050919050565b60006020820190508181036000830152613b7081613b34565b9050919050565b7f54686973206c6567656e646172792068617320616c726561647920636c61696d60008201527f656420746865697220456c697465000000000000000000000000000000000000602082015250565b6000613bd3602e83612fd6565b9150613bde82613b77565b604082019050919050565b60006020820190508181036000830152613c0281613bc6565b9050919050565b7f596f7520617265206e6f74206275726e696e672074686520636f72726563742060008201527f6e756d626572206f6620746f6b656e7300000000000000000000000000000000602082015250565b6000613c65603083612fd6565b9150613c7082613c09565b604082019050919050565b60006020820190508181036000830152613c9481613c58565b9050919050565b6000606082019050613cb0600083018661311b565b613cbd602083018561311b565b613cca60408301846131b1565b949350505050565b7f416c6c20726567756c617220656c697465732068617665206265656e20436c6160008201527f696d656400000000000000000000000000000000000000000000000000000000602082015250565b6000613d2e602483612fd6565b9150613d3982613cd2565b604082019050919050565b60006020820190508181036000830152613d5d81613d21565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613dc67fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613d89565b613dd08683613d89565b95508019841693508086168417925050509392505050565b6000613e03613dfe613df984613086565b61338c565b613086565b9050919050565b6000819050919050565b613e1d83613de8565b613e31613e2982613e0a565b848454613d96565b825550505050565b600090565b613e46613e39565b613e51818484613e14565b505050565b5b81811015613e7557613e6a600082613e3e565b600181019050613e57565b5050565b601f821115613eba57613e8b81613d64565b613e9484613d79565b81016020851015613ea3578190505b613eb7613eaf85613d79565b830182613e56565b50505b505050565b600082821c905092915050565b6000613edd60001984600802613ebf565b1980831691505092915050565b6000613ef68383613ecc565b9150826002028217905092915050565b613f0f82612fcb565b67ffffffffffffffff811115613f2857613f2761340b565b5b613f328254613860565b613f3d828285613e79565b600060209050601f831160018114613f705760008415613f5e578287015190505b613f688582613eea565b865550613fd0565b601f198416613f7e86613d64565b60005b82811015613fa657848901518255600182019150602085019450602081019050613f81565b86831015613fc35784890151613fbf601f891682613ecc565b8355505b6001600288020188555050505b505050505050565b7f546f6b656e20646f6573206e6f742065786973742e0000000000000000000000600082015250565b600061400e601583612fd6565b915061401982613fd8565b602082019050919050565b6000602082019050818103600083015261403d81614001565b9050919050565b600081905092915050565b6000815461405c81613860565b6140668186614044565b945060018216600081146140815760018114614096576140c9565b60ff19831686528115158202860193506140c9565b61409f85613d64565b60005b838110156140c1578154818901526001820191506020810190506140a2565b838801955050505b50505092915050565b60006140dd82612fcb565b6140e78185614044565b93506140f7818560208601612fe7565b80840191505092915050565b600061410f828561404f565b915061411b82846140d2565b91508190509392505050565b600061413282613086565b915061413d83613086565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614172576141716137ba565b5b828201905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006141d9602683612fd6565b91506141e48261417d565b604082019050919050565b60006020820190508181036000830152614208816141cc565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614245602083612fd6565b91506142508261420f565b602082019050919050565b6000602082019050818103600083015261427481614238565b9050919050565b7f596f75206d757374206f776e206120746f6b656e20696e206f7264657220746f60008201527f20756e6c6f636b20697400000000000000000000000000000000000000000000602082015250565b60006142d7602a83612fd6565b91506142e28261427b565b604082019050919050565b60006020820190508181036000830152614306816142ca565b9050919050565b600060608201905061432260008301866131b1565b61432f60208301856131b1565b61433c604083018461311b565b949350505050565b7f596f75206d757374206f776e206120746f6b656e20696e206f7264657220746f60008201527f206c6f636b206974000000000000000000000000000000000000000000000000602082015250565b60006143a0602883612fd6565b91506143ab82614344565b604082019050919050565b600060208201905081810360008301526143cf81614393565b9050919050565b7f546f6b656e204c6f636b65640000000000000000000000000000000000000000600082015250565b600061440c600c83612fd6565b9150614417826143d6565b602082019050919050565b6000602082019050818103600083015261443b816143ff565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061446982614442565b614473818561444d565b9350614483818560208601612fe7565b61448c8161301a565b840191505092915050565b60006080820190506144ac600083018761311b565b6144b9602083018661311b565b6144c660408301856131b1565b81810360608301526144d8818461445e565b905095945050505050565b6000815190506144f281612e8a565b92915050565b60006020828403121561450e5761450d612e54565b5b600061451c848285016144e3565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061455f82613086565b915061456a83613086565b92508261457a57614579614525565b5b828204905092915050565b600061459082613086565b915061459b83613086565b9250828210156145ae576145ad6137ba565b5b828203905092915050565b60006145c482613086565b91506145cf83613086565b9250826145df576145de614525565b5b82820690509291505056fea2646970667358221220b741c8805b77d2592bc4928e5150791e181c97cf2cd8e794c56219f35349d48164736f6c634300080f0033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061028a5760003560e01c80636c0360eb1161015c578063b88d4fde116100ce578063dacac82b11610087578063dacac82b1461079a578063dc4e54ca146107a4578063e985e9c5146107c2578063f19e75d4146107f2578063f2fde38b1461080e578063fccc28131461082a5761028a565b8063b88d4fde146106a2578063ba326b87146106be578063c87b56dd146106ee578063cafe57991461071e578063cbd5d4031461074e578063d728f75c1461076a5761028a565b80637d8966e4116101205780637d8966e4146106045780638da5cb5b1461060e5780639451c99a1461062c57806395d89b411461064a5780639fa0b46614610668578063a22cb465146106865761028a565b80636c0360eb1461057257806370a0823114610590578063714c5398146105c0578063715018a6146105de57806376446bce146105e85761028a565b80631e4f5874116102005780634d00196f116101b95780634d00196f1461049b5780634d23453d146104cc57806355f804b3146104ea578063564566a8146105065780636352211e146105245780636489ad95146105545761028a565b80631e4f58741461040357806323b872dd1461041f5780633091b8a51461043b57806332cb6b0c146104575780633ccfd60b1461047557806342842e0e1461047f5761028a565b8063084b731a11610252578063084b731a14610345578063095ea7b3146103615780630d3742a71461037d5780630eb54201146103ad57806318160ddd146103c95780631d57d68d146103e75761028a565b806301ffc9a71461028f578063029318fb146102bf57806306fdde03146102db57806307cef1f3146102f9578063081812fc14610315575b600080fd5b6102a960048036038101906102a49190612eb6565b610848565b6040516102b69190612efe565b60405180910390f35b6102d960048036038101906102d49190612f7e565b6108da565b005b6102e361093a565b6040516102f09190613064565b60405180910390f35b610313600480360381019061030e9190612f7e565b6109cc565b005b61032f600480360381019061032a91906130bc565b610b26565b60405161033c919061312a565b60405180910390f35b61035f600480360381019061035a9190612f7e565b610ba2565b005b61037b60048036038101906103769190613171565b610d65565b005b610397600480360381019061039291906130bc565b610ea6565b6040516103a491906131c0565b60405180910390f35b6103c760048036038101906103c291906131db565b610ebe565b005b6103d16111ec565b6040516103de91906131c0565b60405180910390f35b61040160048036038101906103fc919061323b565b611203565b005b61041d60048036038101906104189190612f7e565b61124f565b005b61043960048036038101906104349190613268565b6114c0565b005b61045560048036038101906104509190613303565b6117e2565b005b61045f611854565b60405161046c91906131c0565b60405180910390f35b61047d61185a565b005b61049960048036038101906104949190613268565b6118b1565b005b6104b560048036038101906104b091906130bc565b6118d1565b6040516104c3929190613363565b60405180910390f35b6104d461190f565b6040516104e191906133eb565b60405180910390f35b61050460048036038101906104ff9190613536565b611935565b005b61050e611950565b60405161051b9190612efe565b60405180910390f35b61053e600480360381019061053991906130bc565b611963565b60405161054b919061312a565b60405180910390f35b61055c611975565b60405161056991906131c0565b60405180910390f35b61057a61197b565b6040516105879190613064565b60405180910390f35b6105aa60048036038101906105a5919061323b565b611a09565b6040516105b791906131c0565b60405180910390f35b6105c8611ac1565b6040516105d59190613064565b60405180910390f35b6105e6611b53565b005b61060260048036038101906105fd9190612f7e565b611b67565b005b61060c611bdd565b005b610616611c11565b604051610623919061312a565b60405180910390f35b610634611c3b565b60405161064191906131c0565b60405180910390f35b610652611c41565b60405161065f9190613064565b60405180910390f35b610670611cd3565b60405161067d91906135a0565b60405180910390f35b6106a0600480360381019061069b91906135e7565b611ceb565b005b6106bc60048036038101906106b791906136c8565b611e62565b005b6106d860048036038101906106d391906130bc565b611ed5565b6040516106e591906131c0565b60405180910390f35b610708600480360381019061070391906130bc565b611eed565b6040516107159190613064565b60405180910390f35b610738600480360381019061073391906130bc565b611f69565b60405161074591906131c0565b60405180910390f35b61076860048036038101906107639190612f7e565b611f81565b005b610784600480360381019061077f91906130bc565b6120a0565b6040516107919190612efe565b60405180910390f35b6107a26120c0565b005b6107ac6120f4565b6040516107b99190612efe565b60405180910390f35b6107dc60048036038101906107d7919061374b565b612107565b6040516107e99190612efe565b60405180910390f35b61080c600480360381019061080791906130bc565b61219b565b005b6108286004803603810190610823919061323b565b612269565b005b6108326122ec565b60405161083f919061312a565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108a357506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108d35750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6108e26122f2565b60005b82829050811015610935576001600d60008585858181106109095761090861378b565b5b90506020020135815260200190815260200160002081905550808061092d906137e9565b9150506108e5565b505050565b60606002805461094990613860565b80601f016020809104026020016040519081016040528092919081815260200182805461097590613860565b80156109c25780601f10610997576101008083540402835291602001916109c2565b820191906000526020600020905b8154815290600101906020018083116109a557829003601f168201915b5050505050905090565b6109d46122f2565b60005b82829050811015610b2157600080600c60008686868181106109fc576109fb61378b565b5b9050602002013581526020019081526020016000205414610a2b57601481610a249190613891565b9050610a3b565b600a81610a389190613891565b90505b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342db1046610a9b868686818110610a8f57610a8e61378b565b5b90506020020135611963565b836040518363ffffffff1660e01b8152600401610ab99291906138e6565b600060405180830381600087803b158015610ad357600080fd5b505af1158015610ae7573d6000803e3d6000fd5b50505050610b0d848484818110610b0157610b0061378b565b5b90506020020135612370565b508080610b19906137e9565b9150506109d7565b505050565b6000610b31826124ae565b610b67576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600260095403610be7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bde9061395b565b60405180910390fd5b6002600981905550601160019054906101000a900460ff16610c3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c35906139ed565b60405180910390fd5b6000805b83839050811015610cc857610c6f848483818110610c6357610c6261378b565b5b9050602002013561250d565b6000600c6000868685818110610c8857610c8761378b565b5b9050602002013581526020019081526020016000205414610cae57601482019150610cb5565b600a820191505b8080610cc0906137e9565b915050610c42565b50600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fd28521933836040518363ffffffff1660e01b8152600401610d269291906138e6565b600060405180830381600087803b158015610d4057600080fd5b505af1158015610d54573d6000803e3d6000fd5b505050505060016009819055505050565b6000610d7082611963565b90508073ffffffffffffffffffffffffffffffffffffffff16610d9161260d565b73ffffffffffffffffffffffffffffffffffffffff1614610df457610dbd81610db861260d565b612107565b610df3576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60106020528060005260406000206000915090505481565b601160009054906101000a900460ff16610f0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0490613a59565b60405180910390fd5b600260095403610f52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f499061395b565b60405180910390fd5b600260098190555061014d610f65612615565b10610fa5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9c90613ac5565b60405180910390fd5b60011515600e600085815260200190815260200160002060000160009054906101000a900460ff1615151461100f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100690613b57565b60405180910390fd5b60001515600e600085815260200190815260200160002060000160019054906101000a900460ff16151514611079576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107090613be9565b60405180910390fd5b60006110858383612628565b9050600381146110ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c190613c7b565b60405180910390fd5b60005b8383905081101561118957730ee1448f200e6e65e9bad7a335e3ffb674c0f68c73ffffffffffffffffffffffffffffffffffffffff166323b872dd3361dead87878681811061111f5761111e61378b565b5b905060200201356040518463ffffffff1660e01b815260040161114493929190613c9b565b600060405180830381600087803b15801561115e57600080fd5b505af1158015611172573d6000803e3d6000fd5b505050508080611181906137e9565b9150506110cd565b506002600c600080548152602001908152602001600020819055506001600e600086815260200190815260200160002060000160016101000a81548160ff0219169083151502179055506111de3360016126a3565b506001600981905550505050565b60006111f6612875565b6001546000540303905090565b61120b6122f2565b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b601160009054906101000a900460ff1661129e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129590613a59565b60405180910390fd5b6002600954036112e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112da9061395b565b60405180910390fd5b600260098190555061013660125410611331576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132890613d44565b60405180910390fd5b600061133d8383612628565b9050600681148061134e5750600381145b61138d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138490613c7b565b60405180910390fd5b60005b8383905081101561144c57730ee1448f200e6e65e9bad7a335e3ffb674c0f68c73ffffffffffffffffffffffffffffffffffffffff166323b872dd3361dead8787868181106113e2576113e161378b565b5b905060200201356040518463ffffffff1660e01b815260040161140793929190613c9b565b600060405180830381600087803b15801561142157600080fd5b505af1158015611435573d6000803e3d6000fd5b505050508080611444906137e9565b915050611390565b5060038103611473576012600081548092919060010191905055506114723360016126a3565b5b600681036114b3576012600081548092919060010191905055506001600c600080548152602001908152602001600020819055506114b23360016126a3565b5b5060016009819055505050565b60006114cb8261287e565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611532576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061153e8461294a565b91509150611554818761154f61260d565b61296c565b6115a0576115698661156461260d565b612107565b61159f576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611606576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61161386868660016129b0565b801561161e57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506116ec856116c8888887612a5a565b7c020000000000000000000000000000000000000000000000000000000017612a82565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603611772576000600185019050600060046000838152602001908152602001600020540361177057600054811461176f578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46117da8686866001612aad565b505050505050565b6117ea6122f2565b60005b8383905081101561184e57816fffffffffffffffffffffffffffffffff16600c60008686858181106118225761182161378b565b5b905060200201358152602001908152602001600020819055508080611846906137e9565b9150506117ed565b50505050565b61014d81565b6118626122f2565b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156118ad573d6000803e3d6000fd5b5050565b6118cc83838360405180602001604052806000815250611e62565b505050565b600e6020528060005260406000206000915090508060000160009054906101000a900460ff16908060000160019054906101000a900460ff16905082565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61193d6122f2565b80600a908161194c9190613f06565b5050565b601160009054906101000a900460ff1681565b600061196e8261287e565b9050919050565b60125481565b600a805461198890613860565b80601f01602080910402602001604051908101604052809291908181526020018280546119b490613860565b8015611a015780601f106119d657610100808354040283529160200191611a01565b820191906000526020600020905b8154815290600101906020018083116119e457829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611a70576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6060600a8054611ad090613860565b80601f0160208091040260200160405190810160405280929190818152602001828054611afc90613860565b8015611b495780601f10611b1e57610100808354040283529160200191611b49565b820191906000526020600020905b815481529060010190602001808311611b2c57829003601f168201915b5050505050905090565b611b5b6122f2565b611b656000612ab3565b565b611b6f6122f2565b60005b82829050811015611bd8576001600e6000858585818110611b9657611b9561378b565b5b90506020020135815260200190815260200160002060000160006101000a81548160ff0219169083151502179055508080611bd0906137e9565b915050611b72565b505050565b611be56122f2565b601160009054906101000a900460ff1615601160006101000a81548160ff021916908315150217905550565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60005481565b606060038054611c5090613860565b80601f0160208091040260200160405190810160405280929190818152602001828054611c7c90613860565b8015611cc95780601f10611c9e57610100808354040283529160200191611cc9565b820191906000526020600020905b815481529060010190602001808311611cac57829003601f168201915b5050505050905090565b730ee1448f200e6e65e9bad7a335e3ffb674c0f68c81565b611cf361260d565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611d57576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611d6461260d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611e1161260d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611e569190612efe565b60405180910390a35050565b611e6d8484846114c0565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611ecf57611e9884848484612b79565b611ece576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600c6020528060005260406000206000915090505481565b6060611ef8826124ae565b611f37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2e90614024565b60405180910390fd5b600a611f4283612cc9565b604051602001611f53929190614103565b6040516020818303038152906040529050919050565b600d6020528060005260406000206000915090505481565b6000805b8383905081101561200b576000600c6000868685818110611fa957611fa861378b565b5b9050602002013581526020019081526020016000205414611fcf57601482019150611fd6565b600a820191505b611ff8848483818110611fec57611feb61378b565b5b90506020020135612370565b8080612003906137e9565b915050611f85565b50600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342db104633836040518363ffffffff1660e01b81526004016120699291906138e6565b600060405180830381600087803b15801561208357600080fd5b505af1158015612097573d6000803e3d6000fd5b50505050505050565b600f6020528060005260406000206000915054906101000a900460ff1681565b6120c86122f2565b601160019054906101000a900460ff1615601160016101000a81548160ff021916908315150217905550565b601160019054906101000a900460ff1681565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6002600954036121e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d79061395b565b60405180910390fd5b60026009819055506121f06122f2565b61014d6121fb612615565b1061223b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161223290613ac5565b60405180910390fd5b806012600082825461224d9190614127565b9250508190555061225e33826126a3565b600160098190555050565b6122716122f2565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036122e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122d7906141ef565b60405180910390fd5b6122e981612ab3565b50565b61dead81565b6122fa612e29565b73ffffffffffffffffffffffffffffffffffffffff16612318611c11565b73ffffffffffffffffffffffffffffffffffffffff161461236e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123659061425b565b60405180910390fd5b565b3373ffffffffffffffffffffffffffffffffffffffff1661239082611963565b73ffffffffffffffffffffffffffffffffffffffff1614806123e457503373ffffffffffffffffffffffffffffffffffffffff166123cc611c11565b73ffffffffffffffffffffffffffffffffffffffff16145b612423576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161241a906142ed565b60405180910390fd5b6000600f600083815260200190815260200160002060006101000a81548160ff021916908315150217905550600060106000838152602001908152602001600020819055507ff4b5dc38d8b4dcee5e7fc6413bf0bd43c170e5179a2bce1450e21f28e183e748814261249484611963565b6040516124a39392919061430d565b60405180910390a150565b6000816124b9612875565b111580156124c8575060005482105b8015612506575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b3373ffffffffffffffffffffffffffffffffffffffff1661252d82611963565b73ffffffffffffffffffffffffffffffffffffffff1614612583576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257a906143b6565b60405180910390fd5b6001600f600083815260200190815260200160002060006101000a81548160ff0219169083151502179055504260106000838152602001908152602001600020819055507f3cb54077b06ebcb9b6e438df27ab6a97453f26b207e6351e8bd4cdfb145d7a6b81426125f384611963565b6040516126029392919061430d565b60405180910390a150565b600033905090565b600061261f612875565b60005403905090565b60008060005b84849050811015612698576000600d60008787858181106126525761265161378b565b5b9050602002013581526020019081526020016000205490506000810361267d57600183019250612684565b6002830192505b508080612690906137e9565b91505061262e565b508091505092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361270f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008203612749576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61275660008483856129b0565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506127cd836127be6000866000612a5a565b6127c785612e31565b17612a82565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48082106127f1578060008190555050506128706000848385612aad565b505050565b60006001905090565b6000808290508061288d612875565b11612913576000548110156129125760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612910575b600081036129065760046000836001900393508381526020019081526020016000205490506128dc565b8092505050612945565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b6000805b82811015612a0b5760011515600f600083876129d09190614127565b815260200190815260200160002060009054906101000a900460ff161515036129f857600191505b8080612a03906137e9565b9150506129b4565b506000151581151514612a53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4a90614422565b60405180910390fd5b5050505050565b60008060e883901c905060e8612a71868684612e41565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612b9f61260d565b8786866040518563ffffffff1660e01b8152600401612bc19493929190614497565b6020604051808303816000875af1925050508015612bfd57506040513d601f19601f82011682018060405250810190612bfa91906144f8565b60015b612c76573d8060008114612c2d576040519150601f19603f3d011682016040523d82523d6000602084013e612c32565b606091505b506000815103612c6e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060008203612d10576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612e24565b600082905060005b60008214612d42578080612d2b906137e9565b915050600a82612d3b9190614554565b9150612d18565b60008167ffffffffffffffff811115612d5e57612d5d61340b565b5b6040519080825280601f01601f191660200182016040528015612d905781602001600182028036833780820191505090505b5090505b60008514612e1d57600182612da99190614585565b9150600a85612db891906145b9565b6030612dc49190614127565b60f81b818381518110612dda57612dd961378b565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612e169190614554565b9450612d94565b8093505050505b919050565b600033905090565b60006001821460e11b9050919050565b60009392505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612e9381612e5e565b8114612e9e57600080fd5b50565b600081359050612eb081612e8a565b92915050565b600060208284031215612ecc57612ecb612e54565b5b6000612eda84828501612ea1565b91505092915050565b60008115159050919050565b612ef881612ee3565b82525050565b6000602082019050612f136000830184612eef565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112612f3e57612f3d612f19565b5b8235905067ffffffffffffffff811115612f5b57612f5a612f1e565b5b602083019150836020820283011115612f7757612f76612f23565b5b9250929050565b60008060208385031215612f9557612f94612e54565b5b600083013567ffffffffffffffff811115612fb357612fb2612e59565b5b612fbf85828601612f28565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613005578082015181840152602081019050612fea565b83811115613014576000848401525b50505050565b6000601f19601f8301169050919050565b600061303682612fcb565b6130408185612fd6565b9350613050818560208601612fe7565b6130598161301a565b840191505092915050565b6000602082019050818103600083015261307e818461302b565b905092915050565b6000819050919050565b61309981613086565b81146130a457600080fd5b50565b6000813590506130b681613090565b92915050565b6000602082840312156130d2576130d1612e54565b5b60006130e0848285016130a7565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613114826130e9565b9050919050565b61312481613109565b82525050565b600060208201905061313f600083018461311b565b92915050565b61314e81613109565b811461315957600080fd5b50565b60008135905061316b81613145565b92915050565b6000806040838503121561318857613187612e54565b5b60006131968582860161315c565b92505060206131a7858286016130a7565b9150509250929050565b6131ba81613086565b82525050565b60006020820190506131d560008301846131b1565b92915050565b6000806000604084860312156131f4576131f3612e54565b5b6000613202868287016130a7565b935050602084013567ffffffffffffffff81111561322357613222612e59565b5b61322f86828701612f28565b92509250509250925092565b60006020828403121561325157613250612e54565b5b600061325f8482850161315c565b91505092915050565b60008060006060848603121561328157613280612e54565b5b600061328f8682870161315c565b93505060206132a08682870161315c565b92505060406132b1868287016130a7565b9150509250925092565b60006fffffffffffffffffffffffffffffffff82169050919050565b6132e0816132bb565b81146132eb57600080fd5b50565b6000813590506132fd816132d7565b92915050565b60008060006040848603121561331c5761331b612e54565b5b600084013567ffffffffffffffff81111561333a57613339612e59565b5b61334686828701612f28565b93509350506020613359868287016132ee565b9150509250925092565b60006040820190506133786000830185612eef565b6133856020830184612eef565b9392505050565b6000819050919050565b60006133b16133ac6133a7846130e9565b61338c565b6130e9565b9050919050565b60006133c382613396565b9050919050565b60006133d5826133b8565b9050919050565b6133e5816133ca565b82525050565b600060208201905061340060008301846133dc565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6134438261301a565b810181811067ffffffffffffffff821117156134625761346161340b565b5b80604052505050565b6000613475612e4a565b9050613481828261343a565b919050565b600067ffffffffffffffff8211156134a1576134a061340b565b5b6134aa8261301a565b9050602081019050919050565b82818337600083830152505050565b60006134d96134d484613486565b61346b565b9050828152602081018484840111156134f5576134f4613406565b5b6135008482856134b7565b509392505050565b600082601f83011261351d5761351c612f19565b5b813561352d8482602086016134c6565b91505092915050565b60006020828403121561354c5761354b612e54565b5b600082013567ffffffffffffffff81111561356a57613569612e59565b5b61357684828501613508565b91505092915050565b600061358a826133b8565b9050919050565b61359a8161357f565b82525050565b60006020820190506135b56000830184613591565b92915050565b6135c481612ee3565b81146135cf57600080fd5b50565b6000813590506135e1816135bb565b92915050565b600080604083850312156135fe576135fd612e54565b5b600061360c8582860161315c565b925050602061361d858286016135d2565b9150509250929050565b600067ffffffffffffffff8211156136425761364161340b565b5b61364b8261301a565b9050602081019050919050565b600061366b61366684613627565b61346b565b90508281526020810184848401111561368757613686613406565b5b6136928482856134b7565b509392505050565b600082601f8301126136af576136ae612f19565b5b81356136bf848260208601613658565b91505092915050565b600080600080608085870312156136e2576136e1612e54565b5b60006136f08782880161315c565b94505060206137018782880161315c565b9350506040613712878288016130a7565b925050606085013567ffffffffffffffff81111561373357613732612e59565b5b61373f8782880161369a565b91505092959194509250565b6000806040838503121561376257613761612e54565b5b60006137708582860161315c565b92505060206137818582860161315c565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006137f482613086565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613826576138256137ba565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061387857607f821691505b60208210810361388b5761388a613831565b5b50919050565b600061389c826132bb565b91506138a7836132bb565b9250826fffffffffffffffffffffffffffffffff038211156138cc576138cb6137ba565b5b828201905092915050565b6138e0816132bb565b82525050565b60006040820190506138fb600083018561311b565b61390860208301846138d7565b9392505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613945601f83612fd6565b91506139508261390f565b602082019050919050565b6000602082019050818103600083015261397481613938565b9050919050565b7f4c6f636b696e67206973206e6f742063757272656e746c7920616c6c6f77656460008201527f2e00000000000000000000000000000000000000000000000000000000000000602082015250565b60006139d7602183612fd6565b91506139e28261397b565b604082019050919050565b60006020820190508181036000830152613a06816139ca565b9050919050565b7f53616c65206973206e6f74206f70656e00000000000000000000000000000000600082015250565b6000613a43601083612fd6565b9150613a4e82613a0d565b602082019050919050565b60006020820190508181036000830152613a7281613a36565b9050919050565b7f416c6c20456c697465732068617665206265656e20636c61696d656400000000600082015250565b6000613aaf601c83612fd6565b9150613aba82613a79565b602082019050919050565b60006020820190508181036000830152613ade81613aa2565b9050919050565b7f596f75206d7573742073656c65637420612076616c6964204c6567656e64617260008201527f7900000000000000000000000000000000000000000000000000000000000000602082015250565b6000613b41602183612fd6565b9150613b4c82613ae5565b604082019050919050565b60006020820190508181036000830152613b7081613b34565b9050919050565b7f54686973206c6567656e646172792068617320616c726561647920636c61696d60008201527f656420746865697220456c697465000000000000000000000000000000000000602082015250565b6000613bd3602e83612fd6565b9150613bde82613b77565b604082019050919050565b60006020820190508181036000830152613c0281613bc6565b9050919050565b7f596f7520617265206e6f74206275726e696e672074686520636f72726563742060008201527f6e756d626572206f6620746f6b656e7300000000000000000000000000000000602082015250565b6000613c65603083612fd6565b9150613c7082613c09565b604082019050919050565b60006020820190508181036000830152613c9481613c58565b9050919050565b6000606082019050613cb0600083018661311b565b613cbd602083018561311b565b613cca60408301846131b1565b949350505050565b7f416c6c20726567756c617220656c697465732068617665206265656e20436c6160008201527f696d656400000000000000000000000000000000000000000000000000000000602082015250565b6000613d2e602483612fd6565b9150613d3982613cd2565b604082019050919050565b60006020820190508181036000830152613d5d81613d21565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613dc67fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613d89565b613dd08683613d89565b95508019841693508086168417925050509392505050565b6000613e03613dfe613df984613086565b61338c565b613086565b9050919050565b6000819050919050565b613e1d83613de8565b613e31613e2982613e0a565b848454613d96565b825550505050565b600090565b613e46613e39565b613e51818484613e14565b505050565b5b81811015613e7557613e6a600082613e3e565b600181019050613e57565b5050565b601f821115613eba57613e8b81613d64565b613e9484613d79565b81016020851015613ea3578190505b613eb7613eaf85613d79565b830182613e56565b50505b505050565b600082821c905092915050565b6000613edd60001984600802613ebf565b1980831691505092915050565b6000613ef68383613ecc565b9150826002028217905092915050565b613f0f82612fcb565b67ffffffffffffffff811115613f2857613f2761340b565b5b613f328254613860565b613f3d828285613e79565b600060209050601f831160018114613f705760008415613f5e578287015190505b613f688582613eea565b865550613fd0565b601f198416613f7e86613d64565b60005b82811015613fa657848901518255600182019150602085019450602081019050613f81565b86831015613fc35784890151613fbf601f891682613ecc565b8355505b6001600288020188555050505b505050505050565b7f546f6b656e20646f6573206e6f742065786973742e0000000000000000000000600082015250565b600061400e601583612fd6565b915061401982613fd8565b602082019050919050565b6000602082019050818103600083015261403d81614001565b9050919050565b600081905092915050565b6000815461405c81613860565b6140668186614044565b945060018216600081146140815760018114614096576140c9565b60ff19831686528115158202860193506140c9565b61409f85613d64565b60005b838110156140c1578154818901526001820191506020810190506140a2565b838801955050505b50505092915050565b60006140dd82612fcb565b6140e78185614044565b93506140f7818560208601612fe7565b80840191505092915050565b600061410f828561404f565b915061411b82846140d2565b91508190509392505050565b600061413282613086565b915061413d83613086565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614172576141716137ba565b5b828201905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006141d9602683612fd6565b91506141e48261417d565b604082019050919050565b60006020820190508181036000830152614208816141cc565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614245602083612fd6565b91506142508261420f565b602082019050919050565b6000602082019050818103600083015261427481614238565b9050919050565b7f596f75206d757374206f776e206120746f6b656e20696e206f7264657220746f60008201527f20756e6c6f636b20697400000000000000000000000000000000000000000000602082015250565b60006142d7602a83612fd6565b91506142e28261427b565b604082019050919050565b60006020820190508181036000830152614306816142ca565b9050919050565b600060608201905061432260008301866131b1565b61432f60208301856131b1565b61433c604083018461311b565b949350505050565b7f596f75206d757374206f776e206120746f6b656e20696e206f7264657220746f60008201527f206c6f636b206974000000000000000000000000000000000000000000000000602082015250565b60006143a0602883612fd6565b91506143ab82614344565b604082019050919050565b600060208201905081810360008301526143cf81614393565b9050919050565b7f546f6b656e204c6f636b65640000000000000000000000000000000000000000600082015250565b600061440c600c83612fd6565b9150614417826143d6565b602082019050919050565b6000602082019050818103600083015261443b816143ff565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061446982614442565b614473818561444d565b9350614483818560208601612fe7565b61448c8161301a565b840191505092915050565b60006080820190506144ac600083018761311b565b6144b9602083018661311b565b6144c660408301856131b1565b81810360608301526144d8818461445e565b905095945050505050565b6000815190506144f281612e8a565b92915050565b60006020828403121561450e5761450d612e54565b5b600061451c848285016144e3565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061455f82613086565b915061456a83613086565b92508261457a57614579614525565b5b828204905092915050565b600061459082613086565b915061459b83613086565b9250828210156145ae576145ad6137ba565b5b828203905092915050565b60006145c482613086565b91506145cf83613086565b9250826145df576145de614525565b5b82820690509291505056fea2646970667358221220b741c8805b77d2592bc4928e5150791e181c97cf2cd8e794c56219f35349d48164736f6c634300080f0033
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.