Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
3,777 SHG
Holders
122
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 SHGLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
SillyHedgehogs
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; // // ░██████╗██╗██╗░░░░░██╗░░░░░██╗░░░██╗██╗░░██╗███████╗██████╗░░██████╗░███████╗██╗░░██╗░█████╗░░██████╗░░██████╗ // ██╔════╝██║██║░░░░░██║░░░░░╚██╗░██╔╝██║░░██║██╔════╝██╔══██╗██╔════╝░██╔════╝██║░░██║██╔══██╗██╔════╝░██╔════╝ // ╚█████╗░██║██║░░░░░██║░░░░░░╚████╔╝░███████║█████╗░░██║░░██║██║░░██╗░█████╗░░███████║██║░░██║██║░░██╗░╚█████╗░ // ░╚═══██╗██║██║░░░░░██║░░░░░░░╚██╔╝░░██╔══██║██╔══╝░░██║░░██║██║░░╚██╗██╔══╝░░██╔══██║██║░░██║██║░░╚██╗░╚═══██╗ // ██████╔╝██║███████╗███████╗░░░██║░░░██║░░██║███████╗██████╔╝╚██████╔╝███████╗██║░░██║╚█████╔╝╚██████╔╝██████╔╝ // ╚═════╝░╚═╝╚══════╝╚══════╝░░░╚═╝░░░╚═╝░░╚═╝╚══════╝╚═════╝░░╚═════╝░╚══════╝╚═╝░░╚═╝░╚════╝░░╚═════╝░╚═════╝░ // // created by SillyHedgehogs import "erc721a/contracts/ERC721A.sol"; import "@rari-capital/solmate/src/auth/Owned.sol"; import "erc721a/contracts/extensions/ERC721AQueryable.sol"; import "operator-filter-registry/src/DefaultOperatorFilterer.sol"; contract SillyHedgehogs is ERC721A, ERC721AQueryable, Owned, DefaultOperatorFilterer { uint256 constant MINT_PRICE = 0.019 ether; uint256 public TOTAL_SUPPLY = 7777; uint256 public TOTAL_RESERVES = 4000; uint256 constant PUBLIC_SUPPLY_PLUS_ONE = 3778; uint256 constant MAX_PER_TRANSACTION_PLUS_ONE = 11; string tokenBaseUri = "ipfs://QmQgZjjFxHwN9nWejty3bN4YWZB5DJZBFgymWVHr97ikp1/"; bool public paused = true; mapping(address => uint256) private _freeMintedCount; constructor() ERC721A("SillyHedgehogs", "SHG") Owned(msg.sender) {} // Rename mint function to optimize gas function mint(uint256 _quantity) external payable { unchecked { require(!paused, "MINTING PAUSED"); uint256 _totalSupply = totalSupply(); require(_totalSupply + _quantity < PUBLIC_SUPPLY_PLUS_ONE, "PUBLIC SUPPLY REACHED"); require(_quantity < MAX_PER_TRANSACTION_PLUS_ONE, "MAX PER TRANSACTION IS 10"); uint256 payForCount = _quantity; require( msg.value == payForCount * MINT_PRICE, "INCORRECT ETH AMOUNT" ); _mint(msg.sender, _quantity); } } function _startTokenId() internal pure override returns (uint256) { return 1; } function _baseURI() internal view override returns (string memory) { return tokenBaseUri; } function setBaseURI(string calldata _newBaseUri) external onlyOwner { tokenBaseUri = _newBaseUri; } function flipSale() external onlyOwner { paused = !paused; } function collectReserves(uint _reserve) external onlyOwner { uint256 _totalSupply = totalSupply(); require(_totalSupply + _reserve < TOTAL_RESERVES, "ALL RESERVES TAKEN"); _mint(msg.sender, 200); } function withdraw() external onlyOwner { require( payable(owner).send(address(this).balance), "UNSUCCESSFUL" ); } // OPERATOR FILTERER function transferFrom( address from, address to, uint256 tokenId ) public payable override(IERC721A, ERC721A) onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId ) public payable override(IERC721A, ERC721A) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public payable override(IERC721A, ERC721A) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Simple single owner authorization mixin. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/auth/Owned.sol) abstract contract Owned { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event OwnerUpdated(address indexed user, address indexed newOwner); /*////////////////////////////////////////////////////////////// OWNERSHIP STORAGE //////////////////////////////////////////////////////////////*/ address public owner; modifier onlyOwner() virtual { require(msg.sender == owner, "UNAUTHORIZED"); _; } /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor(address _owner) { owner = _owner; emit OwnerUpdated(address(0), _owner); } /*////////////////////////////////////////////////////////////// OWNERSHIP LOGIC //////////////////////////////////////////////////////////////*/ function setOwner(address newOwner) public virtual onlyOwner { owner = newOwner; emit OwnerUpdated(msg.sender, newOwner); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721AQueryable.sol'; import '../ERC721A.sol'; /** * @title ERC721AQueryable. * * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] calldata tokenIds) external view virtual override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view virtual override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of ERC721AQueryable. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {OperatorFilterer} from "./OperatorFilterer.sol"; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function unregister(address addr) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. */ abstract contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_RESERVES","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_reserve","type":"uint256"}],"name":"collectReserves","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseUri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052611e61600955610fa0600a5560405180606001604052806036815260200162003fff60369139600b90816200003a919062000641565b506001600c60006101000a81548160ff0219169083151502179055503480156200006357600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb66001336040518060400160405280600e81526020017f53696c6c794865646765686f67730000000000000000000000000000000000008152506040518060400160405280600381526020017f53484700000000000000000000000000000000000000000000000000000000008152508160029081620000f9919062000641565b5080600390816200010b919062000641565b506200011c620003be60201b60201c565b600081905550505080600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7660405160405180910390a35060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115620003b65780156200027c576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b8152600401620002429291906200076d565b600060405180830381600087803b1580156200025d57600080fd5b505af115801562000272573d6000803e3d6000fd5b50505050620003b5565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161462000336576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b8152600401620002fc9291906200076d565b600060405180830381600087803b1580156200031757600080fd5b505af11580156200032c573d6000803e3d6000fd5b50505050620003b4565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b81526004016200037f91906200079a565b600060405180830381600087803b1580156200039a57600080fd5b505af1158015620003af573d6000803e3d6000fd5b505050505b5b5b5050620007b7565b60006001905090565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200044957607f821691505b6020821081036200045f576200045e62000401565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620004c97fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200048a565b620004d586836200048a565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620005226200051c6200051684620004ed565b620004f7565b620004ed565b9050919050565b6000819050919050565b6200053e8362000501565b620005566200054d8262000529565b84845462000497565b825550505050565b600090565b6200056d6200055e565b6200057a81848462000533565b505050565b5b81811015620005a2576200059660008262000563565b60018101905062000580565b5050565b601f821115620005f157620005bb8162000465565b620005c6846200047a565b81016020851015620005d6578190505b620005ee620005e5856200047a565b8301826200057f565b50505b505050565b600082821c905092915050565b60006200061660001984600802620005f6565b1980831691505092915050565b600062000631838362000603565b9150826002028217905092915050565b6200064c82620003c7565b67ffffffffffffffff811115620006685762000667620003d2565b5b62000674825462000430565b62000681828285620005a6565b600060209050601f831160018114620006b95760008415620006a4578287015190505b620006b0858262000623565b86555062000720565b601f198416620006c98662000465565b60005b82811015620006f357848901518255600182019150602085019450602081019050620006cc565b868310156200071357848901516200070f601f89168262000603565b8355505b6001600288020188555050505b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620007558262000728565b9050919050565b620007678162000748565b82525050565b60006040820190506200078460008301856200075c565b6200079360208301846200075c565b9392505050565b6000602082019050620007b160008301846200075c565b92915050565b61383880620007c76000396000f3fe6080604052600436106101c25760003560e01c806370a08231116100f7578063a0712d6811610095578063c26f7a5211610064578063c26f7a5214610611578063c87b56dd1461063c578063e5d089ff14610679578063e985e9c5146106a2576101c2565b8063a0712d6814610573578063a22cb4651461058f578063b88d4fde146105b8578063c23dc68f146105d4576101c2565b80638da5cb5b116100d15780638da5cb5b146104b5578063902d55a5146104e057806395d89b411461050b57806399a2557a14610536576101c2565b806370a08231146104245780637ba5e621146104615780638462151c14610478576101c2565b80633ccfd60b1161016457806355f804b31161013e57806355f804b3146103565780635bbb21771461037f5780635c975abb146103bc5780636352211e146103e7576101c2565b80633ccfd60b146102f857806341f434341461030f57806342842e0e1461033a576101c2565b8063095ea7b3116101a0578063095ea7b31461026c57806313af40351461028857806318160ddd146102b157806323b872dd146102dc576101c2565b806301ffc9a7146101c757806306fdde0314610204578063081812fc1461022f575b600080fd5b3480156101d357600080fd5b506101ee60048036038101906101e991906125b1565b6106df565b6040516101fb91906125f9565b60405180910390f35b34801561021057600080fd5b50610219610771565b60405161022691906126a4565b60405180910390f35b34801561023b57600080fd5b50610256600480360381019061025191906126fc565b610803565b604051610263919061276a565b60405180910390f35b610286600480360381019061028191906127b1565b610882565b005b34801561029457600080fd5b506102af60048036038101906102aa91906127f1565b6109c6565b005b3480156102bd57600080fd5b506102c6610af4565b6040516102d3919061282d565b60405180910390f35b6102f660048036038101906102f19190612848565b610b0b565b005b34801561030457600080fd5b5061030d610b5a565b005b34801561031b57600080fd5b50610324610c82565b60405161033191906128fa565b60405180910390f35b610354600480360381019061034f9190612848565b610c94565b005b34801561036257600080fd5b5061037d6004803603810190610378919061297a565b610ce3565b005b34801561038b57600080fd5b506103a660048036038101906103a19190612a1d565b610d89565b6040516103b39190612bcd565b60405180910390f35b3480156103c857600080fd5b506103d1610e4c565b6040516103de91906125f9565b60405180910390f35b3480156103f357600080fd5b5061040e600480360381019061040991906126fc565b610e5f565b60405161041b919061276a565b60405180910390f35b34801561043057600080fd5b5061044b600480360381019061044691906127f1565b610e71565b604051610458919061282d565b60405180910390f35b34801561046d57600080fd5b50610476610f29565b005b34801561048457600080fd5b5061049f600480360381019061049a91906127f1565b610fe5565b6040516104ac9190612cad565b60405180910390f35b3480156104c157600080fd5b506104ca611128565b6040516104d7919061276a565b60405180910390f35b3480156104ec57600080fd5b506104f561114e565b604051610502919061282d565b60405180910390f35b34801561051757600080fd5b50610520611154565b60405161052d91906126a4565b60405180910390f35b34801561054257600080fd5b5061055d60048036038101906105589190612ccf565b6111e6565b60405161056a9190612cad565b60405180910390f35b61058d600480360381019061058891906126fc565b6113f2565b005b34801561059b57600080fd5b506105b660048036038101906105b19190612d4e565b611536565b005b6105d260048036038101906105cd9190612ebe565b611641565b005b3480156105e057600080fd5b506105fb60048036038101906105f691906126fc565b611692565b6040516106089190612f96565b60405180910390f35b34801561061d57600080fd5b506106266116fc565b604051610633919061282d565b60405180910390f35b34801561064857600080fd5b50610663600480360381019061065e91906126fc565b611702565b60405161067091906126a4565b60405180910390f35b34801561068557600080fd5b506106a0600480360381019061069b91906126fc565b6117a0565b005b3480156106ae57600080fd5b506106c960048036038101906106c49190612fb1565b61189a565b6040516106d691906125f9565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061073a57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061076a5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461078090613020565b80601f01602080910402602001604051908101604052809291908181526020018280546107ac90613020565b80156107f95780601f106107ce576101008083540402835291602001916107f9565b820191906000526020600020905b8154815290600101906020018083116107dc57829003601f168201915b5050505050905090565b600061080e8261192e565b610844576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061088d82610e5f565b90508073ffffffffffffffffffffffffffffffffffffffff166108ae61198d565b73ffffffffffffffffffffffffffffffffffffffff1614610911576108da816108d561198d565b61189a565b610910576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4d9061309d565b60405180910390fd5b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7660405160405180910390a350565b6000610afe611995565b6001546000540303905090565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b4957610b483361199e565b5b610b54848484611a9b565b50505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610bea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be19061309d565b60405180910390fd5b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050610c80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7790613109565b60405180910390fd5b565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610cd257610cd13361199e565b5b610cdd848484611dbd565b50505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6a9061309d565b60405180910390fd5b8181600b9182610d849291906132d6565b505050565b6060600083839050905060008167ffffffffffffffff811115610daf57610dae612d93565b5b604051908082528060200260200182016040528015610de857816020015b610dd56124f6565b815260200190600190039081610dcd5790505b50905060005b828114610e4057610e17868683818110610e0b57610e0a6133a6565b5b90506020020135611692565b828281518110610e2a57610e296133a6565b5b6020026020010181905250806001019050610dee565b50809250505092915050565b600c60009054906101000a900460ff1681565b6000610e6a82611ddd565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ed8576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610fb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb09061309d565b60405180910390fd5b600c60009054906101000a900460ff1615600c60006101000a81548160ff021916908315150217905550565b60606000806000610ff585610e71565b905060008167ffffffffffffffff81111561101357611012612d93565b5b6040519080825280602002602001820160405280156110415781602001602082028036833780820191505090505b50905061104c6124f6565b6000611056611995565b90505b83861461111a5761106981611ea9565b9150816040015161110f57600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff16146110b457816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361110e5780838780600101985081518110611101576111006133a6565b5b6020026020010181815250505b5b806001019050611059565b508195505050505050919050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60095481565b60606003805461116390613020565b80601f016020809104026020016040519081016040528092919081815260200182805461118f90613020565b80156111dc5780601f106111b1576101008083540402835291602001916111dc565b820191906000526020600020905b8154815290600101906020018083116111bf57829003601f168201915b5050505050905090565b6060818310611221576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061122c611ed4565b9050611236611995565b85101561124857611245611995565b94505b80841115611254578093505b600061125f87610e71565b90508486101561128257600086860390508181101561127c578091505b50611287565b600090505b60008167ffffffffffffffff8111156112a3576112a2612d93565b5b6040519080825280602002602001820160405280156112d15781602001602082028036833780820191505090505b509050600082036112e857809450505050506113eb565b60006112f388611692565b90506000816040015161130857816000015190505b60008990505b88811415801561131e5750848714155b156113dd5761132c81611ea9565b925082604001516113d257600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff161461137757826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113d157808488806001019950815181106113c4576113c36133a6565b5b6020026020010181815250505b5b80600101905061130e565b508583528296505050505050505b9392505050565b600c60009054906101000a900460ff1615611442576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143990613421565b60405180910390fd5b600061144c610af4565b9050610ec282820110611494576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148b9061348d565b60405180910390fd5b600b82106114d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ce906134f9565b60405180910390fd5b6000829050664380663abb800081023414611527576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151e90613565565b60405180910390fd5b6115313384611edd565b505050565b806007600061154361198d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166115f061198d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161163591906125f9565b60405180910390a35050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461167f5761167e3361199e565b5b61168b85858585612098565b5050505050565b61169a6124f6565b6116a26124f6565b6116aa611995565b8310806116be57506116ba611ed4565b8310155b156116cc57809150506116f7565b6116d583611ea9565b90508060400151156116ea57809150506116f7565b6116f38361210b565b9150505b919050565b600a5481565b606061170d8261192e565b611743576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061174d61212b565b9050600081510361176d5760405180602001604052806000815250611798565b80611777846121bd565b6040516020016117889291906135c1565b6040516020818303038152906040525b915050919050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611830576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118279061309d565b60405180910390fd5b600061183a610af4565b9050600a54828261184b9190613614565b1061188b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188290613694565b60405180910390fd5b6118963360c8611edd565b5050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600081611939611995565b11158015611948575060005482105b8015611986575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611a98576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401611a159291906136b4565b602060405180830381865afa158015611a32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a5691906136f2565b611a9757806040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401611a8e919061276a565b60405180910390fd5b5b50565b6000611aa682611ddd565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611b0d576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611b198461220d565b91509150611b2f8187611b2a61198d565b612234565b611b7b57611b4486611b3f61198d565b61189a565b611b7a576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611be1576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611bee8686866001612278565b8015611bf957600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550611cc785611ca388888761227e565b7c0200000000000000000000000000000000000000000000000000000000176122a6565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603611d4d5760006001850190506000600460008381526020019081526020016000205403611d4b576000548114611d4a578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611db586868660016122d1565b505050505050565b611dd883838360405180602001604052806000815250611641565b505050565b60008082905080611dec611995565b11611e7257600054811015611e715760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611e6f575b60008103611e65576004600083600190039350838152602001908152602001600020549050611e3b565b8092505050611ea4565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b611eb16124f6565b611ecd60046000848152602001908152602001600020546122d7565b9050919050565b60008054905090565b60008054905060008203611f1d576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611f2a6000848385612278565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550611fa183611f92600086600061227e565b611f9b8561238d565b176122a6565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461204257808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612007565b506000820361207d576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600081905550505061209360008483856122d1565b505050565b6120a3848484610b0b565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612105576120ce8484848461239d565b612104576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6121136124f6565b61212461211f83611ddd565b6122d7565b9050919050565b6060600b805461213a90613020565b80601f016020809104026020016040519081016040528092919081815260200182805461216690613020565b80156121b35780601f10612188576101008083540402835291602001916121b3565b820191906000526020600020905b81548152906001019060200180831161219657829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b6001156121f857600184039350600a81066030018453600a81049050806121d6575b50828103602084039350808452505050919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86122958686846124ed565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6122df6124f6565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b60006001821460e11b9050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026123c361198d565b8786866040518563ffffffff1660e01b81526004016123e59493929190613774565b6020604051808303816000875af192505050801561242157506040513d601f19601f8201168201806040525081019061241e91906137d5565b60015b61249a573d8060008114612451576040519150601f19603f3d011682016040523d82523d6000602084013e612456565b606091505b506000815103612492576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60009392505050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61258e81612559565b811461259957600080fd5b50565b6000813590506125ab81612585565b92915050565b6000602082840312156125c7576125c661254f565b5b60006125d58482850161259c565b91505092915050565b60008115159050919050565b6125f3816125de565b82525050565b600060208201905061260e60008301846125ea565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561264e578082015181840152602081019050612633565b60008484015250505050565b6000601f19601f8301169050919050565b600061267682612614565b612680818561261f565b9350612690818560208601612630565b6126998161265a565b840191505092915050565b600060208201905081810360008301526126be818461266b565b905092915050565b6000819050919050565b6126d9816126c6565b81146126e457600080fd5b50565b6000813590506126f6816126d0565b92915050565b6000602082840312156127125761271161254f565b5b6000612720848285016126e7565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061275482612729565b9050919050565b61276481612749565b82525050565b600060208201905061277f600083018461275b565b92915050565b61278e81612749565b811461279957600080fd5b50565b6000813590506127ab81612785565b92915050565b600080604083850312156127c8576127c761254f565b5b60006127d68582860161279c565b92505060206127e7858286016126e7565b9150509250929050565b6000602082840312156128075761280661254f565b5b60006128158482850161279c565b91505092915050565b612827816126c6565b82525050565b6000602082019050612842600083018461281e565b92915050565b6000806000606084860312156128615761286061254f565b5b600061286f8682870161279c565b93505060206128808682870161279c565b9250506040612891868287016126e7565b9150509250925092565b6000819050919050565b60006128c06128bb6128b684612729565b61289b565b612729565b9050919050565b60006128d2826128a5565b9050919050565b60006128e4826128c7565b9050919050565b6128f4816128d9565b82525050565b600060208201905061290f60008301846128eb565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261293a57612939612915565b5b8235905067ffffffffffffffff8111156129575761295661291a565b5b6020830191508360018202830111156129735761297261291f565b5b9250929050565b600080602083850312156129915761299061254f565b5b600083013567ffffffffffffffff8111156129af576129ae612554565b5b6129bb85828601612924565b92509250509250929050565b60008083601f8401126129dd576129dc612915565b5b8235905067ffffffffffffffff8111156129fa576129f961291a565b5b602083019150836020820283011115612a1657612a1561291f565b5b9250929050565b60008060208385031215612a3457612a3361254f565b5b600083013567ffffffffffffffff811115612a5257612a51612554565b5b612a5e858286016129c7565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b612a9f81612749565b82525050565b600067ffffffffffffffff82169050919050565b612ac281612aa5565b82525050565b612ad1816125de565b82525050565b600062ffffff82169050919050565b612aef81612ad7565b82525050565b608082016000820151612b0b6000850182612a96565b506020820151612b1e6020850182612ab9565b506040820151612b316040850182612ac8565b506060820151612b446060850182612ae6565b50505050565b6000612b568383612af5565b60808301905092915050565b6000602082019050919050565b6000612b7a82612a6a565b612b848185612a75565b9350612b8f83612a86565b8060005b83811015612bc0578151612ba78882612b4a565b9750612bb283612b62565b925050600181019050612b93565b5085935050505092915050565b60006020820190508181036000830152612be78184612b6f565b905092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b612c24816126c6565b82525050565b6000612c368383612c1b565b60208301905092915050565b6000602082019050919050565b6000612c5a82612bef565b612c648185612bfa565b9350612c6f83612c0b565b8060005b83811015612ca0578151612c878882612c2a565b9750612c9283612c42565b925050600181019050612c73565b5085935050505092915050565b60006020820190508181036000830152612cc78184612c4f565b905092915050565b600080600060608486031215612ce857612ce761254f565b5b6000612cf68682870161279c565b9350506020612d07868287016126e7565b9250506040612d18868287016126e7565b9150509250925092565b612d2b816125de565b8114612d3657600080fd5b50565b600081359050612d4881612d22565b92915050565b60008060408385031215612d6557612d6461254f565b5b6000612d738582860161279c565b9250506020612d8485828601612d39565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612dcb8261265a565b810181811067ffffffffffffffff82111715612dea57612de9612d93565b5b80604052505050565b6000612dfd612545565b9050612e098282612dc2565b919050565b600067ffffffffffffffff821115612e2957612e28612d93565b5b612e328261265a565b9050602081019050919050565b82818337600083830152505050565b6000612e61612e5c84612e0e565b612df3565b905082815260208101848484011115612e7d57612e7c612d8e565b5b612e88848285612e3f565b509392505050565b600082601f830112612ea557612ea4612915565b5b8135612eb5848260208601612e4e565b91505092915050565b60008060008060808587031215612ed857612ed761254f565b5b6000612ee68782880161279c565b9450506020612ef78782880161279c565b9350506040612f08878288016126e7565b925050606085013567ffffffffffffffff811115612f2957612f28612554565b5b612f3587828801612e90565b91505092959194509250565b608082016000820151612f576000850182612a96565b506020820151612f6a6020850182612ab9565b506040820151612f7d6040850182612ac8565b506060820151612f906060850182612ae6565b50505050565b6000608082019050612fab6000830184612f41565b92915050565b60008060408385031215612fc857612fc761254f565b5b6000612fd68582860161279c565b9250506020612fe78582860161279c565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061303857607f821691505b60208210810361304b5761304a612ff1565b5b50919050565b7f554e415554484f52495a45440000000000000000000000000000000000000000600082015250565b6000613087600c8361261f565b915061309282613051565b602082019050919050565b600060208201905081810360008301526130b68161307a565b9050919050565b7f554e5355434345535346554c0000000000000000000000000000000000000000600082015250565b60006130f3600c8361261f565b91506130fe826130bd565b602082019050919050565b60006020820190508181036000830152613122816130e6565b9050919050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026131967fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613159565b6131a08683613159565b95508019841693508086168417925050509392505050565b60006131d36131ce6131c9846126c6565b61289b565b6126c6565b9050919050565b6000819050919050565b6131ed836131b8565b6132016131f9826131da565b848454613166565b825550505050565b600090565b613216613209565b6132218184846131e4565b505050565b5b818110156132455761323a60008261320e565b600181019050613227565b5050565b601f82111561328a5761325b81613134565b61326484613149565b81016020851015613273578190505b61328761327f85613149565b830182613226565b50505b505050565b600082821c905092915050565b60006132ad6000198460080261328f565b1980831691505092915050565b60006132c6838361329c565b9150826002028217905092915050565b6132e08383613129565b67ffffffffffffffff8111156132f9576132f8612d93565b5b6133038254613020565b61330e828285613249565b6000601f83116001811461333d576000841561332b578287013590505b61333585826132ba565b86555061339d565b601f19841661334b86613134565b60005b828110156133735784890135825560018201915060208501945060208101905061334e565b86831015613390578489013561338c601f89168261329c565b8355505b6001600288020188555050505b50505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4d494e54494e4720504155534544000000000000000000000000000000000000600082015250565b600061340b600e8361261f565b9150613416826133d5565b602082019050919050565b6000602082019050818103600083015261343a816133fe565b9050919050565b7f5055424c494320535550504c5920524541434845440000000000000000000000600082015250565b600061347760158361261f565b915061348282613441565b602082019050919050565b600060208201905081810360008301526134a68161346a565b9050919050565b7f4d415820504552205452414e53414354494f4e20495320313000000000000000600082015250565b60006134e360198361261f565b91506134ee826134ad565b602082019050919050565b60006020820190508181036000830152613512816134d6565b9050919050565b7f494e434f52524543542045544820414d4f554e54000000000000000000000000600082015250565b600061354f60148361261f565b915061355a82613519565b602082019050919050565b6000602082019050818103600083015261357e81613542565b9050919050565b600081905092915050565b600061359b82612614565b6135a58185613585565b93506135b5818560208601612630565b80840191505092915050565b60006135cd8285613590565b91506135d98284613590565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061361f826126c6565b915061362a836126c6565b9250828201905080821115613642576136416135e5565b5b92915050565b7f414c4c2052455345525645532054414b454e0000000000000000000000000000600082015250565b600061367e60128361261f565b915061368982613648565b602082019050919050565b600060208201905081810360008301526136ad81613671565b9050919050565b60006040820190506136c9600083018561275b565b6136d6602083018461275b565b9392505050565b6000815190506136ec81612d22565b92915050565b6000602082840312156137085761370761254f565b5b6000613716848285016136dd565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60006137468261371f565b613750818561372a565b9350613760818560208601612630565b6137698161265a565b840191505092915050565b6000608082019050613789600083018761275b565b613796602083018661275b565b6137a3604083018561281e565b81810360608301526137b5818461373b565b905095945050505050565b6000815190506137cf81612585565b92915050565b6000602082840312156137eb576137ea61254f565b5b60006137f9848285016137c0565b9150509291505056fea26469706673582212201e3875f1df482fa36d4bd9ee9a64edc043bc842a5e83edf857583bf8cf1e326464736f6c63430008110033697066733a2f2f516d51675a6a6a467848774e396e57656a747933624e3459575a4235444a5a424667796d575648723937696b70312f
Deployed Bytecode
0x6080604052600436106101c25760003560e01c806370a08231116100f7578063a0712d6811610095578063c26f7a5211610064578063c26f7a5214610611578063c87b56dd1461063c578063e5d089ff14610679578063e985e9c5146106a2576101c2565b8063a0712d6814610573578063a22cb4651461058f578063b88d4fde146105b8578063c23dc68f146105d4576101c2565b80638da5cb5b116100d15780638da5cb5b146104b5578063902d55a5146104e057806395d89b411461050b57806399a2557a14610536576101c2565b806370a08231146104245780637ba5e621146104615780638462151c14610478576101c2565b80633ccfd60b1161016457806355f804b31161013e57806355f804b3146103565780635bbb21771461037f5780635c975abb146103bc5780636352211e146103e7576101c2565b80633ccfd60b146102f857806341f434341461030f57806342842e0e1461033a576101c2565b8063095ea7b3116101a0578063095ea7b31461026c57806313af40351461028857806318160ddd146102b157806323b872dd146102dc576101c2565b806301ffc9a7146101c757806306fdde0314610204578063081812fc1461022f575b600080fd5b3480156101d357600080fd5b506101ee60048036038101906101e991906125b1565b6106df565b6040516101fb91906125f9565b60405180910390f35b34801561021057600080fd5b50610219610771565b60405161022691906126a4565b60405180910390f35b34801561023b57600080fd5b50610256600480360381019061025191906126fc565b610803565b604051610263919061276a565b60405180910390f35b610286600480360381019061028191906127b1565b610882565b005b34801561029457600080fd5b506102af60048036038101906102aa91906127f1565b6109c6565b005b3480156102bd57600080fd5b506102c6610af4565b6040516102d3919061282d565b60405180910390f35b6102f660048036038101906102f19190612848565b610b0b565b005b34801561030457600080fd5b5061030d610b5a565b005b34801561031b57600080fd5b50610324610c82565b60405161033191906128fa565b60405180910390f35b610354600480360381019061034f9190612848565b610c94565b005b34801561036257600080fd5b5061037d6004803603810190610378919061297a565b610ce3565b005b34801561038b57600080fd5b506103a660048036038101906103a19190612a1d565b610d89565b6040516103b39190612bcd565b60405180910390f35b3480156103c857600080fd5b506103d1610e4c565b6040516103de91906125f9565b60405180910390f35b3480156103f357600080fd5b5061040e600480360381019061040991906126fc565b610e5f565b60405161041b919061276a565b60405180910390f35b34801561043057600080fd5b5061044b600480360381019061044691906127f1565b610e71565b604051610458919061282d565b60405180910390f35b34801561046d57600080fd5b50610476610f29565b005b34801561048457600080fd5b5061049f600480360381019061049a91906127f1565b610fe5565b6040516104ac9190612cad565b60405180910390f35b3480156104c157600080fd5b506104ca611128565b6040516104d7919061276a565b60405180910390f35b3480156104ec57600080fd5b506104f561114e565b604051610502919061282d565b60405180910390f35b34801561051757600080fd5b50610520611154565b60405161052d91906126a4565b60405180910390f35b34801561054257600080fd5b5061055d60048036038101906105589190612ccf565b6111e6565b60405161056a9190612cad565b60405180910390f35b61058d600480360381019061058891906126fc565b6113f2565b005b34801561059b57600080fd5b506105b660048036038101906105b19190612d4e565b611536565b005b6105d260048036038101906105cd9190612ebe565b611641565b005b3480156105e057600080fd5b506105fb60048036038101906105f691906126fc565b611692565b6040516106089190612f96565b60405180910390f35b34801561061d57600080fd5b506106266116fc565b604051610633919061282d565b60405180910390f35b34801561064857600080fd5b50610663600480360381019061065e91906126fc565b611702565b60405161067091906126a4565b60405180910390f35b34801561068557600080fd5b506106a0600480360381019061069b91906126fc565b6117a0565b005b3480156106ae57600080fd5b506106c960048036038101906106c49190612fb1565b61189a565b6040516106d691906125f9565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061073a57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061076a5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461078090613020565b80601f01602080910402602001604051908101604052809291908181526020018280546107ac90613020565b80156107f95780601f106107ce576101008083540402835291602001916107f9565b820191906000526020600020905b8154815290600101906020018083116107dc57829003601f168201915b5050505050905090565b600061080e8261192e565b610844576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061088d82610e5f565b90508073ffffffffffffffffffffffffffffffffffffffff166108ae61198d565b73ffffffffffffffffffffffffffffffffffffffff1614610911576108da816108d561198d565b61189a565b610910576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4d9061309d565b60405180910390fd5b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7660405160405180910390a350565b6000610afe611995565b6001546000540303905090565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b4957610b483361199e565b5b610b54848484611a9b565b50505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610bea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be19061309d565b60405180910390fd5b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050610c80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7790613109565b60405180910390fd5b565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610cd257610cd13361199e565b5b610cdd848484611dbd565b50505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6a9061309d565b60405180910390fd5b8181600b9182610d849291906132d6565b505050565b6060600083839050905060008167ffffffffffffffff811115610daf57610dae612d93565b5b604051908082528060200260200182016040528015610de857816020015b610dd56124f6565b815260200190600190039081610dcd5790505b50905060005b828114610e4057610e17868683818110610e0b57610e0a6133a6565b5b90506020020135611692565b828281518110610e2a57610e296133a6565b5b6020026020010181905250806001019050610dee565b50809250505092915050565b600c60009054906101000a900460ff1681565b6000610e6a82611ddd565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ed8576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610fb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb09061309d565b60405180910390fd5b600c60009054906101000a900460ff1615600c60006101000a81548160ff021916908315150217905550565b60606000806000610ff585610e71565b905060008167ffffffffffffffff81111561101357611012612d93565b5b6040519080825280602002602001820160405280156110415781602001602082028036833780820191505090505b50905061104c6124f6565b6000611056611995565b90505b83861461111a5761106981611ea9565b9150816040015161110f57600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff16146110b457816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361110e5780838780600101985081518110611101576111006133a6565b5b6020026020010181815250505b5b806001019050611059565b508195505050505050919050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60095481565b60606003805461116390613020565b80601f016020809104026020016040519081016040528092919081815260200182805461118f90613020565b80156111dc5780601f106111b1576101008083540402835291602001916111dc565b820191906000526020600020905b8154815290600101906020018083116111bf57829003601f168201915b5050505050905090565b6060818310611221576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061122c611ed4565b9050611236611995565b85101561124857611245611995565b94505b80841115611254578093505b600061125f87610e71565b90508486101561128257600086860390508181101561127c578091505b50611287565b600090505b60008167ffffffffffffffff8111156112a3576112a2612d93565b5b6040519080825280602002602001820160405280156112d15781602001602082028036833780820191505090505b509050600082036112e857809450505050506113eb565b60006112f388611692565b90506000816040015161130857816000015190505b60008990505b88811415801561131e5750848714155b156113dd5761132c81611ea9565b925082604001516113d257600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff161461137757826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113d157808488806001019950815181106113c4576113c36133a6565b5b6020026020010181815250505b5b80600101905061130e565b508583528296505050505050505b9392505050565b600c60009054906101000a900460ff1615611442576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143990613421565b60405180910390fd5b600061144c610af4565b9050610ec282820110611494576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148b9061348d565b60405180910390fd5b600b82106114d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ce906134f9565b60405180910390fd5b6000829050664380663abb800081023414611527576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151e90613565565b60405180910390fd5b6115313384611edd565b505050565b806007600061154361198d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166115f061198d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161163591906125f9565b60405180910390a35050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461167f5761167e3361199e565b5b61168b85858585612098565b5050505050565b61169a6124f6565b6116a26124f6565b6116aa611995565b8310806116be57506116ba611ed4565b8310155b156116cc57809150506116f7565b6116d583611ea9565b90508060400151156116ea57809150506116f7565b6116f38361210b565b9150505b919050565b600a5481565b606061170d8261192e565b611743576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061174d61212b565b9050600081510361176d5760405180602001604052806000815250611798565b80611777846121bd565b6040516020016117889291906135c1565b6040516020818303038152906040525b915050919050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611830576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118279061309d565b60405180910390fd5b600061183a610af4565b9050600a54828261184b9190613614565b1061188b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188290613694565b60405180910390fd5b6118963360c8611edd565b5050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600081611939611995565b11158015611948575060005482105b8015611986575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611a98576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401611a159291906136b4565b602060405180830381865afa158015611a32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a5691906136f2565b611a9757806040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401611a8e919061276a565b60405180910390fd5b5b50565b6000611aa682611ddd565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611b0d576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611b198461220d565b91509150611b2f8187611b2a61198d565b612234565b611b7b57611b4486611b3f61198d565b61189a565b611b7a576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611be1576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611bee8686866001612278565b8015611bf957600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550611cc785611ca388888761227e565b7c0200000000000000000000000000000000000000000000000000000000176122a6565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603611d4d5760006001850190506000600460008381526020019081526020016000205403611d4b576000548114611d4a578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611db586868660016122d1565b505050505050565b611dd883838360405180602001604052806000815250611641565b505050565b60008082905080611dec611995565b11611e7257600054811015611e715760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611e6f575b60008103611e65576004600083600190039350838152602001908152602001600020549050611e3b565b8092505050611ea4565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b611eb16124f6565b611ecd60046000848152602001908152602001600020546122d7565b9050919050565b60008054905090565b60008054905060008203611f1d576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611f2a6000848385612278565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550611fa183611f92600086600061227e565b611f9b8561238d565b176122a6565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461204257808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612007565b506000820361207d576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600081905550505061209360008483856122d1565b505050565b6120a3848484610b0b565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612105576120ce8484848461239d565b612104576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6121136124f6565b61212461211f83611ddd565b6122d7565b9050919050565b6060600b805461213a90613020565b80601f016020809104026020016040519081016040528092919081815260200182805461216690613020565b80156121b35780601f10612188576101008083540402835291602001916121b3565b820191906000526020600020905b81548152906001019060200180831161219657829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b6001156121f857600184039350600a81066030018453600a81049050806121d6575b50828103602084039350808452505050919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86122958686846124ed565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6122df6124f6565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b60006001821460e11b9050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026123c361198d565b8786866040518563ffffffff1660e01b81526004016123e59493929190613774565b6020604051808303816000875af192505050801561242157506040513d601f19601f8201168201806040525081019061241e91906137d5565b60015b61249a573d8060008114612451576040519150601f19603f3d011682016040523d82523d6000602084013e612456565b606091505b506000815103612492576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60009392505050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61258e81612559565b811461259957600080fd5b50565b6000813590506125ab81612585565b92915050565b6000602082840312156125c7576125c661254f565b5b60006125d58482850161259c565b91505092915050565b60008115159050919050565b6125f3816125de565b82525050565b600060208201905061260e60008301846125ea565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561264e578082015181840152602081019050612633565b60008484015250505050565b6000601f19601f8301169050919050565b600061267682612614565b612680818561261f565b9350612690818560208601612630565b6126998161265a565b840191505092915050565b600060208201905081810360008301526126be818461266b565b905092915050565b6000819050919050565b6126d9816126c6565b81146126e457600080fd5b50565b6000813590506126f6816126d0565b92915050565b6000602082840312156127125761271161254f565b5b6000612720848285016126e7565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061275482612729565b9050919050565b61276481612749565b82525050565b600060208201905061277f600083018461275b565b92915050565b61278e81612749565b811461279957600080fd5b50565b6000813590506127ab81612785565b92915050565b600080604083850312156127c8576127c761254f565b5b60006127d68582860161279c565b92505060206127e7858286016126e7565b9150509250929050565b6000602082840312156128075761280661254f565b5b60006128158482850161279c565b91505092915050565b612827816126c6565b82525050565b6000602082019050612842600083018461281e565b92915050565b6000806000606084860312156128615761286061254f565b5b600061286f8682870161279c565b93505060206128808682870161279c565b9250506040612891868287016126e7565b9150509250925092565b6000819050919050565b60006128c06128bb6128b684612729565b61289b565b612729565b9050919050565b60006128d2826128a5565b9050919050565b60006128e4826128c7565b9050919050565b6128f4816128d9565b82525050565b600060208201905061290f60008301846128eb565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261293a57612939612915565b5b8235905067ffffffffffffffff8111156129575761295661291a565b5b6020830191508360018202830111156129735761297261291f565b5b9250929050565b600080602083850312156129915761299061254f565b5b600083013567ffffffffffffffff8111156129af576129ae612554565b5b6129bb85828601612924565b92509250509250929050565b60008083601f8401126129dd576129dc612915565b5b8235905067ffffffffffffffff8111156129fa576129f961291a565b5b602083019150836020820283011115612a1657612a1561291f565b5b9250929050565b60008060208385031215612a3457612a3361254f565b5b600083013567ffffffffffffffff811115612a5257612a51612554565b5b612a5e858286016129c7565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b612a9f81612749565b82525050565b600067ffffffffffffffff82169050919050565b612ac281612aa5565b82525050565b612ad1816125de565b82525050565b600062ffffff82169050919050565b612aef81612ad7565b82525050565b608082016000820151612b0b6000850182612a96565b506020820151612b1e6020850182612ab9565b506040820151612b316040850182612ac8565b506060820151612b446060850182612ae6565b50505050565b6000612b568383612af5565b60808301905092915050565b6000602082019050919050565b6000612b7a82612a6a565b612b848185612a75565b9350612b8f83612a86565b8060005b83811015612bc0578151612ba78882612b4a565b9750612bb283612b62565b925050600181019050612b93565b5085935050505092915050565b60006020820190508181036000830152612be78184612b6f565b905092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b612c24816126c6565b82525050565b6000612c368383612c1b565b60208301905092915050565b6000602082019050919050565b6000612c5a82612bef565b612c648185612bfa565b9350612c6f83612c0b565b8060005b83811015612ca0578151612c878882612c2a565b9750612c9283612c42565b925050600181019050612c73565b5085935050505092915050565b60006020820190508181036000830152612cc78184612c4f565b905092915050565b600080600060608486031215612ce857612ce761254f565b5b6000612cf68682870161279c565b9350506020612d07868287016126e7565b9250506040612d18868287016126e7565b9150509250925092565b612d2b816125de565b8114612d3657600080fd5b50565b600081359050612d4881612d22565b92915050565b60008060408385031215612d6557612d6461254f565b5b6000612d738582860161279c565b9250506020612d8485828601612d39565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612dcb8261265a565b810181811067ffffffffffffffff82111715612dea57612de9612d93565b5b80604052505050565b6000612dfd612545565b9050612e098282612dc2565b919050565b600067ffffffffffffffff821115612e2957612e28612d93565b5b612e328261265a565b9050602081019050919050565b82818337600083830152505050565b6000612e61612e5c84612e0e565b612df3565b905082815260208101848484011115612e7d57612e7c612d8e565b5b612e88848285612e3f565b509392505050565b600082601f830112612ea557612ea4612915565b5b8135612eb5848260208601612e4e565b91505092915050565b60008060008060808587031215612ed857612ed761254f565b5b6000612ee68782880161279c565b9450506020612ef78782880161279c565b9350506040612f08878288016126e7565b925050606085013567ffffffffffffffff811115612f2957612f28612554565b5b612f3587828801612e90565b91505092959194509250565b608082016000820151612f576000850182612a96565b506020820151612f6a6020850182612ab9565b506040820151612f7d6040850182612ac8565b506060820151612f906060850182612ae6565b50505050565b6000608082019050612fab6000830184612f41565b92915050565b60008060408385031215612fc857612fc761254f565b5b6000612fd68582860161279c565b9250506020612fe78582860161279c565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061303857607f821691505b60208210810361304b5761304a612ff1565b5b50919050565b7f554e415554484f52495a45440000000000000000000000000000000000000000600082015250565b6000613087600c8361261f565b915061309282613051565b602082019050919050565b600060208201905081810360008301526130b68161307a565b9050919050565b7f554e5355434345535346554c0000000000000000000000000000000000000000600082015250565b60006130f3600c8361261f565b91506130fe826130bd565b602082019050919050565b60006020820190508181036000830152613122816130e6565b9050919050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026131967fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613159565b6131a08683613159565b95508019841693508086168417925050509392505050565b60006131d36131ce6131c9846126c6565b61289b565b6126c6565b9050919050565b6000819050919050565b6131ed836131b8565b6132016131f9826131da565b848454613166565b825550505050565b600090565b613216613209565b6132218184846131e4565b505050565b5b818110156132455761323a60008261320e565b600181019050613227565b5050565b601f82111561328a5761325b81613134565b61326484613149565b81016020851015613273578190505b61328761327f85613149565b830182613226565b50505b505050565b600082821c905092915050565b60006132ad6000198460080261328f565b1980831691505092915050565b60006132c6838361329c565b9150826002028217905092915050565b6132e08383613129565b67ffffffffffffffff8111156132f9576132f8612d93565b5b6133038254613020565b61330e828285613249565b6000601f83116001811461333d576000841561332b578287013590505b61333585826132ba565b86555061339d565b601f19841661334b86613134565b60005b828110156133735784890135825560018201915060208501945060208101905061334e565b86831015613390578489013561338c601f89168261329c565b8355505b6001600288020188555050505b50505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4d494e54494e4720504155534544000000000000000000000000000000000000600082015250565b600061340b600e8361261f565b9150613416826133d5565b602082019050919050565b6000602082019050818103600083015261343a816133fe565b9050919050565b7f5055424c494320535550504c5920524541434845440000000000000000000000600082015250565b600061347760158361261f565b915061348282613441565b602082019050919050565b600060208201905081810360008301526134a68161346a565b9050919050565b7f4d415820504552205452414e53414354494f4e20495320313000000000000000600082015250565b60006134e360198361261f565b91506134ee826134ad565b602082019050919050565b60006020820190508181036000830152613512816134d6565b9050919050565b7f494e434f52524543542045544820414d4f554e54000000000000000000000000600082015250565b600061354f60148361261f565b915061355a82613519565b602082019050919050565b6000602082019050818103600083015261357e81613542565b9050919050565b600081905092915050565b600061359b82612614565b6135a58185613585565b93506135b5818560208601612630565b80840191505092915050565b60006135cd8285613590565b91506135d98284613590565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061361f826126c6565b915061362a836126c6565b9250828201905080821115613642576136416135e5565b5b92915050565b7f414c4c2052455345525645532054414b454e0000000000000000000000000000600082015250565b600061367e60128361261f565b915061368982613648565b602082019050919050565b600060208201905081810360008301526136ad81613671565b9050919050565b60006040820190506136c9600083018561275b565b6136d6602083018461275b565b9392505050565b6000815190506136ec81612d22565b92915050565b6000602082840312156137085761370761254f565b5b6000613716848285016136dd565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60006137468261371f565b613750818561372a565b9350613760818560208601612630565b6137698161265a565b840191505092915050565b6000608082019050613789600083018761275b565b613796602083018661275b565b6137a3604083018561281e565b81810360608301526137b5818461373b565b905095945050505050565b6000815190506137cf81612585565b92915050565b6000602082840312156137eb576137ea61254f565b5b60006137f9848285016137c0565b9150509291505056fea26469706673582212201e3875f1df482fa36d4bd9ee9a64edc043bc842a5e83edf857583bf8cf1e326464736f6c63430008110033
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.