ERC-20
Overview
Max Total Supply
1,000 BHA
Holders
0
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 0 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
BeyondHumanAvatars
Compiler Version
v0.8.18+commit.87f61d96
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.9; import "erc721a/contracts/ERC721A.sol"; import "erc721a/contracts/extensions/ERC721AQueryable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; // Uncomment this line to use console.log // import "hardhat/console.sol"; contract BeyondHumanAvatars is ERC721AQueryable, ERC2981, Ownable { uint16 public constant TOKEN_LIMIT = 1000; mapping(uint => bool) private _mintedNumbers; mapping(uint => string) private _uris; bool nukeMetadata = false; uint256 private mintPrice = 0.01 ether; address private mintSigner = 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266; constructor() ERC721A("BeyondHumanAvatars", "BHA") { _setDefaultRoyalty(_msgSender(), 500); } function supportsInterface(bytes4 interfaceId) public view override(ERC721A, IERC721A, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } // Payments function withdraw() public onlyOwner { address payable owner = payable(owner()); owner.transfer(address(this).balance); } // For OpenSea function contractURI() public pure returns (string memory) { return "https://mint.beyondhuman.ai/storefront-metadata"; } // Minting function getMintPrice() public view returns (uint256) { return mintPrice; } function setMintPrice(uint256 _mintPrice) public onlyOwner { mintPrice = _mintPrice; } function mintFree(string memory uri, uint number, bytes memory sig) public { require(isValidSig(keccak256(abi.encodePacked(uri, msg.sender, number, true)), sig), "Invalid signature"); require(_mintedNumbers[number] == false, "Already minted"); uint256 tokenId = _nextTokenId(); _mintedNumbers[number] = true; _uris[tokenId] = uri; _safeMint(msg.sender, 1); } function mintPaid(string[] memory uris, uint[] memory numbers, bytes memory sig) public payable { require(msg.value >= mintPrice * uris.length, "Not enough ETH"); string memory uriString = uris[0]; for (uint i = 1; i < uris.length; i++) { uriString = string(abi.encodePacked(uriString, uris[i])); } require(isValidSig(keccak256(abi.encodePacked(uriString, msg.sender, numbers)), sig), "Invalid signature"); uint256 tokenId = _nextTokenId(); for (uint i = 0; i < uris.length; i++) { require(_mintedNumbers[numbers[i]] == false, "Already minted"); _mintedNumbers[numbers[i]] = true; _uris[tokenId + i] = uris[i]; } _safeMint(msg.sender, uris.length); } function setMintSigner(address _mintSigner) public onlyOwner { mintSigner = _mintSigner; } // Returning minted NFTs function isMinted(uint number) public view returns (bool) { return _mintedNumbers[number]; } function allMinted() public view returns (bool[] memory) { bool[] memory minted = new bool[](TOKEN_LIMIT + 1); minted[0] = false; for (uint i = 1; i <= TOKEN_LIMIT; i++) { minted[i] = _mintedNumbers[i]; } return minted; } // Metadata nuking, in case of contract migration to new blockchain function setNukeMetadata(bool _nukeMetadata) public onlyOwner { nukeMetadata = _nukeMetadata; } // Token URI function tokenURI(uint256 tokenId) public view virtual override(ERC721A, IERC721A) returns (string memory) { require(!nukeMetadata, "METADATA_NUKED"); return _uris[tokenId]; } function setTokenURI(uint256 tokenId, string memory uri) public onlyOwner { _uris[tokenId] = uri; } // Sig verification function isValidSig(bytes32 hashedMessage, bytes memory sig) internal view returns(bool) { bytes memory prefix = "\x19Ethereum Signed Message:\n32"; bytes32 prefixedHashedMessage = keccak256(abi.encodePacked(prefix, hashedMessage)); // console.logBytes(abi.encodePacked(prefixedHashedMessage)); address signer = recoverSigner(prefixedHashedMessage, sig); return (signer == mintSigner); } function recoverSigner(bytes32 message, bytes memory sig) internal pure returns (address) { uint8 v; bytes32 r; bytes32 s; (r, s, v) = splitSignature(sig); return ecrecover(message, v, r, s); } function splitSignature(bytes memory sig) internal pure returns (bytes32 r, bytes32 s, uint8 v) { require(sig.length == 65, "signature length must be 65"); assembly { /* First 32 bytes stores the length of the signature add(sig, 32) = pointer of sig + 32 effectively, skips first 32 bytes of signature mload(p) loads next 32 bytes starting at the memory address p into memory */ // first 32 bytes, after the length prefix r := mload(add(sig, 32)) // second 32 bytes s := mload(add(sig, 64)) // final byte (first byte of the next 32 bytes) v := byte(0, mload(add(sig, 96))) } // implicitly return (r, s, v) } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. 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 { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo( uint256 tokenId, uint256 salePrice ) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 tokenId, uint256 salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721AQueryable.sol'; import '../ERC721A.sol'; /** * @title ERC721AQueryable. * * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] calldata tokenIds) external view virtual override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view virtual override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of ERC721AQueryable. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"TOKEN_LIMIT","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allMinted","outputs":[{"internalType":"bool[]","name":"","type":"bool[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"number","type":"uint256"}],"name":"isMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"},{"internalType":"uint256","name":"number","type":"uint256"},{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"mintFree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"uris","type":"string[]"},{"internalType":"uint256[]","name":"numbers","type":"uint256[]"},{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"mintPaid","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_mintSigner","type":"address"}],"name":"setMintSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_nukeMetadata","type":"bool"}],"name":"setNukeMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000600d60006101000a81548160ff021916908315150217905550662386f26fc10000600e5573f39fd6e51aad88f6f4ce6ab8827279cfffb92266600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200008c57600080fd5b506040518060400160405280601281526020017f4265796f6e6448756d616e4176617461727300000000000000000000000000008152506040518060400160405280600381526020017f424841000000000000000000000000000000000000000000000000000000000081525081600290816200010a919062000678565b5080600390816200011c919062000678565b506200012d6200017e60201b60201c565b600081905550505062000155620001496200018360201b60201c565b6200018b60201b60201c565b62000178620001696200018360201b60201c565b6101f46200025160201b60201c565b6200087a565b600090565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b62000261620003f460201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115620002c2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002b990620007e6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160362000334576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200032b9062000858565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600860008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000612710905090565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200048057607f821691505b60208210810362000496576200049562000438565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620005007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620004c1565b6200050c8683620004c1565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062000559620005536200054d8462000524565b6200052e565b62000524565b9050919050565b6000819050919050565b620005758362000538565b6200058d620005848262000560565b848454620004ce565b825550505050565b600090565b620005a462000595565b620005b18184846200056a565b505050565b5b81811015620005d957620005cd6000826200059a565b600181019050620005b7565b5050565b601f8211156200062857620005f2816200049c565b620005fd84620004b1565b810160208510156200060d578190505b620006256200061c85620004b1565b830182620005b6565b50505b505050565b600082821c905092915050565b60006200064d600019846008026200062d565b1980831691505092915050565b60006200066883836200063a565b9150826002028217905092915050565b6200068382620003fe565b67ffffffffffffffff8111156200069f576200069e62000409565b5b620006ab825462000467565b620006b8828285620005dd565b600060209050601f831160018114620006f05760008415620006db578287015190505b620006e785826200065a565b86555062000757565b601f19841662000700866200049c565b60005b828110156200072a5784890151825560018201915060208501945060208101905062000703565b868310156200074a578489015162000746601f8916826200063a565b8355505b6001600288020188555050505b505050505050565b600082825260208201905092915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000620007ce602a836200075f565b9150620007db8262000770565b604082019050919050565b600060208201905081810360008301526200080181620007bf565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000620008406019836200075f565b91506200084d8262000808565b602082019050919050565b60006020820190508181036000830152620008738162000831565b9050919050565b6145c9806200088a6000396000f3fe6080604052600436106101f95760003560e01c8063715018a61161010d578063b88d4fde116100a0578063e84a97281161006f578063e84a972814610729578063e8a3d48514610752578063e985e9c51461077d578063f2fde38b146107ba578063f4a0a528146107e3576101f9565b8063b88d4fde1461066a578063bf50889014610686578063c23dc68f146106af578063c87b56dd146106ec576101f9565b806395d89b41116100dc57806395d89b41146105ae57806399a2557a146105d9578063a22cb46514610616578063a7f93ebd1461063f576101f9565b8063715018a614610506578063720354b91461051d5780638462151c146105465780638da5cb5b14610583576101f9565b80632a04dbfc1161019057806342842e0e1161015f57806342842e0e146104085780634af83d56146104245780635bbb21771461044f5780636352211e1461048c57806370a08231146104c9576101f9565b80632a04dbfc1461035a5780632a55205a1461037657806333c41a90146103b45780633ccfd60b146103f1576101f9565b8063095ea7b3116101cc578063095ea7b3146102ce578063162094c4146102ea57806318160ddd1461031357806323b872dd1461033e576101f9565b806301ffc9a7146101fe578063031bd4c41461023b57806306fdde0314610266578063081812fc14610291575b600080fd5b34801561020a57600080fd5b5061022560048036038101906102209190612b23565b61080c565b6040516102329190612b6b565b60405180910390f35b34801561024757600080fd5b5061025061081e565b60405161025d9190612ba3565b60405180910390f35b34801561027257600080fd5b5061027b610824565b6040516102889190612c4e565b60405180910390f35b34801561029d57600080fd5b506102b860048036038101906102b39190612ca6565b6108b6565b6040516102c59190612d14565b60405180910390f35b6102e860048036038101906102e39190612d5b565b610935565b005b3480156102f657600080fd5b50610311600480360381019061030c9190612ed0565b610a79565b005b34801561031f57600080fd5b50610328610aa6565b6040516103359190612f3b565b60405180910390f35b61035860048036038101906103539190612f56565b610abd565b005b610374600480360381019061036f91906131f3565b610ddf565b005b34801561038257600080fd5b5061039d6004803603810190610398919061329a565b611070565b6040516103ab9291906132da565b60405180910390f35b3480156103c057600080fd5b506103db60048036038101906103d69190612ca6565b61125a565b6040516103e89190612b6b565b60405180910390f35b3480156103fd57600080fd5b50610406611284565b005b610422600480360381019061041d9190612f56565b6112e2565b005b34801561043057600080fd5b50610439611302565b60405161044691906133c1565b60405180910390f35b34801561045b57600080fd5b506104766004803603810190610471919061343e565b611400565b60405161048391906135df565b60405180910390f35b34801561049857600080fd5b506104b360048036038101906104ae9190612ca6565b6114c3565b6040516104c09190612d14565b60405180910390f35b3480156104d557600080fd5b506104f060048036038101906104eb9190613601565b6114d5565b6040516104fd9190612f3b565b60405180910390f35b34801561051257600080fd5b5061051b61158d565b005b34801561052957600080fd5b50610544600480360381019061053f919061365a565b6115a1565b005b34801561055257600080fd5b5061056d60048036038101906105689190613601565b6115c6565b60405161057a9190613745565b60405180910390f35b34801561058f57600080fd5b50610598611709565b6040516105a59190612d14565b60405180910390f35b3480156105ba57600080fd5b506105c3611733565b6040516105d09190612c4e565b60405180910390f35b3480156105e557600080fd5b5061060060048036038101906105fb9190613767565b6117c5565b60405161060d9190613745565b60405180910390f35b34801561062257600080fd5b5061063d600480360381019061063891906137ba565b6119d1565b005b34801561064b57600080fd5b50610654611adc565b6040516106619190612f3b565b60405180910390f35b610684600480360381019061067f91906137fa565b611ae6565b005b34801561069257600080fd5b506106ad60048036038101906106a8919061387d565b611b59565b005b3480156106bb57600080fd5b506106d660048036038101906106d19190612ca6565b611ca0565b6040516106e3919061395d565b60405180910390f35b3480156106f857600080fd5b50610713600480360381019061070e9190612ca6565b611d0a565b6040516107209190612c4e565b60405180910390f35b34801561073557600080fd5b50610750600480360381019061074b9190613601565b611dff565b005b34801561075e57600080fd5b50610767611e4b565b6040516107749190612c4e565b60405180910390f35b34801561078957600080fd5b506107a4600480360381019061079f9190613978565b611e6b565b6040516107b19190612b6b565b60405180910390f35b3480156107c657600080fd5b506107e160048036038101906107dc9190613601565b611eff565b005b3480156107ef57600080fd5b5061080a60048036038101906108059190612ca6565b611f82565b005b600061081782611f94565b9050919050565b6103e881565b606060028054610833906139e7565b80601f016020809104026020016040519081016040528092919081815260200182805461085f906139e7565b80156108ac5780601f10610881576101008083540402835291602001916108ac565b820191906000526020600020905b81548152906001019060200180831161088f57829003601f168201915b5050505050905090565b60006108c18261200e565b6108f7576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610940826114c3565b90508073ffffffffffffffffffffffffffffffffffffffff1661096161206d565b73ffffffffffffffffffffffffffffffffffffffff16146109c45761098d8161098861206d565b611e6b565b6109c3576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610a81612075565b80600c60008481526020019081526020016000209081610aa19190613bc4565b505050565b6000610ab06120f3565b6001546000540303905090565b6000610ac8826120f8565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b2f576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610b3b846121c4565b91509150610b518187610b4c61206d565b6121eb565b610b9d57610b6686610b6161206d565b611e6b565b610b9c576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610c03576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c10868686600161222f565b8015610c1b57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610ce985610cc5888887612235565b7c02000000000000000000000000000000000000000000000000000000001761225d565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610d6f5760006001850190506000600460008381526020019081526020016000205403610d6d576000548114610d6c578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610dd78686866001612288565b505050505050565b8251600e54610dee9190613cc5565b341015610e30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2790613d53565b60405180910390fd5b600083600081518110610e4657610e45613d73565b5b602002602001015190506000600190505b8451811015610eb15781858281518110610e7457610e73613d73565b5b6020026020010151604051602001610e8d929190613dde565b60405160208183030381529060405291508080610ea990613e02565b915050610e57565b50610ee6813385604051602001610eca93929190613f22565b604051602081830303815290604052805190602001208361228e565b610f25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1c90613fa3565b60405180910390fd5b6000610f2f612360565b905060005b855181101561105d5760001515600b6000878481518110610f5857610f57613d73565b5b6020026020010151815260200190815260200160002060009054906101000a900460ff16151514610fbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb59061400f565b60405180910390fd5b6001600b6000878481518110610fd757610fd6613d73565b5b6020026020010151815260200190815260200160002060006101000a81548160ff02191690831515021790555085818151811061101757611016613d73565b5b6020026020010151600c6000838561102f919061402f565b815260200190815260200160002090816110499190613bc4565b50808061105590613e02565b915050610f34565b50611069338651612369565b5050505050565b6000806000600960008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16036112055760086040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b600061120f612387565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff168661123b9190613cc5565b6112459190614092565b90508160000151819350935050509250929050565b6000600b600083815260200190815260200160002060009054906101000a900460ff169050919050565b61128c612075565b6000611296611709565b90508073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156112de573d6000803e3d6000fd5b5050565b6112fd83838360405180602001604052806000815250611ae6565b505050565b6060600060016103e861131591906140c3565b61ffff1667ffffffffffffffff81111561133257611331612da5565b5b6040519080825280602002602001820160405280156113605781602001602082028036833780820191505090505b50905060008160008151811061137957611378613d73565b5b6020026020010190151590811515815250506000600190505b6103e861ffff1681116113f857600b600082815260200190815260200160002060009054906101000a900460ff168282815181106113d3576113d2613d73565b5b60200260200101901515908115158152505080806113f090613e02565b915050611392565b508091505090565b6060600083839050905060008167ffffffffffffffff81111561142657611425612da5565b5b60405190808252806020026020018201604052801561145f57816020015b61144c612a68565b8152602001906001900390816114445790505b50905060005b8281146114b75761148e86868381811061148257611481613d73565b5b90506020020135611ca0565b8282815181106114a1576114a0613d73565b5b6020026020010181905250806001019050611465565b50809250505092915050565b60006114ce826120f8565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361153c576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611595612075565b61159f6000612391565b565b6115a9612075565b80600d60006101000a81548160ff02191690831515021790555050565b606060008060006115d6856114d5565b905060008167ffffffffffffffff8111156115f4576115f3612da5565b5b6040519080825280602002602001820160405280156116225781602001602082028036833780820191505090505b50905061162d612a68565b60006116376120f3565b90505b8386146116fb5761164a81612457565b915081604001516116f057600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461169557816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036116ef57808387806001019850815181106116e2576116e1613d73565b5b6020026020010181815250505b5b80600101905061163a565b508195505050505050919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611742906139e7565b80601f016020809104026020016040519081016040528092919081815260200182805461176e906139e7565b80156117bb5780601f10611790576101008083540402835291602001916117bb565b820191906000526020600020905b81548152906001019060200180831161179e57829003601f168201915b5050505050905090565b6060818310611800576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061180b612360565b90506118156120f3565b851015611827576118246120f3565b94505b80841115611833578093505b600061183e876114d5565b90508486101561186157600086860390508181101561185b578091505b50611866565b600090505b60008167ffffffffffffffff81111561188257611881612da5565b5b6040519080825280602002602001820160405280156118b05781602001602082028036833780820191505090505b509050600082036118c757809450505050506119ca565b60006118d288611ca0565b9050600081604001516118e757816000015190505b60008990505b8881141580156118fd5750848714155b156119bc5761190b81612457565b925082604001516119b157600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff161461195657826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036119b057808488806001019950815181106119a3576119a2613d73565b5b6020026020010181815250505b5b8060010190506118ed565b508583528296505050505050505b9392505050565b80600760006119de61206d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611a8b61206d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611ad09190612b6b565b60405180910390a35050565b6000600e54905090565b611af1848484610abd565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611b5357611b1c84848484612482565b611b52576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b611b908333846001604051602001611b749493929190614162565b604051602081830303815290604052805190602001208261228e565b611bcf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc690613fa3565b60405180910390fd5b60001515600b600084815260200190815260200160002060009054906101000a900460ff16151514611c36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2d9061400f565b60405180910390fd5b6000611c40612360565b90506001600b600085815260200190815260200160002060006101000a81548160ff02191690831515021790555083600c60008381526020019081526020016000209081611c8e9190613bc4565b50611c9a336001612369565b50505050565b611ca8612a68565b611cb0612a68565b611cb86120f3565b831080611ccc5750611cc8612360565b8310155b15611cda5780915050611d05565b611ce383612457565b9050806040015115611cf85780915050611d05565b611d01836125d2565b9150505b919050565b6060600d60009054906101000a900460ff1615611d5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d53906141f8565b60405180910390fd5b600c60008381526020019081526020016000208054611d7a906139e7565b80601f0160208091040260200160405190810160405280929190818152602001828054611da6906139e7565b8015611df35780601f10611dc857610100808354040283529160200191611df3565b820191906000526020600020905b815481529060010190602001808311611dd657829003601f168201915b50505050509050919050565b611e07612075565b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606040518060600160405280602f8152602001614565602f9139905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611f07612075565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611f76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6d9061428a565b60405180910390fd5b611f7f81612391565b50565b611f8a612075565b80600e8190555050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806120075750612006826125f2565b5b9050919050565b6000816120196120f3565b11158015612028575060005482105b8015612066575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b61207d61265c565b73ffffffffffffffffffffffffffffffffffffffff1661209b611709565b73ffffffffffffffffffffffffffffffffffffffff16146120f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120e8906142f6565b60405180910390fd5b565b600090565b600080829050806121076120f3565b1161218d5760005481101561218c5760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082160361218a575b60008103612180576004600083600190039350838152602001908152602001600020549050612156565b80925050506121bf565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861224c868684612664565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000806040518060400160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152509050600081856040516020016122de929190614388565b6040516020818303038152906040528051906020012090506000612302828661266d565b9050600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614935050505092915050565b60008054905090565b6123838282604051806020016040528060008152506126e2565b5050565b6000612710905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61245f612a68565b61247b600460008481526020019081526020016000205461277f565b9050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026124a861206d565b8786866040518563ffffffff1660e01b81526004016124ca94939291906143fa565b6020604051808303816000875af192505050801561250657506040513d601f19601f82011682018060405250810190612503919061445b565b60015b61257f573d8060008114612536576040519150601f19603f3d011682016040523d82523d6000602084013e61253b565b606091505b506000815103612577576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6125da612a68565b6125eb6125e6836120f8565b61277f565b9050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b60009392505050565b60008060008061267c85612835565b809550819350829450505050600186848484604051600081526020016040526040516126ab94939291906144b3565b6020604051602081039080840390855afa1580156126cd573d6000803e3d6000fd5b50505060206040510351935050505092915050565b6126ec838361289d565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461277a57600080549050600083820390505b61272c6000868380600101945086612482565b612762576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061271957816000541461277757600080fd5b50505b505050565b612787612a68565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b6000806000604184511461287e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161287590614544565b60405180910390fd5b6020840151925060408401519150606084015160001a90509193909250565b600080549050600082036128dd576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6128ea600084838561222f565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612961836129526000866000612235565b61295b85612a58565b1761225d565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114612a0257808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506129c7565b5060008203612a3d576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050612a536000848385612288565b505050565b60006001821460e11b9050919050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612b0081612acb565b8114612b0b57600080fd5b50565b600081359050612b1d81612af7565b92915050565b600060208284031215612b3957612b38612ac1565b5b6000612b4784828501612b0e565b91505092915050565b60008115159050919050565b612b6581612b50565b82525050565b6000602082019050612b806000830184612b5c565b92915050565b600061ffff82169050919050565b612b9d81612b86565b82525050565b6000602082019050612bb86000830184612b94565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612bf8578082015181840152602081019050612bdd565b60008484015250505050565b6000601f19601f8301169050919050565b6000612c2082612bbe565b612c2a8185612bc9565b9350612c3a818560208601612bda565b612c4381612c04565b840191505092915050565b60006020820190508181036000830152612c688184612c15565b905092915050565b6000819050919050565b612c8381612c70565b8114612c8e57600080fd5b50565b600081359050612ca081612c7a565b92915050565b600060208284031215612cbc57612cbb612ac1565b5b6000612cca84828501612c91565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612cfe82612cd3565b9050919050565b612d0e81612cf3565b82525050565b6000602082019050612d296000830184612d05565b92915050565b612d3881612cf3565b8114612d4357600080fd5b50565b600081359050612d5581612d2f565b92915050565b60008060408385031215612d7257612d71612ac1565b5b6000612d8085828601612d46565b9250506020612d9185828601612c91565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612ddd82612c04565b810181811067ffffffffffffffff82111715612dfc57612dfb612da5565b5b80604052505050565b6000612e0f612ab7565b9050612e1b8282612dd4565b919050565b600067ffffffffffffffff821115612e3b57612e3a612da5565b5b612e4482612c04565b9050602081019050919050565b82818337600083830152505050565b6000612e73612e6e84612e20565b612e05565b905082815260208101848484011115612e8f57612e8e612da0565b5b612e9a848285612e51565b509392505050565b600082601f830112612eb757612eb6612d9b565b5b8135612ec7848260208601612e60565b91505092915050565b60008060408385031215612ee757612ee6612ac1565b5b6000612ef585828601612c91565b925050602083013567ffffffffffffffff811115612f1657612f15612ac6565b5b612f2285828601612ea2565b9150509250929050565b612f3581612c70565b82525050565b6000602082019050612f506000830184612f2c565b92915050565b600080600060608486031215612f6f57612f6e612ac1565b5b6000612f7d86828701612d46565b9350506020612f8e86828701612d46565b9250506040612f9f86828701612c91565b9150509250925092565b600067ffffffffffffffff821115612fc457612fc3612da5565b5b602082029050602081019050919050565b600080fd5b6000612fed612fe884612fa9565b612e05565b905080838252602082019050602084028301858111156130105761300f612fd5565b5b835b8181101561305757803567ffffffffffffffff81111561303557613034612d9b565b5b8086016130428982612ea2565b85526020850194505050602081019050613012565b5050509392505050565b600082601f83011261307657613075612d9b565b5b8135613086848260208601612fda565b91505092915050565b600067ffffffffffffffff8211156130aa576130a9612da5565b5b602082029050602081019050919050565b60006130ce6130c98461308f565b612e05565b905080838252602082019050602084028301858111156130f1576130f0612fd5565b5b835b8181101561311a57806131068882612c91565b8452602084019350506020810190506130f3565b5050509392505050565b600082601f83011261313957613138612d9b565b5b81356131498482602086016130bb565b91505092915050565b600067ffffffffffffffff82111561316d5761316c612da5565b5b61317682612c04565b9050602081019050919050565b600061319661319184613152565b612e05565b9050828152602081018484840111156131b2576131b1612da0565b5b6131bd848285612e51565b509392505050565b600082601f8301126131da576131d9612d9b565b5b81356131ea848260208601613183565b91505092915050565b60008060006060848603121561320c5761320b612ac1565b5b600084013567ffffffffffffffff81111561322a57613229612ac6565b5b61323686828701613061565b935050602084013567ffffffffffffffff81111561325757613256612ac6565b5b61326386828701613124565b925050604084013567ffffffffffffffff81111561328457613283612ac6565b5b613290868287016131c5565b9150509250925092565b600080604083850312156132b1576132b0612ac1565b5b60006132bf85828601612c91565b92505060206132d085828601612c91565b9150509250929050565b60006040820190506132ef6000830185612d05565b6132fc6020830184612f2c565b9392505050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61333881612b50565b82525050565b600061334a838361332f565b60208301905092915050565b6000602082019050919050565b600061336e82613303565b613378818561330e565b93506133838361331f565b8060005b838110156133b457815161339b888261333e565b97506133a683613356565b925050600181019050613387565b5085935050505092915050565b600060208201905081810360008301526133db8184613363565b905092915050565b600080fd5b60008083601f8401126133fe576133fd612d9b565b5b8235905067ffffffffffffffff81111561341b5761341a6133e3565b5b60208301915083602082028301111561343757613436612fd5565b5b9250929050565b6000806020838503121561345557613454612ac1565b5b600083013567ffffffffffffffff81111561347357613472612ac6565b5b61347f858286016133e8565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6134c081612cf3565b82525050565b600067ffffffffffffffff82169050919050565b6134e3816134c6565b82525050565b600062ffffff82169050919050565b613501816134e9565b82525050565b60808201600082015161351d60008501826134b7565b50602082015161353060208501826134da565b506040820151613543604085018261332f565b50606082015161355660608501826134f8565b50505050565b60006135688383613507565b60808301905092915050565b6000602082019050919050565b600061358c8261348b565b6135968185613496565b93506135a1836134a7565b8060005b838110156135d25781516135b9888261355c565b97506135c483613574565b9250506001810190506135a5565b5085935050505092915050565b600060208201905081810360008301526135f98184613581565b905092915050565b60006020828403121561361757613616612ac1565b5b600061362584828501612d46565b91505092915050565b61363781612b50565b811461364257600080fd5b50565b6000813590506136548161362e565b92915050565b6000602082840312156136705761366f612ac1565b5b600061367e84828501613645565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6136bc81612c70565b82525050565b60006136ce83836136b3565b60208301905092915050565b6000602082019050919050565b60006136f282613687565b6136fc8185613692565b9350613707836136a3565b8060005b8381101561373857815161371f88826136c2565b975061372a836136da565b92505060018101905061370b565b5085935050505092915050565b6000602082019050818103600083015261375f81846136e7565b905092915050565b6000806000606084860312156137805761377f612ac1565b5b600061378e86828701612d46565b935050602061379f86828701612c91565b92505060406137b086828701612c91565b9150509250925092565b600080604083850312156137d1576137d0612ac1565b5b60006137df85828601612d46565b92505060206137f085828601613645565b9150509250929050565b6000806000806080858703121561381457613813612ac1565b5b600061382287828801612d46565b945050602061383387828801612d46565b935050604061384487828801612c91565b925050606085013567ffffffffffffffff81111561386557613864612ac6565b5b613871878288016131c5565b91505092959194509250565b60008060006060848603121561389657613895612ac1565b5b600084013567ffffffffffffffff8111156138b4576138b3612ac6565b5b6138c086828701612ea2565b93505060206138d186828701612c91565b925050604084013567ffffffffffffffff8111156138f2576138f1612ac6565b5b6138fe868287016131c5565b9150509250925092565b60808201600082015161391e60008501826134b7565b50602082015161393160208501826134da565b506040820151613944604085018261332f565b50606082015161395760608501826134f8565b50505050565b60006080820190506139726000830184613908565b92915050565b6000806040838503121561398f5761398e612ac1565b5b600061399d85828601612d46565b92505060206139ae85828601612d46565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806139ff57607f821691505b602082108103613a1257613a116139b8565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613a7a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613a3d565b613a848683613a3d565b95508019841693508086168417925050509392505050565b6000819050919050565b6000613ac1613abc613ab784612c70565b613a9c565b612c70565b9050919050565b6000819050919050565b613adb83613aa6565b613aef613ae782613ac8565b848454613a4a565b825550505050565b600090565b613b04613af7565b613b0f818484613ad2565b505050565b5b81811015613b3357613b28600082613afc565b600181019050613b15565b5050565b601f821115613b7857613b4981613a18565b613b5284613a2d565b81016020851015613b61578190505b613b75613b6d85613a2d565b830182613b14565b50505b505050565b600082821c905092915050565b6000613b9b60001984600802613b7d565b1980831691505092915050565b6000613bb48383613b8a565b9150826002028217905092915050565b613bcd82612bbe565b67ffffffffffffffff811115613be657613be5612da5565b5b613bf082546139e7565b613bfb828285613b37565b600060209050601f831160018114613c2e5760008415613c1c578287015190505b613c268582613ba8565b865550613c8e565b601f198416613c3c86613a18565b60005b82811015613c6457848901518255600182019150602085019450602081019050613c3f565b86831015613c815784890151613c7d601f891682613b8a565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613cd082612c70565b9150613cdb83612c70565b9250828202613ce981612c70565b91508282048414831517613d0057613cff613c96565b5b5092915050565b7f4e6f7420656e6f75676820455448000000000000000000000000000000000000600082015250565b6000613d3d600e83612bc9565b9150613d4882613d07565b602082019050919050565b60006020820190508181036000830152613d6c81613d30565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081905092915050565b6000613db882612bbe565b613dc28185613da2565b9350613dd2818560208601612bda565b80840191505092915050565b6000613dea8285613dad565b9150613df68284613dad565b91508190509392505050565b6000613e0d82612c70565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613e3f57613e3e613c96565b5b600182019050919050565b60008160601b9050919050565b6000613e6282613e4a565b9050919050565b6000613e7482613e57565b9050919050565b613e8c613e8782612cf3565b613e69565b82525050565b600081905092915050565b613ea681612c70565b82525050565b6000613eb88383613e9d565b60208301905092915050565b6000613ecf82613687565b613ed98185613e92565b9350613ee4836136a3565b8060005b83811015613f15578151613efc8882613eac565b9750613f07836136da565b925050600181019050613ee8565b5085935050505092915050565b6000613f2e8286613dad565b9150613f3a8285613e7b565b601482019150613f4a8284613ec4565b9150819050949350505050565b7f496e76616c6964207369676e6174757265000000000000000000000000000000600082015250565b6000613f8d601183612bc9565b9150613f9882613f57565b602082019050919050565b60006020820190508181036000830152613fbc81613f80565b9050919050565b7f416c7265616479206d696e746564000000000000000000000000000000000000600082015250565b6000613ff9600e83612bc9565b915061400482613fc3565b602082019050919050565b6000602082019050818103600083015261402881613fec565b9050919050565b600061403a82612c70565b915061404583612c70565b925082820190508082111561405d5761405c613c96565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061409d82612c70565b91506140a883612c70565b9250826140b8576140b7614063565b5b828204905092915050565b60006140ce82612b86565b91506140d983612b86565b9250828201905061ffff8111156140f3576140f2613c96565b5b92915050565b6000819050919050565b61411461410f82612c70565b6140f9565b82525050565b60008160f81b9050919050565b60006141328261411a565b9050919050565b600061414482614127565b9050919050565b61415c61415782612b50565b614139565b82525050565b600061416e8287613dad565b915061417a8286613e7b565b60148201915061418a8285614103565b60208201915061419a828461414b565b60018201915081905095945050505050565b7f4d455441444154415f4e554b4544000000000000000000000000000000000000600082015250565b60006141e2600e83612bc9565b91506141ed826141ac565b602082019050919050565b60006020820190508181036000830152614211816141d5565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614274602683612bc9565b915061427f82614218565b604082019050919050565b600060208201905081810360008301526142a381614267565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006142e0602083612bc9565b91506142eb826142aa565b602082019050919050565b6000602082019050818103600083015261430f816142d3565b9050919050565b600081519050919050565b600081905092915050565b600061433782614316565b6143418185614321565b9350614351818560208601612bda565b80840191505092915050565b6000819050919050565b6000819050919050565b61438261437d8261435d565b614367565b82525050565b6000614394828561432c565b91506143a08284614371565b6020820191508190509392505050565b600082825260208201905092915050565b60006143cc82614316565b6143d681856143b0565b93506143e6818560208601612bda565b6143ef81612c04565b840191505092915050565b600060808201905061440f6000830187612d05565b61441c6020830186612d05565b6144296040830185612f2c565b818103606083015261443b81846143c1565b905095945050505050565b60008151905061445581612af7565b92915050565b60006020828403121561447157614470612ac1565b5b600061447f84828501614446565b91505092915050565b6144918161435d565b82525050565b600060ff82169050919050565b6144ad81614497565b82525050565b60006080820190506144c86000830187614488565b6144d560208301866144a4565b6144e26040830185614488565b6144ef6060830184614488565b95945050505050565b7f7369676e6174757265206c656e677468206d7573742062652036350000000000600082015250565b600061452e601b83612bc9565b9150614539826144f8565b602082019050919050565b6000602082019050818103600083015261455d81614521565b905091905056fe68747470733a2f2f6d696e742e6265796f6e6468756d616e2e61692f73746f726566726f6e742d6d65746164617461a264697066735822122083094aebf3b5847f21ed648256654e2225e4705e046242a061e0d7226e1d677064736f6c63430008120033
Deployed Bytecode
0x6080604052600436106101f95760003560e01c8063715018a61161010d578063b88d4fde116100a0578063e84a97281161006f578063e84a972814610729578063e8a3d48514610752578063e985e9c51461077d578063f2fde38b146107ba578063f4a0a528146107e3576101f9565b8063b88d4fde1461066a578063bf50889014610686578063c23dc68f146106af578063c87b56dd146106ec576101f9565b806395d89b41116100dc57806395d89b41146105ae57806399a2557a146105d9578063a22cb46514610616578063a7f93ebd1461063f576101f9565b8063715018a614610506578063720354b91461051d5780638462151c146105465780638da5cb5b14610583576101f9565b80632a04dbfc1161019057806342842e0e1161015f57806342842e0e146104085780634af83d56146104245780635bbb21771461044f5780636352211e1461048c57806370a08231146104c9576101f9565b80632a04dbfc1461035a5780632a55205a1461037657806333c41a90146103b45780633ccfd60b146103f1576101f9565b8063095ea7b3116101cc578063095ea7b3146102ce578063162094c4146102ea57806318160ddd1461031357806323b872dd1461033e576101f9565b806301ffc9a7146101fe578063031bd4c41461023b57806306fdde0314610266578063081812fc14610291575b600080fd5b34801561020a57600080fd5b5061022560048036038101906102209190612b23565b61080c565b6040516102329190612b6b565b60405180910390f35b34801561024757600080fd5b5061025061081e565b60405161025d9190612ba3565b60405180910390f35b34801561027257600080fd5b5061027b610824565b6040516102889190612c4e565b60405180910390f35b34801561029d57600080fd5b506102b860048036038101906102b39190612ca6565b6108b6565b6040516102c59190612d14565b60405180910390f35b6102e860048036038101906102e39190612d5b565b610935565b005b3480156102f657600080fd5b50610311600480360381019061030c9190612ed0565b610a79565b005b34801561031f57600080fd5b50610328610aa6565b6040516103359190612f3b565b60405180910390f35b61035860048036038101906103539190612f56565b610abd565b005b610374600480360381019061036f91906131f3565b610ddf565b005b34801561038257600080fd5b5061039d6004803603810190610398919061329a565b611070565b6040516103ab9291906132da565b60405180910390f35b3480156103c057600080fd5b506103db60048036038101906103d69190612ca6565b61125a565b6040516103e89190612b6b565b60405180910390f35b3480156103fd57600080fd5b50610406611284565b005b610422600480360381019061041d9190612f56565b6112e2565b005b34801561043057600080fd5b50610439611302565b60405161044691906133c1565b60405180910390f35b34801561045b57600080fd5b506104766004803603810190610471919061343e565b611400565b60405161048391906135df565b60405180910390f35b34801561049857600080fd5b506104b360048036038101906104ae9190612ca6565b6114c3565b6040516104c09190612d14565b60405180910390f35b3480156104d557600080fd5b506104f060048036038101906104eb9190613601565b6114d5565b6040516104fd9190612f3b565b60405180910390f35b34801561051257600080fd5b5061051b61158d565b005b34801561052957600080fd5b50610544600480360381019061053f919061365a565b6115a1565b005b34801561055257600080fd5b5061056d60048036038101906105689190613601565b6115c6565b60405161057a9190613745565b60405180910390f35b34801561058f57600080fd5b50610598611709565b6040516105a59190612d14565b60405180910390f35b3480156105ba57600080fd5b506105c3611733565b6040516105d09190612c4e565b60405180910390f35b3480156105e557600080fd5b5061060060048036038101906105fb9190613767565b6117c5565b60405161060d9190613745565b60405180910390f35b34801561062257600080fd5b5061063d600480360381019061063891906137ba565b6119d1565b005b34801561064b57600080fd5b50610654611adc565b6040516106619190612f3b565b60405180910390f35b610684600480360381019061067f91906137fa565b611ae6565b005b34801561069257600080fd5b506106ad60048036038101906106a8919061387d565b611b59565b005b3480156106bb57600080fd5b506106d660048036038101906106d19190612ca6565b611ca0565b6040516106e3919061395d565b60405180910390f35b3480156106f857600080fd5b50610713600480360381019061070e9190612ca6565b611d0a565b6040516107209190612c4e565b60405180910390f35b34801561073557600080fd5b50610750600480360381019061074b9190613601565b611dff565b005b34801561075e57600080fd5b50610767611e4b565b6040516107749190612c4e565b60405180910390f35b34801561078957600080fd5b506107a4600480360381019061079f9190613978565b611e6b565b6040516107b19190612b6b565b60405180910390f35b3480156107c657600080fd5b506107e160048036038101906107dc9190613601565b611eff565b005b3480156107ef57600080fd5b5061080a60048036038101906108059190612ca6565b611f82565b005b600061081782611f94565b9050919050565b6103e881565b606060028054610833906139e7565b80601f016020809104026020016040519081016040528092919081815260200182805461085f906139e7565b80156108ac5780601f10610881576101008083540402835291602001916108ac565b820191906000526020600020905b81548152906001019060200180831161088f57829003601f168201915b5050505050905090565b60006108c18261200e565b6108f7576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610940826114c3565b90508073ffffffffffffffffffffffffffffffffffffffff1661096161206d565b73ffffffffffffffffffffffffffffffffffffffff16146109c45761098d8161098861206d565b611e6b565b6109c3576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610a81612075565b80600c60008481526020019081526020016000209081610aa19190613bc4565b505050565b6000610ab06120f3565b6001546000540303905090565b6000610ac8826120f8565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b2f576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610b3b846121c4565b91509150610b518187610b4c61206d565b6121eb565b610b9d57610b6686610b6161206d565b611e6b565b610b9c576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610c03576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c10868686600161222f565b8015610c1b57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610ce985610cc5888887612235565b7c02000000000000000000000000000000000000000000000000000000001761225d565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610d6f5760006001850190506000600460008381526020019081526020016000205403610d6d576000548114610d6c578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610dd78686866001612288565b505050505050565b8251600e54610dee9190613cc5565b341015610e30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2790613d53565b60405180910390fd5b600083600081518110610e4657610e45613d73565b5b602002602001015190506000600190505b8451811015610eb15781858281518110610e7457610e73613d73565b5b6020026020010151604051602001610e8d929190613dde565b60405160208183030381529060405291508080610ea990613e02565b915050610e57565b50610ee6813385604051602001610eca93929190613f22565b604051602081830303815290604052805190602001208361228e565b610f25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1c90613fa3565b60405180910390fd5b6000610f2f612360565b905060005b855181101561105d5760001515600b6000878481518110610f5857610f57613d73565b5b6020026020010151815260200190815260200160002060009054906101000a900460ff16151514610fbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb59061400f565b60405180910390fd5b6001600b6000878481518110610fd757610fd6613d73565b5b6020026020010151815260200190815260200160002060006101000a81548160ff02191690831515021790555085818151811061101757611016613d73565b5b6020026020010151600c6000838561102f919061402f565b815260200190815260200160002090816110499190613bc4565b50808061105590613e02565b915050610f34565b50611069338651612369565b5050505050565b6000806000600960008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16036112055760086040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b600061120f612387565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff168661123b9190613cc5565b6112459190614092565b90508160000151819350935050509250929050565b6000600b600083815260200190815260200160002060009054906101000a900460ff169050919050565b61128c612075565b6000611296611709565b90508073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156112de573d6000803e3d6000fd5b5050565b6112fd83838360405180602001604052806000815250611ae6565b505050565b6060600060016103e861131591906140c3565b61ffff1667ffffffffffffffff81111561133257611331612da5565b5b6040519080825280602002602001820160405280156113605781602001602082028036833780820191505090505b50905060008160008151811061137957611378613d73565b5b6020026020010190151590811515815250506000600190505b6103e861ffff1681116113f857600b600082815260200190815260200160002060009054906101000a900460ff168282815181106113d3576113d2613d73565b5b60200260200101901515908115158152505080806113f090613e02565b915050611392565b508091505090565b6060600083839050905060008167ffffffffffffffff81111561142657611425612da5565b5b60405190808252806020026020018201604052801561145f57816020015b61144c612a68565b8152602001906001900390816114445790505b50905060005b8281146114b75761148e86868381811061148257611481613d73565b5b90506020020135611ca0565b8282815181106114a1576114a0613d73565b5b6020026020010181905250806001019050611465565b50809250505092915050565b60006114ce826120f8565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361153c576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611595612075565b61159f6000612391565b565b6115a9612075565b80600d60006101000a81548160ff02191690831515021790555050565b606060008060006115d6856114d5565b905060008167ffffffffffffffff8111156115f4576115f3612da5565b5b6040519080825280602002602001820160405280156116225781602001602082028036833780820191505090505b50905061162d612a68565b60006116376120f3565b90505b8386146116fb5761164a81612457565b915081604001516116f057600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461169557816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036116ef57808387806001019850815181106116e2576116e1613d73565b5b6020026020010181815250505b5b80600101905061163a565b508195505050505050919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611742906139e7565b80601f016020809104026020016040519081016040528092919081815260200182805461176e906139e7565b80156117bb5780601f10611790576101008083540402835291602001916117bb565b820191906000526020600020905b81548152906001019060200180831161179e57829003601f168201915b5050505050905090565b6060818310611800576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061180b612360565b90506118156120f3565b851015611827576118246120f3565b94505b80841115611833578093505b600061183e876114d5565b90508486101561186157600086860390508181101561185b578091505b50611866565b600090505b60008167ffffffffffffffff81111561188257611881612da5565b5b6040519080825280602002602001820160405280156118b05781602001602082028036833780820191505090505b509050600082036118c757809450505050506119ca565b60006118d288611ca0565b9050600081604001516118e757816000015190505b60008990505b8881141580156118fd5750848714155b156119bc5761190b81612457565b925082604001516119b157600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff161461195657826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036119b057808488806001019950815181106119a3576119a2613d73565b5b6020026020010181815250505b5b8060010190506118ed565b508583528296505050505050505b9392505050565b80600760006119de61206d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611a8b61206d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611ad09190612b6b565b60405180910390a35050565b6000600e54905090565b611af1848484610abd565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611b5357611b1c84848484612482565b611b52576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b611b908333846001604051602001611b749493929190614162565b604051602081830303815290604052805190602001208261228e565b611bcf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc690613fa3565b60405180910390fd5b60001515600b600084815260200190815260200160002060009054906101000a900460ff16151514611c36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2d9061400f565b60405180910390fd5b6000611c40612360565b90506001600b600085815260200190815260200160002060006101000a81548160ff02191690831515021790555083600c60008381526020019081526020016000209081611c8e9190613bc4565b50611c9a336001612369565b50505050565b611ca8612a68565b611cb0612a68565b611cb86120f3565b831080611ccc5750611cc8612360565b8310155b15611cda5780915050611d05565b611ce383612457565b9050806040015115611cf85780915050611d05565b611d01836125d2565b9150505b919050565b6060600d60009054906101000a900460ff1615611d5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d53906141f8565b60405180910390fd5b600c60008381526020019081526020016000208054611d7a906139e7565b80601f0160208091040260200160405190810160405280929190818152602001828054611da6906139e7565b8015611df35780601f10611dc857610100808354040283529160200191611df3565b820191906000526020600020905b815481529060010190602001808311611dd657829003601f168201915b50505050509050919050565b611e07612075565b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606040518060600160405280602f8152602001614565602f9139905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611f07612075565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611f76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6d9061428a565b60405180910390fd5b611f7f81612391565b50565b611f8a612075565b80600e8190555050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806120075750612006826125f2565b5b9050919050565b6000816120196120f3565b11158015612028575060005482105b8015612066575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b61207d61265c565b73ffffffffffffffffffffffffffffffffffffffff1661209b611709565b73ffffffffffffffffffffffffffffffffffffffff16146120f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120e8906142f6565b60405180910390fd5b565b600090565b600080829050806121076120f3565b1161218d5760005481101561218c5760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082160361218a575b60008103612180576004600083600190039350838152602001908152602001600020549050612156565b80925050506121bf565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861224c868684612664565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000806040518060400160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152509050600081856040516020016122de929190614388565b6040516020818303038152906040528051906020012090506000612302828661266d565b9050600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614935050505092915050565b60008054905090565b6123838282604051806020016040528060008152506126e2565b5050565b6000612710905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61245f612a68565b61247b600460008481526020019081526020016000205461277f565b9050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026124a861206d565b8786866040518563ffffffff1660e01b81526004016124ca94939291906143fa565b6020604051808303816000875af192505050801561250657506040513d601f19601f82011682018060405250810190612503919061445b565b60015b61257f573d8060008114612536576040519150601f19603f3d011682016040523d82523d6000602084013e61253b565b606091505b506000815103612577576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6125da612a68565b6125eb6125e6836120f8565b61277f565b9050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b60009392505050565b60008060008061267c85612835565b809550819350829450505050600186848484604051600081526020016040526040516126ab94939291906144b3565b6020604051602081039080840390855afa1580156126cd573d6000803e3d6000fd5b50505060206040510351935050505092915050565b6126ec838361289d565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461277a57600080549050600083820390505b61272c6000868380600101945086612482565b612762576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061271957816000541461277757600080fd5b50505b505050565b612787612a68565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b6000806000604184511461287e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161287590614544565b60405180910390fd5b6020840151925060408401519150606084015160001a90509193909250565b600080549050600082036128dd576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6128ea600084838561222f565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612961836129526000866000612235565b61295b85612a58565b1761225d565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114612a0257808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506129c7565b5060008203612a3d576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050612a536000848385612288565b505050565b60006001821460e11b9050919050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612b0081612acb565b8114612b0b57600080fd5b50565b600081359050612b1d81612af7565b92915050565b600060208284031215612b3957612b38612ac1565b5b6000612b4784828501612b0e565b91505092915050565b60008115159050919050565b612b6581612b50565b82525050565b6000602082019050612b806000830184612b5c565b92915050565b600061ffff82169050919050565b612b9d81612b86565b82525050565b6000602082019050612bb86000830184612b94565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612bf8578082015181840152602081019050612bdd565b60008484015250505050565b6000601f19601f8301169050919050565b6000612c2082612bbe565b612c2a8185612bc9565b9350612c3a818560208601612bda565b612c4381612c04565b840191505092915050565b60006020820190508181036000830152612c688184612c15565b905092915050565b6000819050919050565b612c8381612c70565b8114612c8e57600080fd5b50565b600081359050612ca081612c7a565b92915050565b600060208284031215612cbc57612cbb612ac1565b5b6000612cca84828501612c91565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612cfe82612cd3565b9050919050565b612d0e81612cf3565b82525050565b6000602082019050612d296000830184612d05565b92915050565b612d3881612cf3565b8114612d4357600080fd5b50565b600081359050612d5581612d2f565b92915050565b60008060408385031215612d7257612d71612ac1565b5b6000612d8085828601612d46565b9250506020612d9185828601612c91565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612ddd82612c04565b810181811067ffffffffffffffff82111715612dfc57612dfb612da5565b5b80604052505050565b6000612e0f612ab7565b9050612e1b8282612dd4565b919050565b600067ffffffffffffffff821115612e3b57612e3a612da5565b5b612e4482612c04565b9050602081019050919050565b82818337600083830152505050565b6000612e73612e6e84612e20565b612e05565b905082815260208101848484011115612e8f57612e8e612da0565b5b612e9a848285612e51565b509392505050565b600082601f830112612eb757612eb6612d9b565b5b8135612ec7848260208601612e60565b91505092915050565b60008060408385031215612ee757612ee6612ac1565b5b6000612ef585828601612c91565b925050602083013567ffffffffffffffff811115612f1657612f15612ac6565b5b612f2285828601612ea2565b9150509250929050565b612f3581612c70565b82525050565b6000602082019050612f506000830184612f2c565b92915050565b600080600060608486031215612f6f57612f6e612ac1565b5b6000612f7d86828701612d46565b9350506020612f8e86828701612d46565b9250506040612f9f86828701612c91565b9150509250925092565b600067ffffffffffffffff821115612fc457612fc3612da5565b5b602082029050602081019050919050565b600080fd5b6000612fed612fe884612fa9565b612e05565b905080838252602082019050602084028301858111156130105761300f612fd5565b5b835b8181101561305757803567ffffffffffffffff81111561303557613034612d9b565b5b8086016130428982612ea2565b85526020850194505050602081019050613012565b5050509392505050565b600082601f83011261307657613075612d9b565b5b8135613086848260208601612fda565b91505092915050565b600067ffffffffffffffff8211156130aa576130a9612da5565b5b602082029050602081019050919050565b60006130ce6130c98461308f565b612e05565b905080838252602082019050602084028301858111156130f1576130f0612fd5565b5b835b8181101561311a57806131068882612c91565b8452602084019350506020810190506130f3565b5050509392505050565b600082601f83011261313957613138612d9b565b5b81356131498482602086016130bb565b91505092915050565b600067ffffffffffffffff82111561316d5761316c612da5565b5b61317682612c04565b9050602081019050919050565b600061319661319184613152565b612e05565b9050828152602081018484840111156131b2576131b1612da0565b5b6131bd848285612e51565b509392505050565b600082601f8301126131da576131d9612d9b565b5b81356131ea848260208601613183565b91505092915050565b60008060006060848603121561320c5761320b612ac1565b5b600084013567ffffffffffffffff81111561322a57613229612ac6565b5b61323686828701613061565b935050602084013567ffffffffffffffff81111561325757613256612ac6565b5b61326386828701613124565b925050604084013567ffffffffffffffff81111561328457613283612ac6565b5b613290868287016131c5565b9150509250925092565b600080604083850312156132b1576132b0612ac1565b5b60006132bf85828601612c91565b92505060206132d085828601612c91565b9150509250929050565b60006040820190506132ef6000830185612d05565b6132fc6020830184612f2c565b9392505050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61333881612b50565b82525050565b600061334a838361332f565b60208301905092915050565b6000602082019050919050565b600061336e82613303565b613378818561330e565b93506133838361331f565b8060005b838110156133b457815161339b888261333e565b97506133a683613356565b925050600181019050613387565b5085935050505092915050565b600060208201905081810360008301526133db8184613363565b905092915050565b600080fd5b60008083601f8401126133fe576133fd612d9b565b5b8235905067ffffffffffffffff81111561341b5761341a6133e3565b5b60208301915083602082028301111561343757613436612fd5565b5b9250929050565b6000806020838503121561345557613454612ac1565b5b600083013567ffffffffffffffff81111561347357613472612ac6565b5b61347f858286016133e8565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6134c081612cf3565b82525050565b600067ffffffffffffffff82169050919050565b6134e3816134c6565b82525050565b600062ffffff82169050919050565b613501816134e9565b82525050565b60808201600082015161351d60008501826134b7565b50602082015161353060208501826134da565b506040820151613543604085018261332f565b50606082015161355660608501826134f8565b50505050565b60006135688383613507565b60808301905092915050565b6000602082019050919050565b600061358c8261348b565b6135968185613496565b93506135a1836134a7565b8060005b838110156135d25781516135b9888261355c565b97506135c483613574565b9250506001810190506135a5565b5085935050505092915050565b600060208201905081810360008301526135f98184613581565b905092915050565b60006020828403121561361757613616612ac1565b5b600061362584828501612d46565b91505092915050565b61363781612b50565b811461364257600080fd5b50565b6000813590506136548161362e565b92915050565b6000602082840312156136705761366f612ac1565b5b600061367e84828501613645565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6136bc81612c70565b82525050565b60006136ce83836136b3565b60208301905092915050565b6000602082019050919050565b60006136f282613687565b6136fc8185613692565b9350613707836136a3565b8060005b8381101561373857815161371f88826136c2565b975061372a836136da565b92505060018101905061370b565b5085935050505092915050565b6000602082019050818103600083015261375f81846136e7565b905092915050565b6000806000606084860312156137805761377f612ac1565b5b600061378e86828701612d46565b935050602061379f86828701612c91565b92505060406137b086828701612c91565b9150509250925092565b600080604083850312156137d1576137d0612ac1565b5b60006137df85828601612d46565b92505060206137f085828601613645565b9150509250929050565b6000806000806080858703121561381457613813612ac1565b5b600061382287828801612d46565b945050602061383387828801612d46565b935050604061384487828801612c91565b925050606085013567ffffffffffffffff81111561386557613864612ac6565b5b613871878288016131c5565b91505092959194509250565b60008060006060848603121561389657613895612ac1565b5b600084013567ffffffffffffffff8111156138b4576138b3612ac6565b5b6138c086828701612ea2565b93505060206138d186828701612c91565b925050604084013567ffffffffffffffff8111156138f2576138f1612ac6565b5b6138fe868287016131c5565b9150509250925092565b60808201600082015161391e60008501826134b7565b50602082015161393160208501826134da565b506040820151613944604085018261332f565b50606082015161395760608501826134f8565b50505050565b60006080820190506139726000830184613908565b92915050565b6000806040838503121561398f5761398e612ac1565b5b600061399d85828601612d46565b92505060206139ae85828601612d46565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806139ff57607f821691505b602082108103613a1257613a116139b8565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613a7a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613a3d565b613a848683613a3d565b95508019841693508086168417925050509392505050565b6000819050919050565b6000613ac1613abc613ab784612c70565b613a9c565b612c70565b9050919050565b6000819050919050565b613adb83613aa6565b613aef613ae782613ac8565b848454613a4a565b825550505050565b600090565b613b04613af7565b613b0f818484613ad2565b505050565b5b81811015613b3357613b28600082613afc565b600181019050613b15565b5050565b601f821115613b7857613b4981613a18565b613b5284613a2d565b81016020851015613b61578190505b613b75613b6d85613a2d565b830182613b14565b50505b505050565b600082821c905092915050565b6000613b9b60001984600802613b7d565b1980831691505092915050565b6000613bb48383613b8a565b9150826002028217905092915050565b613bcd82612bbe565b67ffffffffffffffff811115613be657613be5612da5565b5b613bf082546139e7565b613bfb828285613b37565b600060209050601f831160018114613c2e5760008415613c1c578287015190505b613c268582613ba8565b865550613c8e565b601f198416613c3c86613a18565b60005b82811015613c6457848901518255600182019150602085019450602081019050613c3f565b86831015613c815784890151613c7d601f891682613b8a565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613cd082612c70565b9150613cdb83612c70565b9250828202613ce981612c70565b91508282048414831517613d0057613cff613c96565b5b5092915050565b7f4e6f7420656e6f75676820455448000000000000000000000000000000000000600082015250565b6000613d3d600e83612bc9565b9150613d4882613d07565b602082019050919050565b60006020820190508181036000830152613d6c81613d30565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081905092915050565b6000613db882612bbe565b613dc28185613da2565b9350613dd2818560208601612bda565b80840191505092915050565b6000613dea8285613dad565b9150613df68284613dad565b91508190509392505050565b6000613e0d82612c70565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613e3f57613e3e613c96565b5b600182019050919050565b60008160601b9050919050565b6000613e6282613e4a565b9050919050565b6000613e7482613e57565b9050919050565b613e8c613e8782612cf3565b613e69565b82525050565b600081905092915050565b613ea681612c70565b82525050565b6000613eb88383613e9d565b60208301905092915050565b6000613ecf82613687565b613ed98185613e92565b9350613ee4836136a3565b8060005b83811015613f15578151613efc8882613eac565b9750613f07836136da565b925050600181019050613ee8565b5085935050505092915050565b6000613f2e8286613dad565b9150613f3a8285613e7b565b601482019150613f4a8284613ec4565b9150819050949350505050565b7f496e76616c6964207369676e6174757265000000000000000000000000000000600082015250565b6000613f8d601183612bc9565b9150613f9882613f57565b602082019050919050565b60006020820190508181036000830152613fbc81613f80565b9050919050565b7f416c7265616479206d696e746564000000000000000000000000000000000000600082015250565b6000613ff9600e83612bc9565b915061400482613fc3565b602082019050919050565b6000602082019050818103600083015261402881613fec565b9050919050565b600061403a82612c70565b915061404583612c70565b925082820190508082111561405d5761405c613c96565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061409d82612c70565b91506140a883612c70565b9250826140b8576140b7614063565b5b828204905092915050565b60006140ce82612b86565b91506140d983612b86565b9250828201905061ffff8111156140f3576140f2613c96565b5b92915050565b6000819050919050565b61411461410f82612c70565b6140f9565b82525050565b60008160f81b9050919050565b60006141328261411a565b9050919050565b600061414482614127565b9050919050565b61415c61415782612b50565b614139565b82525050565b600061416e8287613dad565b915061417a8286613e7b565b60148201915061418a8285614103565b60208201915061419a828461414b565b60018201915081905095945050505050565b7f4d455441444154415f4e554b4544000000000000000000000000000000000000600082015250565b60006141e2600e83612bc9565b91506141ed826141ac565b602082019050919050565b60006020820190508181036000830152614211816141d5565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614274602683612bc9565b915061427f82614218565b604082019050919050565b600060208201905081810360008301526142a381614267565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006142e0602083612bc9565b91506142eb826142aa565b602082019050919050565b6000602082019050818103600083015261430f816142d3565b9050919050565b600081519050919050565b600081905092915050565b600061433782614316565b6143418185614321565b9350614351818560208601612bda565b80840191505092915050565b6000819050919050565b6000819050919050565b61438261437d8261435d565b614367565b82525050565b6000614394828561432c565b91506143a08284614371565b6020820191508190509392505050565b600082825260208201905092915050565b60006143cc82614316565b6143d681856143b0565b93506143e6818560208601612bda565b6143ef81612c04565b840191505092915050565b600060808201905061440f6000830187612d05565b61441c6020830186612d05565b6144296040830185612f2c565b818103606083015261443b81846143c1565b905095945050505050565b60008151905061445581612af7565b92915050565b60006020828403121561447157614470612ac1565b5b600061447f84828501614446565b91505092915050565b6144918161435d565b82525050565b600060ff82169050919050565b6144ad81614497565b82525050565b60006080820190506144c86000830187614488565b6144d560208301866144a4565b6144e26040830185614488565b6144ef6060830184614488565b95945050505050565b7f7369676e6174757265206c656e677468206d7573742062652036350000000000600082015250565b600061452e601b83612bc9565b9150614539826144f8565b602082019050919050565b6000602082019050818103600083015261455d81614521565b905091905056fe68747470733a2f2f6d696e742e6265796f6e6468756d616e2e61692f73746f726566726f6e742d6d65746164617461a264697066735822122083094aebf3b5847f21ed648256654e2225e4705e046242a061e0d7226e1d677064736f6c63430008120033
Loading...
Loading
Loading...
Loading
[ 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.