Token
Azuki (AZUKI)
ERC-721
Overview
Max Total Supply
25 AZUKI
Holders
1
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Balance
0 AZUKILoading...
Loading
Loading...
Loading
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Tokenizer
Compiler Version
v0.8.25+commit.b61c2a91
Optimization Enabled:
No with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // Compatible with OpenZeppelin Contracts ^5.0.0 pragma solidity ^0.8.25; import "erc721a/contracts/ERC721A.sol"; import "erc721a/contracts/extensions/ERC721ABurnable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract Tokenizer is ERC721A, Ownable { constructor( address initialOwner ) ERC721A("Azuki", "AZUKI") Ownable(initialOwner) {} struct BufferItem { address toAddress; string[] tokenUri; bytes32[] cid; uint128[] obsoleteTknId; } struct CompoundReceipt { uint256 timestamp; uint256 tokenId; bytes32 cid; DecodedHistory[] history; } struct DecodedHistory { uint256 tokenId; uint256 timestamp; bytes32 cid; } struct History { uint256 tokenId_timestamp; bytes32 cid; } struct IndexObject { uint128 index; string uri; } mapping(uint256 index => History[] history) private tokenMap; mapping(uint128 tokenId => IndexObject) private indexMap; mapping(bytes32 cid => uint256[] index_position) private cidMap; function safeMint(BufferItem[] calldata buffer) external onlyOwner { unchecked { uint128 i; uint128 j; uint128 buffLen = uint128(buffer.length); uint128 todoTotalItems; uint256 __nextTokenId = _nextTokenId(); uint256 length; uint256 index; BufferItem memory todo; do { todoTotalItems = 0; i = 0; if ( buffer[j].cid.length == buffer[j].tokenUri.length && buffer[j].tokenUri.length == buffer[j].obsoleteTknId.length ) { todo.tokenUri = new string[](buffer[j].cid.length); todo.cid = new bytes32[](buffer[j].tokenUri.length); do { index = indexMap[buffer[j].obsoleteTknId[i]].index; if ( buffer[j].obsoleteTknId[i] > 0 && _exists(buffer[j].obsoleteTknId[i]) ) { length = tokenMap[index].length; if ( ownerOf(buffer[j].obsoleteTknId[i]) == buffer[j].toAddress && buffer[j].toAddress != address(0) && (tokenMap[index][length - 1] .tokenId_timestamp >> 128) == buffer[j].obsoleteTknId[i] ) { ++todoTotalItems; todo.tokenUri[i] = buffer[j].tokenUri[i]; todo.cid[i] = buffer[j].cid[i]; _burn(buffer[j].obsoleteTknId[i], true); indexMap[uint128(__nextTokenId)] = IndexObject({ index: uint128(index), uri: buffer[j].tokenUri[i] }); tokenMap[index].push( History({ tokenId_timestamp: (__nextTokenId << 128) | block.timestamp, cid: buffer[j].cid[i] }) ); cidMap[buffer[j].cid[i]].push( (index << 128) | length ); ++__nextTokenId; } } else { ++todoTotalItems; todo.tokenUri[i] = buffer[j].tokenUri[i]; todo.cid[i] = buffer[j].cid[i]; indexMap[uint128(__nextTokenId)] = IndexObject({ index: uint128(__nextTokenId), uri: buffer[j].tokenUri[i] }); tokenMap[__nextTokenId].push( History({ tokenId_timestamp: (__nextTokenId << 128) | block.timestamp, cid: buffer[j].cid[i] }) ); cidMap[buffer[j].cid[i]].push(__nextTokenId << 128); ++__nextTokenId; } ++i; } while (i < buffer[j].cid.length); if (todoTotalItems > 0) { _safeMint(buffer[j].toAddress, todoTotalItems); } delete todo.tokenUri; delete todo.cid; } ++j; } while (j < buffLen); } } function verify( bytes32 cid ) public view returns (CompoundReceipt[] memory) { uint256[] memory cidItem = cidMap[cid]; uint256 length = cidItem.length; if (length > 0) { CompoundReceipt[] memory receipt = new CompoundReceipt[](length); for (uint256 i = 0; i < length; ++i) { uint256 index = uint128(cidItem[i] >> 128); uint256 position = uint128(cidItem[i]); DecodedHistory[] memory _history = new DecodedHistory[]( tokenMap[index].length ); for (uint256 j = 0; j < tokenMap[index].length; ++j) { _history[j] = DecodedHistory({ timestamp: uint256( tokenMap[index][j].tokenId_timestamp ), tokenId: uint128( tokenMap[index][j].tokenId_timestamp >> 128 ), cid: tokenMap[index][j].cid }); } receipt[i] = CompoundReceipt({ timestamp: uint128( tokenMap[index][position].tokenId_timestamp ), cid: cid, tokenId: tokenMap[index][position].tokenId_timestamp >> 128, history: _history }); } return receipt; } else { CompoundReceipt[] memory receipt = new CompoundReceipt[](1); receipt[0] = CompoundReceipt({ timestamp: 0, cid: "undefined", tokenId: 0, history: new DecodedHistory[](0) }); return receipt; } } function tokenURI( uint256 tokenId ) public view override returns (string memory) { return indexMap[uint128(tokenId)].uri; } function setTokenURI(uint256 tokenId, string memory uri) internal { indexMap[uint128(tokenId)].uri = uri; } function _startTokenId() internal view virtual override returns (uint256) { return 1; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.3.0 // 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()`. * * The `_sequentialUpTo()` function can be overriden to enable spot mints * (i.e. non-consecutive mints) for `tokenId`s greater than `_sequentialUpTo()`. * * 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; // The amount of tokens minted above `_sequentialUpTo()`. // We call these spot mints (i.e. non-sequential mints). uint256 private _spotMinted; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); if (_sequentialUpTo() < _startTokenId()) _revert(SequentialUpToTooSmall.selector); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID for sequential mints. * * Override this function to change the starting token ID for sequential mints. * * Note: The value returned must never change after any tokens have been minted. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the maximum token ID (inclusive) for sequential mints. * * Override this function to return a value less than 2**256 - 1, * but greater than `_startTokenId()`, to enable spot (non-sequential) mints. * * Note: The value returned must never change after any tokens have been minted. */ function _sequentialUpTo() internal view virtual returns (uint256) { return type(uint256).max; } /** * @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 result) { // Counter underflow is impossible as `_burnCounter` cannot be incremented // more than `_currentIndex + _spotMinted - _startTokenId()` times. unchecked { // With spot minting, the intermediate `result` can be temporarily negative, // and the computation must be unchecked. result = _currentIndex - _burnCounter - _startTokenId(); if (_sequentialUpTo() != type(uint256).max) result += _spotMinted; } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256 result) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { result = _currentIndex - _startTokenId(); if (_sequentialUpTo() != type(uint256).max) result += _spotMinted; } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } /** * @dev Returns the total number of tokens that are spot-minted. */ function _totalSpotMinted() internal view virtual returns (uint256) { return _spotMinted; } // ============================================================= // 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.selector); 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.selector); 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 Returns whether the ownership slot at `index` is initialized. * An uninitialized slot does not necessarily mean that the slot has no owner. */ function _ownershipIsInitialized(uint256 index) internal view virtual returns (bool) { return _packedOwnerships[index] != 0; } /** * @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); } } /** * @dev Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256 packed) { if (_startTokenId() <= tokenId) { packed = _packedOwnerships[tokenId]; if (tokenId > _sequentialUpTo()) { if (_packedOwnershipExists(packed)) return packed; _revert(OwnerQueryForNonexistentToken.selector); } // If the data at the starting slot does not exist, start the scan. if (packed == 0) { if (tokenId >= _currentIndex) _revert(OwnerQueryForNonexistentToken.selector); // 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, `tokenId` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. for (;;) { unchecked { packed = _packedOwnerships[--tokenId]; } if (packed == 0) continue; if (packed & _BITMASK_BURNED == 0) return packed; // Otherwise, the token is burned, and we must revert. // This handles the case of batch burned tokens, where only the burned bit // of the starting slot is set, and remaining slots are left uninitialized. _revert(OwnerQueryForNonexistentToken.selector); } } // Otherwise, the data exists and we can skip the scan. // This is possible because we have already achieved the target condition. // This saves 2143 gas on transfers of initialized tokens. // If the token is not burned, return `packed`. Otherwise, revert. if (packed & _BITMASK_BURNED == 0) return packed; } _revert(OwnerQueryForNonexistentToken.selector); } /** * @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. See {ERC721A-_approve}. * * Requirements: * * - The caller must own the token or be an approved operator. */ function approve(address to, uint256 tokenId) public payable virtual override { _approve(to, tokenId, true); } /** * @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.selector); 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 result) { if (_startTokenId() <= tokenId) { if (tokenId > _sequentialUpTo()) return _packedOwnershipExists(_packedOwnerships[tokenId]); if (tokenId < _currentIndex) { uint256 packed; while ((packed = _packedOwnerships[tokenId]) == 0) --tokenId; result = packed & _BITMASK_BURNED == 0; } } } /** * @dev Returns whether `packed` represents a token that exists. */ function _packedOwnershipExists(uint256 packed) private pure returns (bool result) { assembly { // The following is equivalent to `owner != address(0) && burned == false`. // Symbolically tested. result := gt(and(packed, _BITMASK_ADDRESS), and(packed, _BITMASK_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); // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from = address(uint160(uint256(uint160(from)) & _BITMASK_ADDRESS)); if (address(uint160(prevOwnershipPacked)) != from) _revert(TransferFromIncorrectOwner.selector); (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.selector); _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; } } } } // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; assembly { // 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. from, // `from`. toMasked, // `to`. tokenId // `tokenId`. ) } if (toMasked == 0) _revert(TransferToZeroAddress.selector); _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.selector); } } /** * @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.selector); } 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.selector); _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: // - `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) ); // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; if (toMasked == 0) _revert(MintToZeroAddress.selector); uint256 end = startTokenId + quantity; uint256 tokenId = startTokenId; if (end - 1 > _sequentialUpTo()) _revert(SequentialMintExceedsLimit.selector); do { assembly { // 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`. tokenId // `tokenId`. ) } // The `!=` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. } while (++tokenId != end); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) _revert(MintToZeroAddress.selector); if (quantity == 0) _revert(MintZeroQuantity.selector); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) _revert(MintERC2309QuantityExceedsLimit.selector); _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) ); if (startTokenId + quantity - 1 > _sequentialUpTo()) _revert(SequentialMintExceedsLimit.selector); 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.selector); } } while (index < end); // This prevents reentrancy to `_safeMint`. // It does not prevent reentrancy to `_safeMintSpot`. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } /** * @dev Mints a single token at `tokenId`. * * Note: A spot-minted `tokenId` that has been burned can be re-minted again. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` must be greater than `_sequentialUpTo()`. * - `tokenId` must not exist. * * Emits a {Transfer} event for each mint. */ function _mintSpot(address to, uint256 tokenId) internal virtual { if (tokenId <= _sequentialUpTo()) _revert(SpotMintTokenIdTooSmall.selector); uint256 prevOwnershipPacked = _packedOwnerships[tokenId]; if (_packedOwnershipExists(prevOwnershipPacked)) _revert(TokenAlreadyExists.selector); _beforeTokenTransfers(address(0), to, tokenId, 1); // Overflows are incredibly unrealistic. // The `numberMinted` for `to` is incremented by 1, and has a max limit of 2**64 - 1. // `_spotMinted` is incremented by 1, and has a max limit of 2**256 - 1. unchecked { // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `true` (as `quantity == 1`). _packedOwnerships[tokenId] = _packOwnershipData( to, _nextInitializedFlag(1) | _nextExtraData(address(0), to, prevOwnershipPacked) ); // Updates: // - `balance += 1`. // - `numberMinted += 1`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += (1 << _BITPOS_NUMBER_MINTED) | 1; // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; if (toMasked == 0) _revert(MintToZeroAddress.selector); assembly { // 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`. tokenId // `tokenId`. ) } ++_spotMinted; } _afterTokenTransfers(address(0), to, tokenId, 1); } /** * @dev Safely mints a single token at `tokenId`. * * Note: A spot-minted `tokenId` that has been burned can be re-minted again. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}. * - `tokenId` must be greater than `_sequentialUpTo()`. * - `tokenId` must not exist. * * See {_mintSpot}. * * Emits a {Transfer} event. */ function _safeMintSpot( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mintSpot(to, tokenId); unchecked { if (to.code.length != 0) { uint256 currentSpotMinted = _spotMinted; if (!_checkContractOnERC721Received(address(0), to, tokenId, _data)) { _revert(TransferToNonERC721ReceiverImplementer.selector); } // This prevents reentrancy to `_safeMintSpot`. // It does not prevent reentrancy to `_safeMint`. if (_spotMinted != currentSpotMinted) revert(); } } } /** * @dev Equivalent to `_safeMintSpot(to, tokenId, '')`. */ function _safeMintSpot(address to, uint256 tokenId) internal virtual { _safeMintSpot(to, tokenId, ''); } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Equivalent to `_approve(to, tokenId, false)`. */ function _approve(address to, uint256 tokenId) internal virtual { _approve(to, tokenId, false); } /** * @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: * * - `tokenId` must exist. * * Emits an {Approval} event. */ function _approve( address to, uint256 tokenId, bool approvalCheck ) internal virtual { address owner = ownerOf(tokenId); if (approvalCheck && _msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { _revert(ApprovalCallerNotOwnerNorApproved.selector); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } // ============================================================= // 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.selector); } _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 + _spotMinted` 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.selector); 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) } } /** * @dev For more efficient reverts. */ function _revert(bytes4 errorSelector) internal pure { assembly { mstore(0x00, errorSelector) revert(0x00, 0x04) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721ABurnable.sol'; import '../ERC721A.sol'; /** * @title ERC721ABurnable. * * @dev ERC721A token that can be irreversibly burned (destroyed). */ abstract contract ERC721ABurnable is ERC721A, IERC721ABurnable { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual override { _burn(tokenId, true); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of ERC721ABurnable. */ interface IERC721ABurnable is IERC721A { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) external; }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.3.0 // 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(); /** * `_sequentialUpTo()` must be greater than `_startTokenId()`. */ error SequentialUpToTooSmall(); /** * The `tokenId` of a sequential mint exceeds `_sequentialUpTo()`. */ error SequentialMintExceedsLimit(); /** * Spot minting requires a `tokenId` greater than `_sequentialUpTo()`. */ error SpotMintTokenIdTooSmall(); /** * Cannot mint over a token that already exists. */ error TokenAlreadyExists(); /** * The feature is not compatible with spot mints. */ error NotCompatibleWithSpotMints(); // ============================================================= // 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); }
{ "evmVersion": "paris", "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
[{"inputs":[{"internalType":"address","name":"initialOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NotCompatibleWithSpotMints","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"SequentialMintExceedsLimit","type":"error"},{"inputs":[],"name":"SequentialUpToTooSmall","type":"error"},{"inputs":[],"name":"SpotMintTokenIdTooSmall","type":"error"},{"inputs":[],"name":"TokenAlreadyExists","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"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":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"toAddress","type":"address"},{"internalType":"string[]","name":"tokenUri","type":"string[]"},{"internalType":"bytes32[]","name":"cid","type":"bytes32[]"},{"internalType":"uint128[]","name":"obsoleteTknId","type":"uint128[]"}],"internalType":"struct Tokenizer.BufferItem[]","name":"buffer","type":"tuple[]"}],"name":"safeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"cid","type":"bytes32"}],"name":"verify","outputs":[{"components":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes32","name":"cid","type":"bytes32"},{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"bytes32","name":"cid","type":"bytes32"}],"internalType":"struct Tokenizer.DecodedHistory[]","name":"history","type":"tuple[]"}],"internalType":"struct Tokenizer.CompoundReceipt[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50604051614722380380614722833981810160405281019061003291906102fa565b806040518060400160405280600581526020017f417a756b690000000000000000000000000000000000000000000000000000008152506040518060400160405280600581526020017f415a554b4900000000000000000000000000000000000000000000000000000081525081600290816100ae9190610577565b5080600390816100be9190610577565b506100cd61019660201b60201c565b6000819055506100e161019660201b60201c565b6100ef61019f60201b60201c565b101561010c5761010b63fed8210f60e01b6101c760201b60201c565b5b5050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036101805760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016101779190610658565b60405180910390fd5b61018f816101d160201b60201c565b5050610673565b60006001905090565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff905090565b8060005260046000fd5b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006102c78261029c565b9050919050565b6102d7816102bc565b81146102e257600080fd5b50565b6000815190506102f4816102ce565b92915050565b6000602082840312156103105761030f610297565b5b600061031e848285016102e5565b91505092915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806103a857607f821691505b6020821081036103bb576103ba610361565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026104237fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826103e6565b61042d86836103e6565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600061047461046f61046a84610445565b61044f565b610445565b9050919050565b6000819050919050565b61048e83610459565b6104a261049a8261047b565b8484546103f3565b825550505050565b600090565b6104b76104aa565b6104c2818484610485565b505050565b5b818110156104e6576104db6000826104af565b6001810190506104c8565b5050565b601f82111561052b576104fc816103c1565b610505846103d6565b81016020851015610514578190505b610528610520856103d6565b8301826104c7565b50505b505050565b600082821c905092915050565b600061054e60001984600802610530565b1980831691505092915050565b6000610567838361053d565b9150826002028217905092915050565b61058082610327565b67ffffffffffffffff81111561059957610598610332565b5b6105a38254610390565b6105ae8282856104ea565b600060209050601f8311600181146105e157600084156105cf578287015190505b6105d9858261055b565b865550610641565b601f1984166105ef866103c1565b60005b82811015610617578489015182556001820191506020850194506020810190506105f2565b868310156106345784890151610630601f89168261053d565b8355505b6001600288020188555050505b505050505050565b610652816102bc565b82525050565b600060208201905061066d6000830184610649565b92915050565b6140a0806106826000396000f3fe6080604052600436106101145760003560e01c8063715018a6116100a0578063b88d4fde11610064578063b88d4fde1461038a578063c87b56dd146103a6578063d6011afa146103e3578063e985e9c51461040c578063f2fde38b1461044957610114565b8063715018a6146102b757806375e36616146102ce5780638da5cb5b1461030b57806395d89b4114610336578063a22cb4651461036157610114565b806318160ddd116100e757806318160ddd146101da57806323b872dd1461020557806342842e0e146102215780636352211e1461023d57806370a082311461027a57610114565b806301ffc9a71461011957806306fdde0314610156578063081812fc14610181578063095ea7b3146101be575b600080fd5b34801561012557600080fd5b50610140600480360381019061013b9190613136565b610472565b60405161014d919061317e565b60405180910390f35b34801561016257600080fd5b5061016b610504565b6040516101789190613229565b60405180910390f35b34801561018d57600080fd5b506101a860048036038101906101a39190613281565b610596565b6040516101b591906132ef565b60405180910390f35b6101d860048036038101906101d39190613336565b6105f4565b005b3480156101e657600080fd5b506101ef610604565b6040516101fc9190613385565b60405180910390f35b61021f600480360381019061021a91906133a0565b610651565b005b61023b600480360381019061023691906133a0565b610912565b005b34801561024957600080fd5b50610264600480360381019061025f9190613281565b610932565b60405161027191906132ef565b60405180910390f35b34801561028657600080fd5b506102a1600480360381019061029c91906133f3565b610944565b6040516102ae9190613385565b60405180910390f35b3480156102c357600080fd5b506102cc6109db565b005b3480156102da57600080fd5b506102f560048036038101906102f09190613456565b6109ef565b60405161030291906136b7565b60405180910390f35b34801561031757600080fd5b50610320610eb1565b60405161032d91906132ef565b60405180910390f35b34801561034257600080fd5b5061034b610edb565b6040516103589190613229565b60405180910390f35b34801561036d57600080fd5b5061038860048036038101906103839190613705565b610f6d565b005b6103a4600480360381019061039f919061387a565b611078565b005b3480156103b257600080fd5b506103cd60048036038101906103c89190613281565b6110ca565b6040516103da9190613229565b60405180910390f35b3480156103ef57600080fd5b5061040a6004803603810190610405919061395d565b611196565b005b34801561041857600080fd5b50610433600480360381019061042e91906139aa565b6123ea565b604051610440919061317e565b60405180910390f35b34801561045557600080fd5b50610470600480360381019061046b91906133f3565b61247e565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806104cd57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806104fd5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461051390613a19565b80601f016020809104026020016040519081016040528092919081815260200182805461053f90613a19565b801561058c5780601f106105615761010080835404028352916020019161058c565b820191906000526020600020905b81548152906001019060200180831161056f57829003601f168201915b5050505050905090565b60006105a182612504565b6105b6576105b563cf4700e460e01b6125b0565b5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610600828260016125ba565b5050565b600061060e6126e9565b600154600054030390507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6106416126f2565b1461064e57600854810190505b90565b600061065c8261271a565b905073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161693508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146106d1576106d063a114810060e01b6125b0565b5b6000806106dd84612833565b915091506106f381876106ee61285a565b612862565b61071e576107088661070361285a565b6123ea565b61071d5761071c6359c896be60e01b6125b0565b5b5b61072b86868660016128a6565b801561073657600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610804856107e08888876128ac565b7c0200000000000000000000000000000000000000000000000000000000176128d4565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361088a5760006001850190506000600460008381526020019081526020016000205403610888576000548114610887578360046000838152602001908152602001600020819055505b5b505b600073ffffffffffffffffffffffffffffffffffffffff8673ffffffffffffffffffffffffffffffffffffffff161690508481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600081036108fc576108fb63ea553b3460e01b6125b0565b5b61090987878760016128ff565b50505050505050565b61092d83838360405180602001604052806000815250611078565b505050565b600061093d8261271a565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361098a57610989638f4eb60460e01b6125b0565b5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6109e3612905565b6109ed600061298c565b565b60606000600c6000848152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015610a5057602002820191906000526020600020905b815481526020019060010190808311610a3c575b505050505090506000815190506000811115610d965760008167ffffffffffffffff811115610a8257610a8161374f565b5b604051908082528060200260200182016040528015610abb57816020015b610aa861303d565b815260200190600190039081610aa05790505b50905060005b82811015610d8a5760006080858381518110610ae057610adf613a4a565b5b6020026020010151901c6fffffffffffffffffffffffffffffffff1690506000858381518110610b1357610b12613a4a565b5b60200260200101516fffffffffffffffffffffffffffffffff1690506000600a60008481526020019081526020016000208054905067ffffffffffffffff811115610b6157610b6061374f565b5b604051908082528060200260200182016040528015610b9a57816020015b610b87613068565b815260200190600190039081610b7f5790505b50905060005b600a600085815260200190815260200160002080549050811015610cba5760405180606001604052806080600a60008881526020019081526020016000208481548110610bf057610bef613a4a565b5b906000526020600020906002020160000154901c6fffffffffffffffffffffffffffffffff168152602001600a60008781526020019081526020016000208381548110610c4057610c3f613a4a565b5b9060005260206000209060020201600001548152602001600a60008781526020019081526020016000208381548110610c7c57610c7b613a4a565b5b906000526020600020906002020160010154815250828281518110610ca457610ca3613a4a565b5b6020026020010181905250806001019050610ba0565b506040518060800160405280600a60008681526020019081526020016000208481548110610ceb57610cea613a4a565b5b9060005260206000209060020201600001546fffffffffffffffffffffffffffffffff1681526020016080600a60008781526020019081526020016000208581548110610d3b57610d3a613a4a565b5b906000526020600020906002020160000154901c81526020018a815260200182815250858581518110610d7157610d70613a4a565b5b6020026020010181905250505050806001019050610ac1565b50809350505050610eac565b6000600167ffffffffffffffff811115610db357610db261374f565b5b604051908082528060200260200182016040528015610dec57816020015b610dd961303d565b815260200190600190039081610dd15790505b509050604051806080016040528060008152602001600081526020017f756e646566696e656400000000000000000000000000000000000000000000008152602001600067ffffffffffffffff811115610e4957610e4861374f565b5b604051908082528060200260200182016040528015610e8257816020015b610e6f613068565b815260200190600190039081610e675790505b5081525081600081518110610e9a57610e99613a4a565b5b60200260200101819052508093505050505b919050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054610eea90613a19565b80601f0160208091040260200160405190810160405280929190818152602001828054610f1690613a19565b8015610f635780601f10610f3857610100808354040283529160200191610f63565b820191906000526020600020905b815481529060010190602001808311610f4657829003601f168201915b5050505050905090565b8060076000610f7a61285a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661102761285a565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161106c919061317e565b60405180910390a35050565b611083848484610651565b60008373ffffffffffffffffffffffffffffffffffffffff163b146110c4576110ae84848484612a52565b6110c3576110c263d1a57ed660e01b6125b0565b5b5b50505050565b6060600b6000836fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff168152602001908152602001600020600101805461111190613a19565b80601f016020809104026020016040519081016040528092919081815260200182805461113d90613a19565b801561118a5780601f1061115f5761010080835404028352916020019161118a565b820191906000526020600020905b81548152906001019060200180831161116d57829003601f168201915b50505050509050919050565b61119e612905565b60008060008484905090506000806111b4612b81565b90506000806111c161308c565b5b60009450600097508989886fffffffffffffffffffffffffffffffff168181106111ef576111ee613a4a565b5b90506020028101906112019190613a88565b80602001906112109190613ab0565b90508a8a896fffffffffffffffffffffffffffffffff1681811061123757611236613a4a565b5b90506020028101906112499190613a88565b80604001906112589190613b13565b90501480156112f457508989886fffffffffffffffffffffffffffffffff1681811061128757611286613a4a565b5b90506020028101906112999190613a88565b80606001906112a89190613b76565b90508a8a896fffffffffffffffffffffffffffffffff168181106112cf576112ce613a4a565b5b90506020028101906112e19190613a88565b80602001906112f09190613ab0565b9050145b156123ad578989886fffffffffffffffffffffffffffffffff1681811061131e5761131d613a4a565b5b90506020028101906113309190613a88565b806040019061133f9190613b13565b905067ffffffffffffffff81111561135a5761135961374f565b5b60405190808252806020026020018201604052801561138d57816020015b60608152602001906001900390816113785790505b5081602001819052508989886fffffffffffffffffffffffffffffffff168181106113bb576113ba613a4a565b5b90506020028101906113cd9190613a88565b80602001906113dc9190613ab0565b905067ffffffffffffffff8111156113f7576113f661374f565b5b6040519080825280602002602001820160405280156114255781602001602082028036833780820191505090505b5081604001819052505b600b60008b8b8a6fffffffffffffffffffffffffffffffff1681811061145857611457613a4a565b5b905060200281019061146a9190613a88565b80606001906114799190613b76565b8b6fffffffffffffffffffffffffffffffff1681811061149c5761149b613a4a565b5b90506020020160208101906114b19190613c21565b6fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16915060008a8a896fffffffffffffffffffffffffffffffff1681811061153e5761153d613a4a565b5b90506020028101906115509190613a88565b806060019061155f9190613b76565b8a6fffffffffffffffffffffffffffffffff1681811061158257611581613a4a565b5b90506020020160208101906115979190613c21565b6fffffffffffffffffffffffffffffffff1611801561164a57506116498a8a896fffffffffffffffffffffffffffffffff168181106115d9576115d8613a4a565b5b90506020028101906115eb9190613a88565b80606001906115fa9190613b76565b8a6fffffffffffffffffffffffffffffffff1681811061161d5761161c613a4a565b5b90506020020160208101906116329190613c21565b6fffffffffffffffffffffffffffffffff16612504565b5b15611e1457600a60008381526020019081526020016000208054905092508989886fffffffffffffffffffffffffffffffff1681811061168d5761168c613a4a565b5b905060200281019061169f9190613a88565b60000160208101906116b191906133f3565b73ffffffffffffffffffffffffffffffffffffffff1661175f8b8b8a6fffffffffffffffffffffffffffffffff168181106116ef576116ee613a4a565b5b90506020028101906117019190613a88565b80606001906117109190613b76565b8b6fffffffffffffffffffffffffffffffff1681811061173357611732613a4a565b5b90506020020160208101906117489190613c21565b6fffffffffffffffffffffffffffffffff16610932565b73ffffffffffffffffffffffffffffffffffffffff161480156117f75750600073ffffffffffffffffffffffffffffffffffffffff168a8a896fffffffffffffffffffffffffffffffff168181106117ba576117b9613a4a565b5b90506020028101906117cc9190613a88565b60000160208101906117de91906133f3565b73ffffffffffffffffffffffffffffffffffffffff1614155b80156118ce57508989886fffffffffffffffffffffffffffffffff1681811061182357611822613a4a565b5b90506020028101906118359190613a88565b80606001906118449190613b76565b896fffffffffffffffffffffffffffffffff1681811061186757611866613a4a565b5b905060200201602081019061187c9190613c21565b6fffffffffffffffffffffffffffffffff166080600a600085815260200190815260200160002060018603815481106118b8576118b7613a4a565b5b906000526020600020906002020160000154901c145b15611e0f578460010194508989886fffffffffffffffffffffffffffffffff168181106118fe576118fd613a4a565b5b90506020028101906119109190613a88565b806020019061191f9190613ab0565b896fffffffffffffffffffffffffffffffff1681811061194257611941613a4a565b5b90506020028101906119549190613c4e565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508160200151896fffffffffffffffffffffffffffffffff16815181106119c0576119bf613a4a565b5b60200260200101819052508989886fffffffffffffffffffffffffffffffff168181106119f0576119ef613a4a565b5b9050602002810190611a029190613a88565b8060400190611a119190613b13565b896fffffffffffffffffffffffffffffffff16818110611a3457611a33613a4a565b5b905060200201358160400151896fffffffffffffffffffffffffffffffff1681518110611a6457611a63613a4a565b5b602002602001018181525050611b0a8a8a896fffffffffffffffffffffffffffffffff16818110611a9857611a97613a4a565b5b9050602002810190611aaa9190613a88565b8060600190611ab99190613b76565b8a6fffffffffffffffffffffffffffffffff16818110611adc57611adb613a4a565b5b9050602002016020810190611af19190613c21565b6fffffffffffffffffffffffffffffffff166001612b8a565b6040518060400160405280836fffffffffffffffffffffffffffffffff1681526020018b8b8a6fffffffffffffffffffffffffffffffff16818110611b5257611b51613a4a565b5b9050602002810190611b649190613a88565b8060200190611b739190613ab0565b8b6fffffffffffffffffffffffffffffffff16818110611b9657611b95613a4a565b5b9050602002810190611ba89190613c4e565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050815250600b6000866fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506020820151816001019081611c799190613e5d565b50905050600a6000838152602001908152602001600020604051806040016040528042608088901b1781526020018c8c8b6fffffffffffffffffffffffffffffffff16818110611ccc57611ccb613a4a565b5b9050602002810190611cde9190613a88565b8060400190611ced9190613b13565b8c6fffffffffffffffffffffffffffffffff16818110611d1057611d0f613a4a565b5b90506020020135815250908060018154018082558091505060019003906000526020600020906002020160009091909190915060008201518160000155602082015181600101555050600c60008b8b8a6fffffffffffffffffffffffffffffffff16818110611d8257611d81613a4a565b5b9050602002810190611d949190613a88565b8060400190611da39190613b13565b8b6fffffffffffffffffffffffffffffffff16818110611dc657611dc5613a4a565b5b90506020020135815260200190815260200160002083608084901b1790806001815401808255809150506001900390600052602060002001600090919091909150558360010193505b6122b4565b8460010194508989886fffffffffffffffffffffffffffffffff16818110611e3f57611e3e613a4a565b5b9050602002810190611e519190613a88565b8060200190611e609190613ab0565b896fffffffffffffffffffffffffffffffff16818110611e8357611e82613a4a565b5b9050602002810190611e959190613c4e565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508160200151896fffffffffffffffffffffffffffffffff1681518110611f0157611f00613a4a565b5b60200260200101819052508989886fffffffffffffffffffffffffffffffff16818110611f3157611f30613a4a565b5b9050602002810190611f439190613a88565b8060400190611f529190613b13565b896fffffffffffffffffffffffffffffffff16818110611f7557611f74613a4a565b5b905060200201358160400151896fffffffffffffffffffffffffffffffff1681518110611fa557611fa4613a4a565b5b6020026020010181815250506040518060400160405280856fffffffffffffffffffffffffffffffff1681526020018b8b8a6fffffffffffffffffffffffffffffffff16818110611ff957611ff8613a4a565b5b905060200281019061200b9190613a88565b806020019061201a9190613ab0565b8b6fffffffffffffffffffffffffffffffff1681811061203d5761203c613a4a565b5b905060200281019061204f9190613c4e565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050815250600b6000866fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160010190816121209190613e5d565b50905050600a6000858152602001908152602001600020604051806040016040528042608088901b1781526020018c8c8b6fffffffffffffffffffffffffffffffff1681811061217357612172613a4a565b5b90506020028101906121859190613a88565b80604001906121949190613b13565b8c6fffffffffffffffffffffffffffffffff168181106121b7576121b6613a4a565b5b90506020020135815250908060018154018082558091505060019003906000526020600020906002020160009091909190915060008201518160000155602082015181600101555050600c60008b8b8a6fffffffffffffffffffffffffffffffff1681811061222957612228613a4a565b5b905060200281019061223b9190613a88565b806040019061224a9190613b13565b8b6fffffffffffffffffffffffffffffffff1681811061226d5761226c613a4a565b5b905060200201358152602001908152602001600020608085901b90806001815401808255809150506001900390600052602060002001600090919091909150558360010193505b8760010197508989886fffffffffffffffffffffffffffffffff168181106122df576122de613a4a565b5b90506020028101906122f19190613a88565b80604001906123009190613b13565b9050886fffffffffffffffffffffffffffffffff161061142f576000856fffffffffffffffffffffffffffffffff16111561239a576123998a8a896fffffffffffffffffffffffffffffffff1681811061235d5761235c613a4a565b5b905060200281019061236f9190613a88565b600001602081019061238191906133f3565b866fffffffffffffffffffffffffffffffff16612dbb565b5b8060200160608152508060400160608152505b866001019650856fffffffffffffffffffffffffffffffff16876fffffffffffffffffffffffffffffffff16106111c25750505050505050505050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612486612905565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036124f85760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016124ef91906132ef565b60405180910390fd5b6125018161298c565b50565b60008161250f6126e9565b116125aa5761251c6126f2565b8211156125465761253f6004600084815260200190815260200160002054612dd9565b90506125ab565b6000548210156125a95760005b6000600460008581526020019081526020016000205491508103612582578261257b90613f5e565b9250612553565b60007c01000000000000000000000000000000000000000000000000000000008216149150505b5b5b919050565b8060005260046000fd5b60006125c583610932565b905081801561260757508073ffffffffffffffffffffffffffffffffffffffff166125ee61285a565b73ffffffffffffffffffffffffffffffffffffffff1614155b156126335761261d8161261861285a565b6123ea565b6126325761263163cfb3b94260e01b6125b0565b5b5b836006600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550828473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a450505050565b60006001905090565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff905090565b6000816127256126e9565b1161281d57600460008381526020019081526020016000205490506127486126f2565b82111561276d5761275881612dd9565b61282e5761276c63df2d9b4260e01b6125b0565b5b600081036127f457600054821061278f5761278e63df2d9b4260e01b6125b0565b5b5b600460008360019003935083815260200190815260200160002054905060008103156127ef5760007c01000000000000000000000000000000000000000000000000000000008216031561282e576127ee63df2d9b4260e01b6125b0565b5b612790565b60007c01000000000000000000000000000000000000000000000000000000008216031561282e575b61282d63df2d9b4260e01b6125b0565b5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86128c3868684612e1a565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b61290d612e23565b73ffffffffffffffffffffffffffffffffffffffff1661292b610eb1565b73ffffffffffffffffffffffffffffffffffffffff161461298a5761294e612e23565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161298191906132ef565b60405180910390fd5b565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612a7861285a565b8786866040518563ffffffff1660e01b8152600401612a9a9493929190613fdc565b6020604051808303816000875af1925050508015612ad657506040513d601f19601f82011682018060405250810190612ad3919061403d565b60015b612b2e573d8060008114612b06576040519150601f19603f3d011682016040523d82523d6000602084013e612b0b565b606091505b506000815103612b2657612b2563d1a57ed660e01b6125b0565b5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60008054905090565b6000612b958361271a565b90506000819050600080612ba886612833565b915091508415612bf057612bc48184612bbf61285a565b612862565b612bef57612bd983612bd461285a565b6123ea565b612bee57612bed6359c896be60e01b6125b0565b5b5b5b612bfe8360008860016128a6565b8015612c0957600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612cb183612c6e856000886128ac565b7c02000000000000000000000000000000000000000000000000000000007c010000000000000000000000000000000000000000000000000000000017176128d4565b600460008881526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000851603612d375760006001870190506000600460008381526020019081526020016000205403612d35576000548114612d34578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612da18360008860016128ff565b600160008154809291906001019190505550505050505050565b612dd5828260405180602001604052806000815250612e2b565b5050565b60007c0100000000000000000000000000000000000000000000000000000000821673ffffffffffffffffffffffffffffffffffffffff8316119050919050565b60009392505050565b600033905090565b612e358383612ea7565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612ea257600080549050600083820390505b612e756000868380600101945086612a52565b612e8a57612e8963d1a57ed660e01b6125b0565b5b818110612e62578160005414612e9f57600080fd5b50505b505050565b60008054905060008203612ec657612ec563b562e8dd60e01b6125b0565b5b612ed360008483856128a6565b612ef383612ee460008660006128ac565b612eed8561302d565b176128d4565b6004600083815260200190815260200160002081905550600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550600073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff1616905060008103612fab57612faa632e07630060e01b6125b0565b5b600083830190506000839050612fbf6126f2565b600183031115612fda57612fd96381647e3a60e01b6125b0565b5b5b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4818160010191508103612fdb578160008190555050505061302860008483856128ff565b505050565b60006001821460e11b9050919050565b6040518060800160405280600081526020016000815260200160008019168152602001606081525090565b60405180606001604052806000815260200160008152602001600080191681525090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff1681526020016060815260200160608152602001606081525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613113816130de565b811461311e57600080fd5b50565b6000813590506131308161310a565b92915050565b60006020828403121561314c5761314b6130d4565b5b600061315a84828501613121565b91505092915050565b60008115159050919050565b61317881613163565b82525050565b6000602082019050613193600083018461316f565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156131d35780820151818401526020810190506131b8565b60008484015250505050565b6000601f19601f8301169050919050565b60006131fb82613199565b61320581856131a4565b93506132158185602086016131b5565b61321e816131df565b840191505092915050565b6000602082019050818103600083015261324381846131f0565b905092915050565b6000819050919050565b61325e8161324b565b811461326957600080fd5b50565b60008135905061327b81613255565b92915050565b600060208284031215613297576132966130d4565b5b60006132a58482850161326c565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006132d9826132ae565b9050919050565b6132e9816132ce565b82525050565b600060208201905061330460008301846132e0565b92915050565b613313816132ce565b811461331e57600080fd5b50565b6000813590506133308161330a565b92915050565b6000806040838503121561334d5761334c6130d4565b5b600061335b85828601613321565b925050602061336c8582860161326c565b9150509250929050565b61337f8161324b565b82525050565b600060208201905061339a6000830184613376565b92915050565b6000806000606084860312156133b9576133b86130d4565b5b60006133c786828701613321565b93505060206133d886828701613321565b92505060406133e98682870161326c565b9150509250925092565b600060208284031215613409576134086130d4565b5b600061341784828501613321565b91505092915050565b6000819050919050565b61343381613420565b811461343e57600080fd5b50565b6000813590506134508161342a565b92915050565b60006020828403121561346c5761346b6130d4565b5b600061347a84828501613441565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6134b88161324b565b82525050565b6134c781613420565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60608201600082015161350f60008501826134af565b50602082015161352260208501826134af565b50604082015161353560408501826134be565b50505050565b600061354783836134f9565b60608301905092915050565b6000602082019050919050565b600061356b826134cd565b61357581856134d8565b9350613580836134e9565b8060005b838110156135b1578151613598888261353b565b97506135a383613553565b925050600181019050613584565b5085935050505092915050565b60006080830160008301516135d660008601826134af565b5060208301516135e960208601826134af565b5060408301516135fc60408601826134be565b50606083015184820360608601526136148282613560565b9150508091505092915050565b600061362d83836135be565b905092915050565b6000602082019050919050565b600061364d82613483565b613657818561348e565b9350836020820285016136698561349f565b8060005b858110156136a557848403895281516136868582613621565b945061369183613635565b925060208a0199505060018101905061366d565b50829750879550505050505092915050565b600060208201905081810360008301526136d18184613642565b905092915050565b6136e281613163565b81146136ed57600080fd5b50565b6000813590506136ff816136d9565b92915050565b6000806040838503121561371c5761371b6130d4565b5b600061372a85828601613321565b925050602061373b858286016136f0565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613787826131df565b810181811067ffffffffffffffff821117156137a6576137a561374f565b5b80604052505050565b60006137b96130ca565b90506137c5828261377e565b919050565b600067ffffffffffffffff8211156137e5576137e461374f565b5b6137ee826131df565b9050602081019050919050565b82818337600083830152505050565b600061381d613818846137ca565b6137af565b9050828152602081018484840111156138395761383861374a565b5b6138448482856137fb565b509392505050565b600082601f83011261386157613860613745565b5b813561387184826020860161380a565b91505092915050565b60008060008060808587031215613894576138936130d4565b5b60006138a287828801613321565b94505060206138b387828801613321565b93505060406138c48782880161326c565b925050606085013567ffffffffffffffff8111156138e5576138e46130d9565b5b6138f18782880161384c565b91505092959194509250565b600080fd5b600080fd5b60008083601f84011261391d5761391c613745565b5b8235905067ffffffffffffffff81111561393a576139396138fd565b5b60208301915083602082028301111561395657613955613902565b5b9250929050565b60008060208385031215613974576139736130d4565b5b600083013567ffffffffffffffff811115613992576139916130d9565b5b61399e85828601613907565b92509250509250929050565b600080604083850312156139c1576139c06130d4565b5b60006139cf85828601613321565b92505060206139e085828601613321565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613a3157607f821691505b602082108103613a4457613a436139ea565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b600082356001608003833603038112613aa457613aa3613a79565b5b80830191505092915050565b60008083356001602003843603038112613acd57613acc613a79565b5b80840192508235915067ffffffffffffffff821115613aef57613aee613a7e565b5b602083019250602082023603831315613b0b57613b0a613a83565b5b509250929050565b60008083356001602003843603038112613b3057613b2f613a79565b5b80840192508235915067ffffffffffffffff821115613b5257613b51613a7e565b5b602083019250602082023603831315613b6e57613b6d613a83565b5b509250929050565b60008083356001602003843603038112613b9357613b92613a79565b5b80840192508235915067ffffffffffffffff821115613bb557613bb4613a7e565b5b602083019250602082023603831315613bd157613bd0613a83565b5b509250929050565b60006fffffffffffffffffffffffffffffffff82169050919050565b613bfe81613bd9565b8114613c0957600080fd5b50565b600081359050613c1b81613bf5565b92915050565b600060208284031215613c3757613c366130d4565b5b6000613c4584828501613c0c565b91505092915050565b60008083356001602003843603038112613c6b57613c6a613a79565b5b80840192508235915067ffffffffffffffff821115613c8d57613c8c613a7e565b5b602083019250600182023603831315613ca957613ca8613a83565b5b509250929050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613d137fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613cd6565b613d1d8683613cd6565b95508019841693508086168417925050509392505050565b6000819050919050565b6000613d5a613d55613d508461324b565b613d35565b61324b565b9050919050565b6000819050919050565b613d7483613d3f565b613d88613d8082613d61565b848454613ce3565b825550505050565b600090565b613d9d613d90565b613da8818484613d6b565b505050565b5b81811015613dcc57613dc1600082613d95565b600181019050613dae565b5050565b601f821115613e1157613de281613cb1565b613deb84613cc6565b81016020851015613dfa578190505b613e0e613e0685613cc6565b830182613dad565b50505b505050565b600082821c905092915050565b6000613e3460001984600802613e16565b1980831691505092915050565b6000613e4d8383613e23565b9150826002028217905092915050565b613e6682613199565b67ffffffffffffffff811115613e7f57613e7e61374f565b5b613e898254613a19565b613e94828285613dd0565b600060209050601f831160018114613ec75760008415613eb5578287015190505b613ebf8582613e41565b865550613f27565b601f198416613ed586613cb1565b60005b82811015613efd57848901518255600182019150602085019450602081019050613ed8565b86831015613f1a5784890151613f16601f891682613e23565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613f698261324b565b915060008203613f7c57613f7b613f2f565b5b600182039050919050565b600081519050919050565b600082825260208201905092915050565b6000613fae82613f87565b613fb88185613f92565b9350613fc88185602086016131b5565b613fd1816131df565b840191505092915050565b6000608082019050613ff160008301876132e0565b613ffe60208301866132e0565b61400b6040830185613376565b818103606083015261401d8184613fa3565b905095945050505050565b6000815190506140378161310a565b92915050565b600060208284031215614053576140526130d4565b5b600061406184828501614028565b9150509291505056fea26469706673582212209e79142661939f650862d3acf033427f2f3fc4c0188f073bfde5c90553a604c164736f6c63430008190033000000000000000000000000c163642ee5125fc9f5133a6737f51e5547b4f25f
Deployed Bytecode
0x6080604052600436106101145760003560e01c8063715018a6116100a0578063b88d4fde11610064578063b88d4fde1461038a578063c87b56dd146103a6578063d6011afa146103e3578063e985e9c51461040c578063f2fde38b1461044957610114565b8063715018a6146102b757806375e36616146102ce5780638da5cb5b1461030b57806395d89b4114610336578063a22cb4651461036157610114565b806318160ddd116100e757806318160ddd146101da57806323b872dd1461020557806342842e0e146102215780636352211e1461023d57806370a082311461027a57610114565b806301ffc9a71461011957806306fdde0314610156578063081812fc14610181578063095ea7b3146101be575b600080fd5b34801561012557600080fd5b50610140600480360381019061013b9190613136565b610472565b60405161014d919061317e565b60405180910390f35b34801561016257600080fd5b5061016b610504565b6040516101789190613229565b60405180910390f35b34801561018d57600080fd5b506101a860048036038101906101a39190613281565b610596565b6040516101b591906132ef565b60405180910390f35b6101d860048036038101906101d39190613336565b6105f4565b005b3480156101e657600080fd5b506101ef610604565b6040516101fc9190613385565b60405180910390f35b61021f600480360381019061021a91906133a0565b610651565b005b61023b600480360381019061023691906133a0565b610912565b005b34801561024957600080fd5b50610264600480360381019061025f9190613281565b610932565b60405161027191906132ef565b60405180910390f35b34801561028657600080fd5b506102a1600480360381019061029c91906133f3565b610944565b6040516102ae9190613385565b60405180910390f35b3480156102c357600080fd5b506102cc6109db565b005b3480156102da57600080fd5b506102f560048036038101906102f09190613456565b6109ef565b60405161030291906136b7565b60405180910390f35b34801561031757600080fd5b50610320610eb1565b60405161032d91906132ef565b60405180910390f35b34801561034257600080fd5b5061034b610edb565b6040516103589190613229565b60405180910390f35b34801561036d57600080fd5b5061038860048036038101906103839190613705565b610f6d565b005b6103a4600480360381019061039f919061387a565b611078565b005b3480156103b257600080fd5b506103cd60048036038101906103c89190613281565b6110ca565b6040516103da9190613229565b60405180910390f35b3480156103ef57600080fd5b5061040a6004803603810190610405919061395d565b611196565b005b34801561041857600080fd5b50610433600480360381019061042e91906139aa565b6123ea565b604051610440919061317e565b60405180910390f35b34801561045557600080fd5b50610470600480360381019061046b91906133f3565b61247e565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806104cd57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806104fd5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461051390613a19565b80601f016020809104026020016040519081016040528092919081815260200182805461053f90613a19565b801561058c5780601f106105615761010080835404028352916020019161058c565b820191906000526020600020905b81548152906001019060200180831161056f57829003601f168201915b5050505050905090565b60006105a182612504565b6105b6576105b563cf4700e460e01b6125b0565b5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610600828260016125ba565b5050565b600061060e6126e9565b600154600054030390507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6106416126f2565b1461064e57600854810190505b90565b600061065c8261271a565b905073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161693508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146106d1576106d063a114810060e01b6125b0565b5b6000806106dd84612833565b915091506106f381876106ee61285a565b612862565b61071e576107088661070361285a565b6123ea565b61071d5761071c6359c896be60e01b6125b0565b5b5b61072b86868660016128a6565b801561073657600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610804856107e08888876128ac565b7c0200000000000000000000000000000000000000000000000000000000176128d4565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361088a5760006001850190506000600460008381526020019081526020016000205403610888576000548114610887578360046000838152602001908152602001600020819055505b5b505b600073ffffffffffffffffffffffffffffffffffffffff8673ffffffffffffffffffffffffffffffffffffffff161690508481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600081036108fc576108fb63ea553b3460e01b6125b0565b5b61090987878760016128ff565b50505050505050565b61092d83838360405180602001604052806000815250611078565b505050565b600061093d8261271a565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361098a57610989638f4eb60460e01b6125b0565b5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6109e3612905565b6109ed600061298c565b565b60606000600c6000848152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015610a5057602002820191906000526020600020905b815481526020019060010190808311610a3c575b505050505090506000815190506000811115610d965760008167ffffffffffffffff811115610a8257610a8161374f565b5b604051908082528060200260200182016040528015610abb57816020015b610aa861303d565b815260200190600190039081610aa05790505b50905060005b82811015610d8a5760006080858381518110610ae057610adf613a4a565b5b6020026020010151901c6fffffffffffffffffffffffffffffffff1690506000858381518110610b1357610b12613a4a565b5b60200260200101516fffffffffffffffffffffffffffffffff1690506000600a60008481526020019081526020016000208054905067ffffffffffffffff811115610b6157610b6061374f565b5b604051908082528060200260200182016040528015610b9a57816020015b610b87613068565b815260200190600190039081610b7f5790505b50905060005b600a600085815260200190815260200160002080549050811015610cba5760405180606001604052806080600a60008881526020019081526020016000208481548110610bf057610bef613a4a565b5b906000526020600020906002020160000154901c6fffffffffffffffffffffffffffffffff168152602001600a60008781526020019081526020016000208381548110610c4057610c3f613a4a565b5b9060005260206000209060020201600001548152602001600a60008781526020019081526020016000208381548110610c7c57610c7b613a4a565b5b906000526020600020906002020160010154815250828281518110610ca457610ca3613a4a565b5b6020026020010181905250806001019050610ba0565b506040518060800160405280600a60008681526020019081526020016000208481548110610ceb57610cea613a4a565b5b9060005260206000209060020201600001546fffffffffffffffffffffffffffffffff1681526020016080600a60008781526020019081526020016000208581548110610d3b57610d3a613a4a565b5b906000526020600020906002020160000154901c81526020018a815260200182815250858581518110610d7157610d70613a4a565b5b6020026020010181905250505050806001019050610ac1565b50809350505050610eac565b6000600167ffffffffffffffff811115610db357610db261374f565b5b604051908082528060200260200182016040528015610dec57816020015b610dd961303d565b815260200190600190039081610dd15790505b509050604051806080016040528060008152602001600081526020017f756e646566696e656400000000000000000000000000000000000000000000008152602001600067ffffffffffffffff811115610e4957610e4861374f565b5b604051908082528060200260200182016040528015610e8257816020015b610e6f613068565b815260200190600190039081610e675790505b5081525081600081518110610e9a57610e99613a4a565b5b60200260200101819052508093505050505b919050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054610eea90613a19565b80601f0160208091040260200160405190810160405280929190818152602001828054610f1690613a19565b8015610f635780601f10610f3857610100808354040283529160200191610f63565b820191906000526020600020905b815481529060010190602001808311610f4657829003601f168201915b5050505050905090565b8060076000610f7a61285a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661102761285a565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161106c919061317e565b60405180910390a35050565b611083848484610651565b60008373ffffffffffffffffffffffffffffffffffffffff163b146110c4576110ae84848484612a52565b6110c3576110c263d1a57ed660e01b6125b0565b5b5b50505050565b6060600b6000836fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff168152602001908152602001600020600101805461111190613a19565b80601f016020809104026020016040519081016040528092919081815260200182805461113d90613a19565b801561118a5780601f1061115f5761010080835404028352916020019161118a565b820191906000526020600020905b81548152906001019060200180831161116d57829003601f168201915b50505050509050919050565b61119e612905565b60008060008484905090506000806111b4612b81565b90506000806111c161308c565b5b60009450600097508989886fffffffffffffffffffffffffffffffff168181106111ef576111ee613a4a565b5b90506020028101906112019190613a88565b80602001906112109190613ab0565b90508a8a896fffffffffffffffffffffffffffffffff1681811061123757611236613a4a565b5b90506020028101906112499190613a88565b80604001906112589190613b13565b90501480156112f457508989886fffffffffffffffffffffffffffffffff1681811061128757611286613a4a565b5b90506020028101906112999190613a88565b80606001906112a89190613b76565b90508a8a896fffffffffffffffffffffffffffffffff168181106112cf576112ce613a4a565b5b90506020028101906112e19190613a88565b80602001906112f09190613ab0565b9050145b156123ad578989886fffffffffffffffffffffffffffffffff1681811061131e5761131d613a4a565b5b90506020028101906113309190613a88565b806040019061133f9190613b13565b905067ffffffffffffffff81111561135a5761135961374f565b5b60405190808252806020026020018201604052801561138d57816020015b60608152602001906001900390816113785790505b5081602001819052508989886fffffffffffffffffffffffffffffffff168181106113bb576113ba613a4a565b5b90506020028101906113cd9190613a88565b80602001906113dc9190613ab0565b905067ffffffffffffffff8111156113f7576113f661374f565b5b6040519080825280602002602001820160405280156114255781602001602082028036833780820191505090505b5081604001819052505b600b60008b8b8a6fffffffffffffffffffffffffffffffff1681811061145857611457613a4a565b5b905060200281019061146a9190613a88565b80606001906114799190613b76565b8b6fffffffffffffffffffffffffffffffff1681811061149c5761149b613a4a565b5b90506020020160208101906114b19190613c21565b6fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16915060008a8a896fffffffffffffffffffffffffffffffff1681811061153e5761153d613a4a565b5b90506020028101906115509190613a88565b806060019061155f9190613b76565b8a6fffffffffffffffffffffffffffffffff1681811061158257611581613a4a565b5b90506020020160208101906115979190613c21565b6fffffffffffffffffffffffffffffffff1611801561164a57506116498a8a896fffffffffffffffffffffffffffffffff168181106115d9576115d8613a4a565b5b90506020028101906115eb9190613a88565b80606001906115fa9190613b76565b8a6fffffffffffffffffffffffffffffffff1681811061161d5761161c613a4a565b5b90506020020160208101906116329190613c21565b6fffffffffffffffffffffffffffffffff16612504565b5b15611e1457600a60008381526020019081526020016000208054905092508989886fffffffffffffffffffffffffffffffff1681811061168d5761168c613a4a565b5b905060200281019061169f9190613a88565b60000160208101906116b191906133f3565b73ffffffffffffffffffffffffffffffffffffffff1661175f8b8b8a6fffffffffffffffffffffffffffffffff168181106116ef576116ee613a4a565b5b90506020028101906117019190613a88565b80606001906117109190613b76565b8b6fffffffffffffffffffffffffffffffff1681811061173357611732613a4a565b5b90506020020160208101906117489190613c21565b6fffffffffffffffffffffffffffffffff16610932565b73ffffffffffffffffffffffffffffffffffffffff161480156117f75750600073ffffffffffffffffffffffffffffffffffffffff168a8a896fffffffffffffffffffffffffffffffff168181106117ba576117b9613a4a565b5b90506020028101906117cc9190613a88565b60000160208101906117de91906133f3565b73ffffffffffffffffffffffffffffffffffffffff1614155b80156118ce57508989886fffffffffffffffffffffffffffffffff1681811061182357611822613a4a565b5b90506020028101906118359190613a88565b80606001906118449190613b76565b896fffffffffffffffffffffffffffffffff1681811061186757611866613a4a565b5b905060200201602081019061187c9190613c21565b6fffffffffffffffffffffffffffffffff166080600a600085815260200190815260200160002060018603815481106118b8576118b7613a4a565b5b906000526020600020906002020160000154901c145b15611e0f578460010194508989886fffffffffffffffffffffffffffffffff168181106118fe576118fd613a4a565b5b90506020028101906119109190613a88565b806020019061191f9190613ab0565b896fffffffffffffffffffffffffffffffff1681811061194257611941613a4a565b5b90506020028101906119549190613c4e565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508160200151896fffffffffffffffffffffffffffffffff16815181106119c0576119bf613a4a565b5b60200260200101819052508989886fffffffffffffffffffffffffffffffff168181106119f0576119ef613a4a565b5b9050602002810190611a029190613a88565b8060400190611a119190613b13565b896fffffffffffffffffffffffffffffffff16818110611a3457611a33613a4a565b5b905060200201358160400151896fffffffffffffffffffffffffffffffff1681518110611a6457611a63613a4a565b5b602002602001018181525050611b0a8a8a896fffffffffffffffffffffffffffffffff16818110611a9857611a97613a4a565b5b9050602002810190611aaa9190613a88565b8060600190611ab99190613b76565b8a6fffffffffffffffffffffffffffffffff16818110611adc57611adb613a4a565b5b9050602002016020810190611af19190613c21565b6fffffffffffffffffffffffffffffffff166001612b8a565b6040518060400160405280836fffffffffffffffffffffffffffffffff1681526020018b8b8a6fffffffffffffffffffffffffffffffff16818110611b5257611b51613a4a565b5b9050602002810190611b649190613a88565b8060200190611b739190613ab0565b8b6fffffffffffffffffffffffffffffffff16818110611b9657611b95613a4a565b5b9050602002810190611ba89190613c4e565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050815250600b6000866fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506020820151816001019081611c799190613e5d565b50905050600a6000838152602001908152602001600020604051806040016040528042608088901b1781526020018c8c8b6fffffffffffffffffffffffffffffffff16818110611ccc57611ccb613a4a565b5b9050602002810190611cde9190613a88565b8060400190611ced9190613b13565b8c6fffffffffffffffffffffffffffffffff16818110611d1057611d0f613a4a565b5b90506020020135815250908060018154018082558091505060019003906000526020600020906002020160009091909190915060008201518160000155602082015181600101555050600c60008b8b8a6fffffffffffffffffffffffffffffffff16818110611d8257611d81613a4a565b5b9050602002810190611d949190613a88565b8060400190611da39190613b13565b8b6fffffffffffffffffffffffffffffffff16818110611dc657611dc5613a4a565b5b90506020020135815260200190815260200160002083608084901b1790806001815401808255809150506001900390600052602060002001600090919091909150558360010193505b6122b4565b8460010194508989886fffffffffffffffffffffffffffffffff16818110611e3f57611e3e613a4a565b5b9050602002810190611e519190613a88565b8060200190611e609190613ab0565b896fffffffffffffffffffffffffffffffff16818110611e8357611e82613a4a565b5b9050602002810190611e959190613c4e565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508160200151896fffffffffffffffffffffffffffffffff1681518110611f0157611f00613a4a565b5b60200260200101819052508989886fffffffffffffffffffffffffffffffff16818110611f3157611f30613a4a565b5b9050602002810190611f439190613a88565b8060400190611f529190613b13565b896fffffffffffffffffffffffffffffffff16818110611f7557611f74613a4a565b5b905060200201358160400151896fffffffffffffffffffffffffffffffff1681518110611fa557611fa4613a4a565b5b6020026020010181815250506040518060400160405280856fffffffffffffffffffffffffffffffff1681526020018b8b8a6fffffffffffffffffffffffffffffffff16818110611ff957611ff8613a4a565b5b905060200281019061200b9190613a88565b806020019061201a9190613ab0565b8b6fffffffffffffffffffffffffffffffff1681811061203d5761203c613a4a565b5b905060200281019061204f9190613c4e565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050815250600b6000866fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160010190816121209190613e5d565b50905050600a6000858152602001908152602001600020604051806040016040528042608088901b1781526020018c8c8b6fffffffffffffffffffffffffffffffff1681811061217357612172613a4a565b5b90506020028101906121859190613a88565b80604001906121949190613b13565b8c6fffffffffffffffffffffffffffffffff168181106121b7576121b6613a4a565b5b90506020020135815250908060018154018082558091505060019003906000526020600020906002020160009091909190915060008201518160000155602082015181600101555050600c60008b8b8a6fffffffffffffffffffffffffffffffff1681811061222957612228613a4a565b5b905060200281019061223b9190613a88565b806040019061224a9190613b13565b8b6fffffffffffffffffffffffffffffffff1681811061226d5761226c613a4a565b5b905060200201358152602001908152602001600020608085901b90806001815401808255809150506001900390600052602060002001600090919091909150558360010193505b8760010197508989886fffffffffffffffffffffffffffffffff168181106122df576122de613a4a565b5b90506020028101906122f19190613a88565b80604001906123009190613b13565b9050886fffffffffffffffffffffffffffffffff161061142f576000856fffffffffffffffffffffffffffffffff16111561239a576123998a8a896fffffffffffffffffffffffffffffffff1681811061235d5761235c613a4a565b5b905060200281019061236f9190613a88565b600001602081019061238191906133f3565b866fffffffffffffffffffffffffffffffff16612dbb565b5b8060200160608152508060400160608152505b866001019650856fffffffffffffffffffffffffffffffff16876fffffffffffffffffffffffffffffffff16106111c25750505050505050505050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612486612905565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036124f85760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016124ef91906132ef565b60405180910390fd5b6125018161298c565b50565b60008161250f6126e9565b116125aa5761251c6126f2565b8211156125465761253f6004600084815260200190815260200160002054612dd9565b90506125ab565b6000548210156125a95760005b6000600460008581526020019081526020016000205491508103612582578261257b90613f5e565b9250612553565b60007c01000000000000000000000000000000000000000000000000000000008216149150505b5b5b919050565b8060005260046000fd5b60006125c583610932565b905081801561260757508073ffffffffffffffffffffffffffffffffffffffff166125ee61285a565b73ffffffffffffffffffffffffffffffffffffffff1614155b156126335761261d8161261861285a565b6123ea565b6126325761263163cfb3b94260e01b6125b0565b5b5b836006600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550828473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a450505050565b60006001905090565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff905090565b6000816127256126e9565b1161281d57600460008381526020019081526020016000205490506127486126f2565b82111561276d5761275881612dd9565b61282e5761276c63df2d9b4260e01b6125b0565b5b600081036127f457600054821061278f5761278e63df2d9b4260e01b6125b0565b5b5b600460008360019003935083815260200190815260200160002054905060008103156127ef5760007c01000000000000000000000000000000000000000000000000000000008216031561282e576127ee63df2d9b4260e01b6125b0565b5b612790565b60007c01000000000000000000000000000000000000000000000000000000008216031561282e575b61282d63df2d9b4260e01b6125b0565b5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86128c3868684612e1a565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b61290d612e23565b73ffffffffffffffffffffffffffffffffffffffff1661292b610eb1565b73ffffffffffffffffffffffffffffffffffffffff161461298a5761294e612e23565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161298191906132ef565b60405180910390fd5b565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612a7861285a565b8786866040518563ffffffff1660e01b8152600401612a9a9493929190613fdc565b6020604051808303816000875af1925050508015612ad657506040513d601f19601f82011682018060405250810190612ad3919061403d565b60015b612b2e573d8060008114612b06576040519150601f19603f3d011682016040523d82523d6000602084013e612b0b565b606091505b506000815103612b2657612b2563d1a57ed660e01b6125b0565b5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60008054905090565b6000612b958361271a565b90506000819050600080612ba886612833565b915091508415612bf057612bc48184612bbf61285a565b612862565b612bef57612bd983612bd461285a565b6123ea565b612bee57612bed6359c896be60e01b6125b0565b5b5b5b612bfe8360008860016128a6565b8015612c0957600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612cb183612c6e856000886128ac565b7c02000000000000000000000000000000000000000000000000000000007c010000000000000000000000000000000000000000000000000000000017176128d4565b600460008881526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000851603612d375760006001870190506000600460008381526020019081526020016000205403612d35576000548114612d34578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612da18360008860016128ff565b600160008154809291906001019190505550505050505050565b612dd5828260405180602001604052806000815250612e2b565b5050565b60007c0100000000000000000000000000000000000000000000000000000000821673ffffffffffffffffffffffffffffffffffffffff8316119050919050565b60009392505050565b600033905090565b612e358383612ea7565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612ea257600080549050600083820390505b612e756000868380600101945086612a52565b612e8a57612e8963d1a57ed660e01b6125b0565b5b818110612e62578160005414612e9f57600080fd5b50505b505050565b60008054905060008203612ec657612ec563b562e8dd60e01b6125b0565b5b612ed360008483856128a6565b612ef383612ee460008660006128ac565b612eed8561302d565b176128d4565b6004600083815260200190815260200160002081905550600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550600073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff1616905060008103612fab57612faa632e07630060e01b6125b0565b5b600083830190506000839050612fbf6126f2565b600183031115612fda57612fd96381647e3a60e01b6125b0565b5b5b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4818160010191508103612fdb578160008190555050505061302860008483856128ff565b505050565b60006001821460e11b9050919050565b6040518060800160405280600081526020016000815260200160008019168152602001606081525090565b60405180606001604052806000815260200160008152602001600080191681525090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff1681526020016060815260200160608152602001606081525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613113816130de565b811461311e57600080fd5b50565b6000813590506131308161310a565b92915050565b60006020828403121561314c5761314b6130d4565b5b600061315a84828501613121565b91505092915050565b60008115159050919050565b61317881613163565b82525050565b6000602082019050613193600083018461316f565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156131d35780820151818401526020810190506131b8565b60008484015250505050565b6000601f19601f8301169050919050565b60006131fb82613199565b61320581856131a4565b93506132158185602086016131b5565b61321e816131df565b840191505092915050565b6000602082019050818103600083015261324381846131f0565b905092915050565b6000819050919050565b61325e8161324b565b811461326957600080fd5b50565b60008135905061327b81613255565b92915050565b600060208284031215613297576132966130d4565b5b60006132a58482850161326c565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006132d9826132ae565b9050919050565b6132e9816132ce565b82525050565b600060208201905061330460008301846132e0565b92915050565b613313816132ce565b811461331e57600080fd5b50565b6000813590506133308161330a565b92915050565b6000806040838503121561334d5761334c6130d4565b5b600061335b85828601613321565b925050602061336c8582860161326c565b9150509250929050565b61337f8161324b565b82525050565b600060208201905061339a6000830184613376565b92915050565b6000806000606084860312156133b9576133b86130d4565b5b60006133c786828701613321565b93505060206133d886828701613321565b92505060406133e98682870161326c565b9150509250925092565b600060208284031215613409576134086130d4565b5b600061341784828501613321565b91505092915050565b6000819050919050565b61343381613420565b811461343e57600080fd5b50565b6000813590506134508161342a565b92915050565b60006020828403121561346c5761346b6130d4565b5b600061347a84828501613441565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6134b88161324b565b82525050565b6134c781613420565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60608201600082015161350f60008501826134af565b50602082015161352260208501826134af565b50604082015161353560408501826134be565b50505050565b600061354783836134f9565b60608301905092915050565b6000602082019050919050565b600061356b826134cd565b61357581856134d8565b9350613580836134e9565b8060005b838110156135b1578151613598888261353b565b97506135a383613553565b925050600181019050613584565b5085935050505092915050565b60006080830160008301516135d660008601826134af565b5060208301516135e960208601826134af565b5060408301516135fc60408601826134be565b50606083015184820360608601526136148282613560565b9150508091505092915050565b600061362d83836135be565b905092915050565b6000602082019050919050565b600061364d82613483565b613657818561348e565b9350836020820285016136698561349f565b8060005b858110156136a557848403895281516136868582613621565b945061369183613635565b925060208a0199505060018101905061366d565b50829750879550505050505092915050565b600060208201905081810360008301526136d18184613642565b905092915050565b6136e281613163565b81146136ed57600080fd5b50565b6000813590506136ff816136d9565b92915050565b6000806040838503121561371c5761371b6130d4565b5b600061372a85828601613321565b925050602061373b858286016136f0565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613787826131df565b810181811067ffffffffffffffff821117156137a6576137a561374f565b5b80604052505050565b60006137b96130ca565b90506137c5828261377e565b919050565b600067ffffffffffffffff8211156137e5576137e461374f565b5b6137ee826131df565b9050602081019050919050565b82818337600083830152505050565b600061381d613818846137ca565b6137af565b9050828152602081018484840111156138395761383861374a565b5b6138448482856137fb565b509392505050565b600082601f83011261386157613860613745565b5b813561387184826020860161380a565b91505092915050565b60008060008060808587031215613894576138936130d4565b5b60006138a287828801613321565b94505060206138b387828801613321565b93505060406138c48782880161326c565b925050606085013567ffffffffffffffff8111156138e5576138e46130d9565b5b6138f18782880161384c565b91505092959194509250565b600080fd5b600080fd5b60008083601f84011261391d5761391c613745565b5b8235905067ffffffffffffffff81111561393a576139396138fd565b5b60208301915083602082028301111561395657613955613902565b5b9250929050565b60008060208385031215613974576139736130d4565b5b600083013567ffffffffffffffff811115613992576139916130d9565b5b61399e85828601613907565b92509250509250929050565b600080604083850312156139c1576139c06130d4565b5b60006139cf85828601613321565b92505060206139e085828601613321565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613a3157607f821691505b602082108103613a4457613a436139ea565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b600082356001608003833603038112613aa457613aa3613a79565b5b80830191505092915050565b60008083356001602003843603038112613acd57613acc613a79565b5b80840192508235915067ffffffffffffffff821115613aef57613aee613a7e565b5b602083019250602082023603831315613b0b57613b0a613a83565b5b509250929050565b60008083356001602003843603038112613b3057613b2f613a79565b5b80840192508235915067ffffffffffffffff821115613b5257613b51613a7e565b5b602083019250602082023603831315613b6e57613b6d613a83565b5b509250929050565b60008083356001602003843603038112613b9357613b92613a79565b5b80840192508235915067ffffffffffffffff821115613bb557613bb4613a7e565b5b602083019250602082023603831315613bd157613bd0613a83565b5b509250929050565b60006fffffffffffffffffffffffffffffffff82169050919050565b613bfe81613bd9565b8114613c0957600080fd5b50565b600081359050613c1b81613bf5565b92915050565b600060208284031215613c3757613c366130d4565b5b6000613c4584828501613c0c565b91505092915050565b60008083356001602003843603038112613c6b57613c6a613a79565b5b80840192508235915067ffffffffffffffff821115613c8d57613c8c613a7e565b5b602083019250600182023603831315613ca957613ca8613a83565b5b509250929050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613d137fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613cd6565b613d1d8683613cd6565b95508019841693508086168417925050509392505050565b6000819050919050565b6000613d5a613d55613d508461324b565b613d35565b61324b565b9050919050565b6000819050919050565b613d7483613d3f565b613d88613d8082613d61565b848454613ce3565b825550505050565b600090565b613d9d613d90565b613da8818484613d6b565b505050565b5b81811015613dcc57613dc1600082613d95565b600181019050613dae565b5050565b601f821115613e1157613de281613cb1565b613deb84613cc6565b81016020851015613dfa578190505b613e0e613e0685613cc6565b830182613dad565b50505b505050565b600082821c905092915050565b6000613e3460001984600802613e16565b1980831691505092915050565b6000613e4d8383613e23565b9150826002028217905092915050565b613e6682613199565b67ffffffffffffffff811115613e7f57613e7e61374f565b5b613e898254613a19565b613e94828285613dd0565b600060209050601f831160018114613ec75760008415613eb5578287015190505b613ebf8582613e41565b865550613f27565b601f198416613ed586613cb1565b60005b82811015613efd57848901518255600182019150602085019450602081019050613ed8565b86831015613f1a5784890151613f16601f891682613e23565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613f698261324b565b915060008203613f7c57613f7b613f2f565b5b600182039050919050565b600081519050919050565b600082825260208201905092915050565b6000613fae82613f87565b613fb88185613f92565b9350613fc88185602086016131b5565b613fd1816131df565b840191505092915050565b6000608082019050613ff160008301876132e0565b613ffe60208301866132e0565b61400b6040830185613376565b818103606083015261401d8184613fa3565b905095945050505050565b6000815190506140378161310a565b92915050565b600060208284031215614053576140526130d4565b5b600061406184828501614028565b9150509291505056fea26469706673582212209e79142661939f650862d3acf033427f2f3fc4c0188f073bfde5c90553a604c164736f6c63430008190033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c163642ee5125fc9f5133a6737f51e5547b4f25f
-----Decoded View---------------
Arg [0] : initialOwner (address): 0xC163642eE5125Fc9F5133a6737f51e5547B4f25f
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000c163642ee5125fc9f5133a6737f51e5547b4f25f
[ 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.