ERC-721
Overview
Max Total Supply
1,078 MUH
Holders
386
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 MUHLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MUHLADY
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-04-14 */ /* **Muhlady is a post-modern collection of 6,666 hand-made NFTs. **Drawing inspiration from MiladyMaker in the overall design, **each Muhlady NFT features a distinct neochibi-inspired character with its own design, look and overall rarity. **The collection boasts intricate details and vibrant colors that give it a trendy aesthetic for internet users. ****Socials**** ****Twitter: https://twitter.com/muhladymaker ****Discord: discord.gg/muhlady @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&BGP555PGB&@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&P?~:. :~?P&@@@@@@@@@@@@ @@@@@@@@@@@@@@@@&#GP5YYYY5PGB&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@G!. .7G@@@@@@@@@@ @@@@@@@@@@@@B57^: .^7YB@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#! !#@@@@@@@@ @@@@@@@@@#J^ ^?B@@@@@@@@@@@@@@@@@@@@@@@@@@@B. .G@@@@@@@ @@@@@@@#7. ~G@@@@@@@@@@@@@@@@@@@@@@@@#: .B@@@@@@ @@@@@@5. 7&@@@@@@@@@@@@@@@@@@@@@@G.JJJ?7!!~^^::... !@@@@@@ @@@@@Y . 7@@@@@@@@@@@@@@@@@@@@@@#:&@@@@@@@@@@&&##BB!!GP5YJ??7!7@@@@@@ @@@@B .:^~!7JYPGBB.~@@@@@@@@@@@@@@@@@@@@@@&^Y@@@@@@@@@@@@@@@#^&@@@@@@@@@@@@@@@@ @@@@J :^!7?Y5PG##&@@@@@@@@@# ?@@@@@@@@@@@@@@@@@@@@@@P: 5@@@@@@B75P?Y&&~P@@@@@@@@@@@@@@@@@ @@@@? .:^~!?J5P5~G@@@@@@@@@@@@@@@@@@@@Y G@@@@@@@@@@@@@@@@@@@@@@@Y. :?P#&@#JP~ !^ #@@@@@@@@@@@@@@@@@ @@@@#B#&@@@@@@@@#75@@@@@@@@@@@@@@@G5G&: J&@@@@@@@@@@@@@@@@@@@@@@@BY7:..:^~!!~..:^P@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@J~P@@@@@@@@@&~~5 :.7&@@@@@@@@@@@@@@@@@@@@@@@@@@@B#GGGJPYPBB&@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@&&J^~YB&@@@@@@BGG7 :P&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@&&PY:7!?7~!!~!~JJP#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@&@B&GP&&&&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */ // File: @openzeppelin/contracts/utils/math/SafeMath.sol // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } } // File: erc721a/contracts/IERC721A.sol // 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); } // File: erc721a/contracts/ERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @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) } } } // File: @openzeppelin/contracts/utils/cryptography/MerkleProof.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } } // File: @openzeppelin/contracts/utils/math/Math.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File: @openzeppelin/contracts/utils/Context.sol // 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; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: @openzeppelin/contracts/utils/Address.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } // File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File: @openzeppelin/contracts/utils/introspection/IERC165.sol // 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); } // File: @openzeppelin/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @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; } } // File: @openzeppelin/contracts/token/ERC721/IERC721.sol // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); } // File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } // File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @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); } // File: @openzeppelin/contracts/token/ERC721/ERC721.sol // OpenZeppelin Contracts (last updated v4.8.2) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @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, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _safeTransfer(from, to, tokenId, data); } /** * @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. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _ownerOf(tokenId) != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such * that `ownerOf(tokenId)` is `a`. */ // solhint-disable-next-line func-name-mixedcase function __unsafe_increaseBalance(address account, uint256 amount) internal { _balances[account] += amount; } } // File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev See {ERC721-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual override { super._beforeTokenTransfer(from, to, firstTokenId, batchSize); if (batchSize > 1) { // Will only trigger during construction. Batch transferring (minting) is not available afterwards. revert("ERC721Enumerable: consecutive transfers not supported"); } uint256 tokenId = firstTokenId; if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } } // File: contracts/Mulady.sol pragma solidity ^0.8.17; /** * @title MUHLADY contract * @dev Implementation of the MUHLADY ERC721A smart contract. */ contract MUHLADY is ERC721A, Ownable { using Strings for uint256; using SafeMath for uint256; address public constant MILADY_MAKER = 0x5Af0D9827E0c53E4799BB226655A1de152A425a5; address public constant REMILIO = 0xD3D9ddd0CF0A5F0BFB8f7fcEAe075DF687eAEBaB; address public constant RADBRO = 0xE83C9F09B0992e4a34fAf125ed4FEdD3407c4a23; address public constant SCHIZO = 0xBfE47D6D4090940D1c7a0066B63d23875E3e2Ac5; uint256 public constant MAX_SUPPLY = 6666; uint256 public constant RESERVED_SUPPLY = 1000; uint256 private _reservedClaimed; uint256 public mintPrice = 10000000000000000; // 0.02 ETH address payable public ARTIST1 = payable(0x04023220C3FEF7Aa1a8859Fa26F049aA5Cf0AFa4); // Replace with wallet address address payable public ARTIST2 = payable(0x81a2716e594d8eE6F5dDBDDA344Ed45d38894f3c); // Replace with wallet address address payable public DEV = payable(0xc5De42B455e44B17bac949BeAAB967DD08dd96a1); // Replace with wallet address bytes32 public merkleRoot; bool public mintStatus; mapping(address => bool) public claimed; mapping(address => mapping(uint256 => bool)) public usedTokenId; string public baseUri; /** * @dev Constructor function for MULADY contract * @param _merkleRoot The Merkle root for the airdrop */ constructor(bytes32 _merkleRoot) ERC721A("MUHLADY", "MUH") { merkleRoot = _merkleRoot; _mint(msg.sender, 50); } /** * @dev Modifier to check if minting is active */ modifier mintActive() { require(mintStatus, "Mint coming soon"); _; } /** * @dev Function to claim a whitelisted MULADY token * @param merkleProof The Merkle proof for the airdrop */ function basedNiggaMint(bytes32[] calldata merkleProof) public mintActive { require(_totalMinted() + 1 <= MAX_SUPPLY, "Minting exceeds max supply"); require( _reservedClaimed <= RESERVED_SUPPLY, "All reserved tokens claimed" ); // Verify the merkle proof bytes32 node = toBytes32(msg.sender); require( MerkleProof.verify(merkleProof, merkleRoot, node) || (ERC721(MILADY_MAKER).balanceOf(msg.sender) >= 1) || (ERC721(REMILIO).balanceOf(msg.sender) >= 1) || (ERC721(RADBRO).balanceOf(msg.sender) >= 1) || (ERC721(SCHIZO).balanceOf(msg.sender) >= 1), "Invalid WL Spot" ); // Make sure the user hasn't claimed their reserved token already require(!claimed[msg.sender], "Already claimed"); claimed[msg.sender] = true; _reservedClaimed++; _mint(msg.sender, 1); } /** * @dev Function to mint MULADY tokens * @param quantity The number of tokens to mint */ function mint(uint256 quantity) public payable mintActive { require( _totalMinted() + quantity <= MAX_SUPPLY, "Minting exceeds max supply" ); require(mintPrice * quantity <= msg.value, "Not enough ETH sent"); uint256 totalAmount = msg.value; // Distribute ETH to wallets uint256 artist1Amount = (totalAmount / 100) * 40; uint256 artist2Amount = (totalAmount / 100) * 40; uint256 devAmount = (totalAmount / 100) * 10; ARTIST1.transfer(artist1Amount); ARTIST2.transfer(artist2Amount); DEV.transfer(devAmount); _mint(msg.sender, quantity); } /** * @dev Function to withdraw contract balance */ function withdraw() public onlyOwner { uint256 balance = address(this).balance; payable(msg.sender).transfer(balance); } /** * @dev Function to set the minting status of the contract * @param _newStatus The new minting status */ function setMintStatus(bool _newStatus) public onlyOwner { mintStatus = _newStatus; } /** * @dev Sets the mint price for tokens. * @param _newMintPrice The new mint price in wei. */ function setMintPrice(uint256 _newMintPrice) public onlyOwner { mintPrice = _newMintPrice; } /** * @dev Function to set the Merkle root for the airdrop * @param _merkleRoot The new Merkle root */ function setMerkleRoot(bytes32 _merkleRoot) public onlyOwner { merkleRoot = _merkleRoot; } function setBaseUri(string memory _uri) public onlyOwner { baseUri = _uri; } /** * @dev Internal function to convert an address to bytes32 * @param addr The address to convert */ function toBytes32(address addr) internal pure returns (bytes32) { return bytes32(uint256(uint160(addr))); } /** * @dev Internal function to get the starting token ID for the contract */ function _startTokenId() internal view override returns (uint256) { return 1; } /** * @dev Returns the base URI for the token metadata. * @return The base URI for the token metadata. */ function _baseURI() internal view override returns (string memory) { return baseUri; } /** * @dev Returns the URI for a specific token. * @param tokenId The ID of the token to get the URI for. * @return The URI of the token with the given ID. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); string memory base = _baseURI(); return bytes(base).length > 0 ? string(abi.encodePacked(base, tokenId.toString(), ".json")) : ""; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"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":"ARTIST1","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ARTIST2","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEV","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MILADY_MAKER","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RADBRO","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REMILIO","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVED_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SCHIZO","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"baseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"basedNiggaMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_newStatus","type":"bool"}],"name":"setMintStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"usedTokenId","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052662386f26fc10000600a557304023220c3fef7aa1a8859fa26f049aa5cf0afa4600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507381a2716e594d8ee6f5ddbdda344ed45d38894f3c600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073c5de42b455e44b17bac949beaab967dd08dd96a1600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200011b57600080fd5b5060405162004437380380620044378339818101604052810190620001419190620005a8565b6040518060400160405280600781526020017f4d55484c414459000000000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f4d554800000000000000000000000000000000000000000000000000000000008152508160029081620001be919062000854565b508060039081620001d0919062000854565b50620001e16200022a60201b60201c565b600081905550505062000209620001fd6200023360201b60201c565b6200023b60201b60201c565b80600e81905550620002233360326200030160201b60201c565b506200093b565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000805490506000820362000342576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b620003576000848385620004e860201b60201c565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550620003e683620003c86000866000620004ee60201b60201c565b620003d9856200051e60201b60201c565b176200052e60201b60201c565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146200048957808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506200044c565b5060008203620004c5576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050620004e360008483856200055960201b60201c565b505050565b50505050565b60008060e883901c905060e86200050d8686846200055f60201b60201c565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60009392505050565b600080fd5b6000819050919050565b62000582816200056d565b81146200058e57600080fd5b50565b600081519050620005a28162000577565b92915050565b600060208284031215620005c157620005c062000568565b5b6000620005d18482850162000591565b91505092915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200065c57607f821691505b60208210810362000672576200067162000614565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620006dc7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200069d565b620006e886836200069d565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620007356200072f620007298462000700565b6200070a565b62000700565b9050919050565b6000819050919050565b620007518362000714565b6200076962000760826200073c565b848454620006aa565b825550505050565b600090565b6200078062000771565b6200078d81848462000746565b505050565b5b81811015620007b557620007a960008262000776565b60018101905062000793565b5050565b601f8211156200080457620007ce8162000678565b620007d9846200068d565b81016020851015620007e9578190505b62000801620007f8856200068d565b83018262000792565b50505b505050565b600082821c905092915050565b6000620008296000198460080262000809565b1980831691505092915050565b600062000844838362000816565b9150826002028217905092915050565b6200085f82620005da565b67ffffffffffffffff8111156200087b576200087a620005e5565b5b62000887825462000643565b62000894828285620007b9565b600060209050601f831160018114620008cc5760008415620008b7578287015190505b620008c3858262000836565b86555062000933565b601f198416620008dc8662000678565b60005b828110156200090657848901518255600182019150602085019450602081019050620008df565b8683101562000926578489015162000922601f89168262000816565b8355505b6001600288020188555050505b505050505050565b613aec806200094b6000396000f3fe6080604052600436106102305760003560e01c806379da16d51161012e578063a22cb465116100ab578063c884ef831161006f578063c884ef83146107da578063df9cfef614610817578063e985e9c514610842578063f2fde38b1461087f578063f4a0a528146108a857610230565b8063a22cb46514610702578063a836f7d11461072b578063b88d4fde14610756578063c1eb5ddd14610772578063c87b56dd1461079d57610230565b806395d89b41116100f257806395d89b411461063c5780639abc8320146106675780639da3f8fd14610692578063a0712d68146106bd578063a0bcfc7f146106d957610230565b806379da16d5146105695780637cb647591461059457806385b4784f146105bd57806386d4c07c146105e85780638da5cb5b1461061157610230565b806331a53e9a116101bc5780635c0bc9a7116101805780635c0bc9a7146104825780636352211e146104ad5780636817c76c146104ea57806370a0823114610515578063715018a61461055257610230565b806331a53e9a146103ce57806332cb6b0c146103f95780633a516c13146104245780633ccfd60b1461044f57806342842e0e1461046657610230565b80630e31d429116102035780630e31d429146102f657806318160ddd146103335780631f85e3ca1461035e57806323b872dd146103875780632eb4a7ab146103a357610230565b806301ffc9a71461023557806306fdde0314610272578063081812fc1461029d578063095ea7b3146102da575b600080fd5b34801561024157600080fd5b5061025c6004803603810190610257919061288d565b6108d1565b60405161026991906128d5565b60405180910390f35b34801561027e57600080fd5b50610287610963565b6040516102949190612980565b60405180910390f35b3480156102a957600080fd5b506102c460048036038101906102bf91906129d8565b6109f5565b6040516102d19190612a46565b60405180910390f35b6102f460048036038101906102ef9190612a8d565b610a74565b005b34801561030257600080fd5b5061031d60048036038101906103189190612a8d565b610bb8565b60405161032a91906128d5565b60405180910390f35b34801561033f57600080fd5b50610348610be7565b6040516103559190612adc565b60405180910390f35b34801561036a57600080fd5b5061038560048036038101906103809190612b23565b610bfe565b005b6103a1600480360381019061039c9190612b50565b610c23565b005b3480156103af57600080fd5b506103b8610f45565b6040516103c59190612bbc565b60405180910390f35b3480156103da57600080fd5b506103e3610f4b565b6040516103f09190612adc565b60405180910390f35b34801561040557600080fd5b5061040e610f51565b60405161041b9190612adc565b60405180910390f35b34801561043057600080fd5b50610439610f57565b6040516104469190612a46565b60405180910390f35b34801561045b57600080fd5b50610464610f6f565b005b610480600480360381019061047b9190612b50565b610fc6565b005b34801561048e57600080fd5b50610497610fe6565b6040516104a49190612a46565b60405180910390f35b3480156104b957600080fd5b506104d460048036038101906104cf91906129d8565b610ffe565b6040516104e19190612a46565b60405180910390f35b3480156104f657600080fd5b506104ff611010565b60405161050c9190612adc565b60405180910390f35b34801561052157600080fd5b5061053c60048036038101906105379190612bd7565b611016565b6040516105499190612adc565b60405180910390f35b34801561055e57600080fd5b506105676110ce565b005b34801561057557600080fd5b5061057e6110e2565b60405161058b9190612a46565b60405180910390f35b3480156105a057600080fd5b506105bb60048036038101906105b69190612c30565b6110fa565b005b3480156105c957600080fd5b506105d261110c565b6040516105df9190612c7e565b60405180910390f35b3480156105f457600080fd5b5061060f600480360381019061060a9190612cfe565b611132565b005b34801561061d57600080fd5b5061062661162b565b6040516106339190612a46565b60405180910390f35b34801561064857600080fd5b50610651611655565b60405161065e9190612980565b60405180910390f35b34801561067357600080fd5b5061067c6116e7565b6040516106899190612980565b60405180910390f35b34801561069e57600080fd5b506106a7611775565b6040516106b491906128d5565b60405180910390f35b6106d760048036038101906106d291906129d8565b611788565b005b3480156106e557600080fd5b5061070060048036038101906106fb9190612e7b565b611a26565b005b34801561070e57600080fd5b5061072960048036038101906107249190612ec4565b611a41565b005b34801561073757600080fd5b50610740611b4c565b60405161074d9190612a46565b60405180910390f35b610770600480360381019061076b9190612fa5565b611b64565b005b34801561077e57600080fd5b50610787611bd7565b6040516107949190612c7e565b60405180910390f35b3480156107a957600080fd5b506107c460048036038101906107bf91906129d8565b611bfd565b6040516107d19190612980565b60405180910390f35b3480156107e657600080fd5b5061080160048036038101906107fc9190612bd7565b611ca4565b60405161080e91906128d5565b60405180910390f35b34801561082357600080fd5b5061082c611cc4565b6040516108399190612c7e565b60405180910390f35b34801561084e57600080fd5b5061086960048036038101906108649190613028565b611cea565b60405161087691906128d5565b60405180910390f35b34801561088b57600080fd5b506108a660048036038101906108a19190612bd7565b611d7e565b005b3480156108b457600080fd5b506108cf60048036038101906108ca91906129d8565b611e01565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061092c57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061095c5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461097290613097565b80601f016020809104026020016040519081016040528092919081815260200182805461099e90613097565b80156109eb5780601f106109c0576101008083540402835291602001916109eb565b820191906000526020600020905b8154815290600101906020018083116109ce57829003601f168201915b5050505050905090565b6000610a0082611e13565b610a36576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a7f82610ffe565b90508073ffffffffffffffffffffffffffffffffffffffff16610aa0611e72565b73ffffffffffffffffffffffffffffffffffffffff1614610b0357610acc81610ac7611e72565b611cea565b610b02576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60116020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b6000610bf1611e7a565b6001546000540303905090565b610c06611e83565b80600f60006101000a81548160ff02191690831515021790555050565b6000610c2e82611f01565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c95576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610ca184611fcd565b91509150610cb78187610cb2611e72565b611ff4565b610d0357610ccc86610cc7611e72565b611cea565b610d02576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610d69576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d768686866001612038565b8015610d8157600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610e4f85610e2b88888761203e565b7c020000000000000000000000000000000000000000000000000000000017612066565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610ed55760006001850190506000600460008381526020019081526020016000205403610ed3576000548114610ed2578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610f3d8686866001612091565b505050505050565b600e5481565b6103e881565b611a0a81565b735af0d9827e0c53e4799bb226655a1de152a425a581565b610f77611e83565b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610fc2573d6000803e3d6000fd5b5050565b610fe183838360405180602001604052806000815250611b64565b505050565b73e83c9f09b0992e4a34faf125ed4fedd3407c4a2381565b600061100982611f01565b9050919050565b600a5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361107d576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6110d6611e83565b6110e06000612097565b565b73bfe47d6d4090940d1c7a0066b63d23875e3e2ac581565b611102611e83565b80600e8190555050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600f60009054906101000a900460ff16611181576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117890613114565b60405180910390fd5b611a0a600161118e61215d565b6111989190613163565b11156111d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d0906131e3565b60405180910390fd5b6103e86009541115611220576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112179061324f565b60405180910390fd5b600061122b33612170565b905061127b838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600e5483612193565b8061131457506001735af0d9827e0c53e4799bb226655a1de152a425a573ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016112d09190612a46565b602060405180830381865afa1580156112ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113119190613284565b10155b806113ad5750600173d3d9ddd0cf0a5f0bfb8f7fceae075df687eaebab73ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016113699190612a46565b602060405180830381865afa158015611386573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113aa9190613284565b10155b806114465750600173e83c9f09b0992e4a34faf125ed4fedd3407c4a2373ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016114029190612a46565b602060405180830381865afa15801561141f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114439190613284565b10155b806114df5750600173bfe47d6d4090940d1c7a0066b63d23875e3e2ac573ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040161149b9190612a46565b602060405180830381865afa1580156114b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114dc9190613284565b10155b61151e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611515906132fd565b60405180910390fd5b601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156115ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a290613369565b60405180910390fd5b6001601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506009600081548092919061161690613389565b91905055506116263360016121aa565b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606003805461166490613097565b80601f016020809104026020016040519081016040528092919081815260200182805461169090613097565b80156116dd5780601f106116b2576101008083540402835291602001916116dd565b820191906000526020600020905b8154815290600101906020018083116116c057829003601f168201915b5050505050905090565b601280546116f490613097565b80601f016020809104026020016040519081016040528092919081815260200182805461172090613097565b801561176d5780601f106117425761010080835404028352916020019161176d565b820191906000526020600020905b81548152906001019060200180831161175057829003601f168201915b505050505081565b600f60009054906101000a900460ff1681565b600f60009054906101000a900460ff166117d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ce90613114565b60405180910390fd5b611a0a816117e361215d565b6117ed9190613163565b111561182e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611825906131e3565b60405180910390fd5b3481600a5461183d91906133d1565b111561187e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118759061345f565b60405180910390fd5b60003490506000602860648361189491906134ae565b61189e91906133d1565b9050600060286064846118b191906134ae565b6118bb91906133d1565b90506000600a6064856118ce91906134ae565b6118d891906133d1565b9050600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc849081150290604051600060405180830381858888f19350505050158015611942573d6000803e3d6000fd5b50600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f193505050501580156119ab573d6000803e3d6000fd5b50600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611a14573d6000803e3d6000fd5b50611a1f33866121aa565b5050505050565b611a2e611e83565b8060129081611a3d919061368b565b5050565b8060076000611a4e611e72565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611afb611e72565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b4091906128d5565b60405180910390a35050565b73d3d9ddd0cf0a5f0bfb8f7fceae075df687eaebab81565b611b6f848484610c23565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611bd157611b9a84848484612365565b611bd0576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6060611c0882611e13565b611c47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3e906137cf565b60405180910390fd5b6000611c516124b5565b90506000815111611c715760405180602001604052806000815250611c9c565b80611c7b84612547565b604051602001611c8c929190613877565b6040516020818303038152906040525b915050919050565b60106020528060005260406000206000915054906101000a900460ff1681565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611d86611e83565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611df5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dec90613918565b60405180910390fd5b611dfe81612097565b50565b611e09611e83565b80600a8190555050565b600081611e1e611e7a565b11158015611e2d575060005482105b8015611e6b575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b611e8b612615565b73ffffffffffffffffffffffffffffffffffffffff16611ea961162b565b73ffffffffffffffffffffffffffffffffffffffff1614611eff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef690613984565b60405180910390fd5b565b60008082905080611f10611e7a565b11611f9657600054811015611f955760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611f93575b60008103611f89576004600083600190039350838152602001908152602001600020549050611f5f565b8092505050611fc8565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861205586868461261d565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000612167611e7a565b60005403905090565b60008173ffffffffffffffffffffffffffffffffffffffff1660001b9050919050565b6000826121a08584612626565b1490509392505050565b600080549050600082036121ea576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6121f76000848385612038565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061226e8361225f600086600061203e565b6122688561267c565b17612066565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461230f57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506122d4565b506000820361234a576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506123606000848385612091565b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261238b611e72565b8786866040518563ffffffff1660e01b81526004016123ad94939291906139f9565b6020604051808303816000875af19250505080156123e957506040513d601f19601f820116820180604052508101906123e69190613a5a565b60015b612462573d8060008114612419576040519150601f19603f3d011682016040523d82523d6000602084013e61241e565b606091505b50600081510361245a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060601280546124c490613097565b80601f01602080910402602001604051908101604052809291908181526020018280546124f090613097565b801561253d5780601f106125125761010080835404028352916020019161253d565b820191906000526020600020905b81548152906001019060200180831161252057829003601f168201915b5050505050905090565b6060600060016125568461268c565b01905060008167ffffffffffffffff81111561257557612574612d50565b5b6040519080825280601f01601f1916602001820160405280156125a75781602001600182028036833780820191505090505b509050600082602001820190505b60011561260a578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816125fe576125fd61347f565b5b049450600085036125b5575b819350505050919050565b600033905090565b60009392505050565b60008082905060005b84518110156126715761265c8286838151811061264f5761264e613a87565b5b60200260200101516127df565b9150808061266990613389565b91505061262f565b508091505092915050565b60006001821460e11b9050919050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106126ea577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816126e0576126df61347f565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612727576d04ee2d6d415b85acef8100000000838161271d5761271c61347f565b5b0492506020810190505b662386f26fc10000831061275657662386f26fc10000838161274c5761274b61347f565b5b0492506010810190505b6305f5e100831061277f576305f5e10083816127755761277461347f565b5b0492506008810190505b61271083106127a457612710838161279a5761279961347f565b5b0492506004810190505b606483106127c757606483816127bd576127bc61347f565b5b0492506002810190505b600a83106127d6576001810190505b80915050919050565b60008183106127f7576127f2828461280a565b612802565b612801838361280a565b5b905092915050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61286a81612835565b811461287557600080fd5b50565b60008135905061288781612861565b92915050565b6000602082840312156128a3576128a261282b565b5b60006128b184828501612878565b91505092915050565b60008115159050919050565b6128cf816128ba565b82525050565b60006020820190506128ea60008301846128c6565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561292a57808201518184015260208101905061290f565b60008484015250505050565b6000601f19601f8301169050919050565b6000612952826128f0565b61295c81856128fb565b935061296c81856020860161290c565b61297581612936565b840191505092915050565b6000602082019050818103600083015261299a8184612947565b905092915050565b6000819050919050565b6129b5816129a2565b81146129c057600080fd5b50565b6000813590506129d2816129ac565b92915050565b6000602082840312156129ee576129ed61282b565b5b60006129fc848285016129c3565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612a3082612a05565b9050919050565b612a4081612a25565b82525050565b6000602082019050612a5b6000830184612a37565b92915050565b612a6a81612a25565b8114612a7557600080fd5b50565b600081359050612a8781612a61565b92915050565b60008060408385031215612aa457612aa361282b565b5b6000612ab285828601612a78565b9250506020612ac3858286016129c3565b9150509250929050565b612ad6816129a2565b82525050565b6000602082019050612af16000830184612acd565b92915050565b612b00816128ba565b8114612b0b57600080fd5b50565b600081359050612b1d81612af7565b92915050565b600060208284031215612b3957612b3861282b565b5b6000612b4784828501612b0e565b91505092915050565b600080600060608486031215612b6957612b6861282b565b5b6000612b7786828701612a78565b9350506020612b8886828701612a78565b9250506040612b99868287016129c3565b9150509250925092565b6000819050919050565b612bb681612ba3565b82525050565b6000602082019050612bd16000830184612bad565b92915050565b600060208284031215612bed57612bec61282b565b5b6000612bfb84828501612a78565b91505092915050565b612c0d81612ba3565b8114612c1857600080fd5b50565b600081359050612c2a81612c04565b92915050565b600060208284031215612c4657612c4561282b565b5b6000612c5484828501612c1b565b91505092915050565b6000612c6882612a05565b9050919050565b612c7881612c5d565b82525050565b6000602082019050612c936000830184612c6f565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112612cbe57612cbd612c99565b5b8235905067ffffffffffffffff811115612cdb57612cda612c9e565b5b602083019150836020820283011115612cf757612cf6612ca3565b5b9250929050565b60008060208385031215612d1557612d1461282b565b5b600083013567ffffffffffffffff811115612d3357612d32612830565b5b612d3f85828601612ca8565b92509250509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612d8882612936565b810181811067ffffffffffffffff82111715612da757612da6612d50565b5b80604052505050565b6000612dba612821565b9050612dc68282612d7f565b919050565b600067ffffffffffffffff821115612de657612de5612d50565b5b612def82612936565b9050602081019050919050565b82818337600083830152505050565b6000612e1e612e1984612dcb565b612db0565b905082815260208101848484011115612e3a57612e39612d4b565b5b612e45848285612dfc565b509392505050565b600082601f830112612e6257612e61612c99565b5b8135612e72848260208601612e0b565b91505092915050565b600060208284031215612e9157612e9061282b565b5b600082013567ffffffffffffffff811115612eaf57612eae612830565b5b612ebb84828501612e4d565b91505092915050565b60008060408385031215612edb57612eda61282b565b5b6000612ee985828601612a78565b9250506020612efa85828601612b0e565b9150509250929050565b600067ffffffffffffffff821115612f1f57612f1e612d50565b5b612f2882612936565b9050602081019050919050565b6000612f48612f4384612f04565b612db0565b905082815260208101848484011115612f6457612f63612d4b565b5b612f6f848285612dfc565b509392505050565b600082601f830112612f8c57612f8b612c99565b5b8135612f9c848260208601612f35565b91505092915050565b60008060008060808587031215612fbf57612fbe61282b565b5b6000612fcd87828801612a78565b9450506020612fde87828801612a78565b9350506040612fef878288016129c3565b925050606085013567ffffffffffffffff8111156130105761300f612830565b5b61301c87828801612f77565b91505092959194509250565b6000806040838503121561303f5761303e61282b565b5b600061304d85828601612a78565b925050602061305e85828601612a78565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806130af57607f821691505b6020821081036130c2576130c1613068565b5b50919050565b7f4d696e7420636f6d696e6720736f6f6e00000000000000000000000000000000600082015250565b60006130fe6010836128fb565b9150613109826130c8565b602082019050919050565b6000602082019050818103600083015261312d816130f1565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061316e826129a2565b9150613179836129a2565b925082820190508082111561319157613190613134565b5b92915050565b7f4d696e74696e672065786365656473206d617820737570706c79000000000000600082015250565b60006131cd601a836128fb565b91506131d882613197565b602082019050919050565b600060208201905081810360008301526131fc816131c0565b9050919050565b7f416c6c20726573657276656420746f6b656e7320636c61696d65640000000000600082015250565b6000613239601b836128fb565b915061324482613203565b602082019050919050565b600060208201905081810360008301526132688161322c565b9050919050565b60008151905061327e816129ac565b92915050565b60006020828403121561329a5761329961282b565b5b60006132a88482850161326f565b91505092915050565b7f496e76616c696420574c2053706f740000000000000000000000000000000000600082015250565b60006132e7600f836128fb565b91506132f2826132b1565b602082019050919050565b60006020820190508181036000830152613316816132da565b9050919050565b7f416c726561647920636c61696d65640000000000000000000000000000000000600082015250565b6000613353600f836128fb565b915061335e8261331d565b602082019050919050565b6000602082019050818103600083015261338281613346565b9050919050565b6000613394826129a2565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036133c6576133c5613134565b5b600182019050919050565b60006133dc826129a2565b91506133e7836129a2565b92508282026133f5816129a2565b9150828204841483151761340c5761340b613134565b5b5092915050565b7f4e6f7420656e6f756768204554482073656e7400000000000000000000000000600082015250565b60006134496013836128fb565b915061345482613413565b602082019050919050565b600060208201905081810360008301526134788161343c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006134b9826129a2565b91506134c4836129a2565b9250826134d4576134d361347f565b5b828204905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026135417fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613504565b61354b8683613504565b95508019841693508086168417925050509392505050565b6000819050919050565b600061358861358361357e846129a2565b613563565b6129a2565b9050919050565b6000819050919050565b6135a28361356d565b6135b66135ae8261358f565b848454613511565b825550505050565b600090565b6135cb6135be565b6135d6818484613599565b505050565b5b818110156135fa576135ef6000826135c3565b6001810190506135dc565b5050565b601f82111561363f57613610816134df565b613619846134f4565b81016020851015613628578190505b61363c613634856134f4565b8301826135db565b50505b505050565b600082821c905092915050565b600061366260001984600802613644565b1980831691505092915050565b600061367b8383613651565b9150826002028217905092915050565b613694826128f0565b67ffffffffffffffff8111156136ad576136ac612d50565b5b6136b78254613097565b6136c28282856135fe565b600060209050601f8311600181146136f557600084156136e3578287015190505b6136ed858261366f565b865550613755565b601f198416613703866134df565b60005b8281101561372b57848901518255600182019150602085019450602081019050613706565b868310156137485784890151613744601f891682613651565b8355505b6001600288020188555050505b505050505050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006137b9602f836128fb565b91506137c48261375d565b604082019050919050565b600060208201905081810360008301526137e8816137ac565b9050919050565b600081905092915050565b6000613805826128f0565b61380f81856137ef565b935061381f81856020860161290c565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006138616005836137ef565b915061386c8261382b565b600582019050919050565b600061388382856137fa565b915061388f82846137fa565b915061389a82613854565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006139026026836128fb565b915061390d826138a6565b604082019050919050565b60006020820190508181036000830152613931816138f5565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061396e6020836128fb565b915061397982613938565b602082019050919050565b6000602082019050818103600083015261399d81613961565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006139cb826139a4565b6139d581856139af565b93506139e581856020860161290c565b6139ee81612936565b840191505092915050565b6000608082019050613a0e6000830187612a37565b613a1b6020830186612a37565b613a286040830185612acd565b8181036060830152613a3a81846139c0565b905095945050505050565b600081519050613a5481612861565b92915050565b600060208284031215613a7057613a6f61282b565b5b6000613a7e84828501613a45565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea264697066735822122088e265f5946cb3988205f5afb47e6fc5e737eb2f84f212ffacecb4be5a046e7864736f6c634300081200336f098068f447a116d13f2839d74b312cf526ddbc793213f71a052fca02035b4f
Deployed Bytecode
0x6080604052600436106102305760003560e01c806379da16d51161012e578063a22cb465116100ab578063c884ef831161006f578063c884ef83146107da578063df9cfef614610817578063e985e9c514610842578063f2fde38b1461087f578063f4a0a528146108a857610230565b8063a22cb46514610702578063a836f7d11461072b578063b88d4fde14610756578063c1eb5ddd14610772578063c87b56dd1461079d57610230565b806395d89b41116100f257806395d89b411461063c5780639abc8320146106675780639da3f8fd14610692578063a0712d68146106bd578063a0bcfc7f146106d957610230565b806379da16d5146105695780637cb647591461059457806385b4784f146105bd57806386d4c07c146105e85780638da5cb5b1461061157610230565b806331a53e9a116101bc5780635c0bc9a7116101805780635c0bc9a7146104825780636352211e146104ad5780636817c76c146104ea57806370a0823114610515578063715018a61461055257610230565b806331a53e9a146103ce57806332cb6b0c146103f95780633a516c13146104245780633ccfd60b1461044f57806342842e0e1461046657610230565b80630e31d429116102035780630e31d429146102f657806318160ddd146103335780631f85e3ca1461035e57806323b872dd146103875780632eb4a7ab146103a357610230565b806301ffc9a71461023557806306fdde0314610272578063081812fc1461029d578063095ea7b3146102da575b600080fd5b34801561024157600080fd5b5061025c6004803603810190610257919061288d565b6108d1565b60405161026991906128d5565b60405180910390f35b34801561027e57600080fd5b50610287610963565b6040516102949190612980565b60405180910390f35b3480156102a957600080fd5b506102c460048036038101906102bf91906129d8565b6109f5565b6040516102d19190612a46565b60405180910390f35b6102f460048036038101906102ef9190612a8d565b610a74565b005b34801561030257600080fd5b5061031d60048036038101906103189190612a8d565b610bb8565b60405161032a91906128d5565b60405180910390f35b34801561033f57600080fd5b50610348610be7565b6040516103559190612adc565b60405180910390f35b34801561036a57600080fd5b5061038560048036038101906103809190612b23565b610bfe565b005b6103a1600480360381019061039c9190612b50565b610c23565b005b3480156103af57600080fd5b506103b8610f45565b6040516103c59190612bbc565b60405180910390f35b3480156103da57600080fd5b506103e3610f4b565b6040516103f09190612adc565b60405180910390f35b34801561040557600080fd5b5061040e610f51565b60405161041b9190612adc565b60405180910390f35b34801561043057600080fd5b50610439610f57565b6040516104469190612a46565b60405180910390f35b34801561045b57600080fd5b50610464610f6f565b005b610480600480360381019061047b9190612b50565b610fc6565b005b34801561048e57600080fd5b50610497610fe6565b6040516104a49190612a46565b60405180910390f35b3480156104b957600080fd5b506104d460048036038101906104cf91906129d8565b610ffe565b6040516104e19190612a46565b60405180910390f35b3480156104f657600080fd5b506104ff611010565b60405161050c9190612adc565b60405180910390f35b34801561052157600080fd5b5061053c60048036038101906105379190612bd7565b611016565b6040516105499190612adc565b60405180910390f35b34801561055e57600080fd5b506105676110ce565b005b34801561057557600080fd5b5061057e6110e2565b60405161058b9190612a46565b60405180910390f35b3480156105a057600080fd5b506105bb60048036038101906105b69190612c30565b6110fa565b005b3480156105c957600080fd5b506105d261110c565b6040516105df9190612c7e565b60405180910390f35b3480156105f457600080fd5b5061060f600480360381019061060a9190612cfe565b611132565b005b34801561061d57600080fd5b5061062661162b565b6040516106339190612a46565b60405180910390f35b34801561064857600080fd5b50610651611655565b60405161065e9190612980565b60405180910390f35b34801561067357600080fd5b5061067c6116e7565b6040516106899190612980565b60405180910390f35b34801561069e57600080fd5b506106a7611775565b6040516106b491906128d5565b60405180910390f35b6106d760048036038101906106d291906129d8565b611788565b005b3480156106e557600080fd5b5061070060048036038101906106fb9190612e7b565b611a26565b005b34801561070e57600080fd5b5061072960048036038101906107249190612ec4565b611a41565b005b34801561073757600080fd5b50610740611b4c565b60405161074d9190612a46565b60405180910390f35b610770600480360381019061076b9190612fa5565b611b64565b005b34801561077e57600080fd5b50610787611bd7565b6040516107949190612c7e565b60405180910390f35b3480156107a957600080fd5b506107c460048036038101906107bf91906129d8565b611bfd565b6040516107d19190612980565b60405180910390f35b3480156107e657600080fd5b5061080160048036038101906107fc9190612bd7565b611ca4565b60405161080e91906128d5565b60405180910390f35b34801561082357600080fd5b5061082c611cc4565b6040516108399190612c7e565b60405180910390f35b34801561084e57600080fd5b5061086960048036038101906108649190613028565b611cea565b60405161087691906128d5565b60405180910390f35b34801561088b57600080fd5b506108a660048036038101906108a19190612bd7565b611d7e565b005b3480156108b457600080fd5b506108cf60048036038101906108ca91906129d8565b611e01565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061092c57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061095c5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461097290613097565b80601f016020809104026020016040519081016040528092919081815260200182805461099e90613097565b80156109eb5780601f106109c0576101008083540402835291602001916109eb565b820191906000526020600020905b8154815290600101906020018083116109ce57829003601f168201915b5050505050905090565b6000610a0082611e13565b610a36576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a7f82610ffe565b90508073ffffffffffffffffffffffffffffffffffffffff16610aa0611e72565b73ffffffffffffffffffffffffffffffffffffffff1614610b0357610acc81610ac7611e72565b611cea565b610b02576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60116020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b6000610bf1611e7a565b6001546000540303905090565b610c06611e83565b80600f60006101000a81548160ff02191690831515021790555050565b6000610c2e82611f01565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c95576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610ca184611fcd565b91509150610cb78187610cb2611e72565b611ff4565b610d0357610ccc86610cc7611e72565b611cea565b610d02576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610d69576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d768686866001612038565b8015610d8157600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610e4f85610e2b88888761203e565b7c020000000000000000000000000000000000000000000000000000000017612066565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610ed55760006001850190506000600460008381526020019081526020016000205403610ed3576000548114610ed2578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610f3d8686866001612091565b505050505050565b600e5481565b6103e881565b611a0a81565b735af0d9827e0c53e4799bb226655a1de152a425a581565b610f77611e83565b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610fc2573d6000803e3d6000fd5b5050565b610fe183838360405180602001604052806000815250611b64565b505050565b73e83c9f09b0992e4a34faf125ed4fedd3407c4a2381565b600061100982611f01565b9050919050565b600a5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361107d576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6110d6611e83565b6110e06000612097565b565b73bfe47d6d4090940d1c7a0066b63d23875e3e2ac581565b611102611e83565b80600e8190555050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600f60009054906101000a900460ff16611181576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117890613114565b60405180910390fd5b611a0a600161118e61215d565b6111989190613163565b11156111d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d0906131e3565b60405180910390fd5b6103e86009541115611220576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112179061324f565b60405180910390fd5b600061122b33612170565b905061127b838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600e5483612193565b8061131457506001735af0d9827e0c53e4799bb226655a1de152a425a573ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016112d09190612a46565b602060405180830381865afa1580156112ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113119190613284565b10155b806113ad5750600173d3d9ddd0cf0a5f0bfb8f7fceae075df687eaebab73ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016113699190612a46565b602060405180830381865afa158015611386573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113aa9190613284565b10155b806114465750600173e83c9f09b0992e4a34faf125ed4fedd3407c4a2373ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016114029190612a46565b602060405180830381865afa15801561141f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114439190613284565b10155b806114df5750600173bfe47d6d4090940d1c7a0066b63d23875e3e2ac573ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040161149b9190612a46565b602060405180830381865afa1580156114b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114dc9190613284565b10155b61151e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611515906132fd565b60405180910390fd5b601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156115ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a290613369565b60405180910390fd5b6001601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506009600081548092919061161690613389565b91905055506116263360016121aa565b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606003805461166490613097565b80601f016020809104026020016040519081016040528092919081815260200182805461169090613097565b80156116dd5780601f106116b2576101008083540402835291602001916116dd565b820191906000526020600020905b8154815290600101906020018083116116c057829003601f168201915b5050505050905090565b601280546116f490613097565b80601f016020809104026020016040519081016040528092919081815260200182805461172090613097565b801561176d5780601f106117425761010080835404028352916020019161176d565b820191906000526020600020905b81548152906001019060200180831161175057829003601f168201915b505050505081565b600f60009054906101000a900460ff1681565b600f60009054906101000a900460ff166117d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ce90613114565b60405180910390fd5b611a0a816117e361215d565b6117ed9190613163565b111561182e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611825906131e3565b60405180910390fd5b3481600a5461183d91906133d1565b111561187e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118759061345f565b60405180910390fd5b60003490506000602860648361189491906134ae565b61189e91906133d1565b9050600060286064846118b191906134ae565b6118bb91906133d1565b90506000600a6064856118ce91906134ae565b6118d891906133d1565b9050600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc849081150290604051600060405180830381858888f19350505050158015611942573d6000803e3d6000fd5b50600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f193505050501580156119ab573d6000803e3d6000fd5b50600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611a14573d6000803e3d6000fd5b50611a1f33866121aa565b5050505050565b611a2e611e83565b8060129081611a3d919061368b565b5050565b8060076000611a4e611e72565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611afb611e72565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b4091906128d5565b60405180910390a35050565b73d3d9ddd0cf0a5f0bfb8f7fceae075df687eaebab81565b611b6f848484610c23565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611bd157611b9a84848484612365565b611bd0576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6060611c0882611e13565b611c47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3e906137cf565b60405180910390fd5b6000611c516124b5565b90506000815111611c715760405180602001604052806000815250611c9c565b80611c7b84612547565b604051602001611c8c929190613877565b6040516020818303038152906040525b915050919050565b60106020528060005260406000206000915054906101000a900460ff1681565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611d86611e83565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611df5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dec90613918565b60405180910390fd5b611dfe81612097565b50565b611e09611e83565b80600a8190555050565b600081611e1e611e7a565b11158015611e2d575060005482105b8015611e6b575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b611e8b612615565b73ffffffffffffffffffffffffffffffffffffffff16611ea961162b565b73ffffffffffffffffffffffffffffffffffffffff1614611eff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef690613984565b60405180910390fd5b565b60008082905080611f10611e7a565b11611f9657600054811015611f955760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611f93575b60008103611f89576004600083600190039350838152602001908152602001600020549050611f5f565b8092505050611fc8565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861205586868461261d565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000612167611e7a565b60005403905090565b60008173ffffffffffffffffffffffffffffffffffffffff1660001b9050919050565b6000826121a08584612626565b1490509392505050565b600080549050600082036121ea576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6121f76000848385612038565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061226e8361225f600086600061203e565b6122688561267c565b17612066565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461230f57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506122d4565b506000820361234a576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506123606000848385612091565b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261238b611e72565b8786866040518563ffffffff1660e01b81526004016123ad94939291906139f9565b6020604051808303816000875af19250505080156123e957506040513d601f19601f820116820180604052508101906123e69190613a5a565b60015b612462573d8060008114612419576040519150601f19603f3d011682016040523d82523d6000602084013e61241e565b606091505b50600081510361245a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060601280546124c490613097565b80601f01602080910402602001604051908101604052809291908181526020018280546124f090613097565b801561253d5780601f106125125761010080835404028352916020019161253d565b820191906000526020600020905b81548152906001019060200180831161252057829003601f168201915b5050505050905090565b6060600060016125568461268c565b01905060008167ffffffffffffffff81111561257557612574612d50565b5b6040519080825280601f01601f1916602001820160405280156125a75781602001600182028036833780820191505090505b509050600082602001820190505b60011561260a578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816125fe576125fd61347f565b5b049450600085036125b5575b819350505050919050565b600033905090565b60009392505050565b60008082905060005b84518110156126715761265c8286838151811061264f5761264e613a87565b5b60200260200101516127df565b9150808061266990613389565b91505061262f565b508091505092915050565b60006001821460e11b9050919050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106126ea577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816126e0576126df61347f565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612727576d04ee2d6d415b85acef8100000000838161271d5761271c61347f565b5b0492506020810190505b662386f26fc10000831061275657662386f26fc10000838161274c5761274b61347f565b5b0492506010810190505b6305f5e100831061277f576305f5e10083816127755761277461347f565b5b0492506008810190505b61271083106127a457612710838161279a5761279961347f565b5b0492506004810190505b606483106127c757606483816127bd576127bc61347f565b5b0492506002810190505b600a83106127d6576001810190505b80915050919050565b60008183106127f7576127f2828461280a565b612802565b612801838361280a565b5b905092915050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61286a81612835565b811461287557600080fd5b50565b60008135905061288781612861565b92915050565b6000602082840312156128a3576128a261282b565b5b60006128b184828501612878565b91505092915050565b60008115159050919050565b6128cf816128ba565b82525050565b60006020820190506128ea60008301846128c6565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561292a57808201518184015260208101905061290f565b60008484015250505050565b6000601f19601f8301169050919050565b6000612952826128f0565b61295c81856128fb565b935061296c81856020860161290c565b61297581612936565b840191505092915050565b6000602082019050818103600083015261299a8184612947565b905092915050565b6000819050919050565b6129b5816129a2565b81146129c057600080fd5b50565b6000813590506129d2816129ac565b92915050565b6000602082840312156129ee576129ed61282b565b5b60006129fc848285016129c3565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612a3082612a05565b9050919050565b612a4081612a25565b82525050565b6000602082019050612a5b6000830184612a37565b92915050565b612a6a81612a25565b8114612a7557600080fd5b50565b600081359050612a8781612a61565b92915050565b60008060408385031215612aa457612aa361282b565b5b6000612ab285828601612a78565b9250506020612ac3858286016129c3565b9150509250929050565b612ad6816129a2565b82525050565b6000602082019050612af16000830184612acd565b92915050565b612b00816128ba565b8114612b0b57600080fd5b50565b600081359050612b1d81612af7565b92915050565b600060208284031215612b3957612b3861282b565b5b6000612b4784828501612b0e565b91505092915050565b600080600060608486031215612b6957612b6861282b565b5b6000612b7786828701612a78565b9350506020612b8886828701612a78565b9250506040612b99868287016129c3565b9150509250925092565b6000819050919050565b612bb681612ba3565b82525050565b6000602082019050612bd16000830184612bad565b92915050565b600060208284031215612bed57612bec61282b565b5b6000612bfb84828501612a78565b91505092915050565b612c0d81612ba3565b8114612c1857600080fd5b50565b600081359050612c2a81612c04565b92915050565b600060208284031215612c4657612c4561282b565b5b6000612c5484828501612c1b565b91505092915050565b6000612c6882612a05565b9050919050565b612c7881612c5d565b82525050565b6000602082019050612c936000830184612c6f565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112612cbe57612cbd612c99565b5b8235905067ffffffffffffffff811115612cdb57612cda612c9e565b5b602083019150836020820283011115612cf757612cf6612ca3565b5b9250929050565b60008060208385031215612d1557612d1461282b565b5b600083013567ffffffffffffffff811115612d3357612d32612830565b5b612d3f85828601612ca8565b92509250509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612d8882612936565b810181811067ffffffffffffffff82111715612da757612da6612d50565b5b80604052505050565b6000612dba612821565b9050612dc68282612d7f565b919050565b600067ffffffffffffffff821115612de657612de5612d50565b5b612def82612936565b9050602081019050919050565b82818337600083830152505050565b6000612e1e612e1984612dcb565b612db0565b905082815260208101848484011115612e3a57612e39612d4b565b5b612e45848285612dfc565b509392505050565b600082601f830112612e6257612e61612c99565b5b8135612e72848260208601612e0b565b91505092915050565b600060208284031215612e9157612e9061282b565b5b600082013567ffffffffffffffff811115612eaf57612eae612830565b5b612ebb84828501612e4d565b91505092915050565b60008060408385031215612edb57612eda61282b565b5b6000612ee985828601612a78565b9250506020612efa85828601612b0e565b9150509250929050565b600067ffffffffffffffff821115612f1f57612f1e612d50565b5b612f2882612936565b9050602081019050919050565b6000612f48612f4384612f04565b612db0565b905082815260208101848484011115612f6457612f63612d4b565b5b612f6f848285612dfc565b509392505050565b600082601f830112612f8c57612f8b612c99565b5b8135612f9c848260208601612f35565b91505092915050565b60008060008060808587031215612fbf57612fbe61282b565b5b6000612fcd87828801612a78565b9450506020612fde87828801612a78565b9350506040612fef878288016129c3565b925050606085013567ffffffffffffffff8111156130105761300f612830565b5b61301c87828801612f77565b91505092959194509250565b6000806040838503121561303f5761303e61282b565b5b600061304d85828601612a78565b925050602061305e85828601612a78565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806130af57607f821691505b6020821081036130c2576130c1613068565b5b50919050565b7f4d696e7420636f6d696e6720736f6f6e00000000000000000000000000000000600082015250565b60006130fe6010836128fb565b9150613109826130c8565b602082019050919050565b6000602082019050818103600083015261312d816130f1565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061316e826129a2565b9150613179836129a2565b925082820190508082111561319157613190613134565b5b92915050565b7f4d696e74696e672065786365656473206d617820737570706c79000000000000600082015250565b60006131cd601a836128fb565b91506131d882613197565b602082019050919050565b600060208201905081810360008301526131fc816131c0565b9050919050565b7f416c6c20726573657276656420746f6b656e7320636c61696d65640000000000600082015250565b6000613239601b836128fb565b915061324482613203565b602082019050919050565b600060208201905081810360008301526132688161322c565b9050919050565b60008151905061327e816129ac565b92915050565b60006020828403121561329a5761329961282b565b5b60006132a88482850161326f565b91505092915050565b7f496e76616c696420574c2053706f740000000000000000000000000000000000600082015250565b60006132e7600f836128fb565b91506132f2826132b1565b602082019050919050565b60006020820190508181036000830152613316816132da565b9050919050565b7f416c726561647920636c61696d65640000000000000000000000000000000000600082015250565b6000613353600f836128fb565b915061335e8261331d565b602082019050919050565b6000602082019050818103600083015261338281613346565b9050919050565b6000613394826129a2565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036133c6576133c5613134565b5b600182019050919050565b60006133dc826129a2565b91506133e7836129a2565b92508282026133f5816129a2565b9150828204841483151761340c5761340b613134565b5b5092915050565b7f4e6f7420656e6f756768204554482073656e7400000000000000000000000000600082015250565b60006134496013836128fb565b915061345482613413565b602082019050919050565b600060208201905081810360008301526134788161343c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006134b9826129a2565b91506134c4836129a2565b9250826134d4576134d361347f565b5b828204905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026135417fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613504565b61354b8683613504565b95508019841693508086168417925050509392505050565b6000819050919050565b600061358861358361357e846129a2565b613563565b6129a2565b9050919050565b6000819050919050565b6135a28361356d565b6135b66135ae8261358f565b848454613511565b825550505050565b600090565b6135cb6135be565b6135d6818484613599565b505050565b5b818110156135fa576135ef6000826135c3565b6001810190506135dc565b5050565b601f82111561363f57613610816134df565b613619846134f4565b81016020851015613628578190505b61363c613634856134f4565b8301826135db565b50505b505050565b600082821c905092915050565b600061366260001984600802613644565b1980831691505092915050565b600061367b8383613651565b9150826002028217905092915050565b613694826128f0565b67ffffffffffffffff8111156136ad576136ac612d50565b5b6136b78254613097565b6136c28282856135fe565b600060209050601f8311600181146136f557600084156136e3578287015190505b6136ed858261366f565b865550613755565b601f198416613703866134df565b60005b8281101561372b57848901518255600182019150602085019450602081019050613706565b868310156137485784890151613744601f891682613651565b8355505b6001600288020188555050505b505050505050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006137b9602f836128fb565b91506137c48261375d565b604082019050919050565b600060208201905081810360008301526137e8816137ac565b9050919050565b600081905092915050565b6000613805826128f0565b61380f81856137ef565b935061381f81856020860161290c565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006138616005836137ef565b915061386c8261382b565b600582019050919050565b600061388382856137fa565b915061388f82846137fa565b915061389a82613854565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006139026026836128fb565b915061390d826138a6565b604082019050919050565b60006020820190508181036000830152613931816138f5565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061396e6020836128fb565b915061397982613938565b602082019050919050565b6000602082019050818103600083015261399d81613961565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006139cb826139a4565b6139d581856139af565b93506139e581856020860161290c565b6139ee81612936565b840191505092915050565b6000608082019050613a0e6000830187612a37565b613a1b6020830186612a37565b613a286040830185612acd565b8181036060830152613a3a81846139c0565b905095945050505050565b600081519050613a5481612861565b92915050565b600060208284031215613a7057613a6f61282b565b5b6000613a7e84828501613a45565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea264697066735822122088e265f5946cb3988205f5afb47e6fc5e737eb2f84f212ffacecb4be5a046e7864736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
6f098068f447a116d13f2839d74b312cf526ddbc793213f71a052fca02035b4f
-----Decoded View---------------
Arg [0] : _merkleRoot (bytes32): 0x6f098068f447a116d13f2839d74b312cf526ddbc793213f71a052fca02035b4f
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 6f098068f447a116d13f2839d74b312cf526ddbc793213f71a052fca02035b4f
Deployed Bytecode Sourcemap
133198:6029:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27650:639;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;28552:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;35043:218;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;34476:408;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;134367:63;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;24303:323;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;137204:99;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;38682:2825;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;134258:25;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;133710:46;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;133662:41;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;133307:90;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;136922:143;;;;;;;;;;;;;:::i;:::-;;41603:193;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;133496:75;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;29945:152;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;133802:44;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;25487:233;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;88217:103;;;;;;;;;;;;;:::i;:::-;;133578:75;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;137670:104;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;133867:93;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;135048:991;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;87569:87;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;28728:104;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;134439:21;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;134290:22;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;136162:683;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;137782:90;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;35601:234;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;133404:85;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;42394:407;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;134129:89;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;138756:468;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;134321:39;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;133998:93;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;35992:164;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;88475:201;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;137430:106;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;27650:639;27735:4;28074:10;28059:25;;:11;:25;;;;:102;;;;28151:10;28136:25;;:11;:25;;;;28059:102;:179;;;;28228:10;28213:25;;:11;:25;;;;28059:179;28039:199;;27650:639;;;:::o;28552:100::-;28606:13;28639:5;28632:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28552:100;:::o;35043:218::-;35119:7;35144:16;35152:7;35144;:16::i;:::-;35139:64;;35169:34;;;;;;;;;;;;;;35139:64;35223:15;:24;35239:7;35223:24;;;;;;;;;;;:30;;;;;;;;;;;;35216:37;;35043:218;;;:::o;34476:408::-;34565:13;34581:16;34589:7;34581;:16::i;:::-;34565:32;;34637:5;34614:28;;:19;:17;:19::i;:::-;:28;;;34610:175;;34662:44;34679:5;34686:19;:17;:19::i;:::-;34662:16;:44::i;:::-;34657:128;;34734:35;;;;;;;;;;;;;;34657:128;34610:175;34830:2;34797:15;:24;34813:7;34797:24;;;;;;;;;;;:30;;;:35;;;;;;;;;;;;;;;;;;34868:7;34864:2;34848:28;;34857:5;34848:28;;;;;;;;;;;;34554:330;34476:408;;:::o;134367:63::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;24303:323::-;24364:7;24592:15;:13;:15::i;:::-;24577:12;;24561:13;;:28;:46;24554:53;;24303:323;:::o;137204:99::-;87455:13;:11;:13::i;:::-;137285:10:::1;137272;;:23;;;;;;;;;;;;;;;;;;137204:99:::0;:::o;38682:2825::-;38824:27;38854;38873:7;38854:18;:27::i;:::-;38824:57;;38939:4;38898:45;;38914:19;38898:45;;;38894:86;;38952:28;;;;;;;;;;;;;;38894:86;38994:27;39023:23;39050:35;39077:7;39050:26;:35::i;:::-;38993:92;;;;39185:68;39210:15;39227:4;39233:19;:17;:19::i;:::-;39185:24;:68::i;:::-;39180:180;;39273:43;39290:4;39296:19;:17;:19::i;:::-;39273:16;:43::i;:::-;39268:92;;39325:35;;;;;;;;;;;;;;39268:92;39180:180;39391:1;39377:16;;:2;:16;;;39373:52;;39402:23;;;;;;;;;;;;;;39373:52;39438:43;39460:4;39466:2;39470:7;39479:1;39438:21;:43::i;:::-;39574:15;39571:160;;;39714:1;39693:19;39686:30;39571:160;40111:18;:24;40130:4;40111:24;;;;;;;;;;;;;;;;40109:26;;;;;;;;;;;;40180:18;:22;40199:2;40180:22;;;;;;;;;;;;;;;;40178:24;;;;;;;;;;;40502:146;40539:2;40588:45;40603:4;40609:2;40613:19;40588:14;:45::i;:::-;20702:8;40560:73;40502:18;:146::i;:::-;40473:17;:26;40491:7;40473:26;;;;;;;;;;;:175;;;;40819:1;20702:8;40768:19;:47;:52;40764:627;;40841:19;40873:1;40863:7;:11;40841:33;;41030:1;40996:17;:30;41014:11;40996:30;;;;;;;;;;;;:35;40992:384;;41134:13;;41119:11;:28;41115:242;;41314:19;41281:17;:30;41299:11;41281:30;;;;;;;;;;;:52;;;;41115:242;40992:384;40822:569;40764:627;41438:7;41434:2;41419:27;;41428:4;41419:27;;;;;;;;;;;;41457:42;41478:4;41484:2;41488:7;41497:1;41457:20;:42::i;:::-;38813:2694;;;38682:2825;;;:::o;134258:25::-;;;;:::o;133710:46::-;133752:4;133710:46;:::o;133662:41::-;133699:4;133662:41;:::o;133307:90::-;133355:42;133307:90;:::o;136922:143::-;87455:13;:11;:13::i;:::-;136970:15:::1;136988:21;136970:39;;137028:10;137020:28;;:37;137049:7;137020:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;136959:106;136922:143::o:0;41603:193::-;41749:39;41766:4;41772:2;41776:7;41749:39;;;;;;;;;;;;:16;:39::i;:::-;41603:193;;;:::o;133496:75::-;133529:42;133496:75;:::o;29945:152::-;30017:7;30060:27;30079:7;30060:18;:27::i;:::-;30037:52;;29945:152;;;:::o;133802:44::-;;;;:::o;25487:233::-;25559:7;25600:1;25583:19;;:5;:19;;;25579:60;;25611:28;;;;;;;;;;;;;;25579:60;19646:13;25657:18;:25;25676:5;25657:25;;;;;;;;;;;;;;;;:55;25650:62;;25487:233;;;:::o;88217:103::-;87455:13;:11;:13::i;:::-;88282:30:::1;88309:1;88282:18;:30::i;:::-;88217:103::o:0;133578:75::-;133611:42;133578:75;:::o;137670:104::-;87455:13;:11;:13::i;:::-;137755:11:::1;137742:10;:24;;;;137670:104:::0;:::o;133867:93::-;;;;;;;;;;;;;:::o;135048:991::-;134853:10;;;;;;;;;;;134845:39;;;;;;;;;;;;:::i;:::-;;;;;;;;;133699:4:::1;135158:1;135141:14;:12;:14::i;:::-;:18;;;;:::i;:::-;:32;;135133:71;;;;;;;;;;;;:::i;:::-;;;;;;;;;133752:4;135237:16;;:35;;135215:112;;;;;;;;;;;;:::i;:::-;;;;;;;;;135374:12;135389:21;135399:10;135389:9;:21::i;:::-;135374:36;;135443:49;135462:11;;135443:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;135475:10;;135487:4;135443:18;:49::i;:::-;:119;;;;135560:1;133355:42;135514:30;;;135545:10;135514:42;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:47;;135443:119;:184;;;;135625:1;133447:42;135584:25;;;135610:10;135584:37;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:42;;135443:184;:248;;;;135689:1;133529:42;135649:24;;;135674:10;135649:36;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:41;;135443:248;:312;;;;135753:1;133611:42;135713:24;;;135738:10;135713:36;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:41;;135443:312;135421:377;;;;;;;;;;;;:::i;:::-;;;;;;;;;135893:7;:19;135901:10;135893:19;;;;;;;;;;;;;;;;;;;;;;;;;135892:20;135884:48;;;;;;;;;;;;:::i;:::-;;;;;;;;;135965:4;135943:7;:19;135951:10;135943:19;;;;;;;;;;;;;;;;:26;;;;;;;;;;;;;;;;;;135982:16;;:18;;;;;;;;;:::i;:::-;;;;;;136011:20;136017:10;136029:1;136011:5;:20::i;:::-;135122:917;135048:991:::0;;:::o;87569:87::-;87615:7;87642:6;;;;;;;;;;;87635:13;;87569:87;:::o;28728:104::-;28784:13;28817:7;28810:14;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28728:104;:::o;134439:21::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;134290:22::-;;;;;;;;;;;;;:::o;136162:683::-;134853:10;;;;;;;;;;;134845:39;;;;;;;;;;;;:::i;:::-;;;;;;;;;133699:4:::1;136270:8;136253:14;:12;:14::i;:::-;:25;;;;:::i;:::-;:39;;136231:115;;;;;;;;;;;;:::i;:::-;;;;;;;;;136389:9;136377:8;136365:9;;:20;;;;:::i;:::-;:33;;136357:65;;;;;;;;;;;;:::i;:::-;;;;;;;;;136435:19;136457:9;136435:31;;136517:21;136563:2;136556:3;136542:11;:17;;;;:::i;:::-;136541:24;;;;:::i;:::-;136517:48;;136576:21;136622:2;136615:3;136601:11;:17;;;;:::i;:::-;136600:24;;;;:::i;:::-;136576:48;;136635:17;136677:2;136670:3;136656:11;:17;;;;:::i;:::-;136655:24;;;;:::i;:::-;136635:44;;136692:7;;;;;;;;;;;:16;;:31;136709:13;136692:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;136734:7;;;;;;;;;;;:16;;:31;136751:13;136734:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;136776:3;;;;;;;;;;;:12;;:23;136789:9;136776:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;136810:27;136816:10;136828:8;136810:5;:27::i;:::-;136220:625;;;;136162:683:::0;:::o;137782:90::-;87455:13;:11;:13::i;:::-;137860:4:::1;137850:7;:14;;;;;;:::i;:::-;;137782:90:::0;:::o;35601:234::-;35748:8;35696:18;:39;35715:19;:17;:19::i;:::-;35696:39;;;;;;;;;;;;;;;:49;35736:8;35696:49;;;;;;;;;;;;;;;;:60;;;;;;;;;;;;;;;;;;35808:8;35772:55;;35787:19;:17;:19::i;:::-;35772:55;;;35818:8;35772:55;;;;;;:::i;:::-;;;;;;;;35601:234;;:::o;133404:85::-;133447:42;133404:85;:::o;42394:407::-;42569:31;42582:4;42588:2;42592:7;42569:12;:31::i;:::-;42633:1;42615:2;:14;;;:19;42611:183;;42654:56;42685:4;42691:2;42695:7;42704:5;42654:30;:56::i;:::-;42649:145;;42738:40;;;;;;;;;;;;;;42649:145;42611:183;42394:407;;;;:::o;134129:89::-;;;;;;;;;;;;;:::o;138756:468::-;138874:13;138927:16;138935:7;138927;:16::i;:::-;138905:113;;;;;;;;;;;;:::i;:::-;;;;;;;;;139031:18;139052:10;:8;:10::i;:::-;139031:31;;139114:1;139099:4;139093:18;:22;:123;;;;;;;;;;;;;;;;;139159:4;139165:18;:7;:16;:18::i;:::-;139142:51;;;;;;;;;:::i;:::-;;;;;;;;;;;;;139093:123;139073:143;;;138756:468;;;:::o;134321:39::-;;;;;;;;;;;;;;;;;;;;;;:::o;133998:93::-;;;;;;;;;;;;;:::o;35992:164::-;36089:4;36113:18;:25;36132:5;36113:25;;;;;;;;;;;;;;;:35;36139:8;36113:35;;;;;;;;;;;;;;;;;;;;;;;;;36106:42;;35992:164;;;;:::o;88475:201::-;87455:13;:11;:13::i;:::-;88584:1:::1;88564:22;;:8;:22;;::::0;88556:73:::1;;;;;;;;;;;;:::i;:::-;;;;;;;;;88640:28;88659:8;88640:18;:28::i;:::-;88475:201:::0;:::o;137430:106::-;87455:13;:11;:13::i;:::-;137515::::1;137503:9;:25;;;;137430:106:::0;:::o;36414:282::-;36479:4;36535:7;36516:15;:13;:15::i;:::-;:26;;:66;;;;;36569:13;;36559:7;:23;36516:66;:153;;;;;36668:1;20422:8;36620:17;:26;36638:7;36620:26;;;;;;;;;;;;:44;:49;36516:153;36496:173;;36414:282;;;:::o;58722:105::-;58782:7;58809:10;58802:17;;58722:105;:::o;138230:93::-;138287:7;138314:1;138307:8;;138230:93;:::o;87734:132::-;87809:12;:10;:12::i;:::-;87798:23;;:7;:5;:7::i;:::-;:23;;;87790:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;87734:132::o;31100:1275::-;31167:7;31187:12;31202:7;31187:22;;31270:4;31251:15;:13;:15::i;:::-;:23;31247:1061;;31304:13;;31297:4;:20;31293:1015;;;31342:14;31359:17;:23;31377:4;31359:23;;;;;;;;;;;;31342:40;;31476:1;20422:8;31448:6;:24;:29;31444:845;;32113:113;32130:1;32120:6;:11;32113:113;;32173:17;:25;32191:6;;;;;;;32173:25;;;;;;;;;;;;32164:34;;32113:113;;;32259:6;32252:13;;;;;;31444:845;31319:989;31293:1015;31247:1061;32336:31;;;;;;;;;;;;;;31100:1275;;;;:::o;37577:485::-;37679:27;37708:23;37749:38;37790:15;:24;37806:7;37790:24;;;;;;;;;;;37749:65;;37967:18;37944:41;;38024:19;38018:26;37999:45;;37929:126;37577:485;;;:::o;36805:659::-;36954:11;37119:16;37112:5;37108:28;37099:37;;37279:16;37268:9;37264:32;37251:45;;37429:15;37418:9;37415:30;37407:5;37396:9;37393:20;37390:56;37380:66;;36805:659;;;;;:::o;43463:159::-;;;;;:::o;58031:311::-;58166:7;58186:16;20826:3;58212:19;:41;;58186:68;;20826:3;58280:31;58291:4;58297:2;58301:9;58280:10;:31::i;:::-;58272:40;;:62;;58265:69;;;58031:311;;;;;:::o;32923:450::-;33003:14;33171:16;33164:5;33160:28;33151:37;;33348:5;33334:11;33309:23;33305:41;33302:52;33295:5;33292:63;33282:73;;32923:450;;;;:::o;44287:158::-;;;;;:::o;88836:191::-;88910:16;88929:6;;;;;;;;;;;88910:25;;88955:8;88946:6;;:17;;;;;;;;;;;;;;;;;;89010:8;88979:40;;89000:8;88979:40;;;;;;;;;;;;88899:128;88836:191;:::o;24724:296::-;24779:7;24986:15;:13;:15::i;:::-;24970:13;;:31;24963:38;;24724:296;:::o;138005:122::-;138061:7;138112:4;138096:22;;138088:31;;138081:38;;138005:122;;;:::o;61903:190::-;62028:4;62081;62052:25;62065:5;62072:4;62052:12;:25::i;:::-;:33;62045:40;;61903:190;;;;;:::o;46063:2966::-;46136:20;46159:13;;46136:36;;46199:1;46187:8;:13;46183:44;;46209:18;;;;;;;;;;;;;;46183:44;46240:61;46270:1;46274:2;46278:12;46292:8;46240:21;:61::i;:::-;46784:1;19784:2;46754:1;:26;;46753:32;46741:8;:45;46715:18;:22;46734:2;46715:22;;;;;;;;;;;;;;;;:71;;;;;;;;;;;47063:139;47100:2;47154:33;47177:1;47181:2;47185:1;47154:14;:33::i;:::-;47121:30;47142:8;47121:20;:30::i;:::-;:66;47063:18;:139::i;:::-;47029:17;:31;47047:12;47029:31;;;;;;;;;;;:173;;;;47219:16;47250:11;47279:8;47264:12;:23;47250:37;;47800:16;47796:2;47792:25;47780:37;;48172:12;48132:8;48091:1;48029:25;47970:1;47909;47882:335;48543:1;48529:12;48525:20;48483:346;48584:3;48575:7;48572:16;48483:346;;48802:7;48792:8;48789:1;48762:25;48759:1;48756;48751:59;48637:1;48628:7;48624:15;48613:26;;48483:346;;;48487:77;48874:1;48862:8;:13;48858:45;;48884:19;;;;;;;;;;;;;;48858:45;48936:3;48920:13;:19;;;;46489:2462;;48961:60;48990:1;48994:2;48998:12;49012:8;48961:20;:60::i;:::-;46125:2904;46063:2966;;:::o;44885:716::-;45048:4;45094:2;45069:45;;;45115:19;:17;:19::i;:::-;45136:4;45142:7;45151:5;45069:88;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;45065:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45369:1;45352:6;:13;:18;45348:235;;45398:40;;;;;;;;;;;;;;45348:235;45541:6;45535:13;45526:6;45522:2;45518:15;45511:38;45065:529;45238:54;;;45228:64;;;:6;:64;;;;45221:71;;;44885:716;;;;;;:::o;138460:100::-;138512:13;138545:7;138538:14;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;138460:100;:::o;83547:716::-;83603:13;83654:14;83691:1;83671:17;83682:5;83671:10;:17::i;:::-;:21;83654:38;;83707:20;83741:6;83730:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;83707:41;;83763:11;83892:6;83888:2;83884:15;83876:6;83872:28;83865:35;;83929:288;83936:4;83929:288;;;83961:5;;;;;;;;84103:8;84098:2;84091:5;84087:14;84082:30;84077:3;84069:44;84159:2;84150:11;;;;;;:::i;:::-;;;;;84193:1;84184:5;:10;83929:288;84180:21;83929:288;84238:6;84231:13;;;;;83547:716;;;:::o;86120:98::-;86173:7;86200:10;86193:17;;86120:98;:::o;57732:147::-;57869:6;57732:147;;;;;:::o;62770:296::-;62853:7;62873:20;62896:4;62873:27;;62916:9;62911:118;62935:5;:12;62931:1;:16;62911:118;;;62984:33;62994:12;63008:5;63014:1;63008:8;;;;;;;;:::i;:::-;;;;;;;;62984:9;:33::i;:::-;62969:48;;62949:3;;;;;:::i;:::-;;;;62911:118;;;;63046:12;63039:19;;;62770:296;;;;:::o;33475:324::-;33545:14;33778:1;33768:8;33765:15;33739:24;33735:46;33725:56;;33475:324;;;:::o;80413:922::-;80466:7;80486:14;80503:1;80486:18;;80553:6;80544:5;:15;80540:102;;80589:6;80580:15;;;;;;:::i;:::-;;;;;80624:2;80614:12;;;;80540:102;80669:6;80660:5;:15;80656:102;;80705:6;80696:15;;;;;;:::i;:::-;;;;;80740:2;80730:12;;;;80656:102;80785:6;80776:5;:15;80772:102;;80821:6;80812:15;;;;;;:::i;:::-;;;;;80856:2;80846:12;;;;80772:102;80901:5;80892;:14;80888:99;;80936:5;80927:14;;;;;;:::i;:::-;;;;;80970:1;80960:11;;;;80888:99;81014:5;81005;:14;81001:99;;81049:5;81040:14;;;;;;:::i;:::-;;;;;81083:1;81073:11;;;;81001:99;81127:5;81118;:14;81114:99;;81162:5;81153:14;;;;;;:::i;:::-;;;;;81196:1;81186:11;;;;81114:99;81240:5;81231;:14;81227:66;;81276:1;81266:11;;;;81227:66;81321:6;81314:13;;;80413:922;;;:::o;69810:149::-;69873:7;69904:1;69900;:5;:51;;69931:20;69946:1;69949;69931:14;:20::i;:::-;69900:51;;;69908:20;69923:1;69926;69908:14;:20::i;:::-;69900:51;69893:58;;69810:149;;;;:::o;69967:268::-;70035:13;70142:1;70136:4;70129:15;70171:1;70165:4;70158:15;70212:4;70206;70196:21;70187:30;;69967:268;;;;:::o;7:75:1:-;40:6;73:2;67:9;57:19;;7:75;:::o;88:117::-;197:1;194;187:12;211:117;320:1;317;310:12;334:149;370:7;410:66;403:5;399:78;388:89;;334:149;;;:::o;489:120::-;561:23;578:5;561:23;:::i;:::-;554:5;551:34;541:62;;599:1;596;589:12;541:62;489:120;:::o;615:137::-;660:5;698:6;685:20;676:29;;714:32;740:5;714:32;:::i;:::-;615:137;;;;:::o;758:327::-;816:6;865:2;853:9;844:7;840:23;836:32;833:119;;;871:79;;:::i;:::-;833:119;991:1;1016:52;1060:7;1051:6;1040:9;1036:22;1016:52;:::i;:::-;1006:62;;962:116;758:327;;;;:::o;1091:90::-;1125:7;1168:5;1161:13;1154:21;1143:32;;1091:90;;;:::o;1187:109::-;1268:21;1283:5;1268:21;:::i;:::-;1263:3;1256:34;1187:109;;:::o;1302:210::-;1389:4;1427:2;1416:9;1412:18;1404:26;;1440:65;1502:1;1491:9;1487:17;1478:6;1440:65;:::i;:::-;1302:210;;;;:::o;1518:99::-;1570:6;1604:5;1598:12;1588:22;;1518:99;;;:::o;1623:169::-;1707:11;1741:6;1736:3;1729:19;1781:4;1776:3;1772:14;1757:29;;1623:169;;;;:::o;1798:246::-;1879:1;1889:113;1903:6;1900:1;1897:13;1889:113;;;1988:1;1983:3;1979:11;1973:18;1969:1;1964:3;1960:11;1953:39;1925:2;1922:1;1918:10;1913:15;;1889:113;;;2036:1;2027:6;2022:3;2018:16;2011:27;1860:184;1798:246;;;:::o;2050:102::-;2091:6;2142:2;2138:7;2133:2;2126:5;2122:14;2118:28;2108:38;;2050:102;;;:::o;2158:377::-;2246:3;2274:39;2307:5;2274:39;:::i;:::-;2329:71;2393:6;2388:3;2329:71;:::i;:::-;2322:78;;2409:65;2467:6;2462:3;2455:4;2448:5;2444:16;2409:65;:::i;:::-;2499:29;2521:6;2499:29;:::i;:::-;2494:3;2490:39;2483:46;;2250:285;2158:377;;;;:::o;2541:313::-;2654:4;2692:2;2681:9;2677:18;2669:26;;2741:9;2735:4;2731:20;2727:1;2716:9;2712:17;2705:47;2769:78;2842:4;2833:6;2769:78;:::i;:::-;2761:86;;2541:313;;;;:::o;2860:77::-;2897:7;2926:5;2915:16;;2860:77;;;:::o;2943:122::-;3016:24;3034:5;3016:24;:::i;:::-;3009:5;3006:35;2996:63;;3055:1;3052;3045:12;2996:63;2943:122;:::o;3071:139::-;3117:5;3155:6;3142:20;3133:29;;3171:33;3198:5;3171:33;:::i;:::-;3071:139;;;;:::o;3216:329::-;3275:6;3324:2;3312:9;3303:7;3299:23;3295:32;3292:119;;;3330:79;;:::i;:::-;3292:119;3450:1;3475:53;3520:7;3511:6;3500:9;3496:22;3475:53;:::i;:::-;3465:63;;3421:117;3216:329;;;;:::o;3551:126::-;3588:7;3628:42;3621:5;3617:54;3606:65;;3551:126;;;:::o;3683:96::-;3720:7;3749:24;3767:5;3749:24;:::i;:::-;3738:35;;3683:96;;;:::o;3785:118::-;3872:24;3890:5;3872:24;:::i;:::-;3867:3;3860:37;3785:118;;:::o;3909:222::-;4002:4;4040:2;4029:9;4025:18;4017:26;;4053:71;4121:1;4110:9;4106:17;4097:6;4053:71;:::i;:::-;3909:222;;;;:::o;4137:122::-;4210:24;4228:5;4210:24;:::i;:::-;4203:5;4200:35;4190:63;;4249:1;4246;4239:12;4190:63;4137:122;:::o;4265:139::-;4311:5;4349:6;4336:20;4327:29;;4365:33;4392:5;4365:33;:::i;:::-;4265:139;;;;:::o;4410:474::-;4478:6;4486;4535:2;4523:9;4514:7;4510:23;4506:32;4503:119;;;4541:79;;:::i;:::-;4503:119;4661:1;4686:53;4731:7;4722:6;4711:9;4707:22;4686:53;:::i;:::-;4676:63;;4632:117;4788:2;4814:53;4859:7;4850:6;4839:9;4835:22;4814:53;:::i;:::-;4804:63;;4759:118;4410:474;;;;;:::o;4890:118::-;4977:24;4995:5;4977:24;:::i;:::-;4972:3;4965:37;4890:118;;:::o;5014:222::-;5107:4;5145:2;5134:9;5130:18;5122:26;;5158:71;5226:1;5215:9;5211:17;5202:6;5158:71;:::i;:::-;5014:222;;;;:::o;5242:116::-;5312:21;5327:5;5312:21;:::i;:::-;5305:5;5302:32;5292:60;;5348:1;5345;5338:12;5292:60;5242:116;:::o;5364:133::-;5407:5;5445:6;5432:20;5423:29;;5461:30;5485:5;5461:30;:::i;:::-;5364:133;;;;:::o;5503:323::-;5559:6;5608:2;5596:9;5587:7;5583:23;5579:32;5576:119;;;5614:79;;:::i;:::-;5576:119;5734:1;5759:50;5801:7;5792:6;5781:9;5777:22;5759:50;:::i;:::-;5749:60;;5705:114;5503:323;;;;:::o;5832:619::-;5909:6;5917;5925;5974:2;5962:9;5953:7;5949:23;5945:32;5942:119;;;5980:79;;:::i;:::-;5942:119;6100:1;6125:53;6170:7;6161:6;6150:9;6146:22;6125:53;:::i;:::-;6115:63;;6071:117;6227:2;6253:53;6298:7;6289:6;6278:9;6274:22;6253:53;:::i;:::-;6243:63;;6198:118;6355:2;6381:53;6426:7;6417:6;6406:9;6402:22;6381:53;:::i;:::-;6371:63;;6326:118;5832:619;;;;;:::o;6457:77::-;6494:7;6523:5;6512:16;;6457:77;;;:::o;6540:118::-;6627:24;6645:5;6627:24;:::i;:::-;6622:3;6615:37;6540:118;;:::o;6664:222::-;6757:4;6795:2;6784:9;6780:18;6772:26;;6808:71;6876:1;6865:9;6861:17;6852:6;6808:71;:::i;:::-;6664:222;;;;:::o;6892:329::-;6951:6;7000:2;6988:9;6979:7;6975:23;6971:32;6968:119;;;7006:79;;:::i;:::-;6968:119;7126:1;7151:53;7196:7;7187:6;7176:9;7172:22;7151:53;:::i;:::-;7141:63;;7097:117;6892:329;;;;:::o;7227:122::-;7300:24;7318:5;7300:24;:::i;:::-;7293:5;7290:35;7280:63;;7339:1;7336;7329:12;7280:63;7227:122;:::o;7355:139::-;7401:5;7439:6;7426:20;7417:29;;7455:33;7482:5;7455:33;:::i;:::-;7355:139;;;;:::o;7500:329::-;7559:6;7608:2;7596:9;7587:7;7583:23;7579:32;7576:119;;;7614:79;;:::i;:::-;7576:119;7734:1;7759:53;7804:7;7795:6;7784:9;7780:22;7759:53;:::i;:::-;7749:63;;7705:117;7500:329;;;;:::o;7835:104::-;7880:7;7909:24;7927:5;7909:24;:::i;:::-;7898:35;;7835:104;;;:::o;7945:142::-;8048:32;8074:5;8048:32;:::i;:::-;8043:3;8036:45;7945:142;;:::o;8093:254::-;8202:4;8240:2;8229:9;8225:18;8217:26;;8253:87;8337:1;8326:9;8322:17;8313:6;8253:87;:::i;:::-;8093:254;;;;:::o;8353:117::-;8462:1;8459;8452:12;8476:117;8585:1;8582;8575:12;8599:117;8708:1;8705;8698:12;8739:568;8812:8;8822:6;8872:3;8865:4;8857:6;8853:17;8849:27;8839:122;;8880:79;;:::i;:::-;8839:122;8993:6;8980:20;8970:30;;9023:18;9015:6;9012:30;9009:117;;;9045:79;;:::i;:::-;9009:117;9159:4;9151:6;9147:17;9135:29;;9213:3;9205:4;9197:6;9193:17;9183:8;9179:32;9176:41;9173:128;;;9220:79;;:::i;:::-;9173:128;8739:568;;;;;:::o;9313:559::-;9399:6;9407;9456:2;9444:9;9435:7;9431:23;9427:32;9424:119;;;9462:79;;:::i;:::-;9424:119;9610:1;9599:9;9595:17;9582:31;9640:18;9632:6;9629:30;9626:117;;;9662:79;;:::i;:::-;9626:117;9775:80;9847:7;9838:6;9827:9;9823:22;9775:80;:::i;:::-;9757:98;;;;9553:312;9313:559;;;;;:::o;9878:117::-;9987:1;9984;9977:12;10001:180;10049:77;10046:1;10039:88;10146:4;10143:1;10136:15;10170:4;10167:1;10160:15;10187:281;10270:27;10292:4;10270:27;:::i;:::-;10262:6;10258:40;10400:6;10388:10;10385:22;10364:18;10352:10;10349:34;10346:62;10343:88;;;10411:18;;:::i;:::-;10343:88;10451:10;10447:2;10440:22;10230:238;10187:281;;:::o;10474:129::-;10508:6;10535:20;;:::i;:::-;10525:30;;10564:33;10592:4;10584:6;10564:33;:::i;:::-;10474:129;;;:::o;10609:308::-;10671:4;10761:18;10753:6;10750:30;10747:56;;;10783:18;;:::i;:::-;10747:56;10821:29;10843:6;10821:29;:::i;:::-;10813:37;;10905:4;10899;10895:15;10887:23;;10609:308;;;:::o;10923:146::-;11020:6;11015:3;11010;10997:30;11061:1;11052:6;11047:3;11043:16;11036:27;10923:146;;;:::o;11075:425::-;11153:5;11178:66;11194:49;11236:6;11194:49;:::i;:::-;11178:66;:::i;:::-;11169:75;;11267:6;11260:5;11253:21;11305:4;11298:5;11294:16;11343:3;11334:6;11329:3;11325:16;11322:25;11319:112;;;11350:79;;:::i;:::-;11319:112;11440:54;11487:6;11482:3;11477;11440:54;:::i;:::-;11159:341;11075:425;;;;;:::o;11520:340::-;11576:5;11625:3;11618:4;11610:6;11606:17;11602:27;11592:122;;11633:79;;:::i;:::-;11592:122;11750:6;11737:20;11775:79;11850:3;11842:6;11835:4;11827:6;11823:17;11775:79;:::i;:::-;11766:88;;11582:278;11520:340;;;;:::o;11866:509::-;11935:6;11984:2;11972:9;11963:7;11959:23;11955:32;11952:119;;;11990:79;;:::i;:::-;11952:119;12138:1;12127:9;12123:17;12110:31;12168:18;12160:6;12157:30;12154:117;;;12190:79;;:::i;:::-;12154:117;12295:63;12350:7;12341:6;12330:9;12326:22;12295:63;:::i;:::-;12285:73;;12081:287;11866:509;;;;:::o;12381:468::-;12446:6;12454;12503:2;12491:9;12482:7;12478:23;12474:32;12471:119;;;12509:79;;:::i;:::-;12471:119;12629:1;12654:53;12699:7;12690:6;12679:9;12675:22;12654:53;:::i;:::-;12644:63;;12600:117;12756:2;12782:50;12824:7;12815:6;12804:9;12800:22;12782:50;:::i;:::-;12772:60;;12727:115;12381:468;;;;;:::o;12855:307::-;12916:4;13006:18;12998:6;12995:30;12992:56;;;13028:18;;:::i;:::-;12992:56;13066:29;13088:6;13066:29;:::i;:::-;13058:37;;13150:4;13144;13140:15;13132:23;;12855:307;;;:::o;13168:423::-;13245:5;13270:65;13286:48;13327:6;13286:48;:::i;:::-;13270:65;:::i;:::-;13261:74;;13358:6;13351:5;13344:21;13396:4;13389:5;13385:16;13434:3;13425:6;13420:3;13416:16;13413:25;13410:112;;;13441:79;;:::i;:::-;13410:112;13531:54;13578:6;13573:3;13568;13531:54;:::i;:::-;13251:340;13168:423;;;;;:::o;13610:338::-;13665:5;13714:3;13707:4;13699:6;13695:17;13691:27;13681:122;;13722:79;;:::i;:::-;13681:122;13839:6;13826:20;13864:78;13938:3;13930:6;13923:4;13915:6;13911:17;13864:78;:::i;:::-;13855:87;;13671:277;13610:338;;;;:::o;13954:943::-;14049:6;14057;14065;14073;14122:3;14110:9;14101:7;14097:23;14093:33;14090:120;;;14129:79;;:::i;:::-;14090:120;14249:1;14274:53;14319:7;14310:6;14299:9;14295:22;14274:53;:::i;:::-;14264:63;;14220:117;14376:2;14402:53;14447:7;14438:6;14427:9;14423:22;14402:53;:::i;:::-;14392:63;;14347:118;14504:2;14530:53;14575:7;14566:6;14555:9;14551:22;14530:53;:::i;:::-;14520:63;;14475:118;14660:2;14649:9;14645:18;14632:32;14691:18;14683:6;14680:30;14677:117;;;14713:79;;:::i;:::-;14677:117;14818:62;14872:7;14863:6;14852:9;14848:22;14818:62;:::i;:::-;14808:72;;14603:287;13954:943;;;;;;;:::o;14903:474::-;14971:6;14979;15028:2;15016:9;15007:7;15003:23;14999:32;14996:119;;;15034:79;;:::i;:::-;14996:119;15154:1;15179:53;15224:7;15215:6;15204:9;15200:22;15179:53;:::i;:::-;15169:63;;15125:117;15281:2;15307:53;15352:7;15343:6;15332:9;15328:22;15307:53;:::i;:::-;15297:63;;15252:118;14903:474;;;;;:::o;15383:180::-;15431:77;15428:1;15421:88;15528:4;15525:1;15518:15;15552:4;15549:1;15542:15;15569:320;15613:6;15650:1;15644:4;15640:12;15630:22;;15697:1;15691:4;15687:12;15718:18;15708:81;;15774:4;15766:6;15762:17;15752:27;;15708:81;15836:2;15828:6;15825:14;15805:18;15802:38;15799:84;;15855:18;;:::i;:::-;15799:84;15620:269;15569:320;;;:::o;15895:166::-;16035:18;16031:1;16023:6;16019:14;16012:42;15895:166;:::o;16067:366::-;16209:3;16230:67;16294:2;16289:3;16230:67;:::i;:::-;16223:74;;16306:93;16395:3;16306:93;:::i;:::-;16424:2;16419:3;16415:12;16408:19;;16067:366;;;:::o;16439:419::-;16605:4;16643:2;16632:9;16628:18;16620:26;;16692:9;16686:4;16682:20;16678:1;16667:9;16663:17;16656:47;16720:131;16846:4;16720:131;:::i;:::-;16712:139;;16439:419;;;:::o;16864:180::-;16912:77;16909:1;16902:88;17009:4;17006:1;16999:15;17033:4;17030:1;17023:15;17050:191;17090:3;17109:20;17127:1;17109:20;:::i;:::-;17104:25;;17143:20;17161:1;17143:20;:::i;:::-;17138:25;;17186:1;17183;17179:9;17172:16;;17207:3;17204:1;17201:10;17198:36;;;17214:18;;:::i;:::-;17198:36;17050:191;;;;:::o;17247:176::-;17387:28;17383:1;17375:6;17371:14;17364:52;17247:176;:::o;17429:366::-;17571:3;17592:67;17656:2;17651:3;17592:67;:::i;:::-;17585:74;;17668:93;17757:3;17668:93;:::i;:::-;17786:2;17781:3;17777:12;17770:19;;17429:366;;;:::o;17801:419::-;17967:4;18005:2;17994:9;17990:18;17982:26;;18054:9;18048:4;18044:20;18040:1;18029:9;18025:17;18018:47;18082:131;18208:4;18082:131;:::i;:::-;18074:139;;17801:419;;;:::o;18226:177::-;18366:29;18362:1;18354:6;18350:14;18343:53;18226:177;:::o;18409:366::-;18551:3;18572:67;18636:2;18631:3;18572:67;:::i;:::-;18565:74;;18648:93;18737:3;18648:93;:::i;:::-;18766:2;18761:3;18757:12;18750:19;;18409:366;;;:::o;18781:419::-;18947:4;18985:2;18974:9;18970:18;18962:26;;19034:9;19028:4;19024:20;19020:1;19009:9;19005:17;18998:47;19062:131;19188:4;19062:131;:::i;:::-;19054:139;;18781:419;;;:::o;19206:143::-;19263:5;19294:6;19288:13;19279:22;;19310:33;19337:5;19310:33;:::i;:::-;19206:143;;;;:::o;19355:351::-;19425:6;19474:2;19462:9;19453:7;19449:23;19445:32;19442:119;;;19480:79;;:::i;:::-;19442:119;19600:1;19625:64;19681:7;19672:6;19661:9;19657:22;19625:64;:::i;:::-;19615:74;;19571:128;19355:351;;;;:::o;19712:165::-;19852:17;19848:1;19840:6;19836:14;19829:41;19712:165;:::o;19883:366::-;20025:3;20046:67;20110:2;20105:3;20046:67;:::i;:::-;20039:74;;20122:93;20211:3;20122:93;:::i;:::-;20240:2;20235:3;20231:12;20224:19;;19883:366;;;:::o;20255:419::-;20421:4;20459:2;20448:9;20444:18;20436:26;;20508:9;20502:4;20498:20;20494:1;20483:9;20479:17;20472:47;20536:131;20662:4;20536:131;:::i;:::-;20528:139;;20255:419;;;:::o;20680:165::-;20820:17;20816:1;20808:6;20804:14;20797:41;20680:165;:::o;20851:366::-;20993:3;21014:67;21078:2;21073:3;21014:67;:::i;:::-;21007:74;;21090:93;21179:3;21090:93;:::i;:::-;21208:2;21203:3;21199:12;21192:19;;20851:366;;;:::o;21223:419::-;21389:4;21427:2;21416:9;21412:18;21404:26;;21476:9;21470:4;21466:20;21462:1;21451:9;21447:17;21440:47;21504:131;21630:4;21504:131;:::i;:::-;21496:139;;21223:419;;;:::o;21648:233::-;21687:3;21710:24;21728:5;21710:24;:::i;:::-;21701:33;;21756:66;21749:5;21746:77;21743:103;;21826:18;;:::i;:::-;21743:103;21873:1;21866:5;21862:13;21855:20;;21648:233;;;:::o;21887:410::-;21927:7;21950:20;21968:1;21950:20;:::i;:::-;21945:25;;21984:20;22002:1;21984:20;:::i;:::-;21979:25;;22039:1;22036;22032:9;22061:30;22079:11;22061:30;:::i;:::-;22050:41;;22240:1;22231:7;22227:15;22224:1;22221:22;22201:1;22194:9;22174:83;22151:139;;22270:18;;:::i;:::-;22151:139;21935:362;21887:410;;;;:::o;22303:169::-;22443:21;22439:1;22431:6;22427:14;22420:45;22303:169;:::o;22478:366::-;22620:3;22641:67;22705:2;22700:3;22641:67;:::i;:::-;22634:74;;22717:93;22806:3;22717:93;:::i;:::-;22835:2;22830:3;22826:12;22819:19;;22478:366;;;:::o;22850:419::-;23016:4;23054:2;23043:9;23039:18;23031:26;;23103:9;23097:4;23093:20;23089:1;23078:9;23074:17;23067:47;23131:131;23257:4;23131:131;:::i;:::-;23123:139;;22850:419;;;:::o;23275:180::-;23323:77;23320:1;23313:88;23420:4;23417:1;23410:15;23444:4;23441:1;23434:15;23461:185;23501:1;23518:20;23536:1;23518:20;:::i;:::-;23513:25;;23552:20;23570:1;23552:20;:::i;:::-;23547:25;;23591:1;23581:35;;23596:18;;:::i;:::-;23581:35;23638:1;23635;23631:9;23626:14;;23461:185;;;;:::o;23652:141::-;23701:4;23724:3;23716:11;;23747:3;23744:1;23737:14;23781:4;23778:1;23768:18;23760:26;;23652:141;;;:::o;23799:93::-;23836:6;23883:2;23878;23871:5;23867:14;23863:23;23853:33;;23799:93;;;:::o;23898:107::-;23942:8;23992:5;23986:4;23982:16;23961:37;;23898:107;;;;:::o;24011:393::-;24080:6;24130:1;24118:10;24114:18;24153:97;24183:66;24172:9;24153:97;:::i;:::-;24271:39;24301:8;24290:9;24271:39;:::i;:::-;24259:51;;24343:4;24339:9;24332:5;24328:21;24319:30;;24392:4;24382:8;24378:19;24371:5;24368:30;24358:40;;24087:317;;24011:393;;;;;:::o;24410:60::-;24438:3;24459:5;24452:12;;24410:60;;;:::o;24476:142::-;24526:9;24559:53;24577:34;24586:24;24604:5;24586:24;:::i;:::-;24577:34;:::i;:::-;24559:53;:::i;:::-;24546:66;;24476:142;;;:::o;24624:75::-;24667:3;24688:5;24681:12;;24624:75;;;:::o;24705:269::-;24815:39;24846:7;24815:39;:::i;:::-;24876:91;24925:41;24949:16;24925:41;:::i;:::-;24917:6;24910:4;24904:11;24876:91;:::i;:::-;24870:4;24863:105;24781:193;24705:269;;;:::o;24980:73::-;25025:3;24980:73;:::o;25059:189::-;25136:32;;:::i;:::-;25177:65;25235:6;25227;25221:4;25177:65;:::i;:::-;25112:136;25059:189;;:::o;25254:186::-;25314:120;25331:3;25324:5;25321:14;25314:120;;;25385:39;25422:1;25415:5;25385:39;:::i;:::-;25358:1;25351:5;25347:13;25338:22;;25314:120;;;25254:186;;:::o;25446:543::-;25547:2;25542:3;25539:11;25536:446;;;25581:38;25613:5;25581:38;:::i;:::-;25665:29;25683:10;25665:29;:::i;:::-;25655:8;25651:44;25848:2;25836:10;25833:18;25830:49;;;25869:8;25854:23;;25830:49;25892:80;25948:22;25966:3;25948:22;:::i;:::-;25938:8;25934:37;25921:11;25892:80;:::i;:::-;25551:431;;25536:446;25446:543;;;:::o;25995:117::-;26049:8;26099:5;26093:4;26089:16;26068:37;;25995:117;;;;:::o;26118:169::-;26162:6;26195:51;26243:1;26239:6;26231:5;26228:1;26224:13;26195:51;:::i;:::-;26191:56;26276:4;26270;26266:15;26256:25;;26169:118;26118:169;;;;:::o;26292:295::-;26368:4;26514:29;26539:3;26533:4;26514:29;:::i;:::-;26506:37;;26576:3;26573:1;26569:11;26563:4;26560:21;26552:29;;26292:295;;;;:::o;26592:1395::-;26709:37;26742:3;26709:37;:::i;:::-;26811:18;26803:6;26800:30;26797:56;;;26833:18;;:::i;:::-;26797:56;26877:38;26909:4;26903:11;26877:38;:::i;:::-;26962:67;27022:6;27014;27008:4;26962:67;:::i;:::-;27056:1;27080:4;27067:17;;27112:2;27104:6;27101:14;27129:1;27124:618;;;;27786:1;27803:6;27800:77;;;27852:9;27847:3;27843:19;27837:26;27828:35;;27800:77;27903:67;27963:6;27956:5;27903:67;:::i;:::-;27897:4;27890:81;27759:222;27094:887;;27124:618;27176:4;27172:9;27164:6;27160:22;27210:37;27242:4;27210:37;:::i;:::-;27269:1;27283:208;27297:7;27294:1;27291:14;27283:208;;;27376:9;27371:3;27367:19;27361:26;27353:6;27346:42;27427:1;27419:6;27415:14;27405:24;;27474:2;27463:9;27459:18;27446:31;;27320:4;27317:1;27313:12;27308:17;;27283:208;;;27519:6;27510:7;27507:19;27504:179;;;27577:9;27572:3;27568:19;27562:26;27620:48;27662:4;27654:6;27650:17;27639:9;27620:48;:::i;:::-;27612:6;27605:64;27527:156;27504:179;27729:1;27725;27717:6;27713:14;27709:22;27703:4;27696:36;27131:611;;;27094:887;;26684:1303;;;26592:1395;;:::o;27993:234::-;28133:34;28129:1;28121:6;28117:14;28110:58;28202:17;28197:2;28189:6;28185:15;28178:42;27993:234;:::o;28233:366::-;28375:3;28396:67;28460:2;28455:3;28396:67;:::i;:::-;28389:74;;28472:93;28561:3;28472:93;:::i;:::-;28590:2;28585:3;28581:12;28574:19;;28233:366;;;:::o;28605:419::-;28771:4;28809:2;28798:9;28794:18;28786:26;;28858:9;28852:4;28848:20;28844:1;28833:9;28829:17;28822:47;28886:131;29012:4;28886:131;:::i;:::-;28878:139;;28605:419;;;:::o;29030:148::-;29132:11;29169:3;29154:18;;29030:148;;;;:::o;29184:390::-;29290:3;29318:39;29351:5;29318:39;:::i;:::-;29373:89;29455:6;29450:3;29373:89;:::i;:::-;29366:96;;29471:65;29529:6;29524:3;29517:4;29510:5;29506:16;29471:65;:::i;:::-;29561:6;29556:3;29552:16;29545:23;;29294:280;29184:390;;;;:::o;29580:155::-;29720:7;29716:1;29708:6;29704:14;29697:31;29580:155;:::o;29741:400::-;29901:3;29922:84;30004:1;29999:3;29922:84;:::i;:::-;29915:91;;30015:93;30104:3;30015:93;:::i;:::-;30133:1;30128:3;30124:11;30117:18;;29741:400;;;:::o;30147:701::-;30428:3;30450:95;30541:3;30532:6;30450:95;:::i;:::-;30443:102;;30562:95;30653:3;30644:6;30562:95;:::i;:::-;30555:102;;30674:148;30818:3;30674:148;:::i;:::-;30667:155;;30839:3;30832:10;;30147:701;;;;;:::o;30854:225::-;30994:34;30990:1;30982:6;30978:14;30971:58;31063:8;31058:2;31050:6;31046:15;31039:33;30854:225;:::o;31085:366::-;31227:3;31248:67;31312:2;31307:3;31248:67;:::i;:::-;31241:74;;31324:93;31413:3;31324:93;:::i;:::-;31442:2;31437:3;31433:12;31426:19;;31085:366;;;:::o;31457:419::-;31623:4;31661:2;31650:9;31646:18;31638:26;;31710:9;31704:4;31700:20;31696:1;31685:9;31681:17;31674:47;31738:131;31864:4;31738:131;:::i;:::-;31730:139;;31457:419;;;:::o;31882:182::-;32022:34;32018:1;32010:6;32006:14;31999:58;31882:182;:::o;32070:366::-;32212:3;32233:67;32297:2;32292:3;32233:67;:::i;:::-;32226:74;;32309:93;32398:3;32309:93;:::i;:::-;32427:2;32422:3;32418:12;32411:19;;32070:366;;;:::o;32442:419::-;32608:4;32646:2;32635:9;32631:18;32623:26;;32695:9;32689:4;32685:20;32681:1;32670:9;32666:17;32659:47;32723:131;32849:4;32723:131;:::i;:::-;32715:139;;32442:419;;;:::o;32867:98::-;32918:6;32952:5;32946:12;32936:22;;32867:98;;;:::o;32971:168::-;33054:11;33088:6;33083:3;33076:19;33128:4;33123:3;33119:14;33104:29;;32971:168;;;;:::o;33145:373::-;33231:3;33259:38;33291:5;33259:38;:::i;:::-;33313:70;33376:6;33371:3;33313:70;:::i;:::-;33306:77;;33392:65;33450:6;33445:3;33438:4;33431:5;33427:16;33392:65;:::i;:::-;33482:29;33504:6;33482:29;:::i;:::-;33477:3;33473:39;33466:46;;33235:283;33145:373;;;;:::o;33524:640::-;33719:4;33757:3;33746:9;33742:19;33734:27;;33771:71;33839:1;33828:9;33824:17;33815:6;33771:71;:::i;:::-;33852:72;33920:2;33909:9;33905:18;33896:6;33852:72;:::i;:::-;33934;34002:2;33991:9;33987:18;33978:6;33934:72;:::i;:::-;34053:9;34047:4;34043:20;34038:2;34027:9;34023:18;34016:48;34081:76;34152:4;34143:6;34081:76;:::i;:::-;34073:84;;33524:640;;;;;;;:::o;34170:141::-;34226:5;34257:6;34251:13;34242:22;;34273:32;34299:5;34273:32;:::i;:::-;34170:141;;;;:::o;34317:349::-;34386:6;34435:2;34423:9;34414:7;34410:23;34406:32;34403:119;;;34441:79;;:::i;:::-;34403:119;34561:1;34586:63;34641:7;34632:6;34621:9;34617:22;34586:63;:::i;:::-;34576:73;;34532:127;34317:349;;;;:::o;34672:180::-;34720:77;34717:1;34710:88;34817:4;34814:1;34807:15;34841:4;34838:1;34831:15
Swarm Source
ipfs://88e265f5946cb3988205f5afb47e6fc5e737eb2f84f212ffacecb4be5a046e78
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.