Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
0 LAUNCH
Holders
1,591
Market
Volume (24H)
0.0308 ETH
Min Price (24H)
$19.39 @ 0.007500 ETH
Max Price (24H)
$20.40 @ 0.007890 ETH
Other Info
Token Contract
Balance
1 LAUNCHLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
Launchpad
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
No with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.24; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; contract Launchpad is ERC721, Ownable { using Strings for uint256; event TreasuryMinted(address to, uint amount); event WhitelistT1Minted(address to, uint amount); event WhitelistT2Minted(address to, uint amount); event PublicMinted(address to, uint amount); event ContractURIUpdated(); event MerkleRootUpdated(uint256 tier, bytes32 root); // The URI of your IPFS/hosting server for the metadata folder. // Used in the format: "ipfs://your_uri/". string internal contractUri; string internal uri; // The format of your metadata files string internal uriSuffix = ".json"; // The URI for your Hidden Metadata string internal hiddenMetadataUri = "ipfs://Qma9XnEcFTaFWf3jydftU3MYYivFqaDy4Cm1eF1GazpwYi"; // The maximum supply of your collection uint256 public maxSupply; // The maximum mint amount allowed per address uint256 public maxMintPerAddress; // the current token id to mint next uint256 public currentTokenId; // The paused state for minting and transfers bool public transfersLocked = true; bool public paused = true; // The revealed state for Tokens Metadata bool public revealed = false; // Whitelist state bool public t1WhitelistOpen = false; bool public t2WhitelistOpen = false; bool public publicOpen = false; // The Merkle Roots bytes32 internal t1MerkleRoot; bytes32 internal t2MerkleRoot; // Mapping of address to bool that determines how many the address already claimed mapping(address => bool) public t1WhitelistClaimed; mapping(address => bool) public t2WhitelistClaimed; constructor( string memory _name, string memory _symbol, uint256 _maxSupply, uint256 _maxMintAmountPerAddress ) Ownable(_msgSender()) ERC721(_name, _symbol) { maxSupply = _maxSupply; maxMintPerAddress = _maxMintAmountPerAddress; } // Modifier that ensures the maximum supply and // the maximum amount to mint per transaction function mintCompliance() private view { if (paused) revert MintingPaused(); if ((balanceOf(_msgSender()) + 1) > maxMintPerAddress) { revert MintingMaxPerAddress(); } if (currentTokenId >= maxSupply) { revert MintingSupplyReached(); } } // Changes the Revealed State function setRevealed(bool _state) public onlyOwner { revealed = _state; } // Set the hidden metadata URI function setHiddenMetadataUri(string memory _hiddenMetadataUri) public onlyOwner { hiddenMetadataUri = _hiddenMetadataUri; } // Set the URI of your IPFS/hosting server for the metadata folder. // Used in the format: "ipfs://your_uri/". function setContractUri(string memory _uri) public onlyOwner { contractUri = _uri; emit ContractURIUpdated(); } function setUri(string memory _uri) public onlyOwner { uri = _uri; } // Set the uri sufix for your metadata file type function setUriSuffix(string memory _uriSuffix) public onlyOwner { uriSuffix = _uriSuffix; } // Change paused state for main minting function setPaused(bool _state) public onlyOwner { paused = _state; } // a one-way unlocking of transfers function unlockTransfers() public onlyOwner { transfersLocked = false; } // Change state for whitelist phases function setT1Whitelist(bool _bool) public onlyOwner { t1WhitelistOpen = _bool; } function setT2Whitelist(bool _bool) public onlyOwner { t2WhitelistOpen = _bool; } function setPublicMint(bool _bool) public onlyOwner { publicOpen = _bool; } // Set the Merkle Root for whitelist verification function setT1MerkleRoot(bytes32 _newMerkleRoot) public onlyOwner { t1MerkleRoot = _newMerkleRoot; emit MerkleRootUpdated(1, _newMerkleRoot); } function setT2MerkleRoot(bytes32 _newMerkleRoot) public onlyOwner { t2MerkleRoot = _newMerkleRoot; emit MerkleRootUpdated(2, _newMerkleRoot); } function contractURI() public view returns (string memory) { return contractUri; } // override to ensure transfers aren't locked before updating function _update( address to, uint256 tokenId, address auth ) internal override returns (address) { address from = _ownerOf(tokenId); // when not minting if (from != address(0) && transfersLocked) revert TransfersLocked(); return super._update(to, tokenId, auth); } // Returns the Token URI with Metadata for specified Token Id function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { if (revealed == false) { return hiddenMetadataUri; } return bytes(uri).length > 0 ? string( abi.encodePacked( uri, _tokenId.toString(), uriSuffix ) ) : ""; } function isWhitelisted(address _addr, bytes32[] calldata _merkleProof) public view returns(bool) { bytes32 leaf = keccak256(abi.encodePacked(_addr)); if (MerkleProof.verify(_merkleProof, t1MerkleRoot, leaf)) return true; return MerkleProof.verify(_merkleProof, t2MerkleRoot, leaf); } // treasury mint function treasuryMint(address _treasury, uint256 _amount) public onlyOwner { if (!transfersLocked) revert MintingTreasuryMintClosed(); for (uint256 i = 0; i < _amount; ++i) { _safeMint(_treasury, currentTokenId); unchecked { ++currentTokenId; } } } // Can only be called once per address // _merkleProof = Hex proof generated by Merkle Tree for whitelist verification function t1WhitelistMint(bytes32[] calldata _merkleProof) public { if (!t1WhitelistOpen) revert MintingWhitelistClosed(); if (t1WhitelistClaimed[_msgSender()]) revert MintingWhitelistClaimed(); mintCompliance(); bytes32 leaf = keccak256(abi.encodePacked(_msgSender())); if (!MerkleProof.verify(_merkleProof, t1MerkleRoot, leaf)) { revert MintingInvalidProof(); } t1WhitelistClaimed[_msgSender()] = true; mint(); } function t2WhitelistMint(bytes32[] calldata _merkleProof) public { if (!t2WhitelistOpen) revert MintingWhitelistClosed(); if (t2WhitelistClaimed[_msgSender()]) revert MintingWhitelistClaimed(); mintCompliance(); bytes32 leaf = keccak256(abi.encodePacked(_msgSender())); if (!MerkleProof.verify(_merkleProof, t2MerkleRoot, leaf)) { revert MintingInvalidProof(); } t2WhitelistClaimed[_msgSender()] = true; mint(); } function publicMint() public { if (!publicOpen) revert MintPublicClosed(); mintCompliance(); mint(); } function mint() internal { _safeMint(_msgSender(), currentTokenId); unchecked { ++currentTokenId; } } // Withdraw ETH if accidentally sent function withdraw() public onlyOwner { (bool os, ) = payable(owner()).call{value: address(this).balance}(""); require(os); } // In case of silly larpers receive() external payable {} //////////// // Errors // //////////// error MintingPaused(); error MintingMaxPerAddress(); error MintingInvalidAmount(); error MintingSupplyReached(); error MintingTreasuryMintClosed(); error MintPublicClosed(); error MintingWhitelistClosed(); error MintingWhitelistClaimed(); error MintingInvalidProof(); error TransfersLocked(); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.20; import {IERC721} from "./IERC721.sol"; import {IERC721Receiver} from "./IERC721Receiver.sol"; import {IERC721Metadata} from "./extensions/IERC721Metadata.sol"; import {Context} from "../../utils/Context.sol"; import {Strings} from "../../utils/Strings.sol"; import {IERC165, ERC165} from "../../utils/introspection/ERC165.sol"; import {IERC721Errors} from "../../interfaces/draft-IERC6093.sol"; /** * @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}. */ abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Errors { using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; mapping(uint256 tokenId => address) private _owners; mapping(address owner => uint256) private _balances; mapping(uint256 tokenId => address) private _tokenApprovals; mapping(address owner => mapping(address operator => 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 returns (uint256) { if (owner == address(0)) { revert ERC721InvalidOwner(address(0)); } return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual returns (address) { return _requireOwned(tokenId); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual returns (string memory) { _requireOwned(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string.concat(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 { _approve(to, tokenId, _msgSender()); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual returns (address) { _requireOwned(tokenId); return _getApproved(tokenId); } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } // Setting an "auth" arguments enables the `_isAuthorized` check which verifies that the token exists // (from != 0). Therefore, it is not needed to verify that the return value is not 0 here. address previousOwner = _update(to, tokenId, _msgSender()); if (previousOwner != from) { revert ERC721IncorrectOwner(from, tokenId, previousOwner); } } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual { transferFrom(from, to, tokenId); _checkOnERC721Received(from, to, tokenId, data); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist * * IMPORTANT: Any overrides to this function that add ownership of tokens not tracked by the * core ERC721 logic MUST be matched with the use of {_increaseBalance} to keep balances * consistent with ownership. The invariant to preserve is 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`. */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns the approved address for `tokenId`. Returns 0 if `tokenId` is not minted. */ function _getApproved(uint256 tokenId) internal view virtual returns (address) { return _tokenApprovals[tokenId]; } /** * @dev Returns whether `spender` is allowed to manage `owner`'s tokens, or `tokenId` in * particular (ignoring whether it is owned by `owner`). * * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this * assumption. */ function _isAuthorized(address owner, address spender, uint256 tokenId) internal view virtual returns (bool) { return spender != address(0) && (owner == spender || isApprovedForAll(owner, spender) || _getApproved(tokenId) == spender); } /** * @dev Checks if `spender` can operate on `tokenId`, assuming the provided `owner` is the actual owner. * Reverts if `spender` does not have approval from the provided `owner` for the given token or for all its assets * the `spender` for the specific `tokenId`. * * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this * assumption. */ function _checkAuthorized(address owner, address spender, uint256 tokenId) internal view virtual { if (!_isAuthorized(owner, spender, tokenId)) { if (owner == address(0)) { revert ERC721NonexistentToken(tokenId); } else { revert ERC721InsufficientApproval(spender, tokenId); } } } /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * NOTE: the value is limited to type(uint128).max. This protect against _balance overflow. It is unrealistic that * a uint256 would ever overflow from increments when these increments are bounded to uint128 values. * * WARNING: Increasing an account's balance using this function tends to be paired with an override of the * {_ownerOf} function to resolve the ownership of the corresponding tokens so that balances and ownership * remain consistent with one another. */ function _increaseBalance(address account, uint128 value) internal virtual { unchecked { _balances[account] += value; } } /** * @dev Transfers `tokenId` from its current owner to `to`, or alternatively mints (or burns) if the current owner * (or `to`) is the zero address. Returns the owner of the `tokenId` before the update. * * The `auth` argument is optional. If the value passed is non 0, then this function will check that * `auth` is either the owner of the token, or approved to operate on the token (by the owner). * * Emits a {Transfer} event. * * NOTE: If overriding this function in a way that tracks balances, see also {_increaseBalance}. */ function _update(address to, uint256 tokenId, address auth) internal virtual returns (address) { address from = _ownerOf(tokenId); // Perform (optional) operator check if (auth != address(0)) { _checkAuthorized(from, auth, tokenId); } // Execute the update if (from != address(0)) { // Clear approval. No need to re-authorize or emit the Approval event _approve(address(0), tokenId, address(0), false); unchecked { _balances[from] -= 1; } } if (to != address(0)) { unchecked { _balances[to] += 1; } } _owners[tokenId] = to; emit Transfer(from, to, tokenId); return from; } /** * @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 { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } address previousOwner = _update(to, tokenId, address(0)); if (previousOwner != address(0)) { revert ERC721InvalidSender(address(0)); } } /** * @dev Mints `tokenId`, transfers it to `to` and checks for `to` acceptance. * * 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 { _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); _checkOnERC721Received(address(0), to, tokenId, data); } /** * @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 { address previousOwner = _update(address(0), tokenId, address(0)); if (previousOwner == address(0)) { revert ERC721NonexistentToken(tokenId); } } /** * @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 { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } address previousOwner = _update(to, tokenId, address(0)); if (previousOwner == address(0)) { revert ERC721NonexistentToken(tokenId); } else if (previousOwner != from) { revert ERC721IncorrectOwner(from, tokenId, previousOwner); } } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking that contract recipients * are aware of the ERC721 standard 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 like {safeTransferFrom} in the sense that it invokes * {IERC721Receiver-onERC721Received} on the receiver, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `tokenId` token must exist and be owned by `from`. * - `to` cannot be the zero address. * - `from` cannot be the zero address. * - 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) internal { _safeTransfer(from, to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeTransfer-address-address-uint256-}[`_safeTransfer`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual { _transfer(from, to, tokenId); _checkOnERC721Received(from, to, tokenId, data); } /** * @dev Approve `to` to operate on `tokenId` * * The `auth` argument is optional. If the value passed is non 0, then this function will check that `auth` is * either the owner of the token, or approved to operate on all tokens held by this owner. * * Emits an {Approval} event. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address to, uint256 tokenId, address auth) internal { _approve(to, tokenId, auth, true); } /** * @dev Variant of `_approve` with an optional flag to enable or disable the {Approval} event. The event is not * emitted in the context of transfers. */ function _approve(address to, uint256 tokenId, address auth, bool emitEvent) internal virtual { // Avoid reading the owner unless necessary if (emitEvent || auth != address(0)) { address owner = _requireOwned(tokenId); // We do not use _isAuthorized because single-token approvals should not be able to call approve if (auth != address(0) && owner != auth && !isApprovedForAll(owner, auth)) { revert ERC721InvalidApprover(auth); } if (emitEvent) { emit Approval(owner, to, tokenId); } } _tokenApprovals[tokenId] = to; } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Requirements: * - operator can't be the address zero. * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll(address owner, address operator, bool approved) internal virtual { if (operator == address(0)) { revert ERC721InvalidOperator(operator); } _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` doesn't have a current owner (it hasn't been minted, or it has been burned). * Returns the owner. * * Overrides to ownership logic should be done to {_ownerOf}. */ function _requireOwned(uint256 tokenId) internal view returns (address) { address owner = _ownerOf(tokenId); if (owner == address(0)) { revert ERC721NonexistentToken(tokenId); } return owner; } /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target address. This will revert if the * recipient doesn't accept the token transfer. 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 */ function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory data) private { if (to.code.length > 0) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { if (retval != IERC721Receiver.onERC721Received.selector) { revert ERC721InvalidReceiver(to); } } catch (bytes memory reason) { if (reason.length == 0) { revert ERC721InvalidReceiver(to); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.20; import {IERC721} from "../IERC721.sol"; /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.20; import {IERC165} from "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or * {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: 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 address zero. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.20; /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.20; /** * @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 The multiproof provided is not valid. */ error MerkleProofInvalidMultiproof(); /** * @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} */ 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. */ 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} */ 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. */ 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. */ 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). */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds 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 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. if (leavesLen + proofLen != totalHashes + 1) { revert MerkleProofInvalidMultiproof(); } // 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 from 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) { if (proofPos != proofLen) { revert MerkleProofInvalidMultiproof(); } unchecked { 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. */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds 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 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. if (leavesLen + proofLen != totalHashes + 1) { revert MerkleProofInvalidMultiproof(); } // 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 from 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) { if (proofPos != proofLen) { revert MerkleProofInvalidMultiproof(); } unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Sorts the pair (a, b) and hashes the result. */ function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } /** * @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory. */ 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) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol) pragma solidity ^0.8.20; import {IERC165} from "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol) pragma solidity ^0.8.20; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Muldiv operation overflow. */ error MathOverflowedMulDiv(); enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an overflow flag. */ 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. */ 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. */ 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. */ 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. */ 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 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 towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. return a / b; } // (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 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. if (denominator <= prod1) { revert MathOverflowedMulDiv(); } /////////////////////////////////////////////// // 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. uint256 twos = denominator & (0 - denominator); 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 (unsignedRoundsUp(rounding) && 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 * towards zero. * * 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 + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * 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 + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * 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 + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * 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 256, 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 + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.20; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol) pragma solidity ^0.8.20; import {Math} from "./math/Math.sol"; import {SignedMath} from "./math/SignedMath.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant HEX_DIGITS = "0123456789abcdef"; uint8 private constant ADDRESS_LENGTH = 20; /** * @dev The `value` string doesn't fit in the specified `length`. */ error StringsInsufficientHexLength(uint256 value, uint256 length); /** * @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), HEX_DIGITS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toStringSigned(int256 value) internal pure returns (string memory) { return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value))); } /** * @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) { uint256 localValue = value; bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = HEX_DIGITS[localValue & 0xf]; localValue >>= 4; } if (localValue != 0) { revert StringsInsufficientHexLength(value, length); } 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); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b)); } }
{ "evmVersion": "paris", "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_maxMintAmountPerAddress","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721IncorrectOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721InsufficientApproval","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC721InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC721InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721InvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC721InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC721InvalidSender","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721NonexistentToken","type":"error"},{"inputs":[],"name":"MintPublicClosed","type":"error"},{"inputs":[],"name":"MintingInvalidAmount","type":"error"},{"inputs":[],"name":"MintingInvalidProof","type":"error"},{"inputs":[],"name":"MintingMaxPerAddress","type":"error"},{"inputs":[],"name":"MintingPaused","type":"error"},{"inputs":[],"name":"MintingSupplyReached","type":"error"},{"inputs":[],"name":"MintingTreasuryMintClosed","type":"error"},{"inputs":[],"name":"MintingWhitelistClaimed","type":"error"},{"inputs":[],"name":"MintingWhitelistClosed","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"TransfersLocked","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":[],"name":"ContractURIUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tier","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"MerkleRootUpdated","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":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PublicMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TreasuryMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WhitelistT1Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WhitelistT2Minted","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"publicOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setContractUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_hiddenMetadataUri","type":"string"}],"name":"setHiddenMetadataUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_bool","type":"bool"}],"name":"setPublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_newMerkleRoot","type":"bytes32"}],"name":"setT1MerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_bool","type":"bool"}],"name":"setT1Whitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_newMerkleRoot","type":"bytes32"}],"name":"setT2MerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_bool","type":"bool"}],"name":"setT2Whitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriSuffix","type":"string"}],"name":"setUriSuffix","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":"address","name":"","type":"address"}],"name":"t1WhitelistClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"t1WhitelistMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"t1WhitelistOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"t2WhitelistClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"t2WhitelistMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"t2WhitelistOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transfersLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"treasuryMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlockTransfers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600990816200004a91906200056a565b50604051806060016040528060358152602001620044a360359139600a90816200007591906200056a565b506001600e60006101000a81548160ff0219169083151502179055506001600e60016101000a81548160ff0219169083151502179055506000600e60026101000a81548160ff0219169083151502179055506000600e60036101000a81548160ff0219169083151502179055506000600e60046101000a81548160ff0219169083151502179055506000600e60056101000a81548160ff0219169083151502179055503480156200012557600080fd5b50604051620044d8380380620044d883398181016040528101906200014b9190620007e6565b6200015b6200022260201b60201c565b848481600090816200016e91906200056a565b5080600190816200018091906200056a565b505050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620001f85760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620001ef9190620008db565b60405180910390fd5b62000209816200022a60201b60201c565b5081600b8190555080600c8190555050505050620008f8565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200037257607f821691505b6020821081036200038857620003876200032a565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620003f27fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620003b3565b620003fe8683620003b3565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b60006200044b620004456200043f8462000416565b62000420565b62000416565b9050919050565b6000819050919050565b62000467836200042a565b6200047f620004768262000452565b848454620003c0565b825550505050565b600090565b6200049662000487565b620004a38184846200045c565b505050565b5b81811015620004cb57620004bf6000826200048c565b600181019050620004a9565b5050565b601f8211156200051a57620004e4816200038e565b620004ef84620003a3565b81016020851015620004ff578190505b620005176200050e85620003a3565b830182620004a8565b50505b505050565b600082821c905092915050565b60006200053f600019846008026200051f565b1980831691505092915050565b60006200055a83836200052c565b9150826002028217905092915050565b6200057582620002f0565b67ffffffffffffffff811115620005915762000590620002fb565b5b6200059d825462000359565b620005aa828285620004cf565b600060209050601f831160018114620005e25760008415620005cd578287015190505b620005d985826200054c565b86555062000649565b601f198416620005f2866200038e565b60005b828110156200061c57848901518255600182019150602085019450602081019050620005f5565b868310156200063c578489015162000638601f8916826200052c565b8355505b6001600288020188555050505b505050505050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b6200068b826200066f565b810181811067ffffffffffffffff82111715620006ad57620006ac620002fb565b5b80604052505050565b6000620006c262000651565b9050620006d0828262000680565b919050565b600067ffffffffffffffff821115620006f357620006f2620002fb565b5b620006fe826200066f565b9050602081019050919050565b60005b838110156200072b5780820151818401526020810190506200070e565b60008484015250505050565b60006200074e6200074884620006d5565b620006b6565b9050828152602081018484840111156200076d576200076c6200066a565b5b6200077a8482856200070b565b509392505050565b600082601f8301126200079a576200079962000665565b5b8151620007ac84826020860162000737565b91505092915050565b620007c08162000416565b8114620007cc57600080fd5b50565b600081519050620007e081620007b5565b92915050565b600080600080608085870312156200080357620008026200065b565b5b600085015167ffffffffffffffff81111562000824576200082362000660565b5b620008328782880162000782565b945050602085015167ffffffffffffffff81111562000856576200085562000660565b5b620008648782880162000782565b93505060406200087787828801620007cf565b92505060606200088a87828801620007cf565b91505092959194509250565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620008c38262000896565b9050919050565b620008d581620008b6565b82525050565b6000602082019050620008f26000830184620008ca565b92915050565b613b9b80620009086000396000f3fe6080604052600436106102805760003560e01c80636352211e1161014f578063b27f6250116100c1578063d5abeb011161007a578063d5abeb0114610962578063e0a808531461098d578063e8a3d485146109b6578063e985e9c5146109e1578063f2fde38b14610a1e578063ff04450414610a4757610287565b8063b27f625014610856578063b88d4fde1461087f578063ba70c515146108a8578063c87b56dd146108d3578063ccb4807b14610910578063d00a0bf91461093957610287565b80638da5cb5b116101135780638da5cb5b1461075c578063935624141461078757806395d89b41146107b05780639b642de1146107db578063a22cb46514610804578063aa35cca31461082d57610287565b80636352211e1461067557806370a08231146106b2578063715018a6146106ef57806374d693841461070657806383f1211b1461073157610287565b806328ac0d6e116101f35780634e471a4b116101ac5780634e471a4b146105655780634fdd43cb1461058e57806351830227146105b7578063572849c4146105e25780635a23dd991461060d5780635c975abb1461064a57610287565b806328ac0d6e1461045757806329464693146104805780633ccfd60b146104bd5780633db88558146104d45780633e537d99146104ff57806342842e0e1461053c57610287565b80630e2d56cf116102455780630e2d56cf1461038557806316ba10e0146103ae57806316c38b3c146103d757806321842be31461040057806323b872dd1461041757806326092b831461044057610287565b80629a9b7b1461028c57806301ffc9a7146102b757806306fdde03146102f4578063081812fc1461031f578063095ea7b31461035c57610287565b3661028757005b600080fd5b34801561029857600080fd5b506102a1610a70565b6040516102ae9190612beb565b60405180910390f35b3480156102c357600080fd5b506102de60048036038101906102d99190612c72565b610a76565b6040516102eb9190612cba565b60405180910390f35b34801561030057600080fd5b50610309610b58565b6040516103169190612d65565b60405180910390f35b34801561032b57600080fd5b5061034660048036038101906103419190612db3565b610bea565b6040516103539190612e21565b60405180910390f35b34801561036857600080fd5b50610383600480360381019061037e9190612e68565b610c06565b005b34801561039157600080fd5b506103ac60048036038101906103a79190612ed4565b610c1c565b005b3480156103ba57600080fd5b506103d560048036038101906103d09190613036565b610c41565b005b3480156103e357600080fd5b506103fe60048036038101906103f99190612ed4565b610c5c565b005b34801561040c57600080fd5b50610415610c81565b005b34801561042357600080fd5b5061043e6004803603810190610439919061307f565b610ca6565b005b34801561044c57600080fd5b50610455610da8565b005b34801561046357600080fd5b5061047e60048036038101906104799190613108565b610e00565b005b34801561048c57600080fd5b506104a760048036038101906104a29190613135565b610e4c565b6040516104b49190612cba565b60405180910390f35b3480156104c957600080fd5b506104d2610e6c565b005b3480156104e057600080fd5b506104e9610ef4565b6040516104f69190612cba565b60405180910390f35b34801561050b57600080fd5b5061052660048036038101906105219190613135565b610f07565b6040516105339190612cba565b60405180910390f35b34801561054857600080fd5b50610563600480360381019061055e919061307f565b610f27565b005b34801561057157600080fd5b5061058c60048036038101906105879190613108565b610f47565b005b34801561059a57600080fd5b506105b560048036038101906105b09190613036565b610f93565b005b3480156105c357600080fd5b506105cc610fae565b6040516105d99190612cba565b60405180910390f35b3480156105ee57600080fd5b506105f7610fc1565b6040516106049190612beb565b60405180910390f35b34801561061957600080fd5b50610634600480360381019061062f91906131c2565b610fc7565b6040516106419190612cba565b60405180910390f35b34801561065657600080fd5b5061065f6110a9565b60405161066c9190612cba565b60405180910390f35b34801561068157600080fd5b5061069c60048036038101906106979190612db3565b6110bc565b6040516106a99190612e21565b60405180910390f35b3480156106be57600080fd5b506106d960048036038101906106d49190613135565b6110ce565b6040516106e69190612beb565b60405180910390f35b3480156106fb57600080fd5b50610704611188565b005b34801561071257600080fd5b5061071b61119c565b6040516107289190612cba565b60405180910390f35b34801561073d57600080fd5b506107466111af565b6040516107539190612cba565b60405180910390f35b34801561076857600080fd5b506107716111c2565b60405161077e9190612e21565b60405180910390f35b34801561079357600080fd5b506107ae60048036038101906107a99190613222565b6111ec565b005b3480156107bc57600080fd5b506107c56113e7565b6040516107d29190612d65565b60405180910390f35b3480156107e757600080fd5b5061080260048036038101906107fd9190613036565b611479565b005b34801561081057600080fd5b5061082b6004803603810190610826919061326f565b611494565b005b34801561083957600080fd5b50610854600480360381019061084f9190612e68565b6114aa565b005b34801561086257600080fd5b5061087d60048036038101906108789190612ed4565b61152f565b005b34801561088b57600080fd5b506108a660048036038101906108a19190613350565b611554565b005b3480156108b457600080fd5b506108bd611571565b6040516108ca9190612cba565b60405180910390f35b3480156108df57600080fd5b506108fa60048036038101906108f59190612db3565b611584565b6040516109079190612d65565b60405180910390f35b34801561091c57600080fd5b5061093760048036038101906109329190613036565b611695565b005b34801561094557600080fd5b50610960600480360381019061095b9190613222565b6116dc565b005b34801561096e57600080fd5b506109776118d7565b6040516109849190612beb565b60405180910390f35b34801561099957600080fd5b506109b460048036038101906109af9190612ed4565b6118dd565b005b3480156109c257600080fd5b506109cb611902565b6040516109d89190612d65565b60405180910390f35b3480156109ed57600080fd5b50610a086004803603810190610a0391906133d3565b611994565b604051610a159190612cba565b60405180910390f35b348015610a2a57600080fd5b50610a456004803603810190610a409190613135565b611a28565b005b348015610a5357600080fd5b50610a6e6004803603810190610a699190612ed4565b611aae565b005b600d5481565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b4157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b515750610b5082611ad3565b5b9050919050565b606060008054610b6790613442565b80601f0160208091040260200160405190810160405280929190818152602001828054610b9390613442565b8015610be05780601f10610bb557610100808354040283529160200191610be0565b820191906000526020600020905b815481529060010190602001808311610bc357829003601f168201915b5050505050905090565b6000610bf582611b3d565b50610bff82611bc5565b9050919050565b610c188282610c13611c02565b611c0a565b5050565b610c24611c1c565b80600e60056101000a81548160ff02191690831515021790555050565b610c49611c1c565b8060099081610c58919061361f565b5050565b610c64611c1c565b80600e60016101000a81548160ff02191690831515021790555050565b610c89611c1c565b6000600e60006101000a81548160ff021916908315150217905550565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d185760006040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401610d0f9190612e21565b60405180910390fd5b6000610d2c8383610d27611c02565b611ca3565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610da2578382826040517f64283d7b000000000000000000000000000000000000000000000000000000008152600401610d99939291906136f1565b60405180910390fd5b50505050565b600e60059054906101000a900460ff16610dee576040517ff1e19a8300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610df6611d46565b610dfe611e23565b565b610e08611c1c565b80600f819055507f9ff79792a92b66fee090acb66e07837a2edb31ee6b9780fa551fd04b79dffcd2600182604051610e41929190613772565b60405180910390a150565b60116020528060005260406000206000915054906101000a900460ff1681565b610e74611c1c565b6000610e7e6111c2565b73ffffffffffffffffffffffffffffffffffffffff1647604051610ea1906137cc565b60006040518083038185875af1925050503d8060008114610ede576040519150601f19603f3d011682016040523d82523d6000602084013e610ee3565b606091505b5050905080610ef157600080fd5b50565b600e60049054906101000a900460ff1681565b60126020528060005260406000206000915054906101000a900460ff1681565b610f4283838360405180602001604052806000815250611554565b505050565b610f4f611c1c565b806010819055507f9ff79792a92b66fee090acb66e07837a2edb31ee6b9780fa551fd04b79dffcd2600282604051610f8892919061381c565b60405180910390a150565b610f9b611c1c565b80600a9081610faa919061361f565b5050565b600e60029054906101000a900460ff1681565b600c5481565b60008084604051602001610fdb919061388d565b604051602081830303815290604052805190602001209050611041848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600f5483611e48565b156110505760019150506110a2565b61109e848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060105483611e48565b9150505b9392505050565b600e60019054906101000a900460ff1681565b60006110c782611b3d565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036111415760006040517f89c62b640000000000000000000000000000000000000000000000000000000081526004016111389190612e21565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611190611c1c565b61119a6000611e5f565b565b600e60039054906101000a900460ff1681565b600e60009054906101000a900460ff1681565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600e60039054906101000a900460ff16611232576040517f8c040b7300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6011600061123e611c02565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156112bd576040517f1adfcbe200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6112c5611d46565b60006112cf611c02565b6040516020016112df919061388d565b604051602081830303815290604052805190602001209050611345838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600f5483611e48565b61137b576040517f54c7a95900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600160116000611389611c02565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506113e2611e23565b505050565b6060600180546113f690613442565b80601f016020809104026020016040519081016040528092919081815260200182805461142290613442565b801561146f5780601f106114445761010080835404028352916020019161146f565b820191906000526020600020905b81548152906001019060200180831161145257829003601f168201915b5050505050905090565b611481611c1c565b8060089081611490919061361f565b5050565b6114a661149f611c02565b8383611f25565b5050565b6114b2611c1c565b600e60009054906101000a900460ff166114f8576040517f3a45492200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8181101561152a5761150f83600d54612094565b600d60008154600101919050819055508060010190506114fb565b505050565b611537611c1c565b80600e60036101000a81548160ff02191690831515021790555050565b61155f848484610ca6565b61156b848484846120b2565b50505050565b600e60059054906101000a900460ff1681565b606060001515600e60029054906101000a900460ff1615150361163357600a80546115ae90613442565b80601f01602080910402602001604051908101604052809291908181526020018280546115da90613442565b80156116275780601f106115fc57610100808354040283529160200191611627565b820191906000526020600020905b81548152906001019060200180831161160a57829003601f168201915b50505050509050611690565b60006008805461164290613442565b90501161165e576040518060200160405280600081525061168d565b600861166983612269565b600960405160200161167d93929190613967565b6040516020818303038152906040525b90505b919050565b61169d611c1c565b80600790816116ac919061361f565b507fa5d4097edda6d87cb9329af83fb3712ef77eeb13738ffe43cc35a4ce305ad96260405160405180910390a150565b600e60049054906101000a900460ff16611722576040517f8c040b7300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6012600061172e611c02565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156117ad576040517f1adfcbe200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6117b5611d46565b60006117bf611c02565b6040516020016117cf919061388d565b604051602081830303815290604052805190602001209050611835838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060105483611e48565b61186b576040517f54c7a95900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600160126000611879611c02565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506118d2611e23565b505050565b600b5481565b6118e5611c1c565b80600e60026101000a81548160ff02191690831515021790555050565b60606007805461191190613442565b80601f016020809104026020016040519081016040528092919081815260200182805461193d90613442565b801561198a5780601f1061195f5761010080835404028352916020019161198a565b820191906000526020600020905b81548152906001019060200180831161196d57829003601f168201915b5050505050905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611a30611c1c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611aa25760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401611a999190612e21565b60405180910390fd5b611aab81611e5f565b50565b611ab6611c1c565b80600e60046101000a81548160ff02191690831515021790555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600080611b4983612337565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611bbc57826040517f7e273289000000000000000000000000000000000000000000000000000000008152600401611bb39190612beb565b60405180910390fd5b80915050919050565b60006004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600033905090565b611c178383836001612374565b505050565b611c24611c02565b73ffffffffffffffffffffffffffffffffffffffff16611c426111c2565b73ffffffffffffffffffffffffffffffffffffffff1614611ca157611c65611c02565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401611c989190612e21565b60405180910390fd5b565b600080611caf84612337565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614158015611cfa5750600e60009054906101000a900460ff165b15611d31576040517fdb89e3f400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611d3c858585612539565b9150509392505050565b600e60019054906101000a900460ff1615611d8d576040517feb56075600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c546001611da2611d9d611c02565b6110ce565b611dac91906139c7565b1115611de4576040517f132b933b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b54600d5410611e21576040517fbef0723e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b611e36611e2e611c02565b600d54612094565b600d6000815460010191905081905550565b600082611e558584612753565b1490509392505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611f9657816040517f5b08ba18000000000000000000000000000000000000000000000000000000008152600401611f8d9190612e21565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516120879190612cba565b60405180910390a3505050565b6120ae8282604051806020016040528060008152506127a3565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff163b1115612263578273ffffffffffffffffffffffffffffffffffffffff1663150b7a026120f6611c02565b8685856040518563ffffffff1660e01b81526004016121189493929190613a50565b6020604051808303816000875af192505050801561215457506040513d601f19601f820116820180604052508101906121519190613ab1565b60015b6121d8573d8060008114612184576040519150601f19603f3d011682016040523d82523d6000602084013e612189565b606091505b5060008151036121d057836040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016121c79190612e21565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461226157836040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016122589190612e21565b60405180910390fd5b505b50505050565b606060006001612278846127bf565b01905060008167ffffffffffffffff81111561229757612296612f0b565b5b6040519080825280601f01601f1916602001820160405280156122c95781602001600182028036833780820191505090505b509050600082602001820190505b60011561232c578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816123205761231f613ade565b5b049450600085036122d7575b819350505050919050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b80806123ad5750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b156124e15760006123bd84611b3d565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561242857508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b801561243b57506124398184611994565b155b1561247d57826040517fa9fbf51f0000000000000000000000000000000000000000000000000000000081526004016124749190612e21565b60405180910390fd5b81156124df57838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b836004600085815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b60008061254584612337565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461258757612586818486612912565b5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612618576125c9600085600080612374565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161461269b576001600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b846002600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4809150509392505050565b60008082905060005b8451811015612798576127898286838151811061277c5761277b613b0d565b5b60200260200101516129d6565b9150808060010191505061275c565b508091505092915050565b6127ad8383612a01565b6127ba60008484846120b2565b505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061281d577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161281357612812613ade565b5b0492506040810190505b6d04ee2d6d415b85acef8100000000831061285a576d04ee2d6d415b85acef810000000083816128505761284f613ade565b5b0492506020810190505b662386f26fc10000831061288957662386f26fc10000838161287f5761287e613ade565b5b0492506010810190505b6305f5e10083106128b2576305f5e10083816128a8576128a7613ade565b5b0492506008810190505b61271083106128d75761271083816128cd576128cc613ade565b5b0492506004810190505b606483106128fa57606483816128f0576128ef613ade565b5b0492506002810190505b600a8310612909576001810190505b80915050919050565b61291d838383612afa565b6129d157600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361299257806040517f7e2732890000000000000000000000000000000000000000000000000000000081526004016129899190612beb565b60405180910390fd5b81816040517f177e802f0000000000000000000000000000000000000000000000000000000081526004016129c8929190613b3c565b60405180910390fd5b505050565b60008183106129ee576129e98284612bbb565b6129f9565b6129f88383612bbb565b5b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612a735760006040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401612a6a9190612e21565b60405180910390fd5b6000612a8183836000611ca3565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612af55760006040517f73c6ac6e000000000000000000000000000000000000000000000000000000008152600401612aec9190612e21565b60405180910390fd5b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015612bb257508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612b735750612b728484611994565b5b80612bb157508273ffffffffffffffffffffffffffffffffffffffff16612b9983611bc5565b73ffffffffffffffffffffffffffffffffffffffff16145b5b90509392505050565b600082600052816020526040600020905092915050565b6000819050919050565b612be581612bd2565b82525050565b6000602082019050612c006000830184612bdc565b92915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612c4f81612c1a565b8114612c5a57600080fd5b50565b600081359050612c6c81612c46565b92915050565b600060208284031215612c8857612c87612c10565b5b6000612c9684828501612c5d565b91505092915050565b60008115159050919050565b612cb481612c9f565b82525050565b6000602082019050612ccf6000830184612cab565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612d0f578082015181840152602081019050612cf4565b60008484015250505050565b6000601f19601f8301169050919050565b6000612d3782612cd5565b612d418185612ce0565b9350612d51818560208601612cf1565b612d5a81612d1b565b840191505092915050565b60006020820190508181036000830152612d7f8184612d2c565b905092915050565b612d9081612bd2565b8114612d9b57600080fd5b50565b600081359050612dad81612d87565b92915050565b600060208284031215612dc957612dc8612c10565b5b6000612dd784828501612d9e565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612e0b82612de0565b9050919050565b612e1b81612e00565b82525050565b6000602082019050612e366000830184612e12565b92915050565b612e4581612e00565b8114612e5057600080fd5b50565b600081359050612e6281612e3c565b92915050565b60008060408385031215612e7f57612e7e612c10565b5b6000612e8d85828601612e53565b9250506020612e9e85828601612d9e565b9150509250929050565b612eb181612c9f565b8114612ebc57600080fd5b50565b600081359050612ece81612ea8565b92915050565b600060208284031215612eea57612ee9612c10565b5b6000612ef884828501612ebf565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612f4382612d1b565b810181811067ffffffffffffffff82111715612f6257612f61612f0b565b5b80604052505050565b6000612f75612c06565b9050612f818282612f3a565b919050565b600067ffffffffffffffff821115612fa157612fa0612f0b565b5b612faa82612d1b565b9050602081019050919050565b82818337600083830152505050565b6000612fd9612fd484612f86565b612f6b565b905082815260208101848484011115612ff557612ff4612f06565b5b613000848285612fb7565b509392505050565b600082601f83011261301d5761301c612f01565b5b813561302d848260208601612fc6565b91505092915050565b60006020828403121561304c5761304b612c10565b5b600082013567ffffffffffffffff81111561306a57613069612c15565b5b61307684828501613008565b91505092915050565b60008060006060848603121561309857613097612c10565b5b60006130a686828701612e53565b93505060206130b786828701612e53565b92505060406130c886828701612d9e565b9150509250925092565b6000819050919050565b6130e5816130d2565b81146130f057600080fd5b50565b600081359050613102816130dc565b92915050565b60006020828403121561311e5761311d612c10565b5b600061312c848285016130f3565b91505092915050565b60006020828403121561314b5761314a612c10565b5b600061315984828501612e53565b91505092915050565b600080fd5b600080fd5b60008083601f84011261318257613181612f01565b5b8235905067ffffffffffffffff81111561319f5761319e613162565b5b6020830191508360208202830111156131bb576131ba613167565b5b9250929050565b6000806000604084860312156131db576131da612c10565b5b60006131e986828701612e53565b935050602084013567ffffffffffffffff81111561320a57613209612c15565b5b6132168682870161316c565b92509250509250925092565b6000806020838503121561323957613238612c10565b5b600083013567ffffffffffffffff81111561325757613256612c15565b5b6132638582860161316c565b92509250509250929050565b6000806040838503121561328657613285612c10565b5b600061329485828601612e53565b92505060206132a585828601612ebf565b9150509250929050565b600067ffffffffffffffff8211156132ca576132c9612f0b565b5b6132d382612d1b565b9050602081019050919050565b60006132f36132ee846132af565b612f6b565b90508281526020810184848401111561330f5761330e612f06565b5b61331a848285612fb7565b509392505050565b600082601f83011261333757613336612f01565b5b81356133478482602086016132e0565b91505092915050565b6000806000806080858703121561336a57613369612c10565b5b600061337887828801612e53565b945050602061338987828801612e53565b935050604061339a87828801612d9e565b925050606085013567ffffffffffffffff8111156133bb576133ba612c15565b5b6133c787828801613322565b91505092959194509250565b600080604083850312156133ea576133e9612c10565b5b60006133f885828601612e53565b925050602061340985828601612e53565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061345a57607f821691505b60208210810361346d5761346c613413565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026134d57fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613498565b6134df8683613498565b95508019841693508086168417925050509392505050565b6000819050919050565b600061351c61351761351284612bd2565b6134f7565b612bd2565b9050919050565b6000819050919050565b61353683613501565b61354a61354282613523565b8484546134a5565b825550505050565b600090565b61355f613552565b61356a81848461352d565b505050565b5b8181101561358e57613583600082613557565b600181019050613570565b5050565b601f8211156135d3576135a481613473565b6135ad84613488565b810160208510156135bc578190505b6135d06135c885613488565b83018261356f565b50505b505050565b600082821c905092915050565b60006135f6600019846008026135d8565b1980831691505092915050565b600061360f83836135e5565b9150826002028217905092915050565b61362882612cd5565b67ffffffffffffffff81111561364157613640612f0b565b5b61364b8254613442565b613656828285613592565b600060209050601f8311600181146136895760008415613677578287015190505b6136818582613603565b8655506136e9565b601f19841661369786613473565b60005b828110156136bf5784890151825560018201915060208501945060208101905061369a565b868310156136dc57848901516136d8601f8916826135e5565b8355505b6001600288020188555050505b505050505050565b60006060820190506137066000830186612e12565b6137136020830185612bdc565b6137206040830184612e12565b949350505050565b6000819050919050565b600061374d61374861374384613728565b6134f7565b612bd2565b9050919050565b61375d81613732565b82525050565b61376c816130d2565b82525050565b60006040820190506137876000830185613754565b6137946020830184613763565b9392505050565b600081905092915050565b50565b60006137b660008361379b565b91506137c1826137a6565b600082019050919050565b60006137d7826137a9565b9150819050919050565b6000819050919050565b60006138066138016137fc846137e1565b6134f7565b612bd2565b9050919050565b613816816137eb565b82525050565b6000604082019050613831600083018561380d565b61383e6020830184613763565b9392505050565b60008160601b9050919050565b600061385d82613845565b9050919050565b600061386f82613852565b9050919050565b61388761388282612e00565b613864565b82525050565b60006138998284613876565b60148201915081905092915050565b600081905092915050565b600081546138c081613442565b6138ca81866138a8565b945060018216600081146138e557600181146138fa5761392d565b60ff198316865281151582028601935061392d565b61390385613473565b60005b8381101561392557815481890152600182019150602081019050613906565b838801955050505b50505092915050565b600061394182612cd5565b61394b81856138a8565b935061395b818560208601612cf1565b80840191505092915050565b600061397382866138b3565b915061397f8285613936565b915061398b82846138b3565b9150819050949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006139d282612bd2565b91506139dd83612bd2565b92508282019050808211156139f5576139f4613998565b5b92915050565b600081519050919050565b600082825260208201905092915050565b6000613a22826139fb565b613a2c8185613a06565b9350613a3c818560208601612cf1565b613a4581612d1b565b840191505092915050565b6000608082019050613a656000830187612e12565b613a726020830186612e12565b613a7f6040830185612bdc565b8181036060830152613a918184613a17565b905095945050505050565b600081519050613aab81612c46565b92915050565b600060208284031215613ac757613ac6612c10565b5b6000613ad584828501613a9c565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000604082019050613b516000830185612e12565b613b5e6020830184612bdc565b939250505056fea2646970667358221220f097f491298ba109c3350c423bd71c9c075ac4e756504547b9fdb1a0aae07a8b64736f6c63430008180033697066733a2f2f516d6139586e4563465461465766336a7964667455334d59596976467161447934436d3165463147617a70775969000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000d050000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c4c495a4c41554e4348504144000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064c41554e43480000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102805760003560e01c80636352211e1161014f578063b27f6250116100c1578063d5abeb011161007a578063d5abeb0114610962578063e0a808531461098d578063e8a3d485146109b6578063e985e9c5146109e1578063f2fde38b14610a1e578063ff04450414610a4757610287565b8063b27f625014610856578063b88d4fde1461087f578063ba70c515146108a8578063c87b56dd146108d3578063ccb4807b14610910578063d00a0bf91461093957610287565b80638da5cb5b116101135780638da5cb5b1461075c578063935624141461078757806395d89b41146107b05780639b642de1146107db578063a22cb46514610804578063aa35cca31461082d57610287565b80636352211e1461067557806370a08231146106b2578063715018a6146106ef57806374d693841461070657806383f1211b1461073157610287565b806328ac0d6e116101f35780634e471a4b116101ac5780634e471a4b146105655780634fdd43cb1461058e57806351830227146105b7578063572849c4146105e25780635a23dd991461060d5780635c975abb1461064a57610287565b806328ac0d6e1461045757806329464693146104805780633ccfd60b146104bd5780633db88558146104d45780633e537d99146104ff57806342842e0e1461053c57610287565b80630e2d56cf116102455780630e2d56cf1461038557806316ba10e0146103ae57806316c38b3c146103d757806321842be31461040057806323b872dd1461041757806326092b831461044057610287565b80629a9b7b1461028c57806301ffc9a7146102b757806306fdde03146102f4578063081812fc1461031f578063095ea7b31461035c57610287565b3661028757005b600080fd5b34801561029857600080fd5b506102a1610a70565b6040516102ae9190612beb565b60405180910390f35b3480156102c357600080fd5b506102de60048036038101906102d99190612c72565b610a76565b6040516102eb9190612cba565b60405180910390f35b34801561030057600080fd5b50610309610b58565b6040516103169190612d65565b60405180910390f35b34801561032b57600080fd5b5061034660048036038101906103419190612db3565b610bea565b6040516103539190612e21565b60405180910390f35b34801561036857600080fd5b50610383600480360381019061037e9190612e68565b610c06565b005b34801561039157600080fd5b506103ac60048036038101906103a79190612ed4565b610c1c565b005b3480156103ba57600080fd5b506103d560048036038101906103d09190613036565b610c41565b005b3480156103e357600080fd5b506103fe60048036038101906103f99190612ed4565b610c5c565b005b34801561040c57600080fd5b50610415610c81565b005b34801561042357600080fd5b5061043e6004803603810190610439919061307f565b610ca6565b005b34801561044c57600080fd5b50610455610da8565b005b34801561046357600080fd5b5061047e60048036038101906104799190613108565b610e00565b005b34801561048c57600080fd5b506104a760048036038101906104a29190613135565b610e4c565b6040516104b49190612cba565b60405180910390f35b3480156104c957600080fd5b506104d2610e6c565b005b3480156104e057600080fd5b506104e9610ef4565b6040516104f69190612cba565b60405180910390f35b34801561050b57600080fd5b5061052660048036038101906105219190613135565b610f07565b6040516105339190612cba565b60405180910390f35b34801561054857600080fd5b50610563600480360381019061055e919061307f565b610f27565b005b34801561057157600080fd5b5061058c60048036038101906105879190613108565b610f47565b005b34801561059a57600080fd5b506105b560048036038101906105b09190613036565b610f93565b005b3480156105c357600080fd5b506105cc610fae565b6040516105d99190612cba565b60405180910390f35b3480156105ee57600080fd5b506105f7610fc1565b6040516106049190612beb565b60405180910390f35b34801561061957600080fd5b50610634600480360381019061062f91906131c2565b610fc7565b6040516106419190612cba565b60405180910390f35b34801561065657600080fd5b5061065f6110a9565b60405161066c9190612cba565b60405180910390f35b34801561068157600080fd5b5061069c60048036038101906106979190612db3565b6110bc565b6040516106a99190612e21565b60405180910390f35b3480156106be57600080fd5b506106d960048036038101906106d49190613135565b6110ce565b6040516106e69190612beb565b60405180910390f35b3480156106fb57600080fd5b50610704611188565b005b34801561071257600080fd5b5061071b61119c565b6040516107289190612cba565b60405180910390f35b34801561073d57600080fd5b506107466111af565b6040516107539190612cba565b60405180910390f35b34801561076857600080fd5b506107716111c2565b60405161077e9190612e21565b60405180910390f35b34801561079357600080fd5b506107ae60048036038101906107a99190613222565b6111ec565b005b3480156107bc57600080fd5b506107c56113e7565b6040516107d29190612d65565b60405180910390f35b3480156107e757600080fd5b5061080260048036038101906107fd9190613036565b611479565b005b34801561081057600080fd5b5061082b6004803603810190610826919061326f565b611494565b005b34801561083957600080fd5b50610854600480360381019061084f9190612e68565b6114aa565b005b34801561086257600080fd5b5061087d60048036038101906108789190612ed4565b61152f565b005b34801561088b57600080fd5b506108a660048036038101906108a19190613350565b611554565b005b3480156108b457600080fd5b506108bd611571565b6040516108ca9190612cba565b60405180910390f35b3480156108df57600080fd5b506108fa60048036038101906108f59190612db3565b611584565b6040516109079190612d65565b60405180910390f35b34801561091c57600080fd5b5061093760048036038101906109329190613036565b611695565b005b34801561094557600080fd5b50610960600480360381019061095b9190613222565b6116dc565b005b34801561096e57600080fd5b506109776118d7565b6040516109849190612beb565b60405180910390f35b34801561099957600080fd5b506109b460048036038101906109af9190612ed4565b6118dd565b005b3480156109c257600080fd5b506109cb611902565b6040516109d89190612d65565b60405180910390f35b3480156109ed57600080fd5b50610a086004803603810190610a0391906133d3565b611994565b604051610a159190612cba565b60405180910390f35b348015610a2a57600080fd5b50610a456004803603810190610a409190613135565b611a28565b005b348015610a5357600080fd5b50610a6e6004803603810190610a699190612ed4565b611aae565b005b600d5481565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b4157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b515750610b5082611ad3565b5b9050919050565b606060008054610b6790613442565b80601f0160208091040260200160405190810160405280929190818152602001828054610b9390613442565b8015610be05780601f10610bb557610100808354040283529160200191610be0565b820191906000526020600020905b815481529060010190602001808311610bc357829003601f168201915b5050505050905090565b6000610bf582611b3d565b50610bff82611bc5565b9050919050565b610c188282610c13611c02565b611c0a565b5050565b610c24611c1c565b80600e60056101000a81548160ff02191690831515021790555050565b610c49611c1c565b8060099081610c58919061361f565b5050565b610c64611c1c565b80600e60016101000a81548160ff02191690831515021790555050565b610c89611c1c565b6000600e60006101000a81548160ff021916908315150217905550565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d185760006040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401610d0f9190612e21565b60405180910390fd5b6000610d2c8383610d27611c02565b611ca3565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610da2578382826040517f64283d7b000000000000000000000000000000000000000000000000000000008152600401610d99939291906136f1565b60405180910390fd5b50505050565b600e60059054906101000a900460ff16610dee576040517ff1e19a8300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610df6611d46565b610dfe611e23565b565b610e08611c1c565b80600f819055507f9ff79792a92b66fee090acb66e07837a2edb31ee6b9780fa551fd04b79dffcd2600182604051610e41929190613772565b60405180910390a150565b60116020528060005260406000206000915054906101000a900460ff1681565b610e74611c1c565b6000610e7e6111c2565b73ffffffffffffffffffffffffffffffffffffffff1647604051610ea1906137cc565b60006040518083038185875af1925050503d8060008114610ede576040519150601f19603f3d011682016040523d82523d6000602084013e610ee3565b606091505b5050905080610ef157600080fd5b50565b600e60049054906101000a900460ff1681565b60126020528060005260406000206000915054906101000a900460ff1681565b610f4283838360405180602001604052806000815250611554565b505050565b610f4f611c1c565b806010819055507f9ff79792a92b66fee090acb66e07837a2edb31ee6b9780fa551fd04b79dffcd2600282604051610f8892919061381c565b60405180910390a150565b610f9b611c1c565b80600a9081610faa919061361f565b5050565b600e60029054906101000a900460ff1681565b600c5481565b60008084604051602001610fdb919061388d565b604051602081830303815290604052805190602001209050611041848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600f5483611e48565b156110505760019150506110a2565b61109e848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060105483611e48565b9150505b9392505050565b600e60019054906101000a900460ff1681565b60006110c782611b3d565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036111415760006040517f89c62b640000000000000000000000000000000000000000000000000000000081526004016111389190612e21565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611190611c1c565b61119a6000611e5f565b565b600e60039054906101000a900460ff1681565b600e60009054906101000a900460ff1681565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600e60039054906101000a900460ff16611232576040517f8c040b7300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6011600061123e611c02565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156112bd576040517f1adfcbe200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6112c5611d46565b60006112cf611c02565b6040516020016112df919061388d565b604051602081830303815290604052805190602001209050611345838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600f5483611e48565b61137b576040517f54c7a95900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600160116000611389611c02565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506113e2611e23565b505050565b6060600180546113f690613442565b80601f016020809104026020016040519081016040528092919081815260200182805461142290613442565b801561146f5780601f106114445761010080835404028352916020019161146f565b820191906000526020600020905b81548152906001019060200180831161145257829003601f168201915b5050505050905090565b611481611c1c565b8060089081611490919061361f565b5050565b6114a661149f611c02565b8383611f25565b5050565b6114b2611c1c565b600e60009054906101000a900460ff166114f8576040517f3a45492200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8181101561152a5761150f83600d54612094565b600d60008154600101919050819055508060010190506114fb565b505050565b611537611c1c565b80600e60036101000a81548160ff02191690831515021790555050565b61155f848484610ca6565b61156b848484846120b2565b50505050565b600e60059054906101000a900460ff1681565b606060001515600e60029054906101000a900460ff1615150361163357600a80546115ae90613442565b80601f01602080910402602001604051908101604052809291908181526020018280546115da90613442565b80156116275780601f106115fc57610100808354040283529160200191611627565b820191906000526020600020905b81548152906001019060200180831161160a57829003601f168201915b50505050509050611690565b60006008805461164290613442565b90501161165e576040518060200160405280600081525061168d565b600861166983612269565b600960405160200161167d93929190613967565b6040516020818303038152906040525b90505b919050565b61169d611c1c565b80600790816116ac919061361f565b507fa5d4097edda6d87cb9329af83fb3712ef77eeb13738ffe43cc35a4ce305ad96260405160405180910390a150565b600e60049054906101000a900460ff16611722576040517f8c040b7300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6012600061172e611c02565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156117ad576040517f1adfcbe200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6117b5611d46565b60006117bf611c02565b6040516020016117cf919061388d565b604051602081830303815290604052805190602001209050611835838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060105483611e48565b61186b576040517f54c7a95900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600160126000611879611c02565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506118d2611e23565b505050565b600b5481565b6118e5611c1c565b80600e60026101000a81548160ff02191690831515021790555050565b60606007805461191190613442565b80601f016020809104026020016040519081016040528092919081815260200182805461193d90613442565b801561198a5780601f1061195f5761010080835404028352916020019161198a565b820191906000526020600020905b81548152906001019060200180831161196d57829003601f168201915b5050505050905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611a30611c1c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611aa25760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401611a999190612e21565b60405180910390fd5b611aab81611e5f565b50565b611ab6611c1c565b80600e60046101000a81548160ff02191690831515021790555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600080611b4983612337565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611bbc57826040517f7e273289000000000000000000000000000000000000000000000000000000008152600401611bb39190612beb565b60405180910390fd5b80915050919050565b60006004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600033905090565b611c178383836001612374565b505050565b611c24611c02565b73ffffffffffffffffffffffffffffffffffffffff16611c426111c2565b73ffffffffffffffffffffffffffffffffffffffff1614611ca157611c65611c02565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401611c989190612e21565b60405180910390fd5b565b600080611caf84612337565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614158015611cfa5750600e60009054906101000a900460ff165b15611d31576040517fdb89e3f400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611d3c858585612539565b9150509392505050565b600e60019054906101000a900460ff1615611d8d576040517feb56075600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c546001611da2611d9d611c02565b6110ce565b611dac91906139c7565b1115611de4576040517f132b933b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b54600d5410611e21576040517fbef0723e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b611e36611e2e611c02565b600d54612094565b600d6000815460010191905081905550565b600082611e558584612753565b1490509392505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611f9657816040517f5b08ba18000000000000000000000000000000000000000000000000000000008152600401611f8d9190612e21565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516120879190612cba565b60405180910390a3505050565b6120ae8282604051806020016040528060008152506127a3565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff163b1115612263578273ffffffffffffffffffffffffffffffffffffffff1663150b7a026120f6611c02565b8685856040518563ffffffff1660e01b81526004016121189493929190613a50565b6020604051808303816000875af192505050801561215457506040513d601f19601f820116820180604052508101906121519190613ab1565b60015b6121d8573d8060008114612184576040519150601f19603f3d011682016040523d82523d6000602084013e612189565b606091505b5060008151036121d057836040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016121c79190612e21565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461226157836040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016122589190612e21565b60405180910390fd5b505b50505050565b606060006001612278846127bf565b01905060008167ffffffffffffffff81111561229757612296612f0b565b5b6040519080825280601f01601f1916602001820160405280156122c95781602001600182028036833780820191505090505b509050600082602001820190505b60011561232c578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816123205761231f613ade565b5b049450600085036122d7575b819350505050919050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b80806123ad5750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b156124e15760006123bd84611b3d565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561242857508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b801561243b57506124398184611994565b155b1561247d57826040517fa9fbf51f0000000000000000000000000000000000000000000000000000000081526004016124749190612e21565b60405180910390fd5b81156124df57838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b836004600085815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b60008061254584612337565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461258757612586818486612912565b5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612618576125c9600085600080612374565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161461269b576001600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b846002600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4809150509392505050565b60008082905060005b8451811015612798576127898286838151811061277c5761277b613b0d565b5b60200260200101516129d6565b9150808060010191505061275c565b508091505092915050565b6127ad8383612a01565b6127ba60008484846120b2565b505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061281d577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161281357612812613ade565b5b0492506040810190505b6d04ee2d6d415b85acef8100000000831061285a576d04ee2d6d415b85acef810000000083816128505761284f613ade565b5b0492506020810190505b662386f26fc10000831061288957662386f26fc10000838161287f5761287e613ade565b5b0492506010810190505b6305f5e10083106128b2576305f5e10083816128a8576128a7613ade565b5b0492506008810190505b61271083106128d75761271083816128cd576128cc613ade565b5b0492506004810190505b606483106128fa57606483816128f0576128ef613ade565b5b0492506002810190505b600a8310612909576001810190505b80915050919050565b61291d838383612afa565b6129d157600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361299257806040517f7e2732890000000000000000000000000000000000000000000000000000000081526004016129899190612beb565b60405180910390fd5b81816040517f177e802f0000000000000000000000000000000000000000000000000000000081526004016129c8929190613b3c565b60405180910390fd5b505050565b60008183106129ee576129e98284612bbb565b6129f9565b6129f88383612bbb565b5b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612a735760006040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401612a6a9190612e21565b60405180910390fd5b6000612a8183836000611ca3565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612af55760006040517f73c6ac6e000000000000000000000000000000000000000000000000000000008152600401612aec9190612e21565b60405180910390fd5b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015612bb257508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612b735750612b728484611994565b5b80612bb157508273ffffffffffffffffffffffffffffffffffffffff16612b9983611bc5565b73ffffffffffffffffffffffffffffffffffffffff16145b5b90509392505050565b600082600052816020526040600020905092915050565b6000819050919050565b612be581612bd2565b82525050565b6000602082019050612c006000830184612bdc565b92915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612c4f81612c1a565b8114612c5a57600080fd5b50565b600081359050612c6c81612c46565b92915050565b600060208284031215612c8857612c87612c10565b5b6000612c9684828501612c5d565b91505092915050565b60008115159050919050565b612cb481612c9f565b82525050565b6000602082019050612ccf6000830184612cab565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612d0f578082015181840152602081019050612cf4565b60008484015250505050565b6000601f19601f8301169050919050565b6000612d3782612cd5565b612d418185612ce0565b9350612d51818560208601612cf1565b612d5a81612d1b565b840191505092915050565b60006020820190508181036000830152612d7f8184612d2c565b905092915050565b612d9081612bd2565b8114612d9b57600080fd5b50565b600081359050612dad81612d87565b92915050565b600060208284031215612dc957612dc8612c10565b5b6000612dd784828501612d9e565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612e0b82612de0565b9050919050565b612e1b81612e00565b82525050565b6000602082019050612e366000830184612e12565b92915050565b612e4581612e00565b8114612e5057600080fd5b50565b600081359050612e6281612e3c565b92915050565b60008060408385031215612e7f57612e7e612c10565b5b6000612e8d85828601612e53565b9250506020612e9e85828601612d9e565b9150509250929050565b612eb181612c9f565b8114612ebc57600080fd5b50565b600081359050612ece81612ea8565b92915050565b600060208284031215612eea57612ee9612c10565b5b6000612ef884828501612ebf565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612f4382612d1b565b810181811067ffffffffffffffff82111715612f6257612f61612f0b565b5b80604052505050565b6000612f75612c06565b9050612f818282612f3a565b919050565b600067ffffffffffffffff821115612fa157612fa0612f0b565b5b612faa82612d1b565b9050602081019050919050565b82818337600083830152505050565b6000612fd9612fd484612f86565b612f6b565b905082815260208101848484011115612ff557612ff4612f06565b5b613000848285612fb7565b509392505050565b600082601f83011261301d5761301c612f01565b5b813561302d848260208601612fc6565b91505092915050565b60006020828403121561304c5761304b612c10565b5b600082013567ffffffffffffffff81111561306a57613069612c15565b5b61307684828501613008565b91505092915050565b60008060006060848603121561309857613097612c10565b5b60006130a686828701612e53565b93505060206130b786828701612e53565b92505060406130c886828701612d9e565b9150509250925092565b6000819050919050565b6130e5816130d2565b81146130f057600080fd5b50565b600081359050613102816130dc565b92915050565b60006020828403121561311e5761311d612c10565b5b600061312c848285016130f3565b91505092915050565b60006020828403121561314b5761314a612c10565b5b600061315984828501612e53565b91505092915050565b600080fd5b600080fd5b60008083601f84011261318257613181612f01565b5b8235905067ffffffffffffffff81111561319f5761319e613162565b5b6020830191508360208202830111156131bb576131ba613167565b5b9250929050565b6000806000604084860312156131db576131da612c10565b5b60006131e986828701612e53565b935050602084013567ffffffffffffffff81111561320a57613209612c15565b5b6132168682870161316c565b92509250509250925092565b6000806020838503121561323957613238612c10565b5b600083013567ffffffffffffffff81111561325757613256612c15565b5b6132638582860161316c565b92509250509250929050565b6000806040838503121561328657613285612c10565b5b600061329485828601612e53565b92505060206132a585828601612ebf565b9150509250929050565b600067ffffffffffffffff8211156132ca576132c9612f0b565b5b6132d382612d1b565b9050602081019050919050565b60006132f36132ee846132af565b612f6b565b90508281526020810184848401111561330f5761330e612f06565b5b61331a848285612fb7565b509392505050565b600082601f83011261333757613336612f01565b5b81356133478482602086016132e0565b91505092915050565b6000806000806080858703121561336a57613369612c10565b5b600061337887828801612e53565b945050602061338987828801612e53565b935050604061339a87828801612d9e565b925050606085013567ffffffffffffffff8111156133bb576133ba612c15565b5b6133c787828801613322565b91505092959194509250565b600080604083850312156133ea576133e9612c10565b5b60006133f885828601612e53565b925050602061340985828601612e53565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061345a57607f821691505b60208210810361346d5761346c613413565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026134d57fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613498565b6134df8683613498565b95508019841693508086168417925050509392505050565b6000819050919050565b600061351c61351761351284612bd2565b6134f7565b612bd2565b9050919050565b6000819050919050565b61353683613501565b61354a61354282613523565b8484546134a5565b825550505050565b600090565b61355f613552565b61356a81848461352d565b505050565b5b8181101561358e57613583600082613557565b600181019050613570565b5050565b601f8211156135d3576135a481613473565b6135ad84613488565b810160208510156135bc578190505b6135d06135c885613488565b83018261356f565b50505b505050565b600082821c905092915050565b60006135f6600019846008026135d8565b1980831691505092915050565b600061360f83836135e5565b9150826002028217905092915050565b61362882612cd5565b67ffffffffffffffff81111561364157613640612f0b565b5b61364b8254613442565b613656828285613592565b600060209050601f8311600181146136895760008415613677578287015190505b6136818582613603565b8655506136e9565b601f19841661369786613473565b60005b828110156136bf5784890151825560018201915060208501945060208101905061369a565b868310156136dc57848901516136d8601f8916826135e5565b8355505b6001600288020188555050505b505050505050565b60006060820190506137066000830186612e12565b6137136020830185612bdc565b6137206040830184612e12565b949350505050565b6000819050919050565b600061374d61374861374384613728565b6134f7565b612bd2565b9050919050565b61375d81613732565b82525050565b61376c816130d2565b82525050565b60006040820190506137876000830185613754565b6137946020830184613763565b9392505050565b600081905092915050565b50565b60006137b660008361379b565b91506137c1826137a6565b600082019050919050565b60006137d7826137a9565b9150819050919050565b6000819050919050565b60006138066138016137fc846137e1565b6134f7565b612bd2565b9050919050565b613816816137eb565b82525050565b6000604082019050613831600083018561380d565b61383e6020830184613763565b9392505050565b60008160601b9050919050565b600061385d82613845565b9050919050565b600061386f82613852565b9050919050565b61388761388282612e00565b613864565b82525050565b60006138998284613876565b60148201915081905092915050565b600081905092915050565b600081546138c081613442565b6138ca81866138a8565b945060018216600081146138e557600181146138fa5761392d565b60ff198316865281151582028601935061392d565b61390385613473565b60005b8381101561392557815481890152600182019150602081019050613906565b838801955050505b50505092915050565b600061394182612cd5565b61394b81856138a8565b935061395b818560208601612cf1565b80840191505092915050565b600061397382866138b3565b915061397f8285613936565b915061398b82846138b3565b9150819050949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006139d282612bd2565b91506139dd83612bd2565b92508282019050808211156139f5576139f4613998565b5b92915050565b600081519050919050565b600082825260208201905092915050565b6000613a22826139fb565b613a2c8185613a06565b9350613a3c818560208601612cf1565b613a4581612d1b565b840191505092915050565b6000608082019050613a656000830187612e12565b613a726020830186612e12565b613a7f6040830185612bdc565b8181036060830152613a918184613a17565b905095945050505050565b600081519050613aab81612c46565b92915050565b600060208284031215613ac757613ac6612c10565b5b6000613ad584828501613a9c565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000604082019050613b516000830185612e12565b613b5e6020830184612bdc565b939250505056fea2646970667358221220f097f491298ba109c3350c423bd71c9c075ac4e756504547b9fdb1a0aae07a8b64736f6c63430008180033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000d050000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c4c495a4c41554e4348504144000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064c41554e43480000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): LIZLAUNCHPAD
Arg [1] : _symbol (string): LAUNCH
Arg [2] : _maxSupply (uint256): 3333
Arg [3] : _maxMintAmountPerAddress (uint256): 2
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000d05
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [5] : 4c495a4c41554e43485041440000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [7] : 4c41554e43480000000000000000000000000000000000000000000000000000
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.